<RetVar> = The command return will be stored in this variable.
<Var/Number> = The maintype number of the ware you wish to get.
<Var/Number> = The subtype number of the ware of the maintype.
Each ware belongs to a main and sub-category called maintype and subtype.
This instruction returns the ware specified by the numerical 'maintype' and 'subtype' as entered in the command.
If a 'subtype' is specified that does not exist, the number is greater than the amount of subtypes for that maintype, this will result in a return of 'null'. This can be avoided by getting the number of 'subtypes' first using the '<RetVar> = get number of subtypes of maintype <Var/Number>' command.
Example:
$ware = get ware from maintype 8 and subtype 5
The $ware returned will be of 'maintype' 8 and 'subtype' 5. In this case, $ware will be Fragmentation Bomb Launcher
Additional Information:
A list of Maintypes and their Subtypes can be found here.
Command Location:
- »» Trade Commands
<RetVar> = get ware from maintype <Var/Number> and subtype <Var/Number>