Prev: F126 Up: Map Next: F156
F134: Process: Give Salt To The Guard
Process_GiveSaltToGuard F134 LD A,$19 Call IsPlayerCarryingItem with item 19: "Some salt".
F136 CALL IsPlayerCarryingItem
F139 LD A,E A=E.
F13A CALL Handler_DestroyItemEvent Call Handler_DestroyItemEvent.
The guard has been given an item so handle the inventory count.
F13D LD HL,$A790 Decrease *Count_InventoryItems by one.
F140 DEC (HL)
F141 LD A,$46 Call Handler_DestroyItemEvent with item 46: "A guard at the entrance".
F143 CALL Handler_DestroyItemEvent
F146 LD A,$04 Call AddToScore to add 04 points to the score.
F148 CALL AddToScore
F14B LD A,$49 Write 49 to *E870 to open up northbound access to The Main Courtyard from The Cadwell Hillfort.
F14D LD ($E870),A
Print "The guard accepts the salt as it is sorely needed by the hillfort tribe.He disappears inside.".
F150 LD HL,$D531 HL=Messaging_GuardAcceptsSalt.
F153 JP PrintStringAndNewline_Duplicate Jump to PrintStringAndNewline_Duplicate.
Prev: F126 Up: Map Next: F156