Changeset 8630 for trunk/L2J_DataPack/dist/game/data/scripts/handlers/itemhandlers/BeastSpiritShot.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/itemhandlers/BeastSpiritShot.java (modified) (7 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/itemhandlers/BeastSpiritShot.java
r7720 r8630 16 16 17 17 import com.l2jserver.gameserver.handler.IItemHandler; 18 import com.l2jserver.gameserver.model.L2ItemInstance;19 18 import com.l2jserver.gameserver.model.actor.L2Playable; 20 19 import com.l2jserver.gameserver.model.actor.L2Summon; 21 20 import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; 22 21 import com.l2jserver.gameserver.model.actor.instance.L2PetInstance; 22 import com.l2jserver.gameserver.model.item.instance.L2ItemInstance; 23 23 import com.l2jserver.gameserver.network.SystemMessageId; 24 24 import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse; 25 import com.l2jserver.gameserver.network.serverpackets.SystemMessage;26 25 import com.l2jserver.gameserver.util.Broadcast; 27 26 … … 35 34 /** 36 35 * 37 * @see com.l2jserver.gameserver.handler.IItemHandler#useItem(com.l2jserver.gameserver.model.actor.L2Playable, com.l2jserver.gameserver.model. L2ItemInstance, boolean)36 * @see com.l2jserver.gameserver.handler.IItemHandler#useItem(com.l2jserver.gameserver.model.actor.L2Playable, com.l2jserver.gameserver.model.item.instance.L2ItemInstance, boolean) 38 37 */ 38 @Override 39 39 public void useItem(L2Playable playable, L2ItemInstance item, boolean forceUse) 40 40 { … … 46 46 if (playable instanceof L2Summon) 47 47 { 48 activeOwner.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.PET_CANNOT_USE_ITEM));48 activeOwner.sendPacket(SystemMessageId.PET_CANNOT_USE_ITEM); 49 49 return; 50 50 } … … 54 54 if (activePet == null) 55 55 { 56 activeOwner.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.PETS_ARE_NOT_AVAILABLE_AT_THIS_TIME));56 activeOwner.sendPacket(SystemMessageId.PETS_ARE_NOT_AVAILABLE_AT_THIS_TIME); 57 57 return; 58 58 } … … 60 60 if (activePet.isDead()) 61 61 { 62 activeOwner.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.SOULSHOTS_AND_SPIRITSHOTS_ARE_NOT_AVAILABLE_FOR_A_DEAD_PET));62 activeOwner.sendPacket(SystemMessageId.SOULSHOTS_AND_SPIRITSHOTS_ARE_NOT_AVAILABLE_FOR_A_DEAD_PET); 63 63 return; 64 64 } … … 73 73 // Not enough SpiritShots to use. 74 74 if (!activeOwner.disableAutoShot(itemId)) 75 activeOwner.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.NOT_ENOUGH_SPIRITHOTS_FOR_PET));75 activeOwner.sendPacket(SystemMessageId.NOT_ENOUGH_SPIRITHOTS_FOR_PET); 76 76 return; 77 77 } … … 109 109 { 110 110 if (!activeOwner.disableAutoShot(itemId)) 111 activeOwner.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.NOT_ENOUGH_SPIRITHOTS_FOR_PET));111 activeOwner.sendPacket(SystemMessageId.NOT_ENOUGH_SPIRITHOTS_FOR_PET); 112 112 return; 113 113 } 114 114 115 115 // Pet uses the power of spirit. 116 activeOwner.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.PET_USE_SPIRITSHOT));116 activeOwner.sendPacket(SystemMessageId.PET_USE_SPIRITSHOT); 117 117 int skillId = 0; 118 118 switch (itemId)
Note: See TracChangeset
for help on using the changeset viewer.
