mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 19:57:46 +00:00

Added the combo and proc systems Added scripts for most weaponskill and spells as well as some abilities and status effects Added support for multihit attacks Added AbilityState for abilities Added hiteffects that change based on an attack's parameters Added positionals Changed how targeting works for battlecommands Fixed bug that occurred when moving or swapping hotbar commands Fixed bug that occurred when losing status effects
43 lines
No EOL
1 KiB
Lua
43 lines
No EOL
1 KiB
Lua
require("global");
|
|
|
|
properties = {
|
|
permissions = 0,
|
|
parameters = "d",
|
|
description = "Spawns a actor",
|
|
}
|
|
|
|
function onTrigger(player, argc, actorClassId, width, height)
|
|
|
|
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 rot = pos[3];
|
|
local zone = pos[4];
|
|
|
|
actorClassId = tonumber(actorClassId);
|
|
|
|
if (actorClassId ~= nil) then
|
|
zone = player:GetZone();
|
|
local w = tonumber(width) or 0;
|
|
local h = tonumber(height) or 0;
|
|
printf("%f %f %f", x, y, z);
|
|
--local x, y, z = player.GetPos();
|
|
for i = 0, w do
|
|
for j = 0, h do
|
|
actor = zone:SpawnActor(actorClassId, "test", pos[0] + (i - (w / 2) * 3), pos[1], pos[2] + (j - (h / 2) * 3), pos[3]);
|
|
actor.SetAppearance(1001149)
|
|
end
|
|
end
|
|
end
|
|
|
|
if (actor == nil) then
|
|
player:SendMessage(0x20, "", "This actor class id cannot be spawned.");
|
|
end
|
|
|
|
end; |