Hey,
im currently trying to implement fake casting in my profile. I tried this code:
{"Healing Touch", "modifier.lalt", "player"},
{"/stopcasting",{"modifier.lalt", "player.casting.percent >= 50"}},
but he instantly stops casting.
any suggestions?
Hey,
im currently trying to implement fake casting in my profile. I tried this code:
{"Healing Touch", "modifier.lalt", "player"},
{"/stopcasting",{"modifier.lalt", "player.casting.percent >= 50"}},
but he instantly stops casting.
any suggestions?
Last edited by Basti229; 05-01-2015 at 08:04 AM.
It'sCode:"player.casting.percent >= 50"
still the same problem with your method
Off the top of my head:
Code:-- Fake Cast (Hotkey - ALT) -- Initiate { "Healing Touch", { "modifier.alt", "!target.casting", }, "lowest" }, -- Kill It { "/stopcasting", { "modifier.alt", "player.casting(Healing Touch)", "player.casting(Healing Touch).percent >= 53", "!target.casting", }},
ProbablyEngine - Developer and Lead Support
A Powerful Rotation Bot: ProbablyEngine
Still the same.cast detection seems to be bugged i have problems with my anti polymorph too. if an arena target is casting polymorph my profile should switch to bear but it also switches to bear form with an warrior and warlock as enemys
Someone wrote (maybe stinkytwitch) a little function for me to cancel casting on a spell by name:
{ "/stopcasting", { "player.mana >= 95", function() local s,_=UnitChannelInfo("player"); return s and s == 'Evocation' end } },
You could try adapting it to UnitSpellInfo and then changing name of your spell
still doesnt work
still no idea how to do that
got it working
Code:ProbablyEngine.library.register('DGTLibary', { FakeCastCheck = function(SpellName, TimeLeftBeforeStopcast) local spellID, _, _, _, _, endTime = UnitCastingInfo("player") if spellID then local finish = endTime/1000 - GetTime() if spellID == tostring(SpellName) and finish < tonumber(TimeLeftBeforeStopcast) then return true end end return false end, })Code:{{ {"/stopcasting",{"@DGTLibary.FakeCastCheck('NAME OF FAKECAST SPELL',CANCELTIME)","modifier.lcontrol"},nil}, {"FAKECASTSPELLt",{"modifier.lcontrol"},"player"}, },"modifier.lcontrol"},
Last edited by Basti229; 06-12-2015 at 08:40 AM.
why so many modifier.lcontrol if you using it at the end of the nest ?
cant just shorten it to:
Code:{{ {"/stopcasting",{"@DGTLibary.FakeCastCheck('NAME OF FAKECAST SPELL',CANCELTIME)"},nil}, {"FAKECASTSPELLt",nil,"player"}, },"modifier.lcontrol"},
had it before without the nesting so i could be deleted i think