Prev: 60773 Up: Map Next: 60849
60811: Take: Oil
Take the bottle of oil, or fill an empty bottle.
Take_Oil 60811 LD A,58 Call IsObjectInInventory with item 58: "A bottle of oil.".
60813 CALL IsObjectInInventory
60816 LD A,58 Call Take_IsPlayerHoldingItem if "A bottle of oil." is in the inventory.
60818 CALL Z,Take_IsPlayerHoldingItem
60821 LD B,A Jump to Handler_CheckPlayerInventory_PickUpItem if "A bottle of oil." is present.
60822 CALL ValidateItemPresent
60825 LD A,B
60826 JP Z,Handler_CheckPlayerInventory_PickUpItem
60829 LD A,55 Call IsObjectInInventory with item 55: "A bottle.".
60831 CALL IsObjectInInventory
60834 JP NZ,Response_YouHaveNothingToCarryItIn Jump to Response_YouHaveNothingToCarryItIn if "A bottle." is not in the inventory.
60837 LD BC,14138 Call TransformItem to transform "A bottle." into "A bottle of oil.".
60840 CALL TransformItem
Print "You now have a bottle of oil.".
60843 LD HL,54119 HL=Messaging_YouNowHaveABottleOfOil.
60846 JP PrintResponse Jump to PrintResponse.
Prev: 60773 Up: Map Next: 60849