View Single Post
09-29-06, 09:18 PM   #85
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
Originally Posted by bril
Quick question, I created a script that will allow me to swap between two weapon sets but my problem is figuring out how to activate it.

Here is the script:
if IsSetEquipped("Sword") then
EquipSet("Dagger-2")
else
EquipSet("Sword")
end

It tests out fine, so what I am looking for is a way to tie this to a key command? Thanks for any help and great mod!
You can make a macro:

/script EquipSet(IsSetEquipped("Sword") and "Dagger-2" or "Sword")

There's a ToggleSet() also if you're looking to just toggle "Sword"

/script ToggleSet("Sword")
  Reply With Quote