mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	onInit was added to all the scripts. Added code for all the Limsa opening event npcs.
This commit is contained in:
		| @@ -1,3 +1,3 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Monster/Lemming/NuteaterStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 10, 1, 4, false, false, false, false, false, false, false, false, 2; | ||||
| end | ||||
| @@ -20,7 +20,7 @@ Menu Ids: | ||||
|  | ||||
| --]] | ||||
|  | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/Aetheryte/AetheryteParent", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -20,7 +20,7 @@ Menu Ids: | ||||
|  | ||||
| --]] | ||||
|  | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceGuildlevePublisher", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceLinkshellManager", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -23,7 +23,7 @@ Menu Ids: | ||||
|  | ||||
| --]] | ||||
|  | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulacePassiveGLPublisher", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -32,7 +32,7 @@ Menu Ids: | ||||
|  | ||||
| --]] | ||||
|  | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/TaskBoard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
							
								
								
									
										7
									
								
								scripts/zones/155/npcs/doorStd_fst0Twn01a_31@0CE00.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								scripts/zones/155/npcs/doorStd_fst0Twn01a_31@0CE00.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/MapObj/DoorStandard", false, false, false, false, false, 5900001	, false, false, 0, 0, 0x141, 0xB7d;	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										10
									
								
								scripts/zones/155/zone.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								scripts/zones/155/zone.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
|  | ||||
|  | ||||
| function onZoneInit(zone) | ||||
| end | ||||
|  | ||||
| function onZoneIn(zone, player) | ||||
| end | ||||
|  | ||||
| function onZoneOut(zone, player) | ||||
| end | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/OpeningStoperF0B1", false, false, false, false, false, 0x10A350, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -0,0 +1,3 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Monster/Fighter/FighterAllyOpeningHealer", false, false, false, false, false, npc.getActorClassId(), false, false, 10, 1, 4, false, false, false, false, false, false, false, false, 2; | ||||
| end | ||||
| @@ -0,0 +1,3 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Monster/Fighter/FighterAllyOpeningAttacker", false, false, false, false, false, npc.getActorClassId(), false, false, 10, 1, 4, false, false, false, false, false, false, false, false, 2; | ||||
| end | ||||
| @@ -0,0 +1,3 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Monster/Jellyfish/JellyfishScenarioLimsaLv00", false, false, false, false, false, npc.getActorClassId(), true, true, 10, 0, 4, false, false, false, false, false, false, false, false, 2; | ||||
| end | ||||
							
								
								
									
										19
									
								
								scripts/zones/193/npcs/pplStd_01@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/zones/193/npcs/pplStd_01@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_4", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										19
									
								
								scripts/zones/193/npcs/pplStd_02@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/zones/193/npcs/pplStd_02@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_5", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										19
									
								
								scripts/zones/193/npcs/pplStd_03@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/zones/193/npcs/pplStd_03@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_6", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										19
									
								
								scripts/zones/193/npcs/pplStd_04@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/zones/193/npcs/pplStd_04@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_7", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										43
									
								
								scripts/zones/193/npcs/pplStd_05@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								scripts/zones/193/npcs/pplStd_05@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| require("/quests/man/man0l0") | ||||
|  | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onSpawn(player, npc) | ||||
|  | ||||
| 	man0l0Quest = player:getQuest("man0l0");	 | ||||
| 	 | ||||
| 	if (man0l0Quest ~= nil) then | ||||
| 		if (man0l0Quest ~= nil) then | ||||
| 			if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == false) then | ||||
| 				npc:setQuestGraphic(player, 0x2); | ||||
| 			end | ||||
| 		end | ||||
| 	end | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = player:getQuest("man0l0");	 | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == false) then | ||||
| 			player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrMini003", nil, nil, nil); | ||||
| 			npc:setQuestGraphic(player, 0x0); | ||||
| 			man0l0Quest:SetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3, true); | ||||
| 			man0l0Quest:SaveData(); | ||||
| 			 | ||||
| 			player:getDirector():onTalked(npc); | ||||
| 		else | ||||
| 			player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_8", nil, nil, nil); | ||||
| 		end | ||||
| 	else		 | ||||
| 		player:endEvent(); | ||||
| 	end		 | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										19
									
								
								scripts/zones/193/npcs/pplStd_06@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/zones/193/npcs/pplStd_06@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_9", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										19
									
								
								scripts/zones/193/npcs/pplStd_07@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/zones/193/npcs/pplStd_07@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_10", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										19
									
								
								scripts/zones/193/npcs/pplStd_08@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/zones/193/npcs/pplStd_08@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_11", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										19
									
								
								scripts/zones/193/npcs/pplStd_09@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/zones/193/npcs/pplStd_09@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_12", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										46
									
								
								scripts/zones/193/npcs/pplStd_0a@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								scripts/zones/193/npcs/pplStd_0a@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| require("/quests/man/man0l0") | ||||
|  | ||||
| function init(npc)	 | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onSpawn(player, npc) | ||||
|  | ||||
| 	man0l0Quest = player:getQuest("man0l0"); | ||||
|  | ||||
| 	if (man0l0Quest ~= nil) then | ||||
| 		if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == false) then | ||||
| 			npc:setQuestGraphic(player, 0x2); | ||||
| 		end | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = player:getQuest("man0l0"); | ||||
|  | ||||
| 	if (man0l0Quest ~= nil) then | ||||
| 		if (triggerName == "talkDefault") then | ||||
| 			if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == false) then | ||||
| 				player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrMini002", nil, nil, nil); | ||||
| 				npc:setQuestGraphic(player, 0x0); | ||||
| 				man0l0Quest:SetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2, true); | ||||
| 				man0l0Quest:SaveData(); | ||||
| 				 | ||||
| 				player:getDirector():onTalked(npc); | ||||
| 			else | ||||
| 				player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_13", nil, nil, nil); | ||||
| 			end | ||||
| 		else | ||||
| 			player:endEvent(); | ||||
| 		end | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										20
									
								
								scripts/zones/193/npcs/pplStd_0b@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								scripts/zones/193/npcs/pplStd_0b@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		--player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_9", nil, nil, nil); | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_14", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										19
									
								
								scripts/zones/193/npcs/pplStd_0c@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/zones/193/npcs/pplStd_0c@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
| 		 | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_15", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										19
									
								
								scripts/zones/193/npcs/pplStd_0d@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/zones/193/npcs/pplStd_0d@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_16", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										19
									
								
								scripts/zones/193/npcs/pplStd_0e@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								scripts/zones/193/npcs/pplStd_0e@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_17", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										55
									
								
								scripts/zones/193/npcs/pplStd_0f@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								scripts/zones/193/npcs/pplStd_0f@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,55 @@ | ||||
| require("/quests/man/man0l0") | ||||
|  | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceTutorial", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onSpawn(player, npc) | ||||
|  | ||||
| 	man0l0Quest = player:getQuest("Man0l0"); | ||||
| 	 | ||||
| 	if (man0l0Quest ~= nil) then | ||||
| 		if (man0l0Quest ~= nil and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1) == true and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == true and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == true) then | ||||
| 			player:setEventStatus(npc, "pushDefault", true, 0x2); | ||||
| 			npc:setQuestGraphic(player, 0x3); | ||||
| 		else | ||||
| 			player:setEventStatus(npc, "pushDefault", true, 0x2); | ||||
| 			npc:setQuestGraphic(player, 0x3); | ||||
| 		end | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	if (triggerName == "pushDefault") then | ||||
| 		man0l0Quest = getStaticActor("Man0l0"); | ||||
| 		player:runEventFunction("delegateEvent", player, man0l0Quest, "processEventNewRectAsk", nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, resultId, choice) | ||||
|  | ||||
| 	if (resultId == 0x2B9EBC42) then | ||||
| 		player:endEvent(); | ||||
| 		player:setDirector("QuestDirectorMan0l001", true); | ||||
| 		 | ||||
| 		worldMaster = getWorldMaster(); | ||||
| 		player:sendGameMessage(player, worldMaster, 34108, 0x20);	 | ||||
| 		player:sendGameMessage(player, worldMaster, 50011, 0x20);	 | ||||
|  | ||||
| 		getWorldManager():DoPlayerMoveInZone(player, 9); | ||||
| 		player:kickEvent(player:getDirector(), "noticeEvent", true);		 | ||||
| 	else | ||||
| 		if (choice == 1) then	 | ||||
| 			man0l0Quest = player:getQuest("Man0l0"); | ||||
| 			player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_2", nil, nil, nil, nil); | ||||
| 		else | ||||
| 			player:endEvent(); | ||||
| 		end | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
| @@ -1,13 +1,65 @@ | ||||
| function onInstantiate(npc) | ||||
| require("/quests/man/man0l0") | ||||
|  | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceTutorial", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onSpawn(player, npc) | ||||
| 	 | ||||
| 	man0l0Quest = player:getQuest("Man0l0");	 | ||||
| 	 | ||||
| 	if (man0l0Quest ~= nil) then | ||||
| 		if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1) == false) then | ||||
| 			npc:setQuestGraphic(player, 0x2); | ||||
| 		end | ||||
| 		 | ||||
| 		if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_TUTORIAL3_DONE) == true) then | ||||
| 			player:setEventStatus(npc, "pushDefault", false, 0x2);		 | ||||
| 		end | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = getStaticActor("Man0l0"); | ||||
| 	player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil); | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_002", nil, nil, nil); --LTW | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_003", nil, nil, nil); --LTW NO GUILD | ||||
|  | ||||
| 	man0l0Quest = player:getQuest("Man0l0"); | ||||
| 	 | ||||
| 	if (man0l0Quest ~= nil) then	 | ||||
| 	 | ||||
| 		if (triggerName == "pushDefault") then | ||||
| 			player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal002", nil, nil, nil);			 | ||||
| 		elseif (triggerName == "talkDefault") then		 | ||||
| 			--Is doing talk tutorial? | ||||
| 			if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_TUTORIAL3_DONE) == false) then | ||||
| 				player:setEventStatus(npc, "pushDefault", false, 0x2); | ||||
| 				player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil); | ||||
| 				man0l0Quest:SetQuestFlag(MAN0L0_FLAG_TUTORIAL3_DONE, true);				 | ||||
| 				npc:setQuestGraphic(player, 0x2); | ||||
| 				man0l0Quest:SaveData(); | ||||
| 				 | ||||
| 				player:getDirector():onTalked(npc); | ||||
| 			--Was he talked to for the mini tutorial? | ||||
| 			else				 | ||||
| 				player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrMini001", nil, nil, nil); | ||||
| 				 | ||||
| 				if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1) == false) then | ||||
| 					npc:setQuestGraphic(player, 0x0); | ||||
| 					man0l0Quest:SetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1, true); | ||||
| 					man0l0Quest:SaveData(); | ||||
| 					 | ||||
| 					player:getDirector():onTalked(npc); | ||||
| 				end | ||||
| 				 | ||||
| 			end						 | ||||
| 			 | ||||
| 		else | ||||
| 			player:endEvent(); | ||||
| 		end | ||||
| 	else | ||||
| 		player:endEvent(); --Should not be here w.o this quest | ||||
| 	end	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
| @@ -3,7 +3,16 @@ | ||||
| function onZoneInit(zone) | ||||
| end | ||||
|  | ||||
| function onZoneIn(zone, player) | ||||
| function onZoneIn(player) | ||||
| 	openingQuest = player:getQuest(110001); | ||||
| 	 | ||||
| 	--Opening Quest | ||||
| 	if (openingQuest ~= nil) then | ||||
| 		if (openingQuest:GetQuestFlag(0) == false) then | ||||
| 			player:kickEvent(player:getDirector(), "noticeEvent"); | ||||
| 		end | ||||
| 	end	 | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onZoneOut(zone, player) | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/ObjectBed", false, false, false, false, false, 0x1250FB, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/ObjectInnDoor", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/ObjectItemStorage", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceCutScenePlayer", false, false, false, false, false, 0x107B38, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| function onInstantiate(npc) | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user