Prev: EB31 Up: Map Next: EB54
EB49: Is Player Carrying Item
Input
A Item ID
Output
F Z flag set if the item is in the players inventory
IsPlayerCarryingItem EB49 CALL IsObjectInInventory Call IsObjectInInventory.
EB4C RET Z Return if the item is in the players inventory.
EB4D POP HL Restore HL from the stack.
Print "You're not carrying ".
EB4E LD HL,$B191 HL=Messaging_YoureNotCarrying.
EB51 JP PrintStringAndItThemHandler Jump to PrintStringAndItThemHandler.
View the equivalent code in;
Prev: EB31 Up: Map Next: EB54