Prev: 42540 Up: Map Next: 42555
42549: Is Object In Inventory?
Used by the routines at 43046, 43058, 44588 and 44638.
Checks if a given item is in the players inventory or not.
Input
A Object ID
Output
F The zero flag is set if the item is in the players inventory
The ItemLocator routine returns with A containing the room ID of the requested object, 0 for when the item is disabled or 1 for the players inventory.
CheckObjectInInventory 42549 CALL ItemLocator Call ItemLocator.
42552 CP 1 Compare A with 1 (inventory).
42554 RET Return.
View the equivalent code in;
Prev: 42540 Up: Map Next: 42555