2016-03-19 19:22:28 -04:00
|
|
|
--[[
|
|
|
|
|
|
|
|
|
|
|
|
--]]
|
|
|
|
|
2017-03-07 08:32:57 -05:00
|
|
|
function onEventStarted(player, actor, trigger, questId, mapCode)
|
|
|
|
|
|
|
|
quest = player:GetQuest(questId);
|
2017-03-19 11:40:41 -04:00
|
|
|
|
|
|
|
if (quest == nil) then
|
|
|
|
player:EndEvent();
|
|
|
|
return;
|
|
|
|
end
|
|
|
|
|
2017-03-07 08:32:57 -05:00
|
|
|
if (mapCode == nil) then
|
2017-04-04 01:11:18 -04:00
|
|
|
player:SendDataPacket("requestedData", "qtdata", quest:GetQuestId(), quest:GetPhase());
|
2017-03-07 08:32:57 -05:00
|
|
|
player:EndEvent();
|
|
|
|
else
|
2017-03-21 00:43:30 -04:00
|
|
|
player:SendDataPacket("requestedData", "qtmap", quest:GetQuestId());
|
2017-03-07 08:32:57 -05:00
|
|
|
player:EndEvent();
|
|
|
|
end
|
|
|
|
|
2016-03-19 19:22:28 -04:00
|
|
|
end
|