mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Added changes to how zones/areas are accessed in the lua scripts too.
This commit is contained in:
parent
4e0cf36552
commit
68e55a1c76
18 changed files with 33 additions and 35 deletions
|
@ -18,11 +18,11 @@ function onTrigger(player, argc, zone)
|
|||
|
||||
if player then
|
||||
local messageID = MESSAGE_TYPE_SYSTEM_ERROR;
|
||||
zone = zone or player:GetZoneID();
|
||||
zone = zone or player.CurrentArea.ZoneId;
|
||||
player:SendMessage(messageID, "[reloadzones] ", string.format("Reloading zone: %u", zone));
|
||||
--[[ todo: get this working legit
|
||||
player:GetZone():Clear();
|
||||
player:GetZone():AddActorToZone(player);
|
||||
player.CurrentArea:Clear();
|
||||
player.CurrentArea:AddActorToZone(player);
|
||||
player:SendInstanceUpdate();
|
||||
]]
|
||||
end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue