mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Ported over the Limsa/Uldah opening zone scripts. Still not 100% done.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onSpawn(player, npc)
|
||||
|
||||
man0l0Quest = player:GetQuest("Man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
if (man0l0Quest ~= nil and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1) == true and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == true and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == true) then
|
||||
player:SetEventStatus(npc, "pushDefault", true, 0x2);
|
||||
npc:SetQuestGraphic(player, 0x3);
|
||||
else
|
||||
player:SetEventStatus(npc, "pushDefault", true, 0x2);
|
||||
npc:SetQuestGraphic(player, 0x3);
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
choice = callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEventNewRectAsk", nil);
|
||||
|
||||
if (choice == 1) then
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_2", nil, nil, nil, nil);
|
||||
player:EndEvent();
|
||||
player:SetDirector("QuestDirectorMan0l001", true);
|
||||
|
||||
worldMaster = GetWorldMaster();
|
||||
player:SendGameMessage(player, worldMaster, 34108, 0x20);
|
||||
player:SendGameMessage(player, worldMaster, 50011, 0x20);
|
||||
|
||||
GetWorldManager():DoPlayerMoveInZone(player, 9);
|
||||
player:KickEvent(player:GetDirector(), "noticeEvent", true);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user