rostaryms
2008-10-09 20:39:15
Hey guys, I was just wondering if GetMe.InFight works 100% of the time? Because I tried to use it in one of my new fighting scripts and I have come across some problems. So for now I just switched to InFight. Has it been fully tested? Is it supposed to always work?
thanks in advance
- rosta
Seroko
2008-10-11 03:46:07
I have never personally not made an auto fighter yet really with reflection so I am not an expert on infight in particular, I believe that would be Narcle. Although Reflection [For the most part] is not some formulas put together to read visual things to determine stuff, it is variables straight from the runescape client, meaning if your hooks are up to date and it says it, expect it to be true :p. I believe (smite me if im wrong) the way reflection does InFight is it checks the players loop cycle status vs the loop cycle and if it is bigger then that means they are in combat, You should be able to rely on GetMe.InFight 100% meaning you are in a fight :)
JuKKa
2008-10-11 04:08:11
show us the code… or we cant help u… im 70% sure u use it the wrong way.
rostaryms
2008-10-12 14:37:36
Okay, am retrieving the code now.
EDIT:
procedure ScriptLoop;
var
Me : TMe;
begin
ClearDebug;
Me := GetMe;
repeat
Status('CheckingFight');
if (not Me.InFight) and (AbleAttack) then if (AttackBandit) then timer1 := 4;
This is the only part of the script where i use it
JuKKa
2008-10-12 14:57:02
u should add the Me := GetMe; in the loop.
rostaryms
2008-10-12 15:29:46
Omg wow i'm really dumb, thanks for pointing that out! :)