start of work moving commands to lua

This commit is contained in:
Tahir Akhlaq 2016-06-16 01:50:13 +01:00
parent 1159c75ab8
commit 57b9d5ab99
20 changed files with 703 additions and 67 deletions

View file

@ -0,0 +1,23 @@
require("global");
properties = {
permissions = 0,
parameters = "s",
description = "reloads <zone>",
}
function onTrigger(player, argc, zone)
if not zone or tonumber(zone) == 0 then
printf("%s is not a valid zone!", zone);
return;
end;
zone = tonumber(zone);
if player then
local messageID = MSG_TYPE_SYSTEM_ERROR;
player:SendMessage(messageID, "[reloadzones] ", string.format("Reloading zone: %u", zone));
end;
GetWorldManager():ReloadZone(zone);
end;