upload quests

This commit is contained in:
regneq 2023-07-24 13:24:37 -07:00
parent d5cd15c9a5
commit df860b6eb9
5339 changed files with 174551 additions and 0 deletions

27
lua_modules/command.lua Normal file
View file

@ -0,0 +1,27 @@
function command_endurance(e)
local tar = e.self:GetTarget();
if(tar.null) then
tar = e.self;
end
tar:SetEndurance(tar:GetMaxEndurance());
end
local commands = { };
commands["endurance"] = { 50, command_endurance };
function eq.DispatchCommands(e)
local command = commands[e.command];
if(command) then
local access = command[1];
if(access > e.self:Admin()) then
e.self:Message(13, "Access level not high enough.");
return 1;
end
local func = command[2];
func(e);
return 1;
end
return 0;
end