mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
New scripts for the opening private areas, as well as db updates.
This commit is contained in:
parent
e898c045f7
commit
d918ad3776
29 changed files with 412 additions and 183 deletions
|
@ -61,7 +61,7 @@ function onTrigger(player, argc, p1, p2, p3, p4, privateArea, name, lastName)
|
|||
local z = tonumber(applyPositionOffset(p4, player_z)) or player_z;
|
||||
if privateArea == "" then privateArea = nil end;
|
||||
player:SendMessage(messageID, sender, string.format("setting coordinates X:%d Y:%d Z:%d to new zone (%d) private area:%s", x, y, z, zone, privateArea or "unspecified"));
|
||||
worldManager:DoZoneChange(player, zone, privateArea, 0x02, x, y, z, 0.00);
|
||||
worldManager:DoZoneChange(player, zone, privateArea, 0, 0x02, x, y, z, 0.00);
|
||||
end
|
||||
|
||||
else
|
||||
|
|
|
@ -20,7 +20,7 @@ function onTrigger(player, argc, weather, updateTime, zonewide)
|
|||
if zonewide ~= 0 then
|
||||
message = string.format(message.."for zone %u", player:GetZoneID());
|
||||
else
|
||||
message = string.format(message.."%s", player:GetName());
|
||||
message = message..player:GetName();
|
||||
end;
|
||||
-- weatherid, updateTime
|
||||
player:GetZone():ChangeWeather(weather, updateTime, player, zonewide ~= 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue