mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 14:34:32 +02:00
fixed method casing in lua
This commit is contained in:
parent
ba13d5798d
commit
884a26dc52
368 changed files with 1121 additions and 1121 deletions
|
@ -2,33 +2,33 @@ require("/quests/man/man0g0")
|
|||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0g0Quest = getStaticActor("Man0g0");
|
||||
player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
|
||||
man0g0Quest = GetStaticActor("Man0g0");
|
||||
player:RunEventFunction("delegateEvent", player, man0g0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId)
|
||||
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
|
||||
end
|
||||
|
||||
function onTalked(player, npc)
|
||||
|
||||
man0g0Quest = player:getQuest("Man0g0");
|
||||
man0g0Quest = player:GetQuest("Man0g0");
|
||||
|
||||
if (man0g0Quest ~= nil) then
|
||||
|
||||
yda = getWorldManager():GetActorInWorld(1000009);
|
||||
papalymo = getWorldManager():GetActorInWorld(1000010);
|
||||
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);
|
||||
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);
|
||||
yda:SetQuestGraphic(player, 0x2);
|
||||
papalymo:SetQuestGraphic(player, 0x0);
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -2,28 +2,28 @@ 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);
|
||||
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();
|
||||
player:EndEvent();
|
||||
|
||||
end
|
||||
|
||||
function onTalked(player, npc)
|
||||
|
||||
man0l0Quest = player:getQuest("Man0l0");
|
||||
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);
|
||||
doorNpc = GetWorldManager():GetActorInWorld(1090025);
|
||||
player:SetEventStatus(doorNpc, "pushDefault", true, 0x2);
|
||||
doorNpc:SetQuestGraphic(player, 0x3);
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,20 +2,20 @@ require("/quests/man/man0u0")
|
|||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId)
|
||||
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
|
||||
end
|
||||
|
||||
function onTalked(player, npc)
|
||||
|
||||
man0u0Quest = player:getQuest("Man0u0");
|
||||
man0u0Quest = player:GetQuest("Man0u0");
|
||||
|
||||
if (man0u0Quest ~= nil) then
|
||||
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
|
||||
function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0g0Quest = getStaticActor("Man0g0");
|
||||
--player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrBtl001");
|
||||
player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrBtl002");
|
||||
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();
|
||||
--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);
|
||||
player:EndCommand();
|
||||
player:EndEvent();
|
||||
player:KickEvent(player:GetDirector(), "noticeEvent", true);
|
||||
end
|
|
@ -1,25 +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");
|
||||
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");
|
||||
--player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrBtl004");
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId)
|
||||
--man0l0Quest = getStaticActor("Man0l0");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
|
||||
player:endEvent();
|
||||
--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();
|
||||
--player:KickEvent(player:GetDirector(), "noticeEvent");
|
||||
--player:EndCommand();
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue