mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Cleaned up the new scripting code. Added a helper function to do the yielding automatically. Modified all the scripts to use the new system and added a few new ones.
This commit is contained in:
		| @@ -8,16 +8,16 @@ operateUI(pointsAvailable, pointsLimit, str, vit, dex, int, min, pie) | ||||
|  | ||||
| --]] | ||||
|  | ||||
| require ("global") | ||||
|  | ||||
| function onEventStarted(player, actor, triggerName) | ||||
| 	--local points = player:GetAttributePoints(); | ||||
| 	--player:RunEventFunction("delegateCommand", actor, "operateUI", points.available, points.limit, points.inSTR, points.inVIT, points.inDEX, points.inINT, points.inMIN, points.inPIT); | ||||
| 	player:RunEventFunction("delegateCommand", actor, "operateUI", 10, 10, 10, 10, 10, 10, 10, 10); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, actor, step, arg1) | ||||
|  | ||||
| 	--Submit | ||||
| 	result = callClientFunction(player, "delegateCommand", actor, "operateUI", 100, 100, 10, 10, 10, 10, 10, 10); | ||||
| 	 | ||||
| 	player:EndCommand(); | ||||
| 	--Do Save | ||||
| 	if (result == true) then | ||||
| 	end | ||||
| 	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
		Reference in New Issue
	
	Block a user