read

WeaponQuickSwap

[Data:09/22/2007 02:16:05] From:  [Fontb m s]
DescriptionThis Add-on adds two functions to the scripting namespace called:WeaponSwap(...);MageWeaponSwap(...);The arguments are pairs of weapons to be held in the main hand and offhand respectively. For example, if you want to put a 'Sword of theBlack Knight' in your main, and a 'Johnsonville Brat' in the off-hand,that is:/script WeaponSwap('Sword of the Black Knight','Johnsonville Brat');But you're thinking. 'Bry, I could already do that pretty easily.' The fun is that you can specify a second set of equipment to be swapped in if the first is already in place. This macro would switch between just holding a 'Sharpened Letter Opener' in the main hand (nothing off-hand) and two 'Mace of Ultimate Whompitude' in each hand./script WeaponSwap('Sharpened Letter Opener', '','Mace of Ultimate Whompitude', 'Mace of Ultimate Whompitude');If you do not wish to change whatever is in that a slot, a wildcard character '*' can be used./script WeaponSwap('Sword', 'Dagger1', 'Dagger2', '*');Leaves Dagger1 in offhand when switching to set 2. Note that you canget yourself in trouble if you use too many wildcards:/script WeaponSwap('*', 'Dagger1', 'Sword', '*');That probsbly won't do anything once the Sword is in the main and thedagger is in the offhand. Think your wildcard usage through.Note: As as design decision, the names are CASE SENSITIVE. 'Misspelled Swoard' and 'misspelled swoard' are not the same. Type itexactly as it appears in your inventory. I did it this way to avoidlowercasing a bunch of immutable strings every time you want to switch.Interesting facts about this script:-- Slot lock events are used to detect when it is safe to move aweapon. Prevents hang ups found in other scripts and Add-ons.-- Uses LinkText to detect item names rather that creating aGameToolTip descendant. More efficient? Hells yeah.If you get an error using this, make sure you report it with your macro line *as well as* the position of where the items where before you ran the macro.



admin

PrvFizzwidget Feed-O-Matic
NextYatlas 0.7.7
About      
addons


 

www.xdown.co
www.70DAY.COM    
www.FF112.COM   
www.WOWADDONSHOME.COM  
www.wowui007.com

sound drivers download

www.ff112.com
http://www.world-of-warcraft-addons.net
www.wow-free-hacks.com
http://www.world-of-warcraft-hacks.com