• Opcode: 0x125
  • Short name: ADDITEM
  • Long name: Add item to party

Argument

none

Stack

Quantity

Item ID

ADDITEM

Description

Does exactly what you think. See Item Codes for a list of item codes. The handler pops the item ID and quantity and calls the inventory add routine (AddItemToInventory).

PC handler: SCRIPT_ADDITEM.

Function addresses

Function Address Description
SCRIPT_ADDITEM 0x522380 Field script opcode handler (verified IDA function)