|  |  | @ -16,6 +16,7 @@ import engine.net.Dispatch; | 
			
		
	
		
		
			
				
					
					|  |  |  | import engine.net.DispatchMessage; |  |  |  | import engine.net.DispatchMessage; | 
			
		
	
		
		
			
				
					
					|  |  |  | import engine.net.client.msg.CityDataMsg; |  |  |  | import engine.net.client.msg.CityDataMsg; | 
			
		
	
		
		
			
				
					
					|  |  |  | import engine.net.client.msg.ErrorPopupMsg; |  |  |  | import engine.net.client.msg.ErrorPopupMsg; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import engine.net.client.msg.VendorDialogMsg; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.joda.time.DateTime; |  |  |  | import org.joda.time.DateTime; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.pmw.tinylog.Logger; |  |  |  | import org.pmw.tinylog.Logger; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -329,15 +330,23 @@ public class Contract extends AbstractGameObject { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return true; |  |  |  |             return true; | 
			
		
	
		
		
			
				
					
					|  |  |  |         return false; |  |  |  |         return false; | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static VendorDialog trainerDialog(VendorDialog vd){ |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         VendorDialog returnedVD = new VendorDialog("Test","Test",19991999); |  |  |  |     public static void handleTrainerInventoryWindow(PlayerCharacter pc, VendorDialogMsg msg){ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         returnedVD.options = new ArrayList<MenuOption>(); |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         if(isClassTrainer(vd.getObjectUUID())) { |  |  |  |     } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             MenuOption option1 = new MenuOption(19991999, "Class Market", 19991999); |  |  |  |     public static VendorDialog trainerDialog(VendorDialog vd) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             vd.getOptions().add(option1); |  |  |  | 
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         VendorDialog returnedVD = new VendorDialog(vd.getDialogType(), vd.getIntro(), 19991999); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         returnedVD.options = new ArrayList<>(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         for (MenuOption mo : vd.options) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             returnedVD.options.add(mo); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (isClassTrainer(vd.getObjectUUID())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             MenuOption option1 = new MenuOption(19991999, "Buy", 19991999); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             returnedVD.options.add(option1); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         return returnedVD; |  |  |  |         return returnedVD; | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static VendorDialog HandleBaneCommanderOptions(int optionId, NPC npc, PlayerCharacter pc){ |  |  |  |     public static VendorDialog HandleBaneCommanderOptions(int optionId, NPC npc, PlayerCharacter pc){ | 
			
		
	
		
		
			
				
					
					|  |  |  |         pc.setLastNPCDialog(npc); |  |  |  |         pc.setLastNPCDialog(npc); | 
			
		
	
		
		
			
				
					
					|  |  |  |         VendorDialog vd = new VendorDialog(VendorDialog.getHostileVendorDialog().getDialogType(),VendorDialog.getHostileVendorDialog().getIntro(),-1);//VendorDialog.getHostileVendorDialog();
 |  |  |  |         VendorDialog vd = new VendorDialog(VendorDialog.getHostileVendorDialog().getDialogType(),VendorDialog.getHostileVendorDialog().getIntro(),-1);//VendorDialog.getHostileVendorDialog();
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |