1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-26 06:37:45 +00:00
project-meteor-server/data/scripts/unique/ocn0Battle02/PopulaceStandard/baby-faced_adventurer.lua

31 lines
980 B
Lua
Raw Normal View History

2016-06-21 17:48:50 -04:00
require ("global")
require ("quests/man/man0l0")
function onSpawn(player, npc)
2016-06-15 03:41:23 +01:00
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)
2016-06-15 03:41:23 +01:00
man0l0Quest = player:GetQuest("man0l0");
if (triggerName == "talkDefault") then
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == false) then
2016-06-21 17:48:50 -04:00
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrMini003", nil, nil, nil);
2016-06-15 03:41:23 +01:00
npc:SetQuestGraphic(player, 0x0);
man0l0Quest:SetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3, true);
man0l0Quest:SaveData();
player:GetDirector("OpeningDirector"):onTalkEvent(player, npc);
else
2016-06-21 17:48:50 -04:00
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_8", nil, nil, nil);
end
end
2016-06-15 03:41:23 +01:00
player:EndEvent();
end