Originally Posted by
Decaed
I'm trying to code Touch of Chaos to cast if in meta form while moving, but it doesn't seem to want to work. Just wondering if there's something I've missed.
Code:
if PQR_IsMoving(1)
and GetShapeshiftForm("player") == 1
then return true
end
Am I doing it right? :P
try
PHP Code:
if PQR_IsMoving(1)
and GetShapeshiftForm("player") == 1 then
CastSpellByName(GetSpellInfo("TOUCHOFCHAOSspellid"), "target")
end
Originally Posted by
ZidaneT
no, that's only to end an if condition. it's ok though, it seems hemorrhage is known to be buggy with pqr, i'm just going to have to resort to pressing a button myself... oh, the humanity! lol.
I'll take a look at Hemorrhage real quick.... lets just hope my rogue still has that attack >.<
*edit*
lol let me guess.... you put Hemorrhage's Spell ID into the Ability Info section, and did have it Skip Unknown spells 
try doing
/dump IsSpellKnown(16511)
inside of your WoW chat window and see what that says XD if ever a spell returns false and u have it's spellid inside of PQR as the Ability's Spell ID that PQR checks, it will automatically skip it if you don't tell it to not skip it otherwise.
Here's what I got....
Ability Name: Hemorrhage
Target: Target
Spell ID: 0
Code:
PHP Code:
if IsSpellInRange(GetSpellInfo(1776), "target") == 1
and not UnitDebuffID("target", 16511)
and UnitCanAttack("player", "target") then
CastSpellByName(GetSpellInfo(16511), "target")
end
Works like a charm