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

=============================== Nudgenpc.lua - Added a command variation Testmapobj.lua - Added !help documentation DftWil.lua - Corrected an npc name/function Player.cs - Changed Dalamud packet to default to 7, not 0. Fixes the moon not displaying in a specific Hildibrand cutscene Etc5g0.lua - Made quest accepting retail-accurate with how it displayed messages/ended the TalkEvent Etc5g1.lua - Added Bed !. Kinda kludged in atm since it's a pre-accepted quest state. Etc5u1.lua - Same as above Etc5l1.lua - Quest "Private Eyes" scripted. Etc5l2.lua - Quest "Mysteries of the Red Moon" scripted Etc5l3.lua - Quest "Prophecy Inspection" scripted
104 lines
2.7 KiB
Lua
104 lines
2.7 KiB
Lua
require("global");
|
|
|
|
--[[
|
|
|
|
Quest Script
|
|
|
|
Name: Waste Not Want Not
|
|
Code: Etc5g0
|
|
Id: 110828
|
|
Prereq: Level 1 on any class. Second MSQ completed. (110002 Man0l1 / 110006 Man0g1 / 110010 Man0u1)
|
|
Notes: Rewards 200 gil
|
|
|
|
]]
|
|
|
|
-- Sequence Numbers
|
|
SEQ_000 = 0; -- Talk to Pfarahr.
|
|
SEQ_001 = 1; -- Return to V'korolon.
|
|
|
|
-- Actor Class Ids
|
|
VKOROLON = 1000458;
|
|
PFARAHR = 1001707;
|
|
|
|
-- Quest Item
|
|
ITEM_WELL_WORN_BAG = 11000224;
|
|
|
|
-- Quest Markers
|
|
MRKR_PFARAHR = 11082001;
|
|
MRKR_VKOROLON = 11082002;
|
|
|
|
function onStart(player, quest)
|
|
end
|
|
|
|
function onFinish(player, quest)
|
|
end
|
|
|
|
function onStateChange(player, quest, sequence)
|
|
if (sequence == SEQ_ACCEPT) then
|
|
quest:SetENpc(VKOROLON, QFLAG_PLATE);
|
|
end
|
|
|
|
if (sequence == SEQ_000) then
|
|
quest:SetENpc(VKOROLON);
|
|
quest:SetENpc(PFARAHR, QFLAG_PLATE);
|
|
elseif (sequence == SEQ_001) then
|
|
quest:SetENpc(VKOROLON, QFLAG_PLATE);
|
|
quest:SetENpc(PFARAHR);
|
|
end
|
|
end
|
|
|
|
function onTalk(player, quest, npc)
|
|
local sequence = quest:getSequence();
|
|
local classId = npc:GetActorClassId();
|
|
|
|
if (sequence == SEQ_ACCEPT) then
|
|
local questAccepted = callClientFunction(player, "delegateEvent", player, quest, "processEventVKOROLONStart");
|
|
if (questAccepted == 1) then
|
|
player:AcceptQuest(quest);
|
|
quest:StartSequence(SEQ_000);
|
|
wait(2);
|
|
attentionMessage(player, 25246, ITEM_WELL_WORN_BAG, 1);
|
|
|
|
end
|
|
player:EndEvent();
|
|
return;
|
|
elseif (sequence == SEQ_000) then
|
|
if (classId == VKOROLON) then
|
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_000_1");
|
|
elseif (classId == PFARAHR) then
|
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_010");
|
|
quest:StartSequence(SEQ_001);
|
|
end
|
|
|
|
elseif (sequence == SEQ_001) then
|
|
if (classId == VKOROLON) then
|
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_020");
|
|
callClientFunction(player, "delegateEvent", player, quest, "sqrwa", 200, 1)
|
|
player:CompleteQuest(quest);
|
|
elseif (classId == PFARAHR) then
|
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_010_1");
|
|
end
|
|
end
|
|
player:EndEvent()
|
|
quest:UpdateENPCs();
|
|
end
|
|
|
|
function getJournalInformation(player, quest)
|
|
local sequence = quest:getSequence();
|
|
if (sequence == SEQ_000) then
|
|
return ITEM_WELL_WORN_BAG;
|
|
end
|
|
end
|
|
|
|
function getJournalMapMarkerList(player, quest)
|
|
local sequence = quest:getSequence();
|
|
|
|
if (sequence == SEQ_000) then
|
|
return MRKR_PFARAHR;
|
|
elseif (sequence == SEQ_001) then
|
|
return MRKR_VKOROLON;
|
|
end
|
|
end
|
|
|
|
|
|
|