Quests + Minor fixes

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.
This commit is contained in:
CuriousJorge 2022-03-13 17:45:10 -04:00
parent e94c037fb5
commit b34f214e67
8 changed files with 489 additions and 8 deletions

View file

@ -35,11 +35,11 @@ end
function onStateChange(player, quest, sequence)
if (sequence == 65535) then
quest:SetENpc(OTOPA_POTTOPA, QFLAG_PLATE);
if (sequence == SEQ_ACCEPT) then
quest:SetENpc(OTOPA_POTTOPA, QFLAG_NORM);
elseif (sequence == SEQ_000) then
quest:SetENpc(OTOPA_POTTOPA);
quest:SetENpc(JUDITHE, QFLAG_PLATE);
quest:SetENpc(JUDITHE, QFLAG_NORM);
elseif (sequence == SEQ_001) then
quest:SetENpc(OTOPA_POTTOPA, QFLAG_REWARD);
quest:SetENpc(JUDITHE);
@ -50,7 +50,7 @@ function onTalk(player, quest, npc)
local sequence = quest:getSequence();
local classId = npc:GetActorClassId();
if (sequence == 65535) then
if (sequence == SEQ_ACCEPT) then
if (classId == OTOPA_POTTOPA) then
local questAccepted = callClientFunction(player, "delegateEvent", player, quest, "processEventOTOPAPOTTOPAStart");