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
|
@ -14,11 +14,11 @@ function onEventStarted(player, command, triggerName)
|
|||
player:ChangeState(0);
|
||||
end
|
||||
|
||||
--player:endEvent();
|
||||
player:endEvent();
|
||||
|
||||
--For Opening Tutorial
|
||||
if (player:HasQuest("Man0l0") or player:HasQuest("Man0g0") or player:HasQuest("Man0u0")) then
|
||||
player:GetDirector("Quest/QuestDirectorMan0l001"):OnCommandEvent(player, command);
|
||||
end
|
||||
--if (player:HasQuest("Man0l0") or player:HasQuest("Man0g0") or player:HasQuest("Man0u0")) then
|
||||
--player:GetDirector("Quest/QuestDirectorMan0l001"):OnCommandEvent(player, command);
|
||||
--end
|
||||
|
||||
end
|
|
@ -6,6 +6,7 @@ Notes:
|
|||
|
||||
|
||||
--]]
|
||||
require("global")
|
||||
|
||||
function onEventStarted(player, actor, triggerName, pushCommand, unk1, unk2, unk3, ownerActorId, unk4, unk5, unk6, unk7)
|
||||
|
||||
|
@ -15,6 +16,7 @@ function onEventStarted(player, actor, triggerName, pushCommand, unk1, unk2, unk
|
|||
if (actor:GetActorClassId() == 1200052) then
|
||||
player:kickEvent(actor, "commandJudgeMode", "commandJudgeMode");
|
||||
else
|
||||
printf("TEST");
|
||||
player:kickEvent(actor, "pushCommand", "pushCommand");
|
||||
end
|
||||
else
|
||||
|
|
|
@ -3,6 +3,15 @@
|
|||
|
||||
--]]
|
||||
|
||||
function onEventStarted(player, actor, questId)
|
||||
player:SendRequestedInfo("requestedData", "qtdata", 0x1D4F2);
|
||||
function onEventStarted(player, actor, trigger, questId, mapCode)
|
||||
|
||||
quest = player:GetQuest(questId);
|
||||
if (mapCode == nil) then
|
||||
player:SendRequestedInfo("requestedData", "qtdata", quest:GetQuestId(), 3);
|
||||
player:EndEvent();
|
||||
else
|
||||
player:SendRequestedInfo("requestedData", "qtmap", quest:GetQuestId());
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -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