|
|
@ -935,15 +935,6 @@ public class Item extends AbstractWorldObject { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected synchronized boolean equipItem(NPC npc, Enum.EquipSlotType slot) { |
|
|
|
protected synchronized boolean equipItem(NPC npc, Enum.EquipSlotType slot) { |
|
|
|
if (!DbManager.ItemQueries.UPDATE_OWNER(this, |
|
|
|
|
|
|
|
npc.getObjectUUID(), //UUID
|
|
|
|
|
|
|
|
//isNPC
|
|
|
|
|
|
|
|
//isPlayer
|
|
|
|
|
|
|
|
//isAccount
|
|
|
|
|
|
|
|
ItemContainerType.EQUIPPED, |
|
|
|
|
|
|
|
slot)) //Slot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
this.zeroItem(); |
|
|
|
this.zeroItem(); |
|
|
|
this.ownerID = npc.getObjectUUID(); |
|
|
|
this.ownerID = npc.getObjectUUID(); |
|
|
|
this.ownerType = OwnerType.Npc; |
|
|
|
this.ownerType = OwnerType.Npc; |
|
|
|