mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 22:14:39 +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
|
@ -4,22 +4,22 @@ function init(npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
player:runEventFunction("askLogout", player);
|
||||
player:RunEventFunction("askLogout", player);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, eventStep, menuOptionSelected)
|
||||
|
||||
if (menuOptionSelected == 1) then
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
return;
|
||||
elseif (menuOptionSelected == 2) then
|
||||
player:quitGame();
|
||||
elseif (menuOptionSelected == 3) then
|
||||
player:logout();
|
||||
elseif (menuOptionSelected == 4) then
|
||||
player:sendMessage(33, "", "Heck the bed");
|
||||
player:SendMessage(33, "", "Heck the bed");
|
||||
end
|
||||
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
|
||||
end
|
|
@ -4,16 +4,16 @@ function init(npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
defaultFst = getStaticActor("DftFst");
|
||||
player:runEventFunction("delegateEvent", player, defaultFst, "defaultTalkWithInn_ExitDoor", nil, nil, nil);
|
||||
defaultFst = GetStaticActor("DftFst");
|
||||
player:RunEventFunction("delegateEvent", player, defaultFst, "defaultTalkWithInn_ExitDoor", nil, nil, nil);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId, isExitYes)
|
||||
|
||||
if (isExitYes ~= nil and isExitYes == 1) then
|
||||
getWorldManager():DoZoneChange(player, 1);
|
||||
GetWorldManager():DoZoneChange(player, 1);
|
||||
else
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
|
@ -3,7 +3,7 @@ function init(npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
|
|
|
@ -4,10 +4,10 @@ end
|
|||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
if (triggerName == "caution") then
|
||||
worldMaster = getWorldMaster();
|
||||
player:sendGameMessage(player, worldMaster, 34109, 0x20);
|
||||
worldMaster = GetWorldMaster();
|
||||
player:SendGameMessage(player, worldMaster, 34109, 0x20);
|
||||
elseif (triggerName == "exit") then
|
||||
getWorldManager():DoPlayerMoveInZone(player, 5);
|
||||
GetWorldManager():DoPlayerMoveInZone(player, 5);
|
||||
end
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
|
@ -3,18 +3,18 @@ function init(npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
questNOC = getStaticActor("Noc000");
|
||||
questNOC = GetStaticActor("Noc000");
|
||||
|
||||
if (npc:getActorClassId() == 1200193) then
|
||||
player:runEventFunction("delegateEvent", player, questNOC, "pETaskBoardAskLimsa", nil, nil, nil);
|
||||
elseif (npc:getActorClassId() == 1200194) then
|
||||
player:runEventFunction("delegateEvent", player, questNOC, "pETaskBoardAskUldah", nil, nil, nil);
|
||||
if (npc:GetActorClassId() == 1200193) then
|
||||
player:RunEventFunction("delegateEvent", player, questNOC, "pETaskBoardAskLimsa", nil, nil, nil);
|
||||
elseif (npc:GetActorClassId() == 1200194) then
|
||||
player:RunEventFunction("delegateEvent", player, questNOC, "pETaskBoardAskUldah", nil, nil, nil);
|
||||
else
|
||||
player:runEventFunction("delegateEvent", player, questNOC, "pETaskBoardAskGridania", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, questNOC, "pETaskBoardAskGridania", nil, nil, nil);
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected)
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
|
@ -25,10 +25,10 @@ function init(npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
player:runEventFunction("eventAetheryteParentSelect", 0x0, false, 0x61, 0x0,0,0,0,0);
|
||||
player:RunEventFunction("eventAetheryteParentSelect", 0x0, false, 0x61, 0x0,0,0,0,0);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
||||
--player:runEventFunction("askOfferQuest", player, 1000);
|
||||
player:endEvent();
|
||||
--player:RunEventFunction("askOfferQuest", player, 1000);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -25,14 +25,14 @@ function init(npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
player:runEventFunction("eventTalkType", 0x30, true, 0x02CE, 0x356, 0x367, true, 0, nil, 0x29, 0,0,0);
|
||||
player:RunEventFunction("eventTalkType", 0x30, true, 0x02CE, 0x356, 0x367, true, 0, nil, 0x29, 0,0,0);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected)
|
||||
--player:runEventFunction("eventTalkType", 0x32, true, 0x02CE, 0x356, 0x367, false, 2, nil, 0x29, 0,0,0);
|
||||
player:runEventFunction("eventTalkPack", 201, 207);
|
||||
--player:runEventFunction("eventTalkCard", 0x30C3, 0x30C4, 0x30C1, 0x30C5, 0x30C6, 0x30C7, 0x30C8, 0x30C9);
|
||||
--player:runEventFunction("eventTalkDetail", 0x30C4, 2, 0xF4242, 0xD, 0xF4242, 0, 0xFF, true, 11);
|
||||
--player:runEventFunction("eventGLChangeDetail", 0xDEAD, 0x30C4, 0xFF, 0xF4242, 0xD, 0xF4242, 0, 2, true);
|
||||
player:endEvent();
|
||||
--player:RunEventFunction("eventTalkType", 0x32, true, 0x02CE, 0x356, 0x367, false, 2, nil, 0x29, 0,0,0);
|
||||
player:RunEventFunction("eventTalkPack", 201, 207);
|
||||
--player:RunEventFunction("eventTalkCard", 0x30C3, 0x30C4, 0x30C1, 0x30C5, 0x30C6, 0x30C7, 0x30C8, 0x30C9);
|
||||
--player:RunEventFunction("eventTalkDetail", 0x30C4, 2, 0xF4242, 0xD, 0xF4242, 0, 0xFF, true, 11);
|
||||
--player:RunEventFunction("eventGLChangeDetail", 0xDEAD, 0x30C4, 0xFF, 0xF4242, 0xD, 0xF4242, 0, 2, true);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -4,25 +4,25 @@ end
|
|||
|
||||
function onEventStarted(player, npc)
|
||||
isNew = false;
|
||||
player:runEventFunction("eventTalkStep1", isNew);
|
||||
player:RunEventFunction("eventTalkStep1", isNew);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
||||
|
||||
if (menuOptionSelected == nil) then
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
return;
|
||||
end
|
||||
|
||||
isNew = false;
|
||||
if (menuOptionSelected == 1) then
|
||||
player:runEventFunction("eventTalkStep2", isNew);
|
||||
player:RunEventFunction("eventTalkStep2", isNew);
|
||||
elseif (menuOptionSelected == 10) then
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
return;
|
||||
elseif (menuOptionSelected == 3) then
|
||||
--createLinkshell
|
||||
player:runEventFunction("eventTalkStepMakeupDone", isNew);
|
||||
player:RunEventFunction("eventTalkStepMakeupDone", isNew);
|
||||
end
|
||||
|
||||
end
|
|
@ -28,10 +28,10 @@ function init(npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
player:runEventFunction("talkOfferWelcome", player, 1);
|
||||
player:RunEventFunction("talkOfferWelcome", player, 1);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
||||
--player:runEventFunction("askOfferQuest", player, 1000);
|
||||
player:endEvent();
|
||||
--player:RunEventFunction("askOfferQuest", player, 1000);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -4,10 +4,10 @@ function init(npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
player:sendMessage(0x20, "", "This PopulaceStandard actor has no event set. Actor Class Id: " .. tostring(npc:getActorClassId()));
|
||||
player:endEvent();
|
||||
player:SendMessage(0x20, "", "This PopulaceStandard actor has no event set. Actor Class Id: " .. tostring(npc:GetActorClassId()));
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, blah, menuSelect)
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
end
|
|
@ -3,13 +3,13 @@ function init(npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
player:sendMessage(0x20, "", "This PopulaceShopSalesman actor has no event set. Actor Class Id: " .. tostring(npc:getActorClassId()))
|
||||
player:endEvent();
|
||||
--player:runEventFunction("welcomeTalk");
|
||||
player:SendMessage(0x20, "", "This PopulaceShopSalesman actor has no event set. Actor Class Id: " .. tostring(npc:GetActorClassId()))
|
||||
player:EndEvent();
|
||||
--player:RunEventFunction("welcomeTalk");
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
||||
|
||||
player:endEvent();
|
||||
player:EndEvent();
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue