![]() |
Routines |
Prev: 61782 | Up: Map | Next: 61841 |
|
||||
Process_GiveIronToTrader | 61817 | LD A,35 | Load item 35: "Some iron" into A. | |
This entry point is used by the routines at Process_GiveSaltToTrader, Process_GiveHelmetToTrader, Process_GiveSwordToTrader and Process_GiveShieldToTrader.
|
||||
Process_GiveIronToTrader_0 | 61819 | CALL IsPlayerCarryingItem | Call IsPlayerCarryingItem with the item passed inĀ A. | |
61822 | LD A,E | A=E. | ||
61823 | CALL Handler_DestroyItemEvent | Call Handler_DestroyItemEvent. | ||
61826 | LD A,60 | Call Handler_DestroyItemEvent with item 60: "A trader,selling some meat". | ||
61828 | CALL Handler_DestroyItemEvent | |||
The trader has been given an item so handle the inventory count.
|
||||
61831 | LD HL,42896 | Decrease *Count_InventoryItems by one. | ||
61834 | DEC (HL) | |||
Print "The trader takes it and says:-
"Thank you!" before he quickly
disappears into the crowd.".
|
||||
61835 | LD HL,54759 | HL=Messaging_TraderTakesItSaysThankYou. | ||
61838 | JP PrintStringAndNewline_Duplicate | Jump to PrintStringAndNewline_Duplicate. |
Prev: 61782 | Up: Map | Next: 61841 |