Established macro command
Command resolution:
/ script if (Not Cursorhasitem (0)) THEN PICKUPCONTAINERITEM (0, 1);
PickupinventoryItem (16); END
NOT CURSORHASITEM (0): 0 For your primary bar, it is the rightmost bag, you can change 1-4, decide according to your hobby
PickupContainerItem (0, 1): Here 0 represents which backpack you, please pay attention to the previous numbers, that is, you set the first few packages, here is the same as the previous figure. 1 Representation of the position inside (from left to right, from top to bottom)
PickupinventoryItem (16): The 16 here is a representative to change the main weapon. If you want to change the counterweight weapon, you can change him to 17.
Supplement: Since my sword is a binding honest, I have the above stuff, and the sword that can be used by the main owners will not be so troublesome. The function code of the main deputy hand weapon interchange is:
/ script pickupinventoryItem (16); PickupinventoryItem (17);