Changed script sections to use html code tag, to prevent text running off-screen
No edit summary |
(Changed script sections to use html code tag, to prevent text running off-screen) |
||
| Line 43: | Line 43: | ||
== Weapon swapping scripts == | == Weapon swapping scripts == | ||
NOTE: When copying the scripts, make sure they end up on ONE line. | NOTE: When copying the scripts, '''make sure they end up on ONE line.''' | ||
Also, you will NEED to change the offhandBag, offhandBagSlot and mainhandBag, mainhandBagSlot names to actual numbers, as the scripts will NOT fit in a macro as it is. | Also, you will NEED to change the offhandBag, offhandBagSlot and mainhandBag, mainhandBagSlot names to actual numbers, as the scripts will NOT fit in a macro as it is. | ||
| Line 51: | Line 51: | ||
offhandBag, offhandBagSlot and mainhandBag, mainhandBagSlot need to be specified (duh). | offhandBag, offhandBagSlot and mainhandBag, mainhandBagSlot need to be specified (duh). | ||
<code> | |||
/script if ( not CursorHasItem() ) then PickupContainerItem(mainhandBag, mainhandBagSlot); PickupInventoryItem(16); PickupContainerItem(mainhandBag, mainhandBagSlot); PickupContainerItem(offhandBag, offhandBagSlot); PickupInventoryItem(17); PickupContainerItem(offhandBag, offhandBagSlot); end | |||
</code> | |||
=== From mainhand to mainhand/offhand === | === From mainhand to mainhand/offhand === | ||
| Line 59: | Line 61: | ||
Weapon in main hand will end up in mainhandBag, mainhandBagSlot. | Weapon in main hand will end up in mainhandBag, mainhandBagSlot. | ||
<code> | |||
/script if ( not CursorHasItem() ) then PickupContainerItem(mainhandBag, mainhandBagSlot); PickupInventoryItem(16); PickupContainerItem(mainhandBag, mainhandBagSlot); PickupContainerItem(offhandBag, offhandBagSlot); PickupInventoryItem(17); if ( CursorHasItem() ) then PickupContainerItem(offhandBag, offhandBagSlot); end end | |||
</code> | |||
=== From mainhand/offhand to mainhand === | === From mainhand/offhand to mainhand === | ||
| Line 67: | Line 71: | ||
Weapons will end up on the slots specified. | Weapons will end up on the slots specified. | ||
<code> | |||
/script if ( not CursorHasItem() ) then PickupInventoryItem(17); if ( CursorHasItem() ) then PickupContainerItem(offhandBag, offhandBagSlot); end PickupContainerItem(mainhandBag, mainhandBagSlot); PickupInventoryItem(16); PickupContainerItem(mainhandBag, mainhandBagSlot); end | |||
</code> | |||
=== From mainhand to mainhand === | === From mainhand to mainhand === | ||
| Line 75: | Line 81: | ||
The equipped weapon will end up on mainhandBag, mainhandBagSlot. | The equipped weapon will end up on mainhandBag, mainhandBagSlot. | ||
<code> | |||
/script if ( not CursorHasItem() ) then PickupContainerItem(mainhandBag, mainhandBagSlot); PickupInventoryItem(16); PickupContainerItem(mainhandBag, mainhandBagSlot); end | |||
</code> | |||
== With Cosmos == | == With Cosmos == | ||