![]() |
Routines |
| Prev: 62459 | Up: Map | Next: 62560 |
|
Oil the rusty chest with the bottle of oil.
|
||||
| Kill_Chest | 62506 | LD A,58 | Call IsObjectInInventory with item 58: "A bottle of oil.". | |
| 62508 | CALL IsObjectInInventory | |||
| 62511 | JR Z,Kill_Chest_0 | Jump to Kill_Chest_0 if the Z flag is set. | ||
|
Print "You have no oil.".
|
||||
| 62513 | LD HL,56614 | HL=Messaging_YouHaveNoOil. | ||
| 62516 | JP PrintResponse | Jump to PrintResponse. | ||
| Kill_Chest_0 | 62519 | LD A,78 | Call ValidateItemPresent with item 78: "A venomous spider.". | |
| 62521 | CALL ValidateItemPresent | |||
| 62524 | JR NZ,Kill_Chest_1 | Jump to Kill_Chest_1 if the Z flag is not set. | ||
|
Print "The spider prevents you.".
|
||||
| 62526 | LD HL,53846 | HL=Messaging_TheSpiderPreventsYou. | ||
| 62529 | JP PrintResponse | Jump to PrintResponse. | ||
| Kill_Chest_1 | 62532 | LD BC,14903 | Call TransformItem to transform "A bottle of oil." into "A bottle.". | |
| 62535 | CALL TransformItem | |||
| 62538 | LD A,80 | Call ValidateItemPresent with item 80: "A rusty,iron chest.". | ||
| 62540 | CALL ValidateItemPresent | |||
| 62543 | JP NZ,Response_OK_GameLoop | Jump to Response_OK_GameLoop if the Z flag is not set. | ||
| 62546 | LD BC,20561 | Call TransformItem to transform "A rusty,iron chest." into "A chest with oiled hinges.". | ||
| 62549 | CALL TransformItem | |||
| 62552 | LD A,2 | Call AddToScore with 2. | ||
| 62554 | CALL AddToScore | |||
| 62557 | JP Response_OK_GameLoop | Jump to Response_OK_GameLoop. | ||
| Prev: 62459 | Up: Map | Next: 62560 |