Prev: F156 Up: Map Next: F191
F179: Process: Give The Iron To The Trader
Process_GiveIronToTrader F179 LD A,$23 Load item 23: "Some iron" into A.
Process_GiveIronToTrader_0 F17B CALL IsPlayerCarryingItem Call IsPlayerCarryingItem with the item passed inĀ A.
F17E LD A,E A=E.
F17F CALL Handler_DestroyItemEvent Call Handler_DestroyItemEvent.
F182 LD A,$3C Call Handler_DestroyItemEvent with item 3C: "A trader,selling some meat".
F184 CALL Handler_DestroyItemEvent
The trader has been given an item so handle the inventory count.
F187 LD HL,$A790 Decrease *Count_InventoryItems by one.
F18A DEC (HL)
Print "The trader takes it and says:- "Thank you!" before he quickly disappears into the crowd.".
F18B LD HL,$D5E7 HL=Messaging_TraderTakesItSaysThankYou.
F18E JP PrintStringAndNewline_Duplicate Jump to PrintStringAndNewline_Duplicate.
Prev: F156 Up: Map Next: F191