Browse Source

fix banks

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
79a9bfd606
  1. 19
      src/engine/net/client/ClientMessagePump.java

19
src/engine/net/client/ClientMessagePump.java

@ -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;

Loading…
Cancel
Save