root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/services/DropService.java
| 2424 | 2440 | ||
|---|---|---|---|
180 | PacketSendUtility.sendPacket(player, new SM_LOOT_STATUS(npcId, 2)); | 180 | PacketSendUtility.sendPacket(player, new SM_LOOT_STATUS(npcId, 2)); |
181 | player.unsetState(CreatureState.ACTIVE); | 181 | player.unsetState(CreatureState.ACTIVE); |
182 | player.setState(CreatureState.LOOTING); | 182 | player.setState(CreatureState.LOOTING); |
183 | PacketSendUtility.broadcastPacket(player, new SM_EMOTION(player, 35, 0, npcId), true); | 183 | PacketSendUtility.broadcastPacket(player, new SM_EMOTION(player, 38, 0, npcId), true); |
184 | 184 | ||
185 | // if dropitems is empty, resend droplist for close loot | 185 | // if dropitems is empty, resend droplist for close loot |
186 | if(dropItems.size() == 0) | 186 | if(dropItems.size() == 0) |
... | ... | ||
208 | } | 208 | } |
209 | player.unsetState(CreatureState.LOOTING); | 209 | player.unsetState(CreatureState.LOOTING); |
210 | player.setState(CreatureState.ACTIVE); | 210 | player.setState(CreatureState.ACTIVE); |
211 | PacketSendUtility.broadcastPacket(player, new SM_EMOTION(player, 36, 0, npcId), true); | 211 | PacketSendUtility.broadcastPacket(player, new SM_EMOTION(player, 39, 0, npcId), true); |
212 | } | 212 | } |
213 | 213 | ||
214 | public void requestDropItem(Player player, int npcId, int itemIndex) | 214 | public void requestDropItem(Player player, int npcId, int itemIndex) |
... | ... | ||
271 | PacketSendUtility.sendPacket(player, new SM_LOOT_STATUS(npcId, 3)); | 271 | PacketSendUtility.sendPacket(player, new SM_LOOT_STATUS(npcId, 3)); |
272 | player.unsetState(CreatureState.LOOTING); | 272 | player.unsetState(CreatureState.LOOTING); |
273 | player.setState(CreatureState.ACTIVE); | 273 | player.setState(CreatureState.ACTIVE); |
274 | PacketSendUtility.broadcastPacket(player, new SM_EMOTION(player, 36, 0, npcId), true); | 274 | PacketSendUtility.broadcastPacket(player, new SM_EMOTION(player, 39, 0, npcId), true); |
275 | Npc npc = (Npc) World.getInstance().findAionObject(npcId); | 275 | Npc npc = (Npc) World.getInstance().findAionObject(npcId); |
276 | if(npc != null) | 276 | if(npc != null) |
277 | { | 277 | { |
Download diff