fixed method casing in lua

This commit is contained in:
Tahir Akhlaq 2016-06-15 03:41:23 +01:00
parent ba13d5798d
commit 884a26dc52
368 changed files with 1121 additions and 1121 deletions

View file

@ -16,36 +16,36 @@ Countdown: 1
--]]
function onEventStarted(player, command)
--player:setCurrentMenuId(0);
--player:runEventFunction("delegateCommand", command, "eventConfirm");
--player:SetCurrentMenuId(0);
--player:RunEventFunction("delegateCommand", command, "eventConfirm");
player:logout();
end
function onEventUpdate(player, command, triggerName, step, arg1, arg2)
currentMenuId = player:getCurrentMenuId();
currentMenuId = player:GetCurrentMenuId();
--Menu Dialog
if (currentMenuId == 0) then
if (arg1 == 1) then --Exit
player:quitGame();
player:endCommand();
player:EndCommand();
elseif (arg1 == 2) then --Character Screen
player:logout();
player:endCommand();
--player:setCurrentMenuId(1);
--player:runEventFunction("delegateCommand", command, "eventCountDown");
player:EndCommand();
--player:SetCurrentMenuId(1);
--player:RunEventFunction("delegateCommand", command, "eventCountDown");
elseif (arg1 == 3) then --Cancel
player:endCommand();
player:EndCommand();
end
--Countdown Dialog
elseif (currentMenuId == 1) then
if (arg2 == 1) then --Logout Complete
player:logout();
player:endCommand();
player:EndCommand();
elseif (arg2 == 2) then --Cancel Pressed
player:endCommand();
player:EndCommand();
end
end