|
|
@ -340,16 +340,18 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
if (player == null) |
|
|
|
if (player == null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if(msg.getNumItems() < 1) { |
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't"); |
|
|
|
|
|
|
|
return;//catch gold dupe for negative numbers
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!NPCVaultBankRangeCheck(player, origin, "bank")) |
|
|
|
if (!NPCVaultBankRangeCheck(player, origin, "bank")) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
CharacterItemManager itemManager = player.getCharItemManager(); |
|
|
|
CharacterItemManager itemManager = player.getCharItemManager(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(msg.getNumItems() < 1 && itemManager.getItemByUUID(msg.getUUID()).getItemBaseID() == 7) { |
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't"); |
|
|
|
|
|
|
|
return;//catch gold dupe for negative numbers
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (itemManager == null) |
|
|
|
if (itemManager == null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
@ -402,16 +404,17 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
if (player == null) |
|
|
|
if (player == null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if(msg.getNumItems() < 1) { |
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't"); |
|
|
|
|
|
|
|
return;//catch gold dupe for negative numbers
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!NPCVaultBankRangeCheck(player, origin, "bank")) |
|
|
|
if (!NPCVaultBankRangeCheck(player, origin, "bank")) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
CharacterItemManager itemManager = player.getCharItemManager(); |
|
|
|
CharacterItemManager itemManager = player.getCharItemManager(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(msg.getNumItems() < 1 && itemManager.getItemByUUID(msg.getUUID()).getItemBaseID() == 7) { |
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't"); |
|
|
|
|
|
|
|
return;//catch gold dupe for negative numbers
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (itemManager == null) |
|
|
|
if (itemManager == null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|