2016-04-18 13:33:31 -04:00
|
|
|
require("/quests/man/man0g0")
|
|
|
|
|
|
|
|
function init(npc)
|
2016-06-15 04:41:15 +01:00
|
|
|
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
|
2016-04-18 13:33:31 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
function onEventStarted(player, npc, triggerName)
|
|
|
|
|
2016-06-15 03:41:23 +01:00
|
|
|
man0g0Quest = player:GetQuest("Man0g0");
|
2016-04-18 13:33:31 -04:00
|
|
|
|
|
|
|
if (triggerName == "talkDefault") then
|
|
|
|
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1) == false) then
|
2016-06-15 03:41:23 +01:00
|
|
|
player:RunEventFunction("delegateEvent", player, man0g0Quest, "processEvent000_2", nil, nil, nil);
|
2016-04-18 13:33:31 -04:00
|
|
|
man0g0Quest:SetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1, true);
|
|
|
|
man0g0Quest:SaveData();
|
2016-06-15 03:41:23 +01:00
|
|
|
player:GetDirector():OnTalked(npc);
|
2016-04-18 13:33:31 -04:00
|
|
|
else
|
2016-06-15 03:41:23 +01:00
|
|
|
player:RunEventFunction("delegateEvent", player, man0g0Quest, "processEvent000_2", nil, nil, nil);
|
2016-04-18 13:33:31 -04:00
|
|
|
end
|
|
|
|
else
|
2016-06-15 03:41:23 +01:00
|
|
|
player:EndEvent();
|
2016-04-18 13:33:31 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function onEventUpdate(player, npc)
|
2016-06-15 03:41:23 +01:00
|
|
|
player:EndEvent();
|
2016-04-18 13:33:31 -04:00
|
|
|
end
|