Ignore:
Timestamp:
Jan 16, 2012 7:56:19 AM (4 months ago)
Author:
MELERIX
Message:

STABLE: Sync with BETA [8629]

Location:
trunk/L2J_DataPack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/L2J_DataPack

  • trunk/L2J_DataPack/dist/game/data/scripts/handlers/usercommandhandlers/InstanceZone.java

    r7737 r8630  
    2424import com.l2jserver.gameserver.network.serverpackets.SystemMessage; 
    2525 
    26  
    2726/** 
    28  *  
    2927 * @author nille02 
    3028 */ 
     
    3937         * @see com.l2jserver.gameserver.handler.IUserCommandHandler#getUserCommandList() 
    4038         */ 
     39        @Override 
    4140        public int[] getUserCommandList() 
    4241        { 
     
    4746         * @see com.l2jserver.gameserver.handler.IUserCommandHandler#useUserCommand(int, com.l2jserver.gameserver.model.actor.instance.L2PcInstance) 
    4847         */ 
     48        @Override 
    4949        public boolean useUserCommand(int id, L2PcInstance activeChar) 
    5050        { 
     
    5656                { 
    5757                        SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.INSTANT_ZONE_CURRENTLY_INUSE_S1); 
    58                         sm.addString(InstanceManager.getInstance().getInstanceIdName(world.templateId)); 
     58                        sm.addInstanceName(world.templateId); 
    5959                        activeChar.sendPacket(sm); 
    6060                } 
     
    7171                                        { 
    7272                                                firstMessage = false; 
    73                                                 activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INSTANCE_ZONE_TIME_LIMIT)); 
     73                                                activeChar.sendPacket(SystemMessageId.INSTANCE_ZONE_TIME_LIMIT); 
    7474                                        } 
    7575                                        int hours = (int) (remainingTime / 3600); 
    7676                                        int minutes = (int) ((remainingTime%3600) / 60); 
    7777                                        SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.AVAILABLE_AFTER_S1_S2_HOURS_S3_MINUTES); 
    78                                         sm.addString(InstanceManager.getInstance().getInstanceIdName(instanceId)); 
     78                                        sm.addInstanceName(instanceId); 
    7979                                        sm.addNumber(hours); 
    8080                                        sm.addNumber(minutes); 
     
    8585                        } 
    8686                if (firstMessage) 
    87                         activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.NO_INSTANCEZONE_TIME_LIMIT)); 
     87                        activeChar.sendPacket(SystemMessageId.NO_INSTANCEZONE_TIME_LIMIT); 
    8888                return true; 
    8989        } 
Note: See TracChangeset for help on using the changeset viewer.