Prev: 60197 Up: Map Next: 60233
60209: Drop: Is Player Holding Item
Input
A Object ID
Drop_IsPlayerHoldingItem 60209 CALL IsObjectInInventory Call IsObjectInInventory.
Print "You're not carrying ".
60212 LD HL,45457 HL=Messaging_YoureNotCarrying.
60215 JP NZ,PrintStringAndItThemHandler Jump to PrintStringAndItThemHandler if the item is not being held.
The player has the item in their inventory so drop it.
DropItem 60218 LD B,E Copy the item ID into B.
60219 LD A,(44749) C=*CurrentRoom.
60222 LD C,A
Alter the items location from the players inventory to the current room ID.
60223 CALL SetItemRoom Call SetItemRoom.
60226 LD HL,44698 Decrease *Count_InventoryItems by one.
60229 DEC (HL)
60230 JP Response_OK_GameLoop Jump to Response_OK_GameLoop.
Prev: 60197 Up: Map Next: 60233