Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Party dispelling

Featured Replies

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

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

  • 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" ?

 

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

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

  • 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?????

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.