| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -539,16 +539,16 @@ public class Item extends AbstractWorldObject { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return (Item) DbManager.getFromCache(GameObjectType.Item, id); | 
					 | 
					 | 
					 | 
					        return (Item) DbManager.getFromCache(GameObjectType.Item, id); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public static Item newGoldItem(AbstractWorldObject awo, ItemBase ib, Enum.ItemContainerType containerType) { | 
					 | 
					 | 
					 | 
					    public static Item newGoldItem(AbstractWorldObject awo, Enum.ItemContainerType containerType) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return newGoldItem(awo, ib, containerType, true); | 
					 | 
					 | 
					 | 
					        return newGoldItem(awo, containerType, true); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    //used for vault!
 | 
					 | 
					 | 
					 | 
					    //used for vault!
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public static Item newGoldItem(int accountID, ItemBase ib, Enum.ItemContainerType containerType) { | 
					 | 
					 | 
					 | 
					    public static Item newGoldItem(int accountID, Enum.ItemContainerType containerType) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return newGoldItem(accountID, ib, containerType, true); | 
					 | 
					 | 
					 | 
					        return newGoldItem(accountID, containerType, true); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    private static Item newGoldItem(int accountID, ItemBase ib, Enum.ItemContainerType containerType, boolean persist) { | 
					 | 
					 | 
					 | 
					    private static Item newGoldItem(int accountID, Enum.ItemContainerType containerType, boolean persist) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        int ownerID; | 
					 | 
					 | 
					 | 
					        int ownerID; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        OwnerType ownerType; | 
					 | 
					 | 
					 | 
					        OwnerType ownerType; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -556,7 +556,7 @@ public class Item extends AbstractWorldObject { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        ownerID = accountID; | 
					 | 
					 | 
					 | 
					        ownerID = accountID; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        ownerType = OwnerType.Account; | 
					 | 
					 | 
					 | 
					        ownerType = OwnerType.Account; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        Item newGold = new Item(ib.getUUID()); | 
					 | 
					 | 
					 | 
					        Item newGold = new Item(ResourceType.GOLD.templateID); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        newGold.ownerID = ownerID; | 
					 | 
					 | 
					 | 
					        newGold.ownerID = ownerID; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        newGold.ownerType = ownerType; | 
					 | 
					 | 
					 | 
					        newGold.ownerType = ownerType; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        newGold.containerType = containerType; | 
					 | 
					 | 
					 | 
					        newGold.containerType = containerType; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -574,7 +574,7 @@ public class Item extends AbstractWorldObject { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return newGold; | 
					 | 
					 | 
					 | 
					        return newGold; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    private static Item newGoldItem(AbstractWorldObject awo, ItemBase ib, Enum.ItemContainerType containerType, boolean persist) { | 
					 | 
					 | 
					 | 
					    private static Item newGoldItem(AbstractWorldObject awo, Enum.ItemContainerType containerType, boolean persist) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        int ownerID; | 
					 | 
					 | 
					 | 
					        int ownerID; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        OwnerType ownerType; | 
					 | 
					 | 
					 | 
					        OwnerType ownerType; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -610,7 +610,7 @@ public class Item extends AbstractWorldObject { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            } | 
					 | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        Item newGold = new Item(ib.getUUID()); | 
					 | 
					 | 
					 | 
					        Item newGold = new Item(ResourceType.GOLD.templateID); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        newGold.ownerID = ownerID; | 
					 | 
					 | 
					 | 
					        newGold.ownerID = ownerID; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        newGold.ownerType = ownerType; | 
					 | 
					 | 
					 | 
					        newGold.ownerType = ownerType; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        newGold.containerType = containerType; | 
					 | 
					 | 
					 | 
					        newGold.containerType = containerType; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -628,21 +628,6 @@ public class Item extends AbstractWorldObject { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return newGold; | 
					 | 
					 | 
					 | 
					        return newGold; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    // This is to be used for trades - the new item is not stored in the database
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public static Item newGoldItemTemp(AbstractWorldObject awo, ItemBase ib) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return Item.newGoldItem(awo, ib, Enum.ItemContainerType.NONE, false); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public static Item getItem(int UUID) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (UUID == 0) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            return null; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        Item item = (Item) DbManager.getFromCache(GameObjectType.Item, UUID); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (item != null) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            return item; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return DbManager.ItemQueries.GET_ITEM(UUID); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public static void addEnchantValue(String enchant, int value) { | 
					 | 
					 | 
					 | 
					    public static void addEnchantValue(String enchant, int value) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        Item.enchantValues.put(enchant, value); | 
					 | 
					 | 
					 | 
					        Item.enchantValues.put(enchant, value); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |