mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 14:34:32 +02:00
All the script changes done to get the openings working.
This commit is contained in:
parent
3d5fa45730
commit
53064a7345
50 changed files with 764 additions and 87 deletions
|
@ -1,13 +0,0 @@
|
|||
|
||||
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 ,triggerName)
|
||||
player:endEvent();
|
||||
end
|
37
data/scripts/directors/openingDire_fst0Btl03_04@0A600.lua
Normal file
37
data/scripts/directors/openingDire_fst0Btl03_04@0A600.lua
Normal file
|
@ -0,0 +1,37 @@
|
|||
require("/quests/man/man0g0")
|
||||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0g0Quest = getStaticActor("Man0g0");
|
||||
player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId)
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
||||
|
||||
function onTalked(player, npc)
|
||||
|
||||
man0g0Quest = player:getQuest("Man0g0");
|
||||
|
||||
if (man0g0Quest ~= nil) then
|
||||
|
||||
yda = getWorldManager():GetActorInWorld(1000009);
|
||||
papalymo = getWorldManager():GetActorInWorld(1000010);
|
||||
|
||||
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_TUTORIAL1_DONE) == false) then
|
||||
yda:setQuestGraphic(player, 0x0);
|
||||
papalymo:setQuestGraphic(player, 0x2);
|
||||
else
|
||||
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1) == true) then
|
||||
yda:setQuestGraphic(player, 0x2);
|
||||
papalymo:setQuestGraphic(player, 0x0);
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
31
data/scripts/directors/openingDire_ocn0Btl02_04@0C100.lua
Normal file
31
data/scripts/directors/openingDire_ocn0Btl02_04@0C100.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
|
|
@ -1,13 +0,0 @@
|
|||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0l0Quest = getStaticActor("Man0l0");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_1", nil, nil, nil, nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
--man0l0Quest = getStaticActor("Man0l0");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_3", nil, nil, nil, nil);
|
||||
--player:endEvent();
|
||||
end
|
26
data/scripts/directors/openingDire_wil0Btl01_04@0B800.lua
Normal file
26
data/scripts/directors/openingDire_wil0Btl01_04@0B800.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId)
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
||||
|
||||
function onTalked(player, npc)
|
||||
|
||||
man0u0Quest = player:getQuest("Man0u0");
|
||||
|
||||
if (man0u0Quest ~= nil) then
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
||||
end
|
21
data/scripts/directors/questDirect_fst0Btl03_01@0A615.lua
Normal file
21
data/scripts/directors/questDirect_fst0Btl03_01@0A615.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0g0Quest = getStaticActor("Man0g0");
|
||||
--player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrBtl001");
|
||||
player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrBtl002");
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId)
|
||||
--man0g0Quest = getStaticActor("Man0g0");
|
||||
--player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrBtl002");
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
function onCommand(player, command)
|
||||
--Check command if ActivateCommand
|
||||
player:endCommand();
|
||||
player:endEvent();
|
||||
player:kickEvent(player:getDirector(), "noticeEvent", true);
|
||||
end
|
25
data/scripts/directors/questDirect_ocn0Btl02_01@0C196.lua
Normal file
25
data/scripts/directors/questDirect_ocn0Btl02_01@0C196.lua
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
man0l0Quest = getStaticActor("Man0l0");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl001");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtlMagic001");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl003");
|
||||
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrBtl004");
|
||||
|
||||
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");
|
||||
--player:endCommand();
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue