Juicebar 0 Posted June 12, 2017 Share Posted June 12, 2017 Hi All, I've just purchased this bot and attempted to make my own fightclass. The first thing that I wanted to do was to create a Priest that casts SW:P first, and then other spells. I have been having troubles getting the spell to go off. Any assistance with this would be great, thanks! priest.xml 13 Jun 2017 00H49.log.html Link to comment https://wrobot.eu/forums/topic/6093-priest-wont-cast-shadow-word-pain-log-and-fight-class-attached/ Share on other sites More sharing options...
jrouten 1 Posted June 12, 2017 Share Posted June 12, 2017 For your "Target Buff" condition, try changing Need to True. Also, it's better practice to use "Buff Casted By Me" instead of "Target Buff", in case another priest has cast SWP on the target. Link to comment https://wrobot.eu/forums/topic/6093-priest-wont-cast-shadow-word-pain-log-and-fight-class-attached/#findComment-27710 Share on other sites More sharing options...
Matenia 628 Posted June 14, 2017 Share Posted June 14, 2017 @Droidz this is a problem with TBC 2.4.3, where on players HaveBuff doesn't work (I tried C# API too). It works on NPCs. Or at least, in Battlegrounder mode this is bugged, but doing it normally while leveling works fine. Link to comment https://wrobot.eu/forums/topic/6093-priest-wont-cast-shadow-word-pain-log-and-fight-class-attached/#findComment-27771 Share on other sites More sharing options...
Droidz 2738 Posted June 22, 2017 Share Posted June 22, 2017 On 14/06/2017 at 11:57 AM, Matenia said: @Droidz this is a problem with TBC 2.4.3, where on players HaveBuff doesn't work (I tried C# API too). It works on NPCs. Or at least, in Battlegrounder mode this is bugged, but doing it normally while leveling works fine. Hello, Are you sure? I cannot reproduct this problem On 12/06/2017 at 11:55 PM, jrouten said: For your "Target Buff" condition, try changing Need to True. Also, it's better practice to use "Buff Casted By Me" instead of "Target Buff", in case another priest has cast SWP on the target. Hello, "Buff Casted By Me" don't works on TBC Link to comment https://wrobot.eu/forums/topic/6093-priest-wont-cast-shadow-word-pain-log-and-fight-class-attached/#findComment-28183 Share on other sites More sharing options...
Matenia 628 Posted June 22, 2017 Share Posted June 22, 2017 Yes, it works in PvE I think, but not in PvP. I made this Extensions to help it atm: public static bool HaveDebuff(this WoWUnit unit, string name) { if (unit == null) return false; var tmpFocus = ObjectManager.Me.FocusGuid; ObjectManager.Me.FocusGuid = unit.Guid; string luaString = @"hasDebuff = false; for i=1,40 do local name, rank, iconTexture, count, debuffType, duration, timeLeft = UnitDebuff(""focus"", i); if name == ""{0}"" then hasDebuff = true end end"; bool hasDebuffType = Lua.LuaDoString<bool>(string.Format(luaString, name), "hasDebuff"); ObjectManager.Me.FocusGuid = tmpFocus; return hasDebuffType; } Link to comment https://wrobot.eu/forums/topic/6093-priest-wont-cast-shadow-word-pain-log-and-fight-class-attached/#findComment-28186 Share on other sites More sharing options...
Droidz 2738 Posted July 14, 2017 Share Posted July 14, 2017 Hello, if you can confirm me that the problem is resolved with new update Link to comment https://wrobot.eu/forums/topic/6093-priest-wont-cast-shadow-word-pain-log-and-fight-class-attached/#findComment-29323 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