mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +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
54
Data/scripts/commands/gm/testmapobj.lua
Normal file
54
Data/scripts/commands/gm/testmapobj.lua
Normal file
|
@ -0,0 +1,54 @@
|
|||
require("global");
|
||||
|
||||
properties = {
|
||||
permissions = 0,
|
||||
parameters = "sssss",
|
||||
description = ""
|
||||
}
|
||||
|
||||
function onTrigger(player, argc, animation, regionId, layoutId, maxLayoutId)
|
||||
layoutId = tonumber(layoutId);
|
||||
|
||||
if (maxLayoutId ~= nil) then
|
||||
maxLayoutId = tonumber(maxLayoutId);
|
||||
else
|
||||
maxLayoutId = layoutId;
|
||||
end
|
||||
|
||||
actorClassId = 5900001;
|
||||
while (layoutId <= maxLayoutId) do
|
||||
if (actorClassId == nil) then
|
||||
player:SendMessage(0x20, "", "No actor class id provided.");
|
||||
return;
|
||||
end
|
||||
|
||||
local pos = player:GetPos();
|
||||
local x = pos[0];
|
||||
local y = pos[1];
|
||||
local z = pos[2];
|
||||
local zone = pos[4];
|
||||
|
||||
actorClassId = tonumber(actorClassId);
|
||||
|
||||
if (actorClassId ~= nil) then
|
||||
zone = player:GetZone();
|
||||
actor = zone:SpawnActor(actorClassId, "mapobj", pos[0], pos[1], pos[2], tonumber(regionId), tonumber(layoutId));
|
||||
wait(0.8);
|
||||
actor:PlayMapObjAnimation(player, animation);
|
||||
zone:DespawnActor("mapobj");
|
||||
wait(0.5);
|
||||
player:SendMessage(0x20, "", "Layout ID: "..layoutId);
|
||||
end
|
||||
layoutId=layoutId+1;
|
||||
end
|
||||
end;
|
||||
--!testmapobj 5900001 421 2810 2820
|
||||
|
||||
--dun4 (0x19e) - Copperbell Mines
|
||||
--dun1 - Mun Tuy
|
||||
--dun2 - Tam Tara
|
||||
--debug:_getAllCharacter("MapObjStandard")[1]
|
||||
|
||||
|
||||
--Ferry (Thanalan, Z=-130): 5145, 252
|
||||
--Ferry (La Noscea, Z=+130): 5144, 201
|
Loading…
Add table
Add a link
Reference in a new issue