WoW:Item equipping: Difference between revisions
Jump to navigation
Jump to search
→Basics
(/equip and /unequip no longer work, unsure about other two) |
(→Basics) |
||
| Line 1: | Line 1: | ||
== Basics == | == Basics == | ||
/script PickupContainerItem(bag, slot) | <code>/script PickupContainerItem(bag, slot)</code> | ||
Bags count from 0 to 4 from the right, 0 being your backpack and 4 being your leftmost pack. Slots are numbered starting at the topmost, leftmost slot and counting left to right, top to bottom. For example, a 10-slot pack is numbered like this: | |||
<code> | |||
X X 1 2<br> | |||
3 4 5 6<br> | |||
7 8 9 10 | |||
</code> | |||
The basic command | To access the first slot on the rightmost bag, the script would be <code>/script PickUpContainerItem (4, 1);</code> | ||
The basic command works like this: | |||
* If no item in cursor: | * If no item in cursor: | ||
| Line 49: | Line 56: | ||
</code> | </code> | ||
-- [[User:Trinkit|Trinkit]] | -- [[User:Trinkit|Trinkit]] | ||
The best method for ensuring that you do not accidentally sell anything to a vendor is: | |||
<code> | |||
/script CloseMerchant(); | |||
</code> | |||
The aforementioned if-then script can still fail if you are in a vendor window and target another entity, whereas the CloseMerchant script will always close any merchant window. It's also much shorter, so you can fit more lines of item swapping into the character-limited macro box. --[[User:TheRayven|TheRayven]] | |||
== Multiple commands == | == Multiple commands == | ||