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.

Skull marked ?

Featured Replies

Hello,

 

You have lua functions GetRaidTargetIndex and SetRaidTarget (or SetRaidTargetIcon)

 

Samples:

 

Launch the spell id 109259 on the first boss with skull icon:

local SpellName = GetSpellInfo(109259)
for i = 1, 4, 1 do
	local UnitIdString = "boss" .. i
    if UnitExists(UnitIdString) then
		if GetRaidTargetIndex(UnitIdString) == 8 then
			CastSpellByName(SpellName, UnitIdString)
			return
		end
	end
end
Launch the spell id 109259 on the first raid target with skull icon (this code check the target of raid members):

local SpellName = GetSpellInfo(109259)
for i = 1, 40, 1 do
	local UnitIdString = "raid" .. i .. "target"
    if UnitExists(UnitIdString) then
		if GetRaidTargetIndex(UnitIdString) == 8 then
			CastSpellByName(SpellName, UnitIdString)
			return
		end
	end
end
Launch the spell id 109259 on the first party target with skull icon (this code check the target of party members):

local SpellName = GetSpellInfo(109259)
for i = 1, 4, 1 do
	local UnitIdString = "party" .. i .. "target"
    if UnitExists(UnitIdString) then
		if GetRaidTargetIndex(UnitIdString) == 8 then
			CastSpellByName(SpellName, UnitIdString)
			return
		end
	end
end

ps: Replace 109259 by your spell id and add conditions to launch the spell, to launch the spell if mob health is lower than 50%:

local SpellName = GetSpellInfo(109259)
for i = 1, 4, 1 do
	local UnitIdString = "party" .. i .. "target"
    if UnitExists(UnitIdString) then
		if GetRaidTargetIndex(UnitIdString) == 8 then
			if UnitHealth(UnitIdString)/UnitHealthMax(UnitIdString)*100 < 50 then
				CastSpellByName(SpellName, UnitIdString)
				return
			end
		end
	end
end
ps2: Code no tested, do not hesitate to tell me if this don't works
  • 2 years later...

Can someone help me.

I Have a Mage in Vanilla Wow that I would love to sheep my skull until i tell him to stop it

Added in Partychat Lua 

local SpellName = GetSpellInfo(12824)
for i = 1, 4, 1 do
 local UnitIdString = "party" .. i .. "target"
    if UnitExists(UnitIdString) then
  if GetRaidTargetIndex(UnitIdString) == 8 then
   CastSpellByName(SpellName, UnitIdString)
   return
  end
 end
end

But comes with and error in game when I ask it to sheep the target

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.