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:
		| @@ -1,13 +1,13 @@ | ||||
| require ("global") | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	defaultFst = GetStaticActor("DftFst"); | ||||
| 	player:RunEventFunction("delegateEvent", player, defaultFst, "defaultTalkWithInn_Desk", nil, nil, nil); | ||||
| 	choice = callClientFunction(player, "delegateEvent", player, defaultFst, "defaultTalkWithInn_Desk", nil, nil, nil); | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, blah, menuSelect) | ||||
|  | ||||
| 	if (menuSelect == 1) then | ||||
| 	if (choice == 1) then | ||||
| 		GetWorldManager():DoZoneChange(player, 13); | ||||
| 	elseif (choice == 2) then | ||||
| 		--Do Set Homepoint | ||||
| 	end | ||||
| 	 | ||||
| 	player:EndEvent(); | ||||
|   | ||||
| @@ -1,15 +1,14 @@ | ||||
| require ("global") | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	defaultSea = GetStaticActor("DftSea"); | ||||
| 	player:RunEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithInn_Desk", nil, nil, nil); | ||||
| 	choice = callClientFunction(player, "delegateEvent", player, defaultSea, "defaultTalkWithInn_Desk", nil, nil, nil); | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, blah, menuSelect) | ||||
|  | ||||
| 	if (menuSelect == 1) then | ||||
| 		GetWorldManager():DoZoneChange(player, 12); | ||||
| 	if (choice == 1) then | ||||
| 		GetWorldManager():DoZoneChange(player, 13); | ||||
| 	elseif (choice == 2) then | ||||
| 		--Do Set Homepoint | ||||
| 	end | ||||
| 	 | ||||
| 	player:EndEvent(); | ||||
| 	 | ||||
| 	player:EndEvent();	 | ||||
| end | ||||
| @@ -1,10 +1,16 @@ | ||||
| require("global") | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	defaultWil = GetStaticActor("DftWil"); | ||||
| 	player:RunEventFunction("delegateEvent", player, defaultWil, "defaultTalkWithMomodi_001", nil, nil, nil); | ||||
| 	tutorialU1 = GetStaticActor("Trl0u1"); | ||||
| 	--callClientFunction(player, "delegateEvent", player, defaultWil, "defaultTalkWithMomodi_001", nil, nil, nil); | ||||
| 	callClientFunction(player, "switchEvent", defaultWil, tutorialU1, nil, nil, 1, 1, 0x3F1); | ||||
| 	player:endEvent(); | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, blah, menuSelect) | ||||
| 	 | ||||
| 	player:EndEvent(); | ||||
| 	 | ||||
| 	 | ||||
| end | ||||
		Reference in New Issue
	
	Block a user