Bugreporter 93 Posted February 6, 2014 Share Posted February 6, 2014 Same usage of a LUA-Script as described A (Combat) Rogue has at last 4 spells to interrupt spells: Kick, Blind, Gouge, Kidney Shot. Not all are usable in all situations, but all have the same conditions to try a try: the target must not be friendly its cast must be a interruptable spell our spell must be ready to use and the target must be in range. (added) If the spell not interruptable, cast feint (and hope the best) Kick need a high priority, feint a low, so I removed it with this information we could combine this 4 spells to one cast, which make our fight class profile smaller, make the settings clearer gives a info of the spell, which is interrupted allow us to do changes in the source once, not four times Hint: With the talent "Dirty Tricks" the cost of blind and gouge are 0 energie (like Kick) <FightClassSpell> <SpellName>--Kick Spells</SpellName> <FightClassConditions> <FightClassCondition> <ContionType>LuaScript</ContionType> <Param xsi:type="FightClassConditionLua"> <LuaScript>local kicked=0 if UnitExists("target") and not UnitIsFriend("player", "target") then local spell, rank, displayName, icon, startTime, endTime, isTradeSkill, castID, interrupt = UnitCastingInfo("target"); if (interrupt==false) then --[[ (cheapest first) Kick,Blind,Gouge, Kidney Shot --]] local idSpells={1766,2094,1776,408} local now=GetTime() for i=1, 4 do if (kicked==0) then local start, duration, enabled = GetSpellCooldown(idSpells[i]) if (duration==0) then local spellname=GetSpellInfo(idSpells[i]) if (IsSpellInRange(spellname, "target")==1) then CastSpellByName(spellname) kicked=idSpells[i] print(spell.." kicked by "..spellname) end end end end end end result=(kicked~=0)</LuaScript> <VarRet>result</VarRet> <ValueRet>true</ValueRet> </Param> </FightClassCondition> </FightClassConditions> <Priority>29</Priority> <CheckIfKnowUsableDistance>false</CheckIfKnowUsableDistance> <AddToSettings>true</AddToSettings> <NotSpellIsLuaScript>true</NotSpellIsLuaScript> <DescriptionSpell>Kick > Gouge > Kidney Shot for interruptable spells</DescriptionSpell> </FightClassSpell> based on WoW 5.4.2. Droidz 1 Link to comment https://wrobot.eu/forums/topic/1112-kick-it-a-solution-for-rogue/ Share on other sites More sharing options...
Womble 9 Posted February 7, 2014 Share Posted February 7, 2014 If I credit you when I release my profile are you alright with me using this as an optional spell to run alongside my rotation? Link to comment https://wrobot.eu/forums/topic/1112-kick-it-a-solution-for-rogue/#findComment-5832 Share on other sites More sharing options...
Bugreporter 93 Posted February 7, 2014 Author Share Posted February 7, 2014 If I credit you when I release my profile are you alright with me using this as an optional spell to run alongside my rotation? Use it. Thats the reason why it is posted Link to comment https://wrobot.eu/forums/topic/1112-kick-it-a-solution-for-rogue/#findComment-5838 Share on other sites More sharing options...
Womble 9 Posted February 7, 2014 Share Posted February 7, 2014 Yeah I figured but with PQR you'd have people causing issues about posted code snippets that we're "stolen" - ty. Link to comment https://wrobot.eu/forums/topic/1112-kick-it-a-solution-for-rogue/#findComment-5839 Share on other sites More sharing options...
Bugreporter 93 Posted February 16, 2014 Author Share Posted February 16, 2014 Added:cast Feint, if spell not interruptable --[[ Feint added...If you don't want to use it, remove here ---> ]] if (kicked==0) and (spell) then --[[ not kickable or no free spells? let's do feint and hope the best. ]] idFeint=1966 local spellname=GetSpellInfo(idFeint) local start, duration, enabled = GetSpellCooldown(idFeint) if (duration==0) then CastSpellByName(spellname) kicked=idFeint end end --[[ ---> to here ]] Link to comment https://wrobot.eu/forums/topic/1112-kick-it-a-solution-for-rogue/#findComment-6083 Share on other sites More sharing options...
Bugreporter 93 Posted February 25, 2014 Author Share Posted February 25, 2014 Maybe its a good idea to add an additional "If" after "If UnitExist...". The condition below test , if the target is a player and if wait up to 50% percent of the casting spell before kick. On NPC it kicks instant Reasons: a /cast; /stopcasting; /cast again; wouldn't work for the target, because we wait, if he really cast. :-) a too fast kick could be identify as kickbot. And we don't bot !!!... or? (not testet yet) if (not (UnitIsPlayer("target") and UnitIsPVP("target")) ) or (((GetTime()-startTime)*100/(endTime-startTime)) > 50) then ...kickit here... end It could be, that we miss some kickes because but thats okay, I thing. Link to comment https://wrobot.eu/forums/topic/1112-kick-it-a-solution-for-rogue/#findComment-6352 Share on other sites More sharing options...
Bugreporter 93 Posted February 27, 2014 Author Share Posted February 27, 2014 Feint removed. Kick need a high priority to be effectiv. Feint as there-is-nothing-else-to-do-Spell needs a low priority. So I removed Feint from the Kick-code above. Link to comment https://wrobot.eu/forums/topic/1112-kick-it-a-solution-for-rogue/#findComment-6450 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now