mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
fixed method casing in lua
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user