- Code: Select all
/script PickupInventoryItem(17); PickupInventoryItem(16);
Switch weapons between main-hand and off-hand:
But notice! both weapons should be
one-handed (i mean one-handed weapon marked with
"main-hand" label won't be placed in off-hand slot)
P.S. the same function but more safe method:
- Code: Select all
/script local a,b=CursorHasItem,PickupInventoryItem;if(not a())then CloseMerchant();b(17);if(a())then b(16);end end