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
|
@ -1,21 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_6", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_6", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,33 +1,33 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onSpawn(player, npc)
|
||||
npc:setQuestGraphic(player, 0x2);
|
||||
npc:SetQuestGraphic(player, 0x2);
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = player:getQuest("man0u0");
|
||||
man0u0Quest = player:GetQuest("man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2) == false) then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002_first", nil, nil, nil);
|
||||
npc:setQuestGraphic(player, 0x0);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002_first", nil, nil, nil);
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2, true);
|
||||
man0u0Quest:SaveData();
|
||||
player:getDirector():onTalked(npc);
|
||||
player:GetDirector():OnTalked(npc);
|
||||
else
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002", nil, nil, nil);
|
||||
end
|
||||
else
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,21 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_8", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_8", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,21 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_9", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_9", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,21 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_10", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_10", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,33 +1,33 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onSpawn(player, npc)
|
||||
npc:setQuestGraphic(player, 0x2);
|
||||
npc:SetQuestGraphic(player, 0x2);
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = player:getQuest("man0u0");
|
||||
man0u0Quest = player:GetQuest("man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3) == false) then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini003_first", nil, nil, nil);
|
||||
npc:setQuestGraphic(player, 0x0);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini003_first", nil, nil, nil);
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3, true);
|
||||
man0u0Quest:SaveData();
|
||||
player:getDirector():onTalked(npc);
|
||||
player:GetDirector():OnTalked(npc);
|
||||
else
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini003", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini003", nil, nil, nil);
|
||||
end
|
||||
else
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,21 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_12", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_12", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,21 +1,21 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
man0u0Quest = GetStaticActor("Man0u0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_13", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_13", nil, nil, nil);
|
||||
else
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,7 +1,7 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
@ -11,6 +11,6 @@ end
|
|||
|
||||
function onEventUpdate(player, npc)
|
||||
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
|
||||
end
|
|
@ -1,48 +1,48 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onSpawn(player, npc)
|
||||
npc:setQuestGraphic(player, 0x2);
|
||||
npc:SetQuestGraphic(player, 0x2);
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0u0Quest = player:getQuest("Man0u0");
|
||||
man0u0Quest = player:GetQuest("Man0u0");
|
||||
if (man0u0Quest ~= nil) then
|
||||
|
||||
if (triggerName == "pushDefault") then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal002", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal002", nil, nil, nil);
|
||||
elseif (triggerName == "talkDefault") then
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_TUTORIAL1_DONE) == false) then
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal003", nil, nil, nil);
|
||||
player:setEventStatus(npc, "pushDefault", false, 0x2);
|
||||
player:getDirector():onTalked(npc);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal003", nil, nil, nil);
|
||||
player:SetEventStatus(npc, "pushDefault", false, 0x2);
|
||||
player:GetDirector():OnTalked(npc);
|
||||
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_TUTORIAL1_DONE, true);
|
||||
man0u0Quest:SaveData();
|
||||
else
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini001", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini001", nil, nil, nil);
|
||||
|
||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE1) == false) then
|
||||
npc:setQuestGraphic(player, 0x0);
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE1, true);
|
||||
man0u0Quest:SaveData();
|
||||
end
|
||||
|
||||
end
|
||||
else
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
else
|
||||
player:endEvent(); --Should not be here w.o this quest
|
||||
player:EndEvent(); --Should not be here w.o this quest
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
|
||||
end
|
|
@ -1,7 +1,7 @@
|
|||
require("/quests/man/man0u0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
@ -11,6 +11,6 @@ end
|
|||
|
||||
function onEventUpdate(player, npc)
|
||||
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue