|
|
@ -571,6 +571,11 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (i.isCanDestroy()) { |
|
|
|
if (i.isCanDestroy()) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (i.getItemBase().isRune() && !sourcePlayer.isInSafeZone()) { |
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(sourcePlayer, "You May Only Delete Runes In A Safe Zone."); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
int goldValue = i.getBaseValue(); |
|
|
|
int goldValue = i.getBaseValue(); |
|
|
|
if (i.getItemBase().isRune()) |
|
|
|
if (i.getItemBase().isRune()) |
|
|
|
goldValue = 500000; |
|
|
|
goldValue = 500000; |
|
|
@ -578,7 +583,7 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
if (i.getItemBaseID() == 980066) |
|
|
|
if (i.getItemBaseID() == 980066) |
|
|
|
goldValue = 0; |
|
|
|
goldValue = 0; |
|
|
|
|
|
|
|
|
|
|
|
if(itemManager.getGoldInventory().getNumOfItems() + goldValue > 10000000) |
|
|
|
if(itemManager.getGoldInventory().getNumOfItems() + goldValue > MBServerStatics.PLAYER_GOLD_LIMIT) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (itemManager.delete(i)) { |
|
|
|
if (itemManager.delete(i)) { |
|
|
@ -792,6 +797,8 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
if (item == null) |
|
|
|
if (item == null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
item.stripCastableEnchants(); |
|
|
|
|
|
|
|
|
|
|
|
if (item.lootLock.tryLock()) { |
|
|
|
if (item.lootLock.tryLock()) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
Item itemRet = null; |
|
|
|
Item itemRet = null; |
|
|
@ -1287,7 +1294,7 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
|
|
|
|
|
|
|
|
cost *= profit; |
|
|
|
cost *= profit; |
|
|
|
|
|
|
|
|
|
|
|
if (gold.getNumOfItems() + cost > 10000000) { |
|
|
|
if (gold.getNumOfItems() + cost > MBServerStatics.PLAYER_GOLD_LIMIT) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1480,6 +1487,7 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
if (buy != null) { |
|
|
|
if (buy != null) { |
|
|
|
me.transferEnchants(buy); |
|
|
|
me.transferEnchants(buy); |
|
|
|
itemMan.addItemToInventory(buy); |
|
|
|
itemMan.addItemToInventory(buy); |
|
|
|
|
|
|
|
buy.stripCastableEnchants(); |
|
|
|
if(npc.contractUUID == 900 && buy.getItemBaseID() == 1705032){ |
|
|
|
if(npc.contractUUID == 900 && buy.getItemBaseID() == 1705032){ |
|
|
|
buy.setNumOfItems(10); |
|
|
|
buy.setNumOfItems(10); |
|
|
|
DbManager.ItemQueries.UPDATE_NUM_ITEMS(buy,buy.getNumOfItems()); |
|
|
|
DbManager.ItemQueries.UPDATE_NUM_ITEMS(buy,buy.getNumOfItems()); |
|
|
|