GWA2 SellItem()

From GameRevision Wiki

Jump to: navigation, search

Description

Sells an item. Talk to the merchant first by using GoNPC().

Parameters

SellItem($aItem, $aQuantity = 0)

  • $aItem - An item struct or item ID.
  • $aQuantity - The amount to sell. 0 to sell the entire stack.

Usage

Selling the first item in your backpack (after talking to merchant):

$Item = GetItemBySlot(1, 1)
SellItem($Item)
Personal tools