Changeset 8630 for trunk/L2J_DataPack/dist/game/data/scripts/handlers/voicedcommandhandlers/stats.java
- Timestamp:
- Jan 16, 2012 7:56:19 AM (4 months ago)
- Location:
- trunk/L2J_DataPack
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
dist/game/data/scripts/handlers/voicedcommandhandlers/stats.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/L2J_DataPack
- Property svn:mergeinfo changed
/branches/unstable/L2J_DataPack_BETA merged: 8407-8426,8428-8480,8482-8491,8493-8588,8590-8629
- Property svn:mergeinfo changed
-
trunk/L2J_DataPack/dist/game/data/scripts/handlers/voicedcommandhandlers/stats.java
r8406 r8630 21 21 import com.l2jserver.util.StringUtil; 22 22 23 24 /**25 *26 *27 */28 23 public class stats implements IVoicedCommandHandler 29 24 { … … 34 29 35 30 /** 36 *37 31 * @see com.l2jserver.gameserver.handler.IVoicedCommandHandler#useVoicedCommand(java.lang.String, com.l2jserver.gameserver.model.actor.instance.L2PcInstance, java.lang.String) 38 32 */ 33 @Override 39 34 public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params) 40 35 { … … 42 37 { 43 38 L2PcInstance pc = L2World.getInstance().getPlayer(params); 44 if ( pc != null)39 if ((pc != null) && (pc.getEventStatus() != null)) 45 40 { 46 NpcHtmlMessage adminReply = new NpcHtmlMessage(5); 47 final StringBuilder replyMSG = StringUtil.startAppend( 48 300 + pc.getEventStatus().kills.size() * 50, 49 "<html><body>" + 50 "<center><font color=\"LEVEL\">[ L2J EVENT ENGINE ]</font></center><br>" + 51 "<br>Statistics for player <font color=\"LEVEL\">", 52 pc.getName(), 53 "</font><br>" + 54 "Total kills <font color=\"FF0000\">", 55 String.valueOf(pc.getEventStatus().kills.size()), 56 "</font><br>" + 57 "<br>Detailed list: <br>" 58 ); 59 41 final NpcHtmlMessage adminReply = new NpcHtmlMessage(5); 42 final StringBuilder replyMSG = StringUtil.startAppend(300 + (pc.getEventStatus().kills.size() * 50), "<html><body>" + "<center><font color=\"LEVEL\">[ L2J EVENT ENGINE ]</font></center><br>" + "<br>Statistics for player <font color=\"LEVEL\">", pc.getName(), "</font><br>" + "Total kills <font color=\"FF0000\">", String.valueOf(pc.getEventStatus().kills.size()), "</font><br>" + "<br>Detailed list: <br>"); 43 60 44 for (L2PcInstance plr : pc.getEventStatus().kills) 61 45 { … … 68 52 activeChar.sendPacket(adminReply); 69 53 } 70 71 54 } 72 55 return true; … … 74 57 75 58 /** 76 *77 59 * @see com.l2jserver.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList() 78 60 */ 61 @Override 79 62 public String[] getVoicedCommandList() 80 63 { 81 64 return VOICED_COMMANDS; 82 65 } 83 84 66 }
Note: See TracChangeset
for help on using the changeset viewer.
