Jump to content

Recommended Posts

Hi, i cant get my retri palladins in my party to dispell ather party mebers. Can any one help me?

image.png.e8560d9eda0922257e1cc7bc627e9888.png

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

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 by Matenia
Link to comment
https://wrobot.eu/forums/topic/13904-party-dispelling/#findComment-64687
Share on other sites

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

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 by Matenia
Link to comment
https://wrobot.eu/forums/topic/13904-party-dispelling/#findComment-64690
Share on other sites

  • 11 months later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...