Problem with Item.Spell on procing weapons
Posted: Wed Mar 09, 2005 11:46 pm
Alright, I've been workin on merging the good parts of the zerker.mac and the good parts of the rh.mac into one macro, also removing some of the params, etc.
The problem that I'm having is getting one part of the rh code to work. It didn't work when I used RH, and I'd like to get it working to put it into my new macro.
This code happens at the beginning of a combat loop.
While running the macro, I did several echo commands, and everything seems to be in order, except it doesn't recognise ${weapon1}.spell.
Before any combat takes place:
/echo ${wstype} yields Beneficial
/echo ${doSwitch} yields TRUE
/echo ${weapon1} yields Ancient Prismatic Brawl Stick
/echo ${weapon2} yields Kerasian Axe of Ire
/echo ${itemspellname} yields None
After combat takes place:
/echo ${wstype} yields Beneficial
/echo ${doSwitch} yields TRUE
/echo ${weapon1} yields Ancient Prismatic Brawl Stick
/echo ${weapon2} yields Kerasian Axe of Ire
/echo ${itemspellname} yields NULL
It doesn't look like it sees a proc on the Ancient Prismatic Brawl Stick; therefore, it won't check my buffs to see if Avatar is absent, and thus it won't swap out the weapons.
Any clue on how to fix this one?
The problem that I'm having is getting one part of the rh code to work. It didn't work when I used RH, and I'd like to get it working to put it into my new macro.
This code happens at the beginning of a combat loop.
Code: Select all
/if (${doSwitch} && ${wstype.Equal[Beneficial]}) {
/varset itemspellname ${FindItem[${weapon1}].Spell}
/if (${itemspellname.NotEqual[${Me.Buff[${itemspellname}]}]} && !${FindItem[${weapon1}].InvSlot.Name.Equal[mainhand]} && !${FindItem[${weapon1}].InvSlot.Name.Equal[offhand]}) {
/if (${verbosity}>=1) /${channel} ** Beneficial proc-weapon swapping...
/call Weapon_Swap "${weapon1}" "${weapon2}"
}
}
Before any combat takes place:
/echo ${wstype} yields Beneficial
/echo ${doSwitch} yields TRUE
/echo ${weapon1} yields Ancient Prismatic Brawl Stick
/echo ${weapon2} yields Kerasian Axe of Ire
/echo ${itemspellname} yields None
After combat takes place:
/echo ${wstype} yields Beneficial
/echo ${doSwitch} yields TRUE
/echo ${weapon1} yields Ancient Prismatic Brawl Stick
/echo ${weapon2} yields Kerasian Axe of Ire
/echo ${itemspellname} yields NULL
It doesn't look like it sees a proc on the Ancient Prismatic Brawl Stick; therefore, it won't check my buffs to see if Avatar is absent, and thus it won't swap out the weapons.
Any clue on how to fix this one?