March 31, 201313 yr 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.
March 31, 201313 yr Author 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.
March 31, 201313 yr 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
March 31, 201313 yr Author Thank you very much! I was getting close to the solution, LUA scripts can make fight classes so much more effective. And I'm slowly getting a handle on it. :)
March 31, 201313 yr Author Also, only works on single line. Using the LUA on multiple lines caused an issue.
April 1, 201313 yr Also, only works on single line. Using the LUA on multiple lines caused an issue. I fix it in next update
April 16, 201313 yr Author 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!
Create an account or sign in to comment