summaryrefslogtreecommitdiff
path: root/data/scripts/castorWilds/script_GreatFairyRupees.inc
blob: 908c2fcdc39743f0769a34c35f6c4910947eaf27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@ Lake Hylia Great Fairy CUTSCENE_ORCHESTRATOR
SCRIPT_START script_GreatFairyRupees
	BeginBlock
	EndBlock
script_0800B6CC:
	HasRupees 1
	JumpIfNot script_0800B6CC
script_0800B6D4:
	CheckPlayerInRegion 0x0078, 0x00b8, 0x1060
	JumpIfNot script_0800B6D4
	Call PlayerDropHeldObject
	SetPlayerIdle
	Call WaitForPlayerNormal
	StartPlayerScript script_PlayerAtGreatFairy
	WaitForSyncFlagAndClear 0x00000004
	SetRoomFlag 0x0000
	WaitForSyncFlagAndClear 0x00000004
	//30
	CheckLocalFlag 0x009f
	JumpIf script_0800B7A2
	MessageNoOverlap TEXT_ITEM_GET, 0x7b
	WaitUntilTextboxCloses
	CallWithArg CheckMessageEqual, TEXT_ITEM_GET << 8 | 0x7d
	JumpIf script_0800B6A6
	WaitUntilTextboxCloses
	SetLocalFlag IZUMI_01_FAIRY
	GivePlayerItem ITEM_WALLET
	Jump script_0800B698
	.2byte 0x0000