1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-25 06:07:46 +00:00
project-meteor-server/data/scripts/unique/fst0Battle03/pplStd_fst0Btl03_02@0A600.lua

28 lines
853 B
Lua
Raw Normal View History

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)
2016-06-15 03:41:23 +01:00
man0g0Quest = player:GetQuest("Man0g0");
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);
man0g0Quest:SetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1, true);
man0g0Quest:SaveData();
2016-06-15 03:41:23 +01:00
player:GetDirector():OnTalked(npc);
else
2016-06-15 03:41:23 +01:00
player:RunEventFunction("delegateEvent", player, man0g0Quest, "processEvent000_2", nil, nil, nil);
end
else
2016-06-15 03:41:23 +01:00
player:EndEvent();
end
end
function onEventUpdate(player, npc)
2016-06-15 03:41:23 +01:00
player:EndEvent();
end