Setting slot.NONE when moving to inventory

This commit is contained in:
2024-03-23 09:25:49 -04:00
parent ea38c3bef7
commit ecc14fc3af
+5
View File
@@ -874,6 +874,7 @@ public class Item extends AbstractWorldObject {
this.ownerID = npc.getObjectUUID();
this.ownerType = OwnerType.Npc;
this.containerType = Enum.ItemContainerType.INVENTORY;
this.equipSlot = EquipSlotType.NONE;
return true;
}
@@ -891,6 +892,7 @@ public class Item extends AbstractWorldObject {
this.ownerID = 0;
this.ownerType = null;
this.containerType = Enum.ItemContainerType.INVENTORY;
this.equipSlot = EquipSlotType.NONE;
return true;
}
@@ -908,6 +910,7 @@ public class Item extends AbstractWorldObject {
this.ownerID = pc.getObjectUUID();
this.ownerType = OwnerType.PlayerCharacter;
this.containerType = Enum.ItemContainerType.BANK;
this.equipSlot = EquipSlotType.NONE;
return true;
}
@@ -925,6 +928,7 @@ public class Item extends AbstractWorldObject {
this.ownerID = npc.getObjectUUID();
this.ownerType = OwnerType.Npc;
this.containerType = Enum.ItemContainerType.BANK;
this.equipSlot = EquipSlotType.NONE;
return true;
}
@@ -942,6 +946,7 @@ public class Item extends AbstractWorldObject {
this.ownerID = a.getObjectUUID();
this.ownerType = OwnerType.Account;
this.containerType = Enum.ItemContainerType.VAULT;
this.equipSlot = EquipSlotType.NONE;
return true;
}