I am making an auto fighter script but it seems that the InFight procedure is not working in SRL. I have my script setup so that if it is in a fight it will just loop until it is not anymore and then it will find the next target. It seems to just skip right over this method though and never stops looking for enemies.
Code:procedure FightChicken; var inFight : boolean; begin inFight := InFight; if inFight then begin intKilled := intKilled + 1; intXP := intXP + 28; end; while(inFight) do begin inFight := InFight; wait(2000); end; end;


Reply With Quote






