mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-27 12:56:07 +02:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
This commit is contained in:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
32
Data/scripts/commands/gm/reloadzone.lua
Normal file
32
Data/scripts/commands/gm/reloadzone.lua
Normal file
|
@ -0,0 +1,32 @@
|
|||
require("global");
|
||||
|
||||
properties = {
|
||||
permissions = 0,
|
||||
parameters = "s",
|
||||
description = "reloads <zone>",
|
||||
}
|
||||
|
||||
function onTrigger(player, argc, zone)
|
||||
if not player and not zone or tonumber(zone) == 0 then
|
||||
printf("No valid zone specified!");
|
||||
return;
|
||||
end;
|
||||
|
||||
local sender = "[reloadzones] ";
|
||||
|
||||
zone = tonumber(zone);
|
||||
|
||||
if player then
|
||||
local messageID = MESSAGE_TYPE_SYSTEM_ERROR;
|
||||
zone = zone or player:GetZoneID();
|
||||
player:SendMessage(messageID, "[reloadzones] ", string.format("Reloading zone: %u", zone));
|
||||
--[[ todo: get this working legit
|
||||
player:GetZone():Clear();
|
||||
player:GetZone():AddActorToZone(player);
|
||||
player:SendInstanceUpdate();
|
||||
]]
|
||||
end;
|
||||
|
||||
GetWorldManager():ReloadZone(zone);
|
||||
printf("%s reloaded zone %u", sender, zone);
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue