![]() |
Routines |
| Prev: 61163 | Up: Map | Next: 61180 |
|
Used by the routines at Validate_Take_MarasBody, Validate_Take_Witch, Validate_Take_Food, Validate_Take_SilverCoin, Validate_Take_Bow, Validate_Take_Arrows, Validate_Take_Furnace, Validate_Take_Log, Validate_Take_Horn, Validate_Take_OpenChest, Validate_Take_Key and Validate_Take_Rope.
Places the item in the player's inventory and acknowledges success.
|
||||
| TakeItem | 61165 | LD C,1 | Load C with 1 which indicates the item will be in the players inventory. | |
| 61167 | CALL UpdateObjectLocation | Call UpdateObjectLocation. | ||
| 61170 | LD HL,47720 | Increment *Count_InventoryItems by one. | ||
| 61173 | INC (HL) | |||
|
Print "O.K.".
|
||||
| 61174 | LD HL,48347 | HL=Messaging_OK. | ||
| 61177 | JP PrintResponse | Jump to PrintResponse. | ||
|
View the equivalent code in;
|
||||
| Prev: 61163 | Up: Map | Next: 61180 |