Results 1 to 2 of 2

Thread: InFight not working?

  1. #1
    Join Date
    Oct 2007
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default InFight not working?

    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;

  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Maxcore View Post
    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;
    Code:
    procedure FightChicken;
    begin
         if inFight then
         begin
              intKilled := intKilled + 1;
              intXP := intXP + 28;
         end;
         while(inFight) do
         begin
              wait(2000);
         end;
    end;
    Like so

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New InFight function (using TPA)
    By marpis in forum Research & Development Lounge
    Replies: 5
    Last Post: 01-09-2009, 12:10 AM
  2. InFight not working
    By SirPa in forum OSR Help
    Replies: 20
    Last Post: 11-16-2008, 04:43 AM
  3. How do I use InFight
    By Mistagnerd in forum OSR Help
    Replies: 21
    Last Post: 11-17-2007, 08:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •