forked from MagicBane/Server
Resource Merchant
This commit is contained in:
@@ -1375,19 +1375,23 @@ public class ClientMessagePump implements NetMsgHandler {
|
|||||||
try {
|
try {
|
||||||
CharacterItemManager itemMan = sourcePlayer.getCharItemManager();
|
CharacterItemManager itemMan = sourcePlayer.getCharItemManager();
|
||||||
|
|
||||||
if (itemMan == null)
|
if (itemMan == null) {
|
||||||
|
ChatManager.chatSystemError(sourcePlayer,"Item Man Null");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
NPC npc = NPC.getFromCache(msg.getNPCID());
|
NPC npc = NPC.getFromCache(msg.getNPCID());
|
||||||
|
|
||||||
if (npc == null)
|
if (npc == null) {
|
||||||
|
ChatManager.chatSystemError(sourcePlayer,"NPC Null");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
Item gold = itemMan.getGoldInventory();
|
Item gold = itemMan.getGoldInventory();
|
||||||
|
|
||||||
if (gold == null)
|
if (gold == null) {
|
||||||
|
ChatManager.chatSystemError(sourcePlayer,"Gold Null");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
Item buy = null;
|
Item buy = null;
|
||||||
|
|
||||||
if (msg.getItemType() == GameObjectType.MobEquipment.ordinal()) {
|
if (msg.getItemType() == GameObjectType.MobEquipment.ordinal()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user