mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-25 20:08:20 +02:00
onInit was added to all the scripts. Added code for all the Limsa opening event npcs.
This commit is contained in:
parent
bd4e4a293c
commit
95849e1c1c
90 changed files with 662 additions and 91 deletions
20
scripts/directors/openingDire - Copy.lua
Normal file
20
scripts/directors/openingDire - Copy.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
require("/quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0l0Quest = getStaticActor("Man0l0");
|
||||
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_1", nil, nil, nil, nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId)
|
||||
man0l0Quest = getStaticActor("Man0l0");
|
||||
|
||||
if (resultId == RESULT_Event000_1) then
|
||||
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal001", nil, nil, nil, nil);
|
||||
elseif (resultId == RESULT_TtrNomal001) then
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
end
|
31
scripts/directors/openingDire.lua
Normal file
31
scripts/directors/openingDire.lua
Normal file
|
@ -0,0 +1,31 @@
|
|||
require("/quests/man/man0l0")
|
||||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0l0Quest = getStaticActor("Man0l0");
|
||||
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_1", nil, nil, nil, nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId)
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
||||
|
||||
function onTalked(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
|
||||
|
||||
doorNpc = getWorldManager():GetActorInWorld(1090025);
|
||||
player:setEventStatus(doorNpc, "pushDefault", true, 0x2);
|
||||
doorNpc:setQuestGraphic(player, 0x3);
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
19
scripts/directors/questDirect_ocn0Btl02_01@0C196.lua
Normal file
19
scripts/directors/questDirect_ocn0Btl02_01@0C196.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0l0Quest = getStaticActor("Man0l0");
|
||||
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl004");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId)
|
||||
--man0l0Quest = getStaticActor("Man0l0");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
function onCommand(player, command)
|
||||
--Check command if ActivateCommand
|
||||
player:kickEvent(player:getDirector(), "noticeEvent", true);
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue