mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Removed more dead scripts. Exported missing sql files.
This commit is contained in:
parent
b57f91470a
commit
765cf194c5
65 changed files with 1076 additions and 809 deletions
|
@ -8,7 +8,7 @@ Notes:
|
|||
--]]
|
||||
require("global")
|
||||
|
||||
function onEventStarted(player, actor, triggerName, pushCommand, unk1, unk2, unk3, ownerActorId, unk4, unk5, unk6, unk7)
|
||||
function onEventStarted(player, actor, eventType, eventName, pushCommand, unk1, unk2, unk3, ownerActorId, unk4, unk5, unk6, unk7)
|
||||
|
||||
actor = player:GetActorInInstance(ownerActorId);
|
||||
print("TESSSSSSSSSSSSSST");
|
||||
|
@ -17,7 +17,7 @@ function onEventStarted(player, actor, triggerName, pushCommand, unk1, unk2, unk
|
|||
if (actor:GetActorClassId() == 1200052) then
|
||||
player:KickEventSpecial(harvestCommand, 0, "commandJudgeMode", 0, 0, 0, 0, 0x4E26, 0, nil, 0xF, actor, nil, nil, nil, nil);
|
||||
else
|
||||
--player:kickEvent(actor, "pushCommand", false);
|
||||
player:kickEvent(actor, "pushCommand", false);
|
||||
end
|
||||
else
|
||||
player:endEvent();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue