![]()  | 
Routines | 
| Prev: 61734 | Up: Map | Next: 61782 | 
| 
 | 
||||
| Process_GiveSaltToGuard | 61748 | LD A,25 | Call IsPlayerCarryingItem with item 25: "Some salt". | |
| 61750 | CALL IsPlayerCarryingItem | |||
| 61753 | LD A,E | A=E. | ||
| 61754 | CALL Handler_DestroyItemEvent | Call Handler_DestroyItemEvent. | ||
| 
 
The guard has been given an item so handle the inventory count.
 
 | 
||||
| 61757 | LD HL,42896 | Decrease *Count_InventoryItems by one. | ||
| 61760 | DEC (HL) | |||
| 61761 | LD A,70 | Call Handler_DestroyItemEvent with item 70: "A guard at the entrance". | ||
| 61763 | CALL Handler_DestroyItemEvent | |||
| 61766 | LD A,4 | Call AddToScore to add 4 points to the score. | ||
| 61768 | CALL AddToScore | |||
| 61771 | LD A,73 | Write 73 to *59504 to open up northbound access to The Main Courtyard from The Cadwell Hillfort. | ||
| 61773 | LD (59504),A | |||
| 
 
Print "The guard accepts the salt as it
is sorely needed by the hillfort
tribe.He disappears inside.".
 
 | 
||||
| 61776 | LD HL,54577 | HL=Messaging_GuardAcceptsSalt. | ||
| 61779 | JP PrintStringAndNewline_Duplicate | Jump to PrintStringAndNewline_Duplicate. | ||
| Prev: 61734 | Up: Map | Next: 61782 |