mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-27 12:56:07 +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
|
@ -24,13 +24,13 @@ function onTrigger(player, argc, weather, updateTime, zonewide)
|
|||
message = string.format("changed weather to %u ", weather);
|
||||
|
||||
if zonewide ~= 0 then
|
||||
message = string.format(message.."for zone %u", player:GetZoneID());
|
||||
message = string.format(message.."for zone %u", player.CurrentArea.ZoneId);
|
||||
else
|
||||
message = message..player:GetName();
|
||||
end;
|
||||
|
||||
-- weatherid, updateTime
|
||||
player:GetZone():ChangeWeather(weather, updateTime, player, zonewide ~= 0);
|
||||
player.CurrentArea:ChangeWeather(weather, updateTime, player, zonewide ~= 0);
|
||||
player:SendMessage(messageID, sender, message);
|
||||
end;
|
||||
print(sender..message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue