tmc/data/scripts/sanctuary/script_Npc4EPreventPlayerLe...

26 lines
674 B
PHP

@ Sanctuary NPC4E Prevent link from leaving after fusing final sword
SCRIPT_START script_Npc4EPreventPlayerLeaving
BeginBlock
DoPostScriptAction 0x0008
script_08013B1E:
EndBlock
BeginBlock
CallWithArg sub_0807F6B4, 0x000001c8
JumpIfNot script_08013B1E
CheckInventory1 ITEM_FOURSWORD
JumpIfNot script_08013B1E
CheckLocalFlag 0x0078
JumpIf script_08013B1E
EndBlock
SetPlayerIdle
Call WaitForPlayerNormal
Call DisablePauseMenuAndPutAwayItems
EzloMessage TEXT_PANEL_TUTORIAL, 0x07
WaitUntilTextboxCloses
StartPlayerScript script_PlayerSanctuary
WaitForSyncFlagAndClear 0x00000001
Call EnablePauseMenu
EnablePlayerControl
Jump script_08013B1E
.2byte 0x0000