Da93niel1 0 Posted January 27, 2022 Share Posted January 27, 2022 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 Link to comment https://wrobot.eu/forums/topic/13904-party-dispelling/ Share on other sites More sharing options...
Matenia 629 Posted January 27, 2022 Share Posted January 27, 2022 (edited) 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, 2022 by Matenia Link to comment https://wrobot.eu/forums/topic/13904-party-dispelling/#findComment-64687 Share on other sites More sharing options...
Da93niel1 0 Posted January 27, 2022 Author Share Posted January 27, 2022 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" ? Link to comment https://wrobot.eu/forums/topic/13904-party-dispelling/#findComment-64688 Share on other sites More sharing options...
Matenia 629 Posted January 27, 2022 Share Posted January 27, 2022 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 Link to comment https://wrobot.eu/forums/topic/13904-party-dispelling/#findComment-64689 Share on other sites More sharing options...
Matenia 629 Posted January 27, 2022 Share Posted January 27, 2022 (edited) 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, 2022 by Matenia Link to comment https://wrobot.eu/forums/topic/13904-party-dispelling/#findComment-64690 Share on other sites More sharing options...
iakovos1990 0 Posted January 19, 2023 Share Posted January 19, 2023 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????? Link to comment https://wrobot.eu/forums/topic/13904-party-dispelling/#findComment-67545 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