mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	- moved script object to wrapper class to catch and log exceptions - added loggers for basepacket/subpacket (todo: colour and use them in NLog.config) - finished up most commands (todo: !property and !property2) - todo: create and use mysql wrapper class to log exceptions
		
			
				
	
	
		
			18 lines
		
	
	
		
			564 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			564 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| properties = {
 | |
|     permissions = 0,
 | |
|     parameters = "sssss",
 | |
|     description = "changes appearance for equipment in <slot>. Parameters: <slot> <wId> <eId> <vId> <cId>, (idk what any of those mean either)",
 | |
| }
 | |
| 
 | |
| function onTrigger(player, argc, slot, wId, eId, vId, cId)
 | |
|     slot = tonumber(slot) or 0;
 | |
|     wId = tonumber(wId) or 0;
 | |
|     eId = tonumber(eId) or 0;
 | |
|     vId = tonumber(vId) or 0;
 | |
|     cId = tonumber(cId) or 0;
 | |
|     
 | |
|     if player then
 | |
|         player:GraphicChange(slot, wId, eId, vId, cId);
 | |
|         player:SendAppearance();
 | |
|     end;
 | |
| end; |