Routines
Prev:
60209
Up:
Map
Next:
60244
60233: Is Player Carrying Item
Used by the routines at
Throw_MirrorToAnton
,
Throw_CoinToAnton
,
Throw_HoneyToBear
,
Throw_MeatToFalcon
,
Throw_HoneyToLizard
,
Throw_MeatToBear
,
Give_Frog
,
Throw_MoneyToGuard
,
Close_Bible
,
Use_Bottle
,
Wave_Flute
,
Wave_Mandolin
,
Play_BarrowightWithBible
,
Play_SerpentWithSongbird
,
Play_HydraWithSword
,
Play_HydraWithSpear
,
Play_VampireWithCross
,
Play_KnightWithAcid
,
Play_DragonWithSword
,
Play_WitchWithWater
,
Drink_WhitePotion
,
Drink_BlackPotion
,
Play_BatWithFalcon
,
Read_Wand
,
Close_Map
,
Close_Scroll
,
Wave_Lyre
and
Play_PirateWithDagger
.
Return if the item is held; otherwise tell the player they are not carrying it.
Input
A
Item ID
Output
F
Z flag set if the item is in the players inventory
IsPlayerCarryingItem
60233
CALL
IsObjectInInventory
Call
IsObjectInInventory
.
60236
RET Z
Return if the item is in the players inventory.
60237
POP HL
Restore
HL
from the stack.
Print "You're not carrying ".
60238
LD HL,45457
HL
=
Messaging_YoureNotCarrying
.
60241
JP
PrintStringAndItThemHandler
Jump to
PrintStringAndItThemHandler
.
View the equivalent code in;
Warlord
Prev:
60209
Up:
Map
Next:
60244