|  |  | @ -79,7 +79,7 @@ public class NPC extends AbstractCharacter { | 
			
		
	
		
		
			
				
					
					|  |  |  |     // Variables NOT to be stored in db
 |  |  |  |     // Variables NOT to be stored in db
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     protected boolean isStatic = false; |  |  |  |     protected boolean isStatic = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |     private DateTime upgradeDateTime = null; |  |  |  |     private DateTime upgradeDateTime = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |     private ConcurrentHashMap<Mob, Integer> siegeMinionMap = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW); |  |  |  |     private final ConcurrentHashMap<Mob, Integer> siegeMinionMap = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     private HashSet<Integer> canRoll = null; |  |  |  |     private HashSet<Integer> canRoll = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |     private int parentZoneID; |  |  |  |     private int parentZoneID; | 
			
		
	
		
		
			
				
					
					|  |  |  |     private int equipmentSetID = 0; |  |  |  |     private int equipmentSetID = 0; | 
			
		
	
	
		
		
			
				
					|  |  | @ -1278,22 +1278,16 @@ public class NPC extends AbstractCharacter { | 
			
		
	
		
		
			
				
					
					|  |  |  |         return this.guild; |  |  |  |         return this.guild; | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     // Method removes the npc from the game simulation
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     // and deletes it from the database.
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     public ArrayList<Mob> getSiegeMinions() { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         return siegeMinions; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     public HashSet<Integer> getCanRoll() { |  |  |  |     public HashSet<Integer> getCanRoll() { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (this.canRoll == null) { |  |  |  |         if (this.canRoll == null) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             this.canRoll = DbManager.ItemQueries.GET_ITEMS_FOR_VENDOR(this.vendorID); |  |  |  |             this.canRoll = DbManager.ItemQueries.GET_ITEMS_FOR_VENDOR(this.vendorID); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  | 
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         HashSet<Integer> fullItemList = this.canRoll; |  |  |  |         HashSet<Integer> fullItemList = this.canRoll; | 
			
		
	
		
		
			
				
					
					|  |  |  |             HashSet<Integer> returnIDs = new HashSet<>(); |  |  |  |         HashSet<Integer> filteredItemList = new HashSet<>(); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         short maxSkill = 25; |  |  |  |         short maxSkill = 25; | 
			
		
	
		
		
			
				
					
					|  |  |  |             switch(this.getRank()){ |  |  |  | 
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         switch (this.getRank()) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             case 1: |  |  |  |             case 1: | 
			
		
	
		
		
			
				
					
					|  |  |  |                 maxSkill = 25; |  |  |  |                 maxSkill = 25; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 break; |  |  |  |                 break; | 
			
		
	
	
		
		
			
				
					|  |  | @ -1312,24 +1306,23 @@ public class NPC extends AbstractCharacter { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 maxSkill = 110; |  |  |  |                 maxSkill = 110; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 break; |  |  |  |                 break; | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |             for(Integer itemID : fullItemList){ |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 if(ItemBase.getItemBase(itemID).getPercentRequired() <= maxSkill){ |  |  |  |         for (Integer itemID : fullItemList) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     returnIDs.add(itemID); |  |  |  |             if (ItemBase.getItemBase(itemID).getPercentRequired() <= maxSkill) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 filteredItemList.add(itemID); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  | 
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         if (this.contract.getVendorID() == 102) { |  |  |  |         if (this.contract.getVendorID() == 102) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             for (int i = 0; i < this.getRank(); i++) { |  |  |  |             for (int i = 0; i < this.getRank(); i++) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 int subID = i + 1; |  |  |  |                 int subID = i + 1; | 
			
		
	
		
		
			
				
					
					|  |  |  |                     returnIDs.add(910010 + subID); |  |  |  |                 filteredItemList.add(910010 + subID); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (this.getRank() == 7) |  |  |  |             if (this.getRank() == 7) | 
			
		
	
		
		
			
				
					
					|  |  |  |                     returnIDs.add(910018); |  |  |  |                 filteredItemList.add(910018); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         //}
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         return returnIDs; |  |  |  |         return filteredItemList; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public int getRollingTimeInSeconds(int itemID) { |  |  |  |     public int getRollingTimeInSeconds(int itemID) { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |