January 27, 20224 yr Hi, i cant get my retri palladins in my party to dispell ather party mebers. Can any one help me? Lua script: cleanse = "no" for i=1, 40 do local _, _, _, _, dtype = UnitDebuff("player",i) if dtype == "Disease" or dtype == "Poison" or dtype == "Magic" then cleanse = "yes" end end
January 27, 20224 yr Well, for starters you've misspelled cleanse as clense where you're searching for it. You can also just make it then return true end and not scan for any value. Additionally, you're setting a "yes" and "no" string. Have you heard of boolean? You want to set true or false. Otherwise you need to adjust the editor to look for the string "yes", which makes no sense. Edited January 27, 20224 yr by Matenia
January 27, 20224 yr Author Im very new to this so im kinda bad. Bat this Script works fine to dispell itself bat not the party. I have not heard of boolean what is that? So i need to put cleanse = "no" to cleanse = "yes" ?
January 27, 20224 yr cleanse = false; for i=1, 40 do local _, _, _, _, dtype = UnitDebuff("player",i) if dtype == "Disease" or dtype == "Poison" or dtype == "Magic" then cleanse = true end end Return value var = cleanse Return value research true
January 27, 20224 yr Also, if you're looking to check buffs on party members, you need to replace -- UnitDebuff("player",i) UnitDebuff("party1",i) Otherwise you're dispelling party members if you have a debuff, which won't work. Additionally, this will only work for party1 but then try to dispel everyone. So you need to make your spell actually cast only on party1, not every party member Edited January 27, 20224 yr by Matenia
January 19, 20233 yr On 1/27/2022 at 2:28 PM, Matenia said: cleanse = false; for i=1, 40 do local _, _, _, _, dtype = UnitDebuff("player",i) if dtype == "Disease" or dtype == "Poison" or dtype == "Magic" then cleanse = true end end Return value var = cleanse Return value research true hi bro i need for the priest this spell Purify Disease!!! can show me how it work please?????
Create an account or sign in to comment