Page 1 of 1

Behind / Front Target

Posted: Sat May 14, 2011 11:40 am
by MinMax
Just for fun i build a Rogue. With Shadow_Step, Sneak_Atack and Blind_Spot i have my troubles.

More then 50% fails with my settings below. Is there a way to trigger the onSkillCast with arg1.Name ="StatusBehindTarget" ??


<skills_rogue>
<skill name="ROGUE_SHADOW_STEP" hotkey="VK_3" priority="40"/>
<skill name="ROGUE_SNEAK_ATTACK" modifier="" hotkey="VK_9" priority="30" autouse="false" />
<skill name="ROGUE_BLIND_SPOT" hotkey="MACRO" priority="20" autouse="false" />
<skills_rogue>

<onSkillCast>
if( arg1.Name == "ROGUE_SHADOW_STEP" ) then
player:cast("ROGUE_SNEAK_ATTACK");
yrest(500);
player:cast("ROGUE_BLIND_SPOT");
end
</onSkillCast>

Re: Behind / Front Target

Posted: Sat May 14, 2011 8:05 pm
by rock5
What success rate do you get when you do it manually? I don't think shadow step/sneak attack is supposed to be that reliable. I think if you have already aggroed the mob you pretty much can't get behind it anyway. I'm not 100% sure because I don't really use it, but that's what I remember when I tried it. Maybe someone with more experience with it could comment.

Re: Behind / Front Target

Posted: Sun May 15, 2011 3:25 am
by MinMax
If you are playing manually you can run through the mob and cast Sneak_Atack and Blind_Spot without SHADOW_STEP.
With the bot i tried to move by Keypress. Wasn´t satisfying, because the distance to the mob is always different.
Using SHADOW_STEP i have a to high error rate.

I will try to calculate the distance player/target and teleport behind the target. I will take a look into your catchCavy script. As i remember there you had such a distance code :)