2017-11-10 02:21:31 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_MapScripts:: @ 8270A28
|
2019-04-05 01:28:37 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, Route124_DivingTreasureHuntersHouse_OnTransition
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-04-05 01:28:37 +02:00
|
|
|
Route124_DivingTreasureHuntersHouse_OnTransition: @ 8270A2E
|
2017-12-27 04:20:29 +01:00
|
|
|
setflag FLAG_LANDMARK_HUNTERS_HOUSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_TreasureHunter:: @ 8270A32
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-11-02 07:19:44 +01:00
|
|
|
goto_if_set FLAG_MET_DIVING_TREASURE_HUNTER, Route124_DivingTreasureHuntersHouse_EventScript_SkipGreeting
|
|
|
|
msgbox Route124_DivingTreasureHuntersHouse_Text_Greeting, MSGBOX_DEFAULT
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_MET_DIVING_TREASURE_HUNTER
|
2019-11-02 07:19:44 +01:00
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_CheckPlayerHasShard
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_SkipGreeting:: @ 8270A4E
|
|
|
|
msgbox Route124_DivingTreasureHuntersHouse_Text_HaveYouSeenAnyShards, MSGBOX_DEFAULT
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_CheckPlayerHasShard
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_CheckPlayerHasShard:: @ 8270A5C
|
|
|
|
call Route124_DivingTreasureHuntersHouse_EventScript_GetPlayersShards
|
2018-05-19 18:02:43 +02:00
|
|
|
compare VAR_TEMP_1, 0
|
2019-11-02 07:19:44 +01:00
|
|
|
goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_NoShards
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_HasShard
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_GetPlayersShards:: @ 8270A72
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
checkitem ITEM_RED_SHARD, 1
|
2019-11-02 07:19:44 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_eq Route124_DivingTreasureHuntersHouse_EventScript_HasRedShard
|
2017-11-10 02:21:31 +01:00
|
|
|
checkitem ITEM_YELLOW_SHARD, 1
|
2019-11-02 07:19:44 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_eq Route124_DivingTreasureHuntersHouse_EventScript_HasYellowShard
|
2017-11-10 02:21:31 +01:00
|
|
|
checkitem ITEM_BLUE_SHARD, 1
|
2019-11-02 07:19:44 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_eq Route124_DivingTreasureHuntersHouse_EventScript_HasBlueShard
|
2017-11-10 02:21:31 +01:00
|
|
|
checkitem ITEM_GREEN_SHARD, 1
|
2019-11-02 07:19:44 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_eq Route124_DivingTreasureHuntersHouse_EventScript_HasGreenShard
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_HasRedShard:: @ 8270AB8
|
2018-05-19 18:02:43 +02:00
|
|
|
addvar VAR_TEMP_1, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_HasYellowShard:: @ 8270ABE
|
2018-05-19 18:02:43 +02:00
|
|
|
addvar VAR_TEMP_1, 2
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_HasBlueShard:: @ 8270AC4
|
2018-05-19 18:02:43 +02:00
|
|
|
addvar VAR_TEMP_1, 4
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_HasGreenShard:: @ 8270ACA
|
2018-05-19 18:02:43 +02:00
|
|
|
addvar VAR_TEMP_1, 8
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_HasShard:: @ 8270AD0
|
|
|
|
msgbox Route124_DivingTreasureHuntersHouse_Text_ThatsAShardIllTradeYou, MSGBOX_DEFAULT
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_ShowTradeOptions
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShowTradeOptions:: @ 8270ADE
|
|
|
|
message Route124_DivingTreasureHuntersHouse_Text_WhatDoYouWantToTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
2018-05-19 18:02:43 +02:00
|
|
|
switch VAR_TEMP_1
|
2019-11-02 07:19:44 +01:00
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsR
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsY
|
|
|
|
case 3, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRY
|
|
|
|
case 4, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsB
|
|
|
|
case 5, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRB
|
|
|
|
case 6, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsYB
|
|
|
|
case 7, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRYB
|
|
|
|
case 8, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsG
|
|
|
|
case 9, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRG
|
|
|
|
case 10, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsYG
|
|
|
|
case 11, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRYG
|
|
|
|
case 12, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsBG
|
|
|
|
case 13, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRBG
|
|
|
|
case 14, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsYBG
|
|
|
|
case 15, Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRYBG
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsR:: @ 8270B8F
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_R, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeRedShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsY:: @ 8270BB5
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_Y, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeYellowShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRY:: @ 8270BDB
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_RY, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeRedShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_TradeYellowShard
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsB:: @ 8270C0C
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_B, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeBlueShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRB:: @ 8270C32
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_RB, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeRedShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_TradeBlueShard
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsYB:: @ 8270C63
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_YB, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeYellowShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_TradeBlueShard
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRYB:: @ 8270C94
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_RYB, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeRedShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_TradeYellowShard
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_TradeBlueShard
|
|
|
|
case 3, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsG:: @ 8270CD0
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_G, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeGreenShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRG:: @ 8270CF6
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_RG, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeRedShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_TradeGreenShard
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsYG:: @ 8270D27
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_YG, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeYellowShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_TradeGreenShard
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRYG:: @ 8270D58
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_RYG, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeRedShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_TradeYellowShard
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_TradeGreenShard
|
|
|
|
case 3, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsBG:: @ 8270D94
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_BG, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeBlueShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_TradeGreenShard
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRBG:: @ 8270DC5
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_RBG, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeRedShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_TradeBlueShard
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_TradeGreenShard
|
|
|
|
case 3, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsYBG:: @ 8270E01
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_YBG, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeYellowShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_TradeBlueShard
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_TradeGreenShard
|
|
|
|
case 3, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardOptionsRYBG:: @ 8270E3D
|
2019-09-19 06:56:51 +02:00
|
|
|
multichoice 0, 0, MULTI_SHARDS_RYBG, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
switch VAR_RESULT
|
2019-11-02 07:19:44 +01:00
|
|
|
case 0, Route124_DivingTreasureHuntersHouse_EventScript_TradeRedShard
|
|
|
|
case 1, Route124_DivingTreasureHuntersHouse_EventScript_TradeYellowShard
|
|
|
|
case 2, Route124_DivingTreasureHuntersHouse_EventScript_TradeBlueShard
|
|
|
|
case 3, Route124_DivingTreasureHuntersHouse_EventScript_TradeGreenShard
|
|
|
|
case 4, Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_TradeRedShard:: @ 8270E84
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_RED_SHARD
|
|
|
|
setvar VAR_0x8009, ITEM_FIRE_STONE
|
2019-11-02 07:19:44 +01:00
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_TryTradeShard
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_TradeYellowShard:: @ 8270E93
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_YELLOW_SHARD
|
|
|
|
setvar VAR_0x8009, ITEM_THUNDER_STONE
|
2019-11-02 07:19:44 +01:00
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_TryTradeShard
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_TradeBlueShard:: @ 8270EA2
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_BLUE_SHARD
|
|
|
|
setvar VAR_0x8009, ITEM_WATER_STONE
|
2019-11-02 07:19:44 +01:00
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_TryTradeShard
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_TradeGreenShard:: @ 8270EB1
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_0x8008, ITEM_GREEN_SHARD
|
|
|
|
setvar VAR_0x8009, ITEM_LEAF_STONE
|
2019-11-02 07:19:44 +01:00
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_TryTradeShard
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_TryTradeShard:: @ 8270EC0
|
2017-11-10 02:21:31 +01:00
|
|
|
bufferitemname 0, VAR_0x8008
|
|
|
|
bufferitemname 1, VAR_0x8009
|
2019-11-02 07:19:44 +01:00
|
|
|
msgbox Route124_DivingTreasureHuntersHouse_Text_YoullTradeShardForStone, MSGBOX_YESNO
|
2019-11-02 16:50:07 +01:00
|
|
|
compare VAR_RESULT, NO
|
2019-11-02 07:19:44 +01:00
|
|
|
goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
checkitemspace VAR_0x8009, 1
|
2019-11-02 07:19:44 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_TradeShard
|
2017-11-10 02:21:31 +01:00
|
|
|
checkitem VAR_0x8008, 2
|
2019-11-02 07:19:44 +01:00
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_TradeShard
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_BagFull
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_TradeShard:: @ 8270F01
|
2020-01-13 05:24:52 +01:00
|
|
|
removeitem VAR_0x8008
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem VAR_0x8009
|
2019-11-02 07:19:44 +01:00
|
|
|
msgbox Route124_DivingTreasureHuntersHouse_Text_ItsADeal, MSGBOX_DEFAULT
|
|
|
|
call Route124_DivingTreasureHuntersHouse_EventScript_GetPlayersShards
|
2018-05-19 18:02:43 +02:00
|
|
|
compare VAR_TEMP_1, 0
|
2019-11-02 07:19:44 +01:00
|
|
|
goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_EndTrade
|
|
|
|
msgbox Route124_DivingTreasureHuntersHouse_Text_TradeSomethingElse, MSGBOX_YESNO
|
2019-11-02 16:50:07 +01:00
|
|
|
compare VAR_RESULT, YES
|
2019-11-02 07:19:44 +01:00
|
|
|
goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_ShowTradeOptions
|
|
|
|
goto Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_BagFull:: @ 8270F43
|
|
|
|
msgbox Route124_DivingTreasureHuntersHouse_Text_BagFull, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_DeclineTrade:: @ 8270F4D
|
|
|
|
msgbox Route124_DivingTreasureHuntersHouse_Text_ComeBackIfYouChangeMind, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_NoShards:: @ 8270F57
|
|
|
|
msgbox Route124_DivingTreasureHuntersHouse_Text_YouHaventGotAnyShards, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_EndTrade:: @ 8270F61
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_EventScript_ShardTradeBoard:: @ 8270F63
|
|
|
|
msgbox Route124_DivingTreasureHuntersHouse_Text_ShardTradeBoard, MSGBOX_SIGN
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_Text_Greeting: @ 8270F6C
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "I'm the DIVING TREASURE HUNTER!\p"
|
|
|
|
.string "I'm the awesome dude who makes\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "deep-sea dives to gather treasures\l"
|
|
|
|
.string "resting at the bottom.$"
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_Text_HaveYouSeenAnyShards: @ 8270FE5
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Tell me, have you seen any SHARDS of\n"
|
|
|
|
.string "tools made in ancient times?$"
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_Text_YouHaventGotAnyShards: @ 8271027
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "You haven't got any treasures\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "for me…\p"
|
|
|
|
.string "If you see any SHARDS, like the RED\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "SHARD, you've got to trade it with me!$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_Text_ThatsAShardIllTradeYou: @ 8271098
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Oh, hey! That…\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "That's a SHARD! I'm looking for those!\p"
|
|
|
|
.string "Oh, man, you've got to trade that\n"
|
|
|
|
.string "with me! I'll give you something good!$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_Text_WhatDoYouWantToTrade: @ 8271117
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "What do you want to trade?$"
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_Text_YoullTradeShardForStone: @ 8271132
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "You'll trade your {STR_VAR_1} for\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "my {STR_VAR_2}, then?$"
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_Text_ItsADeal: @ 8271158
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "It's a done deal!\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Use that wisely!$"
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_Text_TradeSomethingElse: @ 827117B
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Do you want to trade something else?$"
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_Text_BagFull: @ 82711A0
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Whoops, your BAG's full.\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Get rid of some items, friend!$"
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_Text_ComeBackIfYouChangeMind: @ 82711D8
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "No? That's a downer.\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Well, if you change your mind, come back.$"
|
|
|
|
|
2019-11-02 07:19:44 +01:00
|
|
|
Route124_DivingTreasureHuntersHouse_Text_ShardTradeBoard: @ 8271217
|
2018-07-25 06:18:23 +02:00
|
|
|
.string "{CLEAR_TO 0x0a}Wanted item{CLEAR_TO 0x7c}Trade item\n"
|
|
|
|
.string "{CLEAR_TO 0x0f}RED SHARD{CLEAR_TO 0x59}{LEFT_ARROW}{RIGHT_ARROW}{CLEAR_TO 0x7b}FIRE STONE{CLEAR_TO 0xc8}\p"
|
|
|
|
.string "{CLEAR_TO 0x0a}Wanted item{CLEAR_TO 0x7c}Trade item\n"
|
|
|
|
.string "{CLEAR_TO 0x06}YELLOW SHARD{CLEAR_TO 0x59}{LEFT_ARROW}{RIGHT_ARROW}{CLEAR_TO 0x73}THUNDERSTONE{CLEAR_TO 0xc8}\p"
|
|
|
|
.string "{CLEAR_TO 0x0a}Wanted item{CLEAR_TO 0x7c}Trade item\n"
|
|
|
|
.string "{CLEAR_TO 0x0c}BLUE SHARD{CLEAR_TO 0x59}{LEFT_ARROW}{RIGHT_ARROW}{CLEAR_TO 0x79}WATER STONE{CLEAR_TO 0xc8}\p"
|
|
|
|
.string "{CLEAR_TO 0x0a}Wanted item{CLEAR_TO 0x7c}Trade item\n"
|
|
|
|
.string "{CLEAR_TO 0x08}GREEN SHARD{CLEAR_TO 0x59}{LEFT_ARROW}{RIGHT_ARROW}{CLEAR_TO 0x7b}LEAF STONE$"
|