Jump to content

Recommended Posts

Just wondering if anyone knows a way to check for Windfury buff on weapons for Enhancement Shamans. I can't think of anything and can't seem to get any LUA scripts to work.

Edit: retV = GetWeaponEnchantInfo("hasMainHandEnchant") is the LUA I am running. Currently, it is working (if I set it to only cast if retV = 1, it won't cast), but doing /run print (GetWeaponEnchantInfo("hasMainHandEnchant")) returns nil nil nil nil and checking for nil doesn't work.

Link to comment
https://wrobot.eu/forums/topic/291-enhancement-shaman-weapon-buff-condition/
Share on other sites

Also having issues with checking for totems. I added a screenshot that shows the returns (with and without an active totem) but not sure how to check that return with WRobot.

post-301-0-04808800-1364721666_thumb.jpg

Hi,

 

For totem ( http://www.wowwiki.com/API_GetTotemInfo ) you need to use lua code:

haveTotem, totemName, startTime, duration = GetTotemInfo(1)
 
if (haveTotem) then 
   retV = "1"
else
   retV = "0"
end

 

For enchant weapon ( http://www.wowpedia.org/API_GetWeaponEnchantInfo ):

 

hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges, hasThrownEnchant, thrownExpiration, thrownCharges
= GetWeaponEnchantInfo()
 
if (hasMainHandEnchant) then 
   retV = "1"
else
   retV = "0"
end
  • 3 weeks later...

I came up with another awesome one....

_, _, _, _, _, _, expires, _, _, _, _ = UnitDebuff("target", "Corruption") 
secs = (expires - GetTime())
if secs < 3 then 
	retV = 1
else 
	retV = 0
end

Checks the duration of the debuff you have on a target, and if it's close to expiring, it recasts it!

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...