mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Added scripts for the inn keepers. Added default event conditions to almost all actors. Updated sql for actorClass, spawnLocations, and new zoneEntrances.
This commit is contained in:
		
							
								
								
									
										3
									
								
								data/scripts/zones1/128/npcs/testNutEater.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								data/scripts/zones1/128/npcs/testNutEater.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Monster/Lemming/NuteaterStandard", false, false, false, false, false, npc.getActorClassId(), true, true, 10, 1, 4, true, true, true, true, true, true, true, true, 2; | ||||
| end | ||||
							
								
								
									
										34
									
								
								data/scripts/zones1/133/npcs/aetheryteP_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								data/scripts/zones1/133/npcs/aetheryteP_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| --[[ | ||||
|  | ||||
| AetheryteParent Script | ||||
|  | ||||
| Functions: | ||||
|  | ||||
| eventAetheryteParentSelect(0x0, false, 0x60, 0x138807,0,0,0,0) | ||||
| eventAetheryteParentDesion( | ||||
| showAetheryteTips( | ||||
| eventGLSelect(0) | ||||
| eventSelectGLDetail(0x2a48, a, f4241, 136, 98b1d9, 1, 1, true, false) | ||||
| eventGLDifficulty(0x2a48) | ||||
| eventGLStart(0x2a48, 2, c8, 0, 0, 0, 0) | ||||
| eventGLBoost() | ||||
| eventGLPlay | ||||
| eventGLReward() | ||||
|  | ||||
|  | ||||
| Menu Ids: | ||||
|  | ||||
| --]] | ||||
|  | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/Aetheryte/AetheryteParent", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	player:runEventFunction("eventAetheryteParentSelect", 0x0, false, 0x61, 0x0,0,0,0,0); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
| 	--player:runEventFunction("askOfferQuest", player, 1000); | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										38
									
								
								data/scripts/zones1/133/npcs/pplGuildlev_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								data/scripts/zones1/133/npcs/pplGuildlev_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| --[[ | ||||
|  | ||||
| PopulaceGuildlevePublisher Script | ||||
|  | ||||
| Functions: | ||||
|  | ||||
| eventTalkType(level (changes factionLeves), sayIntro, brokenBladePoints, shieldsPoints, hornhandPoints, showTutorialLeves, doOmen (!=0), menuId (to Jump), leveAllowances, ?, ?, ?) | ||||
| eventTalkPack(startGuildlevePack, endGuildlevePack) | ||||
| eventTalkCard(card1,card2,card3,card4,card5,card6,card7,card8) | ||||
| eventTalkDetail(guildLeveId, factionEvaluating, rewardType1, rewardQuantity1, rewardType2, rewardQuantity2, boostPoint, previouslyCompleted, completionBonus) | ||||
| eventTalkAfterOffer() | ||||
| eventHistoryleveExist(guildLeveId) | ||||
| eventHistoryleveCannot() | ||||
| eventGLChangeDetail(?, guildLeveId, boostPoint, rewardType1, rewardQuantity1, rewardType2, rewardQuantity2, factionEvaluating, previouslyCompleted) | ||||
| eventTalkChangeOne(skipQuestion) | ||||
| talkOfferMaxOver() | ||||
| askRetryRegionalleve(guildLeveId, leveAllowances); | ||||
|  | ||||
| Menu Ids: | ||||
|  | ||||
| --]] | ||||
|  | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceGuildlevePublisher", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("eventTalkType", 0x30, true, 0x02CE, 0x356, 0x367, true, 0, nil, 0x29, 0,0,0); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected) | ||||
| 	--player:runEventFunction("eventTalkType", 0x32, true, 0x02CE, 0x356, 0x367, false, 2, nil, 0x29, 0,0,0); | ||||
| 	player:runEventFunction("eventTalkPack", 201, 207); | ||||
| 	--player:runEventFunction("eventTalkCard", 0x30C3, 0x30C4, 0x30C1, 0x30C5, 0x30C6, 0x30C7, 0x30C8, 0x30C9); | ||||
| 	--player:runEventFunction("eventTalkDetail", 0x30C4, 2, 0xF4242, 0xD, 0xF4242, 0, 0xFF, true, 11); | ||||
| 	--player:runEventFunction("eventGLChangeDetail", 0xDEAD, 0x30C4, 0xFF, 0xF4242, 0xD, 0xF4242, 0, 2, true); | ||||
| 	player:endEvent();	 | ||||
| end | ||||
							
								
								
									
										28
									
								
								data/scripts/zones1/133/npcs/pplLinkshel_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								data/scripts/zones1/133/npcs/pplLinkshel_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceLinkshellManager", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	isNew = false; | ||||
| 	player:runEventFunction("eventTalkStep1", isNew); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	if (menuOptionSelected == nil) then | ||||
| 		player:endEvent(); | ||||
| 		return; | ||||
| 	end | ||||
|  | ||||
| 	isNew = false; | ||||
| 	if (menuOptionSelected == 1) then | ||||
| 		player:runEventFunction("eventTalkStep2", isNew); | ||||
| 	elseif (menuOptionSelected == 10) then | ||||
| 		player:endEvent(); | ||||
| 		return; | ||||
| 	elseif (menuOptionSelected == 3) then | ||||
| 		--createLinkshell | ||||
| 		player:runEventFunction("eventTalkStepMakeupDone", isNew); | ||||
| 	end	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										37
									
								
								data/scripts/zones1/133/npcs/pplPassiveG_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								data/scripts/zones1/133/npcs/pplPassiveG_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| --[[ | ||||
|  | ||||
| PopulacePassiveGLPublisher Script | ||||
|  | ||||
| Functions: | ||||
|  | ||||
| askOfferPack() - Show Classes | ||||
| askOfferRank() - Show Ranks | ||||
| askOfferQuest(player) | ||||
| confirmOffer(nil, questId) | ||||
| confirmMaxOffer() | ||||
| talkOfferWelcome(actor, leveAllowances) | ||||
| talkOfferDecide() | ||||
| talkOfferMaxOver() | ||||
| selectDiscardGuildleve(player) | ||||
| confirmJournal() | ||||
| askDiscardGuildleve() | ||||
| confirmDiscardGuildleve(nil, questId) | ||||
| askRetryRegionalleve(questId, leveAllowances) | ||||
| finishTalkTurn() | ||||
|  | ||||
| Menu Ids: | ||||
|  | ||||
| --]] | ||||
|  | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulacePassiveGLPublisher", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("talkOfferWelcome", player, 1); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
| 	--player:runEventFunction("askOfferQuest", player, 1000); | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_02@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_02@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_03@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_03@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										52
									
								
								data/scripts/zones1/133/npcs/pplShopSal_04@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								data/scripts/zones1/133/npcs/pplShopSal_04@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,52 @@ | ||||
| --[[ | ||||
|  | ||||
| PopulaceGuildlevePublisher Script | ||||
|  | ||||
| Functions: | ||||
|  | ||||
| welcomeTalk(say1, player, say2, say3) | ||||
|  | ||||
| openShopBuy(player, shopId)  | ||||
| selectShopBuy(player) | ||||
| closeShopBuy(player) | ||||
|  | ||||
| openShopSell(player, shopId | ||||
| selectShopSell(player) | ||||
| closeShopSell(player) | ||||
|  | ||||
| informSellPrice(num, num, num) | ||||
|  | ||||
| finishTalkTurn(nil) | ||||
|  | ||||
| selectMode(param): If >0, show class tutorial for id [param]. If <0, show gear affinity/condition instead, unless -7,-8,-9 then show normal. | ||||
| selectModeOfClassVendor() | ||||
| selectModeOfMultiWeaponVendor(param? is -1) | ||||
| selectModeOfMultiArmorVendor(param? is -1) | ||||
| confirmSellingItem() | ||||
| informSellPrice(100, 100) | ||||
| selectFacility | ||||
| confirmUseFacility | ||||
|  | ||||
|  | ||||
| Menu Ids: | ||||
|  | ||||
| --]] | ||||
|  | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("selectModeOfMultiWeaponVendor", -1);  | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:runEventFunction("informSellPrice", 0x1, 0x1E, 0x46);  | ||||
|  | ||||
| 	--player:runEventFunction("openShopSell", player, 0x1389);  | ||||
| 	--player:runEventFunction("selectShopSell", player);  | ||||
| 	--player:runEventFunction("closeShopSell", player);  | ||||
| 	--player:endEvent();		 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_05@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_05@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_06@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_06@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_07@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_07@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_08@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_08@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_09@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_09@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0a@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0a@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0b@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0b@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0c@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0c@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0d@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0d@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0e@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0e@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0f@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_0f@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_10@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_10@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_11@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/scripts/zones1/133/npcs/pplShopSal_11@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/Shop/PopulaceShopSalesman", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:runEventFunction("welcomeTalk"); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
|  | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithKakamehi_001", nil, nil, nil); | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithKakamehi_002", nil, nil, nil); --IF ALC | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithKakamehi_003", nil, nil, nil); --IF ALC | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_02@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_02@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithEstrilda_001", nil, nil, nil); --DEFAULT | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithEstrilda_002", nil, nil, nil); --IF ARCHER | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithEstrilda_003", nil, nil, nil); --IF ARCHER | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_03@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_03@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithIsleen_001", nil, nil, nil); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_04@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_04@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithZanthael_001", nil, nil, nil); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_05@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_05@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithNanaka_001", nil, nil, nil); | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithNanaka_002", nil, nil, nil); --GSM | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithNanaka_003", nil, nil, nil); --GSM NO GUILD | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_06@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_06@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGigirya_001", nil, nil, nil); | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGigirya_002", nil, nil, nil);     --THM | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGigirya_003", nil, nil, nil);   --THM NO GUILD | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_07@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_07@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithInn_Desk", nil, nil, nil); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_08@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_08@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithBaderon_001", nil, nil, nil); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_09@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_09@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithZehrymm_001", nil, nil, nil); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_0a@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_0a@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGnibnpha_001", nil, nil, nil); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_0b@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_0b@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithJosias_001", nil, nil, nil); | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithJosias_002", nil, nil, nil);  --CRP | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithJosias_003", nil, nil, nil);  --CRP NO GUILD | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										15
									
								
								data/scripts/zones1/133/npcs/pplStd_0c@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								data/scripts/zones1/133/npcs/pplStd_0c@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithTirauland_001", nil, nil, nil); | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithTirauland_002", nil, nil, nil); --LNC | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithTirauland_003", nil, nil, nil); --LNC NO GUILD | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithTirauland_010", nil, nil, nil); --NOT DOW/DOM | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_0d@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_0d@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithMaunie_001", nil, nil, nil); | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithMaunie_002", nil, nil, nil); --PUG | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithMaunie_003", nil, nil, nil); --PUG NO GUILD | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_0e@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_0e@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithStephannot_001", nil, nil, nil); | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithStephannot_002", nil, nil, nil); --MIN | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithStephannot_003", nil, nil, nil); --MIN NO GUILD | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_0f@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_0f@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGregory_001", nil, nil, nil); | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGregory_002", nil, nil, nil); --CNJ | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithGregory_003", nil, nil, nil); --CNJ NO GUILD | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_10@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_10@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithLauda_001", nil, nil, nil); | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithLauda_002", nil, nil, nil); --BTN | ||||
| 	--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithLauda_003", nil, nil, nil); --BTN NO GUILD | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_11@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_11@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithLaniaitte_001", nil, nil, nil); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_12@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								data/scripts/zones1/133/npcs/pplStd_12@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithBaderon_001", nil, nil, nil); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_13@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_13@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_001", 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 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_14@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								data/scripts/zones1/133/npcs/pplStd_14@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| 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) | ||||
| 	defaultSea = getStaticActor("DftSea"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_001", 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 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										11
									
								
								data/scripts/zones1/133/npcs/taskBoard_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								data/scripts/zones1/133/npcs/taskBoard_01@08500.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/TaskBoard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc) | ||||
| 	player:endEvent();	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) | ||||
| 	player:endEvent();	 | ||||
| end | ||||
							
								
								
									
										9
									
								
								data/scripts/zones1/133/zone.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								data/scripts/zones1/133/zone.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| function onZoneInit(zone) | ||||
| end | ||||
|  | ||||
| function onZoneIn(player) | ||||
| 	player:sendMessage(0x1D,"",">Callback \"onZoneIn\" for zone 133 running."); | ||||
| end | ||||
|  | ||||
| function onZoneOut(zone, player) | ||||
| end | ||||
| @@ -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
									
								
								data/scripts/zones1/155/zone.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								data/scripts/zones1/155/zone.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
|  | ||||
|  | ||||
| function onZoneInit(zone) | ||||
| end | ||||
|  | ||||
| function onZoneIn(zone, player) | ||||
| end | ||||
|  | ||||
| function onZoneOut(zone, player) | ||||
| end | ||||
| @@ -0,0 +1,13 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/OpeningStoperF0B1", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	if (triggerName == "caution") then | ||||
| 		worldMaster = getWorldMaster(); | ||||
| 		player:sendGameMessage(player, worldMaster, 34109, 0x20); | ||||
| 	elseif (triggerName == "exit") then | ||||
| 		getWorldManager():DoPlayerMoveInZone(player, 5); | ||||
| 	end | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										61
									
								
								data/scripts/zones1/166/npcs/pplStd_fst0Btl03_01@0A600.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										61
									
								
								data/scripts/zones1/166/npcs/pplStd_fst0Btl03_01@0A600.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,61 @@ | ||||
| require("/quests/man/man0g0") | ||||
|  | ||||
| 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) | ||||
| 	npc:setQuestGraphic(player, 0x2);	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0g0Quest = player:getQuest("Man0g0"); | ||||
| 	 | ||||
| 	if (man0g0Quest ~= nil) then	 | ||||
| 	 | ||||
| 		if (triggerName == "pushDefault") then | ||||
| 			player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrNomal002", nil, nil, nil);			 | ||||
| 		elseif (triggerName == "talkDefault") then		 | ||||
| 			if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_TUTORIAL1_DONE) == false) then | ||||
| 				player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrNomal003", nil, nil, nil);			 | ||||
| 				player:setEventStatus(npc, "pushDefault", false, 0x2); | ||||
| 				player:getDirector():onTalked(npc);			 | ||||
| 				man0g0Quest:SetQuestFlag(MAN0G0_FLAG_TUTORIAL1_DONE, true);				 | ||||
| 				man0g0Quest:SaveData(); | ||||
| 			else | ||||
| 				if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1) == true) then | ||||
| 					man0g0Quest:SetQuestFlag(MAN0G0_FLAG_TUTORIAL2_DONE, true); | ||||
| 					player:runEventFunction("delegateEvent", player, man0g0Quest, "processEvent010_1", nil, nil, nil);					 | ||||
| 				else | ||||
| 					player:runEventFunction("delegateEvent", player, man0g0Quest, "processEvent000_1", nil, nil, nil); | ||||
| 				end | ||||
| 			end | ||||
| 		else | ||||
| 			player:endEvent(); | ||||
| 		end | ||||
| 	else | ||||
| 		player:endEvent(); --Should not be here w.o this quest | ||||
| 	end	 | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
|  | ||||
| 	man0g0Quest = player:getQuest("Man0g0"); | ||||
|  | ||||
| 	if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_TUTORIAL2_DONE) == true) then | ||||
| 		player:endEvent(); | ||||
| 		player:setDirector("QuestDirectorMan0g001", true); | ||||
|  | ||||
| 		worldMaster = getWorldMaster(); | ||||
| 		player:sendGameMessage(player, worldMaster, 34108, 0x20);	 | ||||
| 		player:sendGameMessage(player, worldMaster, 50011, 0x20);	 | ||||
|  | ||||
| 		getWorldManager():DoPlayerMoveInZone(player, 10); | ||||
| 		player:kickEvent(player:getDirector(), "noticeEvent", true); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										28
									
								
								data/scripts/zones1/166/npcs/pplStd_fst0Btl03_02@0A600.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								data/scripts/zones1/166/npcs/pplStd_fst0Btl03_02@0A600.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| require("/quests/man/man0g0") | ||||
|  | ||||
| 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) | ||||
| 	 | ||||
| 	man0g0Quest = player:getQuest("Man0g0"); | ||||
| 	 | ||||
| 	if (triggerName == "talkDefault") then		 | ||||
| 		if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1) == false) then | ||||
| 			player:runEventFunction("delegateEvent", player, man0g0Quest, "processEvent000_2", nil, nil, nil); | ||||
| 			man0g0Quest:SetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1, true);				 | ||||
| 			man0g0Quest:SaveData();			 | ||||
| 			player:getDirector():onTalked(npc);	 | ||||
| 		else | ||||
| 			player:runEventFunction("delegateEvent", player, man0g0Quest, "processEvent000_2", nil, nil, nil); | ||||
| 		end | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										20
									
								
								data/scripts/zones1/166/zone.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								data/scripts/zones1/166/zone.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
|  | ||||
|  | ||||
| function onZoneInit(zone) | ||||
| end | ||||
|  | ||||
| function onZoneIn(player) | ||||
|  | ||||
| 	openingQuest = player:getQuest(110005); | ||||
| 	 | ||||
| 	--Opening Quest | ||||
| 	if (openingQuest ~= nil) then | ||||
| 		if (openingQuest:GetQuestFlag(0) == false) then | ||||
| 			player:kickEvent(player:getDirector(), "noticeEvent"); | ||||
| 		end | ||||
| 	end	 | ||||
|  | ||||
| end | ||||
|  | ||||
| function onZoneOut(zone, player) | ||||
| end | ||||
							
								
								
									
										10
									
								
								data/scripts/zones1/175/zone.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								data/scripts/zones1/175/zone.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
|  | ||||
|  | ||||
| function onZoneInit(zone) | ||||
| end | ||||
|  | ||||
| function onZoneIn(zone, player) | ||||
| end | ||||
|  | ||||
| function onZoneOut(zone, player) | ||||
| end | ||||
							
								
								
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_01@0B800.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_01@0B800.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| require("/quests/man/man0u0") | ||||
|  | ||||
| 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) | ||||
|  | ||||
| 	man0u0Quest = getStaticActor("Man0u0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_6", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										33
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_02@0B800.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_02@0B800.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| require("/quests/man/man0u0") | ||||
|  | ||||
| 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) | ||||
| 	npc:setQuestGraphic(player, 0x2);	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0u0Quest = player:getQuest("man0u0");	 | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2) == false) then | ||||
| 			player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002_first", nil, nil, nil); | ||||
| 			npc:setQuestGraphic(player, 0x0); | ||||
| 			man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2, true); | ||||
| 			man0u0Quest:SaveData();		 | ||||
| 			player:getDirector():onTalked(npc); | ||||
| 		else | ||||
| 			player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002", nil, nil, nil); | ||||
| 		end | ||||
| 	else		 | ||||
| 		player:endEvent(); | ||||
| 	end		 | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_03@0B800.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_03@0B800.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| require("/quests/man/man0u0") | ||||
|  | ||||
| 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) | ||||
|  | ||||
| 	man0u0Quest = getStaticActor("Man0u0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_8", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_04@0B800.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_04@0B800.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| require("/quests/man/man0u0") | ||||
|  | ||||
| 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) | ||||
|  | ||||
| 	man0u0Quest = getStaticActor("Man0u0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_9", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_05@0B800.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_05@0B800.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| require("/quests/man/man0u0") | ||||
|  | ||||
| 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) | ||||
|  | ||||
| 	man0u0Quest = getStaticActor("Man0u0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_10", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										33
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_06@0B800.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_06@0B800.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| require("/quests/man/man0u0") | ||||
|  | ||||
| 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) | ||||
| 	npc:setQuestGraphic(player, 0x2);	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0u0Quest = player:getQuest("man0u0");	 | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3) == false) then | ||||
| 			player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini003_first", nil, nil, nil); | ||||
| 			npc:setQuestGraphic(player, 0x0); | ||||
| 			man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3, true); | ||||
| 			man0u0Quest:SaveData();		 | ||||
| 			player:getDirector():onTalked(npc); | ||||
| 		else | ||||
| 			player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini003", nil, nil, nil); | ||||
| 		end | ||||
| 	else		 | ||||
| 		player:endEvent(); | ||||
| 	end		 | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_07@0B800.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_07@0B800.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| require("/quests/man/man0u0") | ||||
|  | ||||
| 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) | ||||
|  | ||||
| 	man0u0Quest = getStaticActor("Man0u0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_12", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_08@0B800.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_08@0B800.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| require("/quests/man/man0u0") | ||||
|  | ||||
| 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) | ||||
|  | ||||
| 	man0u0Quest = getStaticActor("Man0u0"); | ||||
|  | ||||
| 	if (triggerName == "talkDefault") then | ||||
| 		player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_13", nil, nil, nil); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
| 	player:endEvent(); | ||||
| end | ||||
							
								
								
									
										16
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_09@0B800.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_09@0B800.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| require("/quests/man/man0u0") | ||||
|  | ||||
| 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) | ||||
|  | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
|  | ||||
| 	player:endEvent(); | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										48
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_0a@0B800.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_0a@0B800.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| require("/quests/man/man0u0") | ||||
|  | ||||
| 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) | ||||
| 	npc:setQuestGraphic(player, 0x2);	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
|  | ||||
| 	man0u0Quest = player:getQuest("Man0u0"); | ||||
| 	if (man0u0Quest ~= nil) then	 | ||||
| 	 | ||||
| 		if (triggerName == "pushDefault") then | ||||
| 			player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal002", nil, nil, nil);			 | ||||
| 		elseif (triggerName == "talkDefault") then		 | ||||
| 			if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_TUTORIAL1_DONE) == false) then | ||||
| 				player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal003", nil, nil, nil);			 | ||||
| 				player:setEventStatus(npc, "pushDefault", false, 0x2); | ||||
| 				player:getDirector():onTalked(npc);			 | ||||
| 				man0u0Quest:SetQuestFlag(MAN0U0_FLAG_TUTORIAL1_DONE, true);				 | ||||
| 				man0u0Quest:SaveData(); | ||||
| 			else | ||||
| 				player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini001", nil, nil, nil); | ||||
| 				 | ||||
| 				if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE1) == false) then | ||||
| 					npc:setQuestGraphic(player, 0x0); | ||||
| 					man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE1, true); | ||||
| 					man0u0Quest:SaveData();					 | ||||
| 				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 | ||||
							
								
								
									
										16
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_0b@0B800.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								data/scripts/zones1/184/npcs/pplStd_wil0Btl01_0b@0B800.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| require("/quests/man/man0u0") | ||||
|  | ||||
| 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) | ||||
|  | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc)	 | ||||
|  | ||||
| 	player:endEvent(); | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										20
									
								
								data/scripts/zones1/184/zone.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								data/scripts/zones1/184/zone.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
|  | ||||
|  | ||||
| function onZoneInit(zone) | ||||
| end | ||||
|  | ||||
| function onZoneIn(player) | ||||
|  | ||||
| 	openingQuest = player:getQuest(110009); | ||||
| 	 | ||||
| 	--Opening Quest | ||||
| 	if (openingQuest ~= nil) then | ||||
| 		if (openingQuest:GetQuestFlag(0) == false) then | ||||
| 			player:kickEvent(player:getDirector(), "noticeEvent"); | ||||
| 		end | ||||
| 	end	 | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onZoneOut(zone, player) | ||||
| 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
									
								
								data/scripts/zones1/193/npcs/pplStd_01@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_02@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_03@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_04@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/zones1/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 | ||||
							
								
								
									
										42
									
								
								data/scripts/zones1/193/npcs/pplStd_05@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								data/scripts/zones1/193/npcs/pplStd_05@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,42 @@ | ||||
| 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
									
								
								data/scripts/zones1/193/npcs/pplStd_06@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_07@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_08@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_09@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_0a@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_0b@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_0c@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_0d@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_0e@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/zones1/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
									
								
								data/scripts/zones1/193/npcs/pplStd_0f@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								data/scripts/zones1/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 | ||||
							
								
								
									
										65
									
								
								data/scripts/zones1/193/npcs/pplStd_11@0C100.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								data/scripts/zones1/193/npcs/pplStd_11@0C100.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,65 @@ | ||||
| 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 = 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 | ||||
							
								
								
									
										20
									
								
								data/scripts/zones1/193/zone.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								data/scripts/zones1/193/zone.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
|  | ||||
|  | ||||
| function onZoneInit(zone) | ||||
| end | ||||
|  | ||||
| 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) | ||||
| end | ||||
							
								
								
									
										24
									
								
								data/scripts/zones1/244/npcs/objBed_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								data/scripts/zones1/244/npcs/objBed_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/ObjectBed", false, false, false, false, false, 0x1250FB, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	player:runEventFunction("askLogout", player); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, eventStep, menuOptionSelected)	 | ||||
| 	 | ||||
| 	if (menuOptionSelected == 1) then  | ||||
| 		player:endEvent(); | ||||
| 		return; | ||||
| 	elseif (menuOptionSelected == 2) then | ||||
| 		player:quitGame(); | ||||
| 	elseif (menuOptionSelected == 3) then | ||||
| 		player:logout(); | ||||
| 	elseif (menuOptionSelected == 4) then | ||||
| 		player:sendMessage(33, "", "Heck the bed"); | ||||
| 	end 	 | ||||
| 	 | ||||
| 	player:endEvent(); | ||||
| 		 | ||||
| end | ||||
							
								
								
									
										18
									
								
								data/scripts/zones1/244/npcs/objInnDoor_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								data/scripts/zones1/244/npcs/objInnDoor_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/ObjectInnDoor", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	defaultFst = getStaticActor("DftFst"); | ||||
| 	player:runEventFunction("delegateEvent", player, defaultFst, "defaultTalkWithInn_ExitDoor", nil, nil, nil); | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc, resultId, isExitYes) | ||||
|  | ||||
| 	if (isExitYes ~= nil and isExitYes == 1) then | ||||
| 		getWorldManager():DoZoneChange(player, 1); | ||||
| 	else | ||||
| 		player:endEvent(); | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
							
								
								
									
										9
									
								
								data/scripts/zones1/244/npcs/objItemStore_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								data/scripts/zones1/244/npcs/objItemStore_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Object/ObjectItemStorage", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| end | ||||
							
								
								
									
										9
									
								
								data/scripts/zones1/244/npcs/pplCutscene_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								data/scripts/zones1/244/npcs/pplCutscene_01@0F400.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| function init(npc) | ||||
| 	return "/Chara/Npc/Populace/PopulaceCutScenePlayer", false, false, false, false, false, 0x107B38, false, false, 0, 1, "TEST";	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| end | ||||
							
								
								
									
										9
									
								
								data/scripts/zones1/244/npcs/test1.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								data/scripts/zones1/244/npcs/test1.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| 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) | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
| end | ||||
							
								
								
									
										10
									
								
								data/scripts/zones1/244/zone.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								data/scripts/zones1/244/zone.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
|  | ||||
|  | ||||
| function onZoneInit(zone) | ||||
| end | ||||
|  | ||||
| function onZoneIn(zone, player) | ||||
| end | ||||
|  | ||||
| function onZoneOut(zone, player) | ||||
| end | ||||
		Reference in New Issue
	
	Block a user