2016-04-18 13:33:31 -04:00
|
|
|
require("/quests/man/man0g0")
|
|
|
|
|
|
|
|
function onEventStarted(player, actor, triggerName)
|
|
|
|
|
2016-06-15 03:41:23 +01:00
|
|
|
man0g0Quest = GetStaticActor("Man0g0");
|
|
|
|
player:RunEventFunction("delegateEvent", player, man0g0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
|
2016-04-18 13:33:31 -04:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function onEventUpdate(player, npc, resultId)
|
|
|
|
|
2016-06-15 03:41:23 +01:00
|
|
|
player:EndEvent();
|
2016-04-18 13:33:31 -04:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function onTalked(player, npc)
|
|
|
|
|
2016-06-15 03:41:23 +01:00
|
|
|
man0g0Quest = player:GetQuest("Man0g0");
|
2016-04-18 13:33:31 -04:00
|
|
|
|
|
|
|
if (man0g0Quest ~= nil) then
|
|
|
|
|
2016-06-15 03:41:23 +01:00
|
|
|
yda = GetWorldManager():GetActorInWorld(1000009);
|
|
|
|
papalymo = GetWorldManager():GetActorInWorld(1000010);
|
2016-04-18 13:33:31 -04:00
|
|
|
|
|
|
|
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_TUTORIAL1_DONE) == false) then
|
2016-06-15 03:41:23 +01:00
|
|
|
yda:SetQuestGraphic(player, 0x0);
|
|
|
|
papalymo:SetQuestGraphic(player, 0x2);
|
2016-04-18 13:33:31 -04:00
|
|
|
else
|
|
|
|
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1) == true) then
|
2016-06-15 03:41:23 +01:00
|
|
|
yda:SetQuestGraphic(player, 0x2);
|
|
|
|
papalymo:SetQuestGraphic(player, 0x0);
|
2016-04-18 13:33:31 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|