Removed more dead scripts. Exported missing sql files.

This commit is contained in:
Filip Maj 2022-03-03 23:33:55 -05:00
parent b57f91470a
commit 765cf194c5
65 changed files with 1076 additions and 809 deletions

View file

@ -6,17 +6,17 @@ properties = {
description = ""
}
function onTrigger(player, argc, animation, regionId, layoutId, maxLayoutId)
layoutId = tonumber(layoutId);
function onTrigger(player, argc, animation, layoutId, instanceId, maxInstanceId)
instanceId = tonumber(instanceId);
if (maxLayoutId ~= nil) then
maxLayoutId = tonumber(maxLayoutId);
if (maxInstanceId ~= nil) then
maxInstanceId = tonumber(maxInstanceId);
else
maxLayoutId = layoutId;
maxInstanceId = instanceId;
end
actorClassId = 5900001;
while (layoutId <= maxLayoutId) do
while (instanceId <= maxInstanceId) do
if (actorClassId == nil) then
player:SendMessage(0x20, "", "No actor class id provided.");
return;
@ -32,16 +32,16 @@ function onTrigger(player, argc, animation, regionId, layoutId, maxLayoutId)
if (actorClassId ~= nil) then
zone = player.CurrentArea;
actor = zone:SpawnActor(actorClassId, "mapobj", pos[1], pos[2], pos[3], tonumber(regionId), tonumber(layoutId));
actor = zone:SpawnActor(actorClassId, "mapobj", pos[1], pos[2], pos[3], tonumber(layoutId), tonumber(instanceId));
print("test");
wait(0.8);
wait(2);
actor:PlayMapObjAnimation(player, animation);
zone:DespawnActor("mapobj");
wait(0.5);
player:SendMessage(0x20, "", "Layout ID: "..layoutId);
player:SendMessage(0x20, "", "Playing animation for instance: " .. instanceId);
end
layoutId=layoutId+1;
instanceId = instanceId + 1;
end
end;
--!testmapobj 5900001 421 2810 2820