Prev: 43615 Up: Map Next: 43658
43630: Handler: Pick Up Item
Handler_PickUpItem 43630 JP NZ,Handler_RunScript_10 The item stays where it is.
43633 LD A,(IX+1) A=*IX+1.
43636 CALL Handler_RunScript_15 Call Handler_RunScript_15.
Call Handler_UpdateItemLocation using the item ID, to change the location to 1 (to the players inventory).
43639 LD B,A B=A.
43640 LD C,1 C=1.
43642 CALL Handler_UpdateItemLocation Call Handler_UpdateItemLocation.
Player has picked up an item so handle the inventory count.
43645 LD HL,41170 Increment *Count_InventoryItems by one.
43648 INC (HL)
Print "O.K.".
43649 LD HL,26 HL=Messaging_OK.
43652 CALL PrintCompressedStringAndNewline Call PrintCompressedStringAndNewline.
43655 JP Handler_RunScript_10 Jump to Handler_RunScript_10.
View the equivalent code in;
Prev: 43615 Up: Map Next: 43658