mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-21 12:17:46 +00:00

MarketEntrance - Adjusted events parameter so it works again Warp - Added shortcut for switching between a given town's zones so I can stop having to look up the right zone id Weather - Added shortcut for weather ids to +8000 to the value if the're within a certain range. DftSea - Inn NPC check etc5u0 - Used a constant in place of a value, updated a constant's name. etc5l0 - Fully scripted. etc5u1 - Mostly scripted. Requires Dream handling and privArea + NPC placement. etc5g1 - Mostly scripted. Requires Dream handling and privArea + NPC placement.
98 lines
2.8 KiB
Lua
98 lines
2.8 KiB
Lua
require("global");
|
|
|
|
--[[
|
|
|
|
Quest Script
|
|
|
|
Name: Ring of Deceit
|
|
Code: Etc5u0
|
|
Id: 110848
|
|
Prereq: Level 1 on any class. Second MSQ completed. (110002 Man0l1 / 110006 Man0g1 / 110010 Man0u1)
|
|
Notes: Unlocks Ul'dah Inn exit from the rear entrance. Rewards 200 EXP
|
|
|
|
]]
|
|
|
|
-- Sequence Numbers
|
|
SEQ_000 = 0; -- Talk to Judithe
|
|
SEQ_001 = 1; -- Return to Otopa Pottopa
|
|
|
|
-- Actor Class Ids
|
|
OTOPA_POTTOPA = 1000864;
|
|
JUDITHE = 1001443;
|
|
|
|
-- Quest Markers
|
|
MRKR_JUDITHE = 11092001;
|
|
MRKR_OTOPA_POTTOPA = 11092002;
|
|
|
|
|
|
|
|
function onStart(player, quest)
|
|
quest:StartSequence(SEQ_000);
|
|
end
|
|
|
|
function onFinish(player, quest)
|
|
end
|
|
|
|
|
|
function onStateChange(player, quest, sequence)
|
|
if (sequence == SEQ_ACCEPT) then
|
|
quest:SetENpc(OTOPA_POTTOPA, QFLAG_NORM);
|
|
elseif (sequence == SEQ_000) then
|
|
quest:SetENpc(OTOPA_POTTOPA);
|
|
quest:SetENpc(JUDITHE, QFLAG_NORM);
|
|
elseif (sequence == SEQ_001) then
|
|
quest:SetENpc(OTOPA_POTTOPA, QFLAG_REWARD);
|
|
quest:SetENpc(JUDITHE);
|
|
end
|
|
end
|
|
|
|
function onTalk(player, quest, npc)
|
|
local sequence = quest:getSequence();
|
|
local classId = npc:GetActorClassId();
|
|
|
|
if (sequence == SEQ_ACCEPT) then
|
|
if (classId == OTOPA_POTTOPA) then
|
|
local questAccepted = callClientFunction(player, "delegateEvent", player, quest, "processEventOTOPAPOTTOPAStart");
|
|
|
|
if (questAccepted == 1) then
|
|
player:AcceptQuest(quest);
|
|
end
|
|
end
|
|
elseif (sequence == SEQ_000) then
|
|
if (classId == OTOPA_POTTOPA) then
|
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_000_1");
|
|
elseif (classId == JUDITHE) then
|
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_010");
|
|
attentionMessage(player, 25225, 110848); -- <Quest name> objectives complete!
|
|
quest:StartSequence(SEQ_001);
|
|
end
|
|
elseif (sequence == SEQ_001) then
|
|
if (classId == JUDITHE) then
|
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_010_1");
|
|
elseif (classId == OTOPA_POTTOPA) then
|
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_020");
|
|
callClientFunction(player, "delegateEvent", player, quest, "sqrwa", 200, 1, 1); -- 200 exp rewarded
|
|
player:CompleteQuest(quest);
|
|
end
|
|
end
|
|
player:EndEvent()
|
|
quest:UpdateENPCs();
|
|
end
|
|
|
|
|
|
function getJournalInformation(player, quest)
|
|
end
|
|
|
|
|
|
function getJournalMapMarkerList(player, quest)
|
|
local sequence = quest:getSequence();
|
|
local possibleMarkers = {};
|
|
|
|
if (sequence == SEQ_000) then
|
|
table.insert(possibleMarkers, MRKR_JUDITHE);
|
|
elseif (sequence == SEQ_001) then
|
|
table.insert(possibleMarkers, MRKR_OTOPA_POTTOPA);
|
|
end
|
|
|
|
return unpack(possibleMarkers)
|
|
end
|