mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Updated Scripts, removed all the old unique ones for the opening quest.
This commit is contained in:
		| @@ -1,8 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_7", nil, nil, nil); | ||||
| 	player:EndEvent();	 | ||||
| end | ||||
| @@ -1,8 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_12", nil, nil, nil); | ||||
| 	player:EndEvent();	 | ||||
| end | ||||
| @@ -1,8 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_9", nil, nil, nil); | ||||
| 	player:EndEvent();	 | ||||
| end | ||||
| @@ -1,31 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onSpawn(player, npc) | ||||
| 	man0l0Quest = player:GetQuest("man0l0");	 | ||||
| 	 | ||||
| 	if (man0l0Quest ~= nil) then | ||||
| 		if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == false) then | ||||
| 			npc:SetQuestGraphic(player, 0x2); | ||||
| 		else | ||||
| 			npc:SetQuestGraphic(player, 0x0); | ||||
| 		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 | ||||
| 			callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrMini003", nil, nil, nil); | ||||
| 			npc:SetQuestGraphic(player, 0x0); | ||||
| 			man0l0Quest:SetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3, true); | ||||
| 			man0l0Quest:SaveData();		 | ||||
| 			player:GetDirector("OpeningDirector"):onTalkEvent(player, npc); | ||||
| 		else | ||||
| 			callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_8", nil, nil, nil); | ||||
| 		end | ||||
| 	end		 | ||||
| 	player:EndEvent(); | ||||
| end | ||||
| @@ -1,8 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_6", nil, nil, nil); | ||||
| 	player:EndEvent();	 | ||||
| end | ||||
| @@ -1,49 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| 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, 0x0); | ||||
| 			npc:SetQuestGraphic(player, 0x0); | ||||
| 		end | ||||
| 	end | ||||
| 	 | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = player:GetQuest("Man0l0"); | ||||
| 	choice = callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEventNewRectAsk", nil);	 | ||||
| 	 | ||||
| 	if (choice == 1) then | ||||
| 		callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_2", nil, nil, nil, nil); | ||||
| 		player:EndEvent(); | ||||
| 		 | ||||
| 		man0l0Quest:NextPhase(5); | ||||
| 		 | ||||
| 		contentArea = player:GetZone():CreateContentArea(player, "/Area/PrivateArea/Content/PrivateAreaMasterSimpleContent", "man0l01", "SimpleContent30002", "Quest/QuestDirectorMan0l001"); | ||||
| 		 | ||||
| 		if (contentArea == nil) then | ||||
| 			player:EndEvent(); | ||||
| 			return; | ||||
| 		end | ||||
| 		 | ||||
| 		director = contentArea:GetContentDirector();		 | ||||
| 		player:AddDirector(director);		 | ||||
| 		director:StartDirector(false); | ||||
| 		 | ||||
| 		player:KickEvent(director, "noticeEvent", true); | ||||
| 		player:SetLoginDirector(director);		 | ||||
| 		 | ||||
| 		GetWorldManager():DoZoneChangeContent(player, contentArea, -5, 16.35, 6, 0.5, 16);		 | ||||
| 		 | ||||
| 	else | ||||
| 		player:EndEvent(); | ||||
| 	end	 | ||||
| end | ||||
| @@ -1,8 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_17", nil, nil, nil); | ||||
| 	player:EndEvent();	 | ||||
| end | ||||
| @@ -1,8 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_14", nil, nil, nil); | ||||
| 	player:EndEvent();	 | ||||
| end | ||||
| @@ -1,10 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	 | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_16", nil, nil, nil); | ||||
| 	 | ||||
| 	player:EndEvent(); | ||||
| end | ||||
| @@ -1,10 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	 | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_15", nil, nil, nil, nil); | ||||
| 	 | ||||
| 	player:EndEvent(); | ||||
| end | ||||
| @@ -1,51 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| 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_STARTED_TALK_TUT) == 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 | ||||
| 			callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrNomal002", nil, nil, nil);			 | ||||
| 		elseif (triggerName == "talkDefault") then		 | ||||
| 			--Is doing talk tutorial? | ||||
| 			if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_STARTED_TALK_TUT) == false) then | ||||
| 				player:SetEventStatus(npc, "pushDefault", false, 0x2); | ||||
| 				callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil); | ||||
| 				man0l0Quest:SetQuestFlag(MAN0L0_FLAG_STARTED_TALK_TUT, true);				 | ||||
| 				npc:SetQuestGraphic(player, 0x2); | ||||
| 				man0l0Quest:SaveData(); | ||||
| 				 | ||||
| 				player:GetDirector("OpeningDirector"):onTalkEvent(player, npc); | ||||
| 			--Was he talked to for the mini tutorial? | ||||
| 			else				 | ||||
| 				callClientFunction(player, "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("OpeningDirector"):onTalkEvent(player, npc); | ||||
| 				end | ||||
| 			end					 | ||||
| 		end	 | ||||
| 	end	 | ||||
| 	 | ||||
| 	player:EndEvent(); | ||||
| end | ||||
| @@ -1,8 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_11", nil, nil, nil); | ||||
| 	player:EndEvent();	 | ||||
| end | ||||
| @@ -1,8 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_5", nil, nil, nil); | ||||
| 	player:EndEvent();	 | ||||
| end | ||||
| @@ -1,8 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_10", nil, nil, nil); | ||||
| 	player:EndEvent();	 | ||||
| end | ||||
| @@ -1,33 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| 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); | ||||
| 		else | ||||
| 			npc:SetQuestGraphic(player, 0x0); | ||||
| 		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 | ||||
| 				callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrMini002", nil, nil, nil); | ||||
| 				npc:SetQuestGraphic(player, 0x0); | ||||
| 				man0l0Quest:SetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2, true); | ||||
| 				man0l0Quest:SaveData();				 | ||||
| 				player:GetDirector("OpeningDirector"):onTalkEvent(player, npc); | ||||
| 			else | ||||
| 				callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_13", nil, nil, nil); | ||||
| 			end | ||||
| 		end | ||||
| 	end | ||||
| 	player:EndEvent(); | ||||
| end | ||||
| @@ -1,8 +0,0 @@ | ||||
| require ("global") | ||||
| require ("quests/man/man0l0") | ||||
|  | ||||
| function onEventStarted(player, npc, triggerName) | ||||
| 	man0l0Quest = GetStaticActor("Man0l0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_4", nil, nil, nil); | ||||
| 	player:EndEvent();	 | ||||
| end | ||||
		Reference in New Issue
	
	Block a user