PDA

View Full Version : Are these types of script allowed?



emps
06-28-2010, 07:36 PM
This script detects your "proc" and casts a spell based on its presence:

/run if UnitBuff("player", "Slam!") then CastSpellByName("Slam") end


This script checks your rage amount and casts a specific spell accordingly:

/run if UnitPower("Player") > 60 then CastSpellByName("Cleave") end



I would think they borderline what's acceptable and what's not. I'm uncertain whether these are even operational as we speak as I'm just browsing around and chanced on these scripts. There's a few more of them but these two stand out. It feels like the script itself is too smart to be allowed and if so could potentially be actionable by Blizzard..?

Siaea
06-28-2010, 09:07 PM
No. You can't run if/then statements like that.

Poyzon
06-28-2010, 09:34 PM
CastSpellByName() is a protected function that can only be called from Blizzard code.

Source: http://www.wowwiki.com/API_CastSpellByName

emps
06-29-2010, 11:45 PM
Thanks guys.

Starlight
06-30-2010, 10:15 AM
We could do really crazy things if those were possible....

I think its better we can't do this :)

Maxion
06-30-2010, 02:16 PM
Used to be possible, but got fixed.

Shodokan
06-30-2010, 03:05 PM
Used to be possible, but got fixed.

i used it on a kitty druid in naxx and ulduar... it was amazing pressing 1 button and being top dps.

emps
06-30-2010, 03:46 PM
i think castbyspellname was the premise on the old "healer"-turned-healbot mod and the previous script for the old decursive actually. hrm.

Maxion
06-30-2010, 10:23 PM
i think castbyspellname was the premise on the old "healer"-turned-healbot mod and the previous script for the old decursive actually. hrm.

exactly, but more importantly, for the macro to decide to cast on someone only if they had a debuff(decursive) or an amount of lost health(healbot).