mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Fixed a bunch of bugged scripts and cleaned up the quest flags.
This commit is contained in:
		| @@ -5,10 +5,10 @@ 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 | ||||
| 		if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == false) then | ||||
| 			npc:SetQuestGraphic(player, 0x2); | ||||
| 		else | ||||
| 			npc:SetQuestGraphic(player, 0x0); | ||||
| 		end | ||||
| 	end | ||||
| end | ||||
|   | ||||
| @@ -10,8 +10,8 @@ function onSpawn(player, npc) | ||||
| 			player:SetEventStatus(npc, "pushDefault", true, 0x2); | ||||
| 			npc:SetQuestGraphic(player, 0x3); | ||||
| 		else | ||||
| 			player:SetEventStatus(npc, "pushDefault", true, 0x2); | ||||
| 			npc:SetQuestGraphic(player, 0x3); | ||||
| 			player:SetEventStatus(npc, "pushDefault", false, 0x2); | ||||
| 			npc:SetQuestGraphic(player, 0x0); | ||||
| 		end | ||||
| 	end | ||||
| 	 | ||||
|   | ||||
| @@ -9,7 +9,7 @@ function onSpawn(player, npc) | ||||
| 			npc:SetQuestGraphic(player, 0x2); | ||||
| 		end | ||||
| 		 | ||||
| 		if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_TUTORIAL3_DONE) == true) then | ||||
| 		if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_STARTED_TALK_TUT) == true) then | ||||
| 			player:SetEventStatus(npc, "pushDefault", false, 0x2);		 | ||||
| 		end | ||||
| 	end | ||||
| @@ -24,10 +24,10 @@ function onEventStarted(player, npc, triggerName) | ||||
| 			callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrNomal002", nil, nil, nil);			 | ||||
| 		elseif (triggerName == "talkDefault") then		 | ||||
| 			--Is doing talk tutorial? | ||||
| 			if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_TUTORIAL3_DONE) == false) then | ||||
| 			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_TUTORIAL3_DONE, true);				 | ||||
| 				man0l0Quest:SetQuestFlag(MAN0L0_FLAG_STARTED_TALK_TUT, true);				 | ||||
| 				npc:SetQuestGraphic(player, 0x2); | ||||
| 				man0l0Quest:SaveData(); | ||||
| 				 | ||||
|   | ||||
| @@ -7,6 +7,8 @@ function onSpawn(player, npc) | ||||
| 	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 | ||||
|   | ||||
| @@ -4,7 +4,7 @@ function onSpawn(player, npc) | ||||
| 	man0l1Quest = player:GetQuest("Man0l1");	 | ||||
| 	 | ||||
| 	if (man0l1Quest ~= nil) then		 | ||||
| 		npc:SetQuestGraphic(player, 0x3); | ||||
| 		npc:SetQuestGraphic(player, 0x2); | ||||
| 	end | ||||
| end | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user