-
Member
Mage Profile
Well guys i decided to build a new profile to mage but im having problems with polymorph.any way to stopcast and cast polymorf on pqr? on 3.3.5.
if UnitExists("mouseover") and UnitIsUnit("mouseover","target") == nil and IsLeftControlKeyDown() then
CastSpellByID(12826,"mouseover")
end
i have this
but its not good eneugh, need something that stopcast to then cast polymorph
-
Member
Originally Posted by
jafoste
Well guys i decided to build a new profile to mage but im having problems with polymorph.any way to stopcast and cast polymorf on pqr? on 3.3.5.
if UnitExists("mouseover") and UnitIsUnit("mouseover","target") == nil and IsLeftControlKeyDown() then
CastSpellByID(12826,"mouseover")
end
i have this
but its not good eneugh, need something that stopcast to then cast polymorph
RunMacroText("/stopcasting")
SpellStopCasting()
Last edited by mzt; 01-08-2016 at 05:57 PM.
-
Member
It doesnt stop cast, it only casts after finishing casting. for exemple if he is casting frostbolt he finish cast frostbolt and only after that he casts poly
-
Member
Originally Posted by
jafoste
It doesnt stop cast, it only casts after finishing casting. for exemple if he is casting frostbolt he finish cast frostbolt and only after that he casts poly
Code:
local mySN = select(1, UnitCastingInfo("player"))
if mySN ~= GetSpellInfo(SpID) then
SpellStopCasting()
end
CastSpellByID(SpID, myT)
works, just tested this
-
Member
i have this:
local mySN = select(1, UnitCastingInfo("player"))
if IsLeftShiftKeyDown()
then
if mySN ~= GetSpellInfo(42842) then
SpellStopCasting()
return true
end
end
but still not working, it cast poly but only after end cast frostbolt
-
Member
Code:
if UnitCastingInfo("player") ~= "Polymorph"
and UnitCastingInfo("player")
and IsLeftShiftKeyDown()
then
SpellStopCasting()
end
Code:
if UnitExists("mouseover")
and UnitIsUnit("mouseover","target") == nil
and IsLeftShiftKeyDown()
then
CastSpellByID(12826,"mouseover")
end
Edited once more.
Last edited by G0tha; 01-09-2016 at 04:14 PM.
-
Post Thanks / Like - 1 Thanks
jafoste (1 members gave Thanks to G0tha for this useful post)
-
Member
Originally Posted by
jafoste
i have this:
local mySN = select(1, UnitCastingInfo("player"))
if IsLeftShiftKeyDown()
then
if mySN ~= GetSpellInfo(42842) then
SpellStopCasting()
return true
end
end
but still not working, it cast poly but only after end cast frostbolt
Code:
if IsLeftShiftKeyDown()
and UnitExists(myT)
and UnitIsUnit(myT, "target") == nil
and UnitIsEnemy(myT, "player") then
local mySN = select(1, UnitCastingInfo("player"))
if mySN ~= GetSpellInfo(SpID) then
SpellStopCasting()
end
CastSpellByID(SpID, myT)
end
testprofile: http://puu.sh/mpHmD/b1c830d780.rar
Last edited by mzt; 01-09-2016 at 04:30 PM.
-
Post Thanks / Like - 1 Thanks
jafoste (1 members gave Thanks to mzt for this useful post)
-
Member
no guys none of ur codes is working guys. tried out, it doesnt stop cast. it just cast after he ends casting frostbolt
Last edited by jafoste; 01-09-2016 at 04:35 PM.
-
Member
Originally Posted by
jafoste
no guys none of ur codes is working guys. tried out, it doesnt stop cast. it just cast after he ends casting frostbolt
Imgur: The most awesome images on the Internet
With above posted profile.
-
Member
are you using english version client?
-
Post Thanks / Like - 1 Thanks
jafoste (1 members gave Thanks to G0tha for this useful post)
-
Member
yes i am and i copied ur code and its not working :S im using 3.3.5 version as i said.
but i think there is an error because u have "Myt" var, but u didnt declared that var, think its that the error
Last edited by jafoste; 01-09-2016 at 04:46 PM.
-
Member
both codes should do their job, you are doing something wrong. And yes you have to declare the var in his code. In your case it will be:
Code:
local myT = "mouseover"
local SpID = 42842
-
Member
Originally Posted by
jafoste
yes i am and i copied ur code and its not working :S im using 3.3.5 version as i said.
but i think there is an error because u have "Myt" var, but u didnt declared that var, think its that the error
I posted a download link above with the full profile, if you look at that you'll see its declared.
If you just copy the code you'd need to declare it yourself.
-
Post Thanks / Like - 1 Thanks
jafoste (1 members gave Thanks to mzt for this useful post)