Results 1 to 3 of 3

Thread: InFight doesn't work with ranged?

  1. #1
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default InFight doesn't work with ranged?

    Im making a rangerscript, and here is part of my script:
    SCAR Code:
    begin
          MarkTime(attack);
          repeat
           wait(1000);
           writeln('fighting');   //<- this is only for testing reasons

          until(
           (TimeFromMark(attack)>15000) or
           (Hppercent<50) or
           (not infight));
           if not InFight then writeln('Monster killed');
           if (hppercent<50) then writeln('RUUUN!!!');
       end;

    This loop is supposed to wait until the fight is over or hp is under 50%.
    When i run the script, it attacks, and reports 'fighting' but then instantly reports 'Monster killed', wheter im still in fight or not

    Doesn't InFight recognize ranged fighting? if so,
    some1 make it!

  2. #2
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'd suggest you add an antirandom in there, and I'm not sure why it isn't working, sorry.

  3. #3
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    InFight only works if there is a HP bar above your head.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

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. Ranged guild trainer.
    By Mr beat in forum RS3 Outdated / Broken Scripts
    Replies: 4
    Last Post: 05-05-2008, 08:10 PM
  3. ranged script?
    By Heavenzeyez1 in forum RS3 Outdated / Broken Scripts
    Replies: 0
    Last Post: 12-01-2007, 12:31 PM
  4. How do I use InFight
    By Mistagnerd in forum OSR Help
    Replies: 21
    Last Post: 11-17-2007, 08:42 PM
  5. Highest Ranged hit ever in runescape (By me) :)
    By script dump ur m0m in forum RuneScape News and General
    Replies: 34
    Last Post: 06-25-2007, 06:39 AM

Posting Permissions

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