Page 1 of 3
Rogue rotation
Posted: Sun Mar 09, 2014 3:43 pm
by ZZZZZ
Trying to get rogue rotation working in onPreSkillCast but so far no good. Does target:getBuff() and then checking time remaining work on targets or only yourself with player:getBuff()?
Code: Select all
<onPreSkillCast><![CDATA[
local target = player:getTarget();
if arg1.Name == "ROGUE_SHODOWSTAB" then
SSBuff = target:getBuff(620313)
if SSBuff and SSBuff.TimeLeft >= 4 then
return false
end
elseif arg1.Name == "ROGUE_LOW_BLOW" then
if target:hasBuff(620314) then -- Grevious Wound
LBBuff = target:getBuff(620314)
if LBBuff and SSBuff.TimeLeft >= 3 then
return false
end
end
elseif arg1.Name == "ROGUE_WOUND_ATTACK" then
for k,v in pairs(settings.profile.skills) do
if v.Name=="ROGUE_WOUND_ATTACK" then
local timeleft = v:getRemainingCooldown()
if timeleft == 0 and target:hasBuff(620313) and target:hasBuff(620314) then
return true
else
return false
end
end
end
end
]]></onPreSkillCast>
Code: Select all
7:40am - E:/micromacro/scripts/rom/classes/player.lua:976: onPreSkillCast error:
[string "..."]:12: attempt to index global 'SSBuff' (a nil value)
The same format worked when getting cooldowns on buffs for wep skill leveling so not sure what is wrong.
Re: Rogue rotation
Posted: Sun Mar 09, 2014 11:03 pm
by rock5
The problem is here.
Code: Select all
LBBuff = target:getBuff(620314)
if LBBuff and SSBuff.TimeLeft >= 3 then
Should be
Code: Select all
LBBuff = target:getBuff(620314)
if LBBuff and LBBuff.TimeLeft >= 3 then
Re: Rogue rotation
Posted: Sun Mar 09, 2014 11:23 pm
by ZZZZZ
....lol, thats what I get for using copy/paste >.< Thanks
Re: Rogue rotation
Posted: Tue Mar 11, 2014 3:00 am
by ZZZZZ
So I fixed it and put it in profile... but still rogue spams shadow stab when low on energy, rather than waiting till there is 4 seconds left on debuff, which is usually enough time to get energy for lowblow at least.
Re: Rogue rotation
Posted: Tue Mar 11, 2014 5:56 am
by rock5
The only reason I can see for it still casting Shadowstab is SSBuff is nil. Is the Bleed effect getting applied? Do you have a dagger equipped?
Otherwise, try adding some printouts.
Code: Select all
if arg1.Name == "ROGUE_SHODOWSTAB" then
print("Using Shadowstab")
SSBuff = target:getBuff(620313)
if SSBuff then print("Bleed found on target. Time left",SSBuff.TimeLeft) else print("Bleed missing from target") end
if SSBuff and SSBuff.TimeLeft >= 4 then
return false
end
Re: Rogue rotation
Posted: Sun Mar 16, 2014 3:50 am
by lisa
You had a typo in shadow stab lol
I think your issue is in the buff check for LB, you don't check for bleed you check for the buff you then check timeleft on.
I am testing this atm.
Code: Select all
local target = player:getTarget();
if arg1.Name == "ROGUE_WOUND_ATTACK" then
if target:hasBuff(620313) and target:hasBuff(620314) then
return true
else
return false
end
elseif arg1.Name == "ROGUE_LOW_BLOW" then
if target:hasBuff(620313) then -- Bleed
LBBuff = target:getBuff(620314) -- Grevious Wound
if LBBuff and LBBuff.TimeLeft >= 3 then
if player.Energy >= 60 then
return true
else
return false
end
end
end
elseif arg1.Name == "ROGUE_SHADOWSTAB" then
SSBuff = target:getBuff(620313)
if SSBuff and SSBuff.TimeLeft >= 3 then
return false
end
end
So theory is,
uses ROGUE_WOUND_ATTACK if other 2 buffs are on target.
uses ROGUE_SHADOWSTAB if no bleed or bleed less than 4 seconds
uses ROGUE_LOW_BLOW if bleed and grievous wound is less than 4 seconds but it will also use the skill if Energy is above 60 regardless of time left on grievous wound.
I do this because otherwise the bot just sits there waiting for buffs to wear off even if it has full Energy, I say if you have it then use it and Low Blow seems to do better damage than Shadow stab, but that is just my theory.
Points at "Energy thief" which keeps you at full energy for 15 seconds
Boss fight it looked like this.
Code: Select all
Use MACRO: ROGUE_INFORMER =>
Use MACRO: ROGUE_ENERGY_THIEF =>
Use MACRO: ROGUE_FERVENT_ATTACK=>
Use MACRO: ROGUE_ASSASSINS_RAGE=>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_SHADOWSTAB =>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_WOUND_ATTACK =>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_SHADOWSTAB =>
Use MACRO: ROGUE_WOUND_ATTACK =>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_WOUND_ATTACK =>
Use MACRO: ROGUE_SHADOWSTAB =>
Use MACRO: ROGUE_WOUND_ATTACK =>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_SHADOWSTAB =>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_WOUND_ATTACK =>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_SHADOWSTAB =>
Use MACRO: ROGUE_WOUND_ATTACK =>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_LOW_BLOW =>
Use MACRO: ROGUE_SHADOWSTAB =>
Re: Rogue rotation
Posted: Sun Mar 16, 2014 6:44 am
by rock5
I found in previous attempts at using the buffs for the Rogue main skills that, because the bot undercuts previous skills, the buffs don't get applied fast enough so it would, for instance cast Shadowstab twice before using Low blow. Strangely that doesn't seem to have happened for you. Where did you put that code? You didn't add a pause between the casts did you?
Re: Rogue rotation
Posted: Sun Mar 16, 2014 7:13 am
by lisa
profile onpreskillcast, exactly as I posted it.
Re: Rogue rotation
Posted: Sun Mar 16, 2014 9:39 am
by ZZZZZ
I was going to sort out the energy issue with Low Blow at a later date, once I figured out why the shadow stab issue wasnt working.....and lol...didnt realise there was a typo -_-
Re: Rogue rotation
Posted: Sun Mar 16, 2014 1:28 pm
by BlubBlab
I solved this for me a long time ago like this:
Code: Select all
<skill name="ROGUE_SHADOWSTAB" id="490306" range="50" type="damage" casttime="0" cooldown="0" target="enemy" nobuffname="620313" nobufftarget="target" />
<skill name="ROGUE_LOW_BLOW" id="490323" range="50" type="damage"casttime="0" cooldown="0" target="enemy" reqbuffname="620313" reqbufftarget="target" nobuffname="500704" nobufftarget="target" />
<skill name="ROGUE_WOUND_ATTACK" id="490313" range="50" type="damage" casttime="0" cooldown="6" target="enemy" reqbuffname="500704" reqbufftarget="target"/>
Code: Select all
<skill name="ROGUE_PREMEDITATION" hotkey="MACRO" priority="100" pullonly="true" />
<skill name="ROGUE_SHADOWSTAB" hotkey="MACRO" priority="70" />
<skill name="ROGUE_LOW_BLOW" hotkey="MACRO" priority="80" />
<skill name="ROGUE_WOUND_ATTACK" hotkey="MACRO" priority="90" />
worked wonderfull
Re: Rogue rotation
Posted: Sun Mar 16, 2014 6:29 pm
by lisa
I just feel like rogue spends half it's time doing auto attacks and waiting for energy to build up.
Any class combos that offer more attacks/better dps?
Using R/S atm.
Re: Rogue rotation
Posted: Sun Mar 16, 2014 7:46 pm
by rock5
BlubBlab wrote:I solved this for me a long time ago like this:
That's what I used to try but because it takes a few moments for the debuffs to be applied, having it set up like that might actually slow down the attack speed. I eventually just gave up and just put the skills in order and used them sequentially, ie. not priority casting. Although it's probably not appropriate on extended battles, but then I rarely fought long battles.
Re: Rogue rotation
Posted: Sun Mar 16, 2014 8:02 pm
by ZZZZZ
r/s is greatly out-dated now. r/m gets 60% of its total damage from basic attacks alone, the rotation itself is simply there for that bit extra. End-game burns in Grotto HM a rogue/mage can do 1m+ dps easily with ONLY basic attacks.....don't even have to cast a single skill after buffs are used. Then there is Nexon.....thats like 3m+ dps with wines/sigils lol.
Re: Rogue rotation
Posted: Sun Mar 16, 2014 8:17 pm
by lisa
r/m elites seem to be all focused on projectile damage and such.
Doesn't look like any need to lvl mage past 50, since the mage skills are useless and the higher elites look sad for 1 target dps.
I might give it a try and see how it goes.
Re: Rogue rotation
Posted: Sun Mar 16, 2014 8:41 pm
by rock5
Does sound interesting. As I understand it it uses a lot more ammo than scouts do though. It would be nice if there was some obtainable item or skill that can give you ammo like scouts have with Rune Bows and Tendril Arrows.
Re: Rogue rotation
Posted: Sun Mar 16, 2014 9:18 pm
by ZZZZZ
r/m itself is strong...but without the 70 elite it isn't the highest dps as it is with it. When I get to a boss I make the bot cast Illusion Blade Dance (the 70 elite) before fighting because it literally doubles the damage of all skills. But with that being said, its great even without it. And it also has AoE's where other rogues have few if not none.
Projectile wise....yes, its insane. Can go through an entire stack of projectiles in minutes. Usually use 1 full stack in a 1 hour siege alone, and you're not standing around basic attacking all the time there lol. I have got to the point where I have an entire bag opened just for projectiles lol.
Re: Rogue rotation
Posted: Sun Mar 16, 2014 9:22 pm
by lisa
I dont worry about aoe on my rogues, its just boss dps, I have other chars to handle trash.
Currently 50 on mage side and doing elite skills now, getting 60 / 70 elites just seems like a pain to me.
Re: Rogue rotation
Posted: Mon Mar 17, 2014 1:38 am
by lisa
So do you add throw and combo throw into the skill rotations aswell now?
All these passive elites got my head spinning, I have this for skills atm.
Code: Select all
<skill name="ROGUE_WOUND_ATTACK" hotkey="MACRO" priority="99" />
<skill name="ROGUE_LOW_BLOW" hotkey="MACRO" priority="98" />
<skill name="ROGUE_SHADOWSTAB" hotkey="MACRO" priority="97" />
<!-- for R/M -->
<skill name="ROGUE_COMBO_THROW" hotkey="MACRO" priority="70" />
<skill name="ROGUE_THROW" hotkey="MACRO" priority="80" />
<!-- elite factor skills in order -->
<skill name="ROGUE_INFORMER" hotkey="MACRO" priority="60" inbattle="true" autouse="false"/>
<skill name="ROGUE_FERVENT_ATTACK" hotkey="MACRO" priority="60" inbattle="true" autouse="false"/>
<skill name="ROGUE_ASSASSINS_RAGE" hotkey="MACRO" priority="60" inbattle="true" autouse="false"/>
<skill name="ROGUE_CREATE_OPPORTUNITY" hotkey="MACRO" priority="70" inbattle="true" autouse="false"/>
<skill name="ROGUE_PREMEDITATION" hotkey="MACRO" priority="60" inbattle="true" autouse="false"/>
<skill name="ROGUE_SHADOW_STEP" hotkey="MACRO" priority="60" inbattle="true" autouse="false"/>
<skill name="ROGUE_BLIND_SPOT" hotkey="MACRO" priority="60" inbattle="true" autouse="false"/>
<skill name="ROGUE_HIDE" hotkey="MACRO" priority="70" autouse="false"/>
<!-- R/S -->
<skill name="SCOUT_SHOT" hotkey="MACRO" priority="90" />
<skill name="SCOUT_VAMPIRE_ARROWS" hotkey="MACRO" priority="70" />
<skill name="ROGUE_COMBAT_MASTER" hotkey="MACRO" priority="80" />
<skill name="ROGUE_ENERGY_THIEF" hotkey="MACRO" priority="80" inbattle="true"/>
with this for elites
Code: Select all
<preCodeOnElite><![CDATA[
print("tough mob : ".._arg1.Name..", buffffiiiiinnnnnggggg")
player:cast("ROGUE_INFORMER")
player:cast("ROGUE_FERVENT_ATTACK")
player:cast("ROGUE_ASSASSINS_RAGE")
player:cast("ROGUE_CREATE_OPPORTUNITY")
player:cast("ROGUE_PREMEDITATION")
player:cast("ROGUE_SHADOW_STEP")
player:cast("ROGUE_BLIND_SPOT")
-- _arg1 is target pawn, _arg1.Name = target's name
]]></preCodeOnElite>
Re: Rogue rotation
Posted: Mon Mar 17, 2014 4:26 am
by ZZZZZ
I don't let it use Combo Throw when fighting high hp bosses due to it actually being less dps. Because Combo Throw is a cast skill it doesn't allow you to basic attack in the mean time, so you end up with less dps. Day of Rain is a rotation skill also. Enlivened blade is only good when clearing trash, useless in a boss fight due to the energy cost. So for me i disable combo throw and enlivened blade before a boss.
Re: Rogue rotation
Posted: Mon Mar 17, 2014 5:32 am
by lisa
ZZZZZ wrote:I don't let it use Combo Throw when fighting high hp bosses due to it actually being less dps.
k removed.
it said instant which threw me off, played with it and it does have a cast time =(
ZZZZZ wrote: Day of Rain is a rotation skill also
Hmm I didn't do that 1 as it is 20-25 second CD, depending how many times you do a throw to reduce CD by 1 sec. I'll rank it up and add it in and see how it goes.
Ok that damage sux compared to other skills
Thanks =)