Ohren 106 Posted March 31, 2013 Share Posted March 31, 2013 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 More sharing options...
Ohren 106 Posted March 31, 2013 Author Share Posted March 31, 2013 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. Link to comment https://wrobot.eu/forums/topic/291-enhancement-shaman-weapon-buff-condition/#findComment-1892 Share on other sites More sharing options...
Droidz 2738 Posted March 31, 2013 Share Posted March 31, 2013 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 Ohren 1 Link to comment https://wrobot.eu/forums/topic/291-enhancement-shaman-weapon-buff-condition/#findComment-1894 Share on other sites More sharing options...
Ohren 106 Posted March 31, 2013 Author Share Posted March 31, 2013 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. :) Link to comment https://wrobot.eu/forums/topic/291-enhancement-shaman-weapon-buff-condition/#findComment-1897 Share on other sites More sharing options...
Ohren 106 Posted March 31, 2013 Author Share Posted March 31, 2013 Also, only works on single line. Using the LUA on multiple lines caused an issue. Link to comment https://wrobot.eu/forums/topic/291-enhancement-shaman-weapon-buff-condition/#findComment-1900 Share on other sites More sharing options...
Droidz 2738 Posted April 1, 2013 Share Posted April 1, 2013 Also, only works on single line. Using the LUA on multiple lines caused an issue. I fix it in next update Link to comment https://wrobot.eu/forums/topic/291-enhancement-shaman-weapon-buff-condition/#findComment-1914 Share on other sites More sharing options...
Ohren 106 Posted April 16, 2013 Author Share Posted April 16, 2013 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! Link to comment https://wrobot.eu/forums/topic/291-enhancement-shaman-weapon-buff-condition/#findComment-2312 Share on other sites More sharing options...
Bear T.O.E. 63 Posted November 11, 2013 Share Posted November 11, 2013 Ohren +REP!!!! I have been looking for this script for DAYS apon DAYS!!!!! Link to comment https://wrobot.eu/forums/topic/291-enhancement-shaman-weapon-buff-condition/#findComment-4796 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now