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

@ -18,34 +18,34 @@ Confirm Menu: 2
function onEventStarted(player, actor, triggerName, isTeleport)
if (isTeleport == 0) then
player:setCurrentMenuId(0);
player:runEventFunction("delegateCommand", actor, "eventRegion", 100);
player:SetCurrentMenuId(0);
player:RunEventFunction("delegateCommand", actor, "eventRegion", 100);
else
player:setCurrentMenuId(2);
player:runEventFunction("delegateCommand", actor, "eventConfirm", true, false, 1, 0x138824, false);
player:SetCurrentMenuId(2);
player:RunEventFunction("delegateCommand", actor, "eventConfirm", true, false, 1, 0x138824, false);
end
end
function onEventUpdate(player, actor, step, arg1)
menuId = player:getCurrentMenuId();
menuId = player:GetCurrentMenuId();
if (menuId == 0) then --Region
if (arg1 ~= nil and arg1 >= 1) then
player:setCurrentMenuId(1);
player:runEventFunction("delegateCommand", actor, "eventAetheryte", arg1, 2, 2, 2, 4, 4, 4);
player:SetCurrentMenuId(1);
player:RunEventFunction("delegateCommand", actor, "eventAetheryte", arg1, 2, 2, 2, 4, 4, 4);
else
player:endCommand();
player:EndCommand();
end
elseif (menuId == 1) then --Aetheryte
if (arg1 == nil) then
player:endCommand();
player:EndCommand();
return;
end
player:setCurrentMenuId(2);
player:runEventFunction("delegateCommand", actor, "eventConfirm", false, false, 1, 138824, false);
player:SetCurrentMenuId(2);
player:RunEventFunction("delegateCommand", actor, "eventConfirm", false, false, 1, 138824, false);
elseif (menuId == 2) then --Confirm
player:endCommand();
player:EndCommand();
end
end