-
Notifications
You must be signed in to change notification settings - Fork 549
Fix Ancient Vows CutScene order. #6319
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,11 @@ end; | |
|
||
function onZoneIn(player,prevZone) | ||
local cs = -1; | ||
|
||
if (player:getXPos() == 0 and player:getYPos() == 0 and player:getZPos() == 0) then | ||
if (player:getCurrentMission(COP) == dsp.mission.id.cop.ANCIENT_VOWS and player:getCharVar("PromathiaStatus") == 1) then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. outer parenthesis is not needed. a lot of older scripts still have it and we haven't cleaned all of them yet, sorry for the numerous bad examples. Also instead of making this the 1st check followed by an else, we probably need this to just be its own check after the original ends. That position 0 check is a safety for landing in the zone without a legit position. If you met the requirements for this conditional but somehow still landed with invalid pos data, you'd get stuck. (I'm aware of your change in the other file setting the pos - but a GM could teleport themselves in without triggering that, as just one example) |
||
player:startEvent(100); | ||
elseif (player:getXPos() == 0 and player:getYPos() == 0 and player:getZPos() == 0) then | ||
player:setPos(732.55,-32.5,-506.544,90); -- {R} | ||
end | ||
|
||
return cs; | ||
end; | ||
|
||
|
@@ -39,4 +39,7 @@ function onEventUpdate(player,csid,option) | |
end; | ||
|
||
function onEventFinish(player,csid,option) | ||
if csid == 100 then | ||
player:setCharVar("PromathiaStatus",2); | ||
end | ||
end; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while the cs event that was here may have been incorrect, I am almost certain retail does indeed have an event here that does this move on its event finish, before the event that happens after the zone change, even if all that event does is play an animation of you being sucked through the portal.
This can be confirmed (or proven wrong) via a retail capture of the mission here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted: I'll addthe event for the option window to travel to RA01 and move stuff back to oneventfinish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just watched video there is indeed an option to enter the site. Will add it back and test it and send it up when ready.