Results 1 to 7 of 7

Thread: n00bish autofighter by me

  1. #1
    Join Date
    Sep 2006
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default n00bish autofighter by me

    SCAR Code:
    // I thank everyone at SRL Forums for making this script possible.
    // I also thank Kaitnieks for making SCAR, one of the best color macros ever.
    // Remember kids, follow the SRL rules.
    program New;

    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Fighting.scar}
    {.include SRL/SRL/extended/xAntiRandoms.scar}

    var MColor1,MColor2,MColor3: Integer;
    const tolerance=5;
    var MonsterName:string;
    const fightmode=0;
    procedure startup;
    begin
       SetupSRL;
    end;

    procedure AntBan;
    begin
     RotateEvery(5);
     AntiBan;
     FindMod;
     BoredHuman;
     RandomMovement;
     end;
     
    procedure MonsterColors;
    begin
        MonsterName:='Goblin';
        MColor1:=000000;
        MColor2:=000000;
        MColor3:=000000;
    end;

    procedure Fighting;
    begin

    if InFight = False then;
    begin
       SetFightMode(FightMode);
              FindMonster(MColor1, MColor2, MColor3,tolerance, MonsterName);
             KAttackMonster(MColor1,MColor2,MColor3,tolerance,MonsterName);
          end;
    end;

    begin
     Startup;
     AntBan;
     MonsterColors;
     Fighting;
     // FindNormalRnadomsChoice(Talk,Misc,Lamp,Box,Demon,ScapeRune,Trade,GameTab,Pinball,Frog,Certer,Sandwich,Plant,Black,ClickContinue);
    end.

    Untested on the real game but tested all the way until it compiles successfully. I'm sure this will work as it should. If not then tell me.

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Yes, you are right. It compiles. It will probably fight a monster...once. First script? Excellent!

    All it now needs is a loop to make it go forever....

    SCAR Code:
    program New;

    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Fighting.scar}
    {.include SRL/SRL/extended/xAntiRandoms.scar}

    var
      MColor1, MColor2, MColor3: Integer;
    const
      tolerance=5;
    var
      MonsterName:string;
    const
      fightmode=0;
     
    //----------------------------------------------------------------------------//

    procedure startup;
    begin
       SetupSRL;
    end;

    procedure AntBan;
    begin
     RotateEvery(5);
     AntiBan;
     FindMod;
     BoredHuman;
     RandomMovement;
     end;

    procedure MonsterColors;
    begin
        MonsterName:='Goblin';
        MColor1:=000000;
        MColor2:=000000;
        MColor3:=000000;
    end;

    procedure Fighting;
    begin
      if not InFight then
      begin
        FindMonster(MColor1, MColor2, MColor3,tolerance, MonsterName);
        KAttackMonster(MColor1,MColor2,MColor3,tolerance,MonsterName);
      end;
    end;

    begin
     Startup;
     SetFightMode(FightMode);
     repeat
       AntBan;
       MonsterColors;
       Fighting;
       FindNormalRandoms;
     until(false);
    end.

    I tweaked a little hear and there, nothing much...

    Nice, carry on :wink:
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  3. #3
    Join Date
    Sep 2006
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the tweak Fakawi! Yes, this is my first script =P thats an obvious one.

  4. #4
    Join Date
    Oct 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    where do i get the includes........i get an error that those includes r not included

  5. #5
    Join Date
    Oct 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ive needed a good auto fighter, Thx

  6. #6
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    well teebaggie i wouldnt suggest using this one if you really wanna train a character because this is just a simple first script.but its up to you. and good job gm112 its a very good first script just keep on keepin on

  7. #7
    Join Date
    Sep 2006
    Location
    Texas
    Posts
    65
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well I might just use this as a refrence since I am trying to learn how tp script. Hopefully i will release something useful. Great script!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. need help with an autofighter
    By Bonfield in forum OSR Help
    Replies: 15
    Last Post: 07-19-2007, 11:51 PM
  2. autofighter
    By pockets08 in forum RS3 Outdated / Broken Scripts
    Replies: 2
    Last Post: 04-15-2007, 11:53 PM
  3. A pretty n00bish question...
    By mohua in forum OSR Help
    Replies: 4
    Last Post: 10-19-2006, 12:53 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
  •