<RetVar> = The command return will be stored in this variable.
<Var/Ware> = The ware that you want the maintype of.
Each ware belongs to a main and sub-category called maintype and subtype.
This command returns the specified ware's numerical 'maintype'.
Example:
$ware.maintype = get maintype of ware Fragmentation Bomb Launcher
As a Fragmentation Bomb Launcher is a laser or weapon, it is maintype 8 , so $ware.maintype will be 8
Additional Information:
A list of Maintypes and their Subtypes can be found here.
Command Location:
- »» Trade Commands
<RetVar> = get maintype of ware <Var/Ware>