mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 06:24:38 +02:00
- Fixed !anim targeting the incorrect actor.
- Etc5u0 scripted start to finish. Ul'dah Inn quest. - DftWil - Added quest checks to the Inn NPCs. - DfFst - Commiting what's been done thus far. fst0Town01 zone nearly done. Still have 100 something fst0Town01a & field npcs to add. - Removed some fst0Town01 uniqueId scripts
This commit is contained in:
parent
8c70d0ddb6
commit
682ddd9cae
32 changed files with 284 additions and 345 deletions
98
Data/scripts/quests/etc/etc5u0.lua
Normal file
98
Data/scripts/quests/etc/etc5u0.lua
Normal file
|
@ -0,0 +1,98 @@
|
|||
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 == 65535) then
|
||||
quest:SetENpc(OTOPA_POTTOPA, QFLAG_PLATE);
|
||||
elseif (sequence == SEQ_000) then
|
||||
quest:SetENpc(OTOPA_POTTOPA);
|
||||
quest:SetENpc(JUDITHE, QFLAG_PLATE);
|
||||
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 == 65535) 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
|
Loading…
Add table
Add a link
Reference in a new issue