Page 24 of 55 FirstFirst ... 14222324252634 ... LastLast
Results 576 to 600 of 1365

Thread: [SRL-6] bonsaiFighter

  1. #576
    Join Date
    Mar 2014
    Posts
    85
    Mentioned
    0 Post(s)
    Quoted
    53 Post(s)

    Default

    What would be like a skeleton code to add a looter ?

  2. #577
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by victordono View Post
    What would be like a skeleton code to add a looter ?
    It's pretty easy to initiate a fight from your own script. There's an example in the original post under the first large picture.

  3. #578
    Join Date
    Jan 2012
    Location
    New Zealand
    Posts
    331
    Mentioned
    4 Post(s)
    Quoted
    94 Post(s)

    Default

    Code:
    ***** TcombatMgr.attack: End of fight detected
    Error: The Box you passed to Rectangle exceed the bitmap's bounds at line 116
    Execution failed.
    Simba Code:
    (*
    TMufasaBitmap.drawBox
    ~~~~~~~~~~~~~~~~~~~~~

    .. code-block:: pascal

        procedure TMufasaBitmap.drawBox(box: TBox; fill: boolean; color: TColor);

    Draws a TBox onto the TMufasaBitmap

    .. note::

        - by Ollybest
        - Last Updated: 19 July 2013 by Ollybest

    Example:

    .. code-block:: pascal

        tmb.drawBox(intToBox(50, 50, 345, 345), false, clLime);

    *)

    procedure TMufasaBitmap.drawBox(box: TBox; fill: boolean; color: TColor);
    var
      tpa: TPointArray;
    begin
      if (not fill) then
      begin
        try
          tpa := edgeFromBox(box);
        except
          tpa := [point(box.x1, box.y1)];
        finally
          self.drawTPA(tpa, color);
        end;
      end else
        self.rectangle(box, color); //this is what it highlights
    end;

    This error pops up from time to time i don't know why.. nothing out of the odinary happens in game itself..
    any advice?
    Current Rank Supreme Master First Class

  4. #579
    Join Date
    Apr 2012
    Posts
    96
    Mentioned
    1 Post(s)
    Quoted
    52 Post(s)

    Default

    99 Attack achieved.
    99's using SRL bots: Mining, Smithing, Magic, Cooking, Firemaking, Fletching, Hunting, Divination, Fishing, Woodcutting, Defense, Attack, Strenght, Constitution, Contruction, Ranged.
    Thanks to: Ashaman, DannyRS, The Mayor, footballjds, KeepBotting, Press Play, bonsai, Clarity, BANNED ON jonesy259 JASTRALS

  5. #580
    Join Date
    May 2012
    Posts
    499
    Mentioned
    23 Post(s)
    Quoted
    228 Post(s)

    Default

    Quote Originally Posted by Note View Post
    Code:
    ***** TcombatMgr.attack: End of fight detected
    Error: The Box you passed to Rectangle exceed the bitmap's bounds at line 116
    Execution failed.
    Simba Code:
    (*
    TMufasaBitmap.drawBox
    ~~~~~~~~~~~~~~~~~~~~~

    .. code-block:: pascal

        procedure TMufasaBitmap.drawBox(box: TBox; fill: boolean; color: TColor);

    Draws a TBox onto the TMufasaBitmap

    .. note::

        - by Ollybest
        - Last Updated: 19 July 2013 by Ollybest

    Example:

    .. code-block:: pascal

        tmb.drawBox(intToBox(50, 50, 345, 345), false, clLime);

    *)

    procedure TMufasaBitmap.drawBox(box: TBox; fill: boolean; color: TColor);
    var
      tpa: TPointArray;
    begin
      if (not fill) then
      begin
        try
          tpa := edgeFromBox(box);
        except
          tpa := [point(box.x1, box.y1)];
        finally
          self.drawTPA(tpa, color);
        end;
      end else
        self.rectangle(box, color); //this is what it highlights
    end;

    This error pops up from time to time i don't know why.. nothing out of the odinary happens in game itself..
    any advice?
    Was just about to post the same error:

  6. #581
    Join Date
    May 2012
    Posts
    499
    Mentioned
    23 Post(s)
    Quoted
    228 Post(s)

    Default

    Changed the redish tolerances allot, but that didn't prevent it from attacking the next NPC while still in combat.
    The indicators flicker red after a NPC is killed like they should, but they dont flicker red when the bot changed tragers while still in combat.

    It still sometimes attacks the NPC you just killed.

  7. #582
    Join Date
    Mar 2014
    Posts
    85
    Mentioned
    0 Post(s)
    Quoted
    53 Post(s)

    Default

    Okay so this isnt it exactly, im completely new to this sorry but if u can help

    Code:
    program waterFiend;
    {$DEFINE SMART}
    {$include_once srl-6/srl.simba}
    {$include_once bonsai/blCombat.simba}
    
    var
       fiend: Tnpc;
       i: integer;
       
    begin
       SetupSRL();
       fiend.init('waterfiend', true);
    
       for i := 0 to 5 do
       begin
          combatMgr.attack(fiend, true {wait until dead},
             nil {use default foodhandler}, MOUSE_RIGHT);
          sleep(5000);
       end;
    end.
    
    procedure lootItem();
    var
      x, y: integer; //we need to declare these variables since findObject outputs these
    begin
      if mainscreen.findObject(x, y, 925721, 11, ['ffigy'], MOUSE_RIGHT) then
      begin
        writeLn('We found an item!'); //if findObject results true, this will print
        chooseOption.select(['ake']); // this will choose ‘Take’ option in chooseOptions menu
      end;
    end;
    
    begin
      clearDebug();
      setupSRL();
      lootItem();
    end.
    how would i make it loop? do i just put loot item into the waterfiend program before it ends?

  8. #583
    Join Date
    Oct 2014
    Posts
    43
    Mentioned
    1 Post(s)
    Quoted
    25 Post(s)

    Default

    Could you use this for the ghost place? World 2 is super laggy so I don't know if I need to modify the reaction speed or something in the script

  9. #584
    Join Date
    Sep 2014
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    25 Post(s)

    Default

    Was there ever a fix for deadly red spiders?

    I tried to use the script for them before, and it wouldn't identify the creature.
    I would love to use this on deadly red spiders for the bxp weekend.

    error screen: http://oi57.tinypic.com/2wrk8t3.jpg
    Last edited by Sinix; 10-30-2014 at 09:43 PM.

  10. #585
    Join Date
    Aug 2014
    Posts
    278
    Mentioned
    10 Post(s)
    Quoted
    113 Post(s)

    Default

    Quote Originally Posted by Sinix View Post
    Was there ever a fix for deadly red spiders?

    I tried to use the script for them before, and it wouldn't identify the creature.
    I would love to use this on deadly red spiders for the bxp weekend.

    error screen: http://oi57.tinypic.com/2wrk8t3.jpg
    it doesnt need a fix. i just tried them and it was fine, also tried them with jungle spiders no problem at all.

  11. #586
    Join Date
    May 2012
    Location
    New Mexico
    Posts
    99
    Mentioned
    0 Post(s)
    Quoted
    30 Post(s)

    Default

    What do you think is the best place to use this bot for Hardcore ironman (lvl 20 str, att, and def)?
    “Oh, hi. So, how are you holding up? BECAUSE I'M A POTATO"
    http://www.southweststandard.com

  12. #587
    Join Date
    Sep 2014
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by Cyanempire View Post
    it doesnt need a fix. i just tried them and it was fine, also tried them with jungle spiders no problem at all.
    Can anyone send me their XML file for Deadly red spiders, please?

    Thanks in advance to the kind soul that helps me out before bxp weekend starts!
    Last edited by Sinix; 10-31-2014 at 01:29 AM.

  13. #588
    Join Date
    May 2014
    Posts
    633
    Mentioned
    8 Post(s)
    Quoted
    322 Post(s)

    Default

    This script kills waterfiends as fast/almost as fast as I do... sometimes it attacks another npc before it finishes killing the one it is on but that didn't really matter for my purposes.

    The only other thing is that it still doesn't recognize the guthix's blessing ability on the action bar, this is probably not a problem specifically with the script though. I solved it by hardcoding the guthix ability to be called before death's swiftness every time death's swiftness is available.

    It's probably already suggested but maybe adding potion support by default is the only improvement I can think of.

    Proggy:
    Code:
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////       Bonsai       ////////////////////////////////////////
    ////////////////////////////////////////       Fighter      ////////////////////////////////////////
    ////////////////////////////////////////       _______      ////////////////////////////////////////
    //////////                                                                                //////////
    //////////  Script runtime:                                                               //////////
    //////////       2 hr 50 min 13 sec(Total) 2 hr 50 min 13 sec(Active) 0 sec(Break)        //////////
    //////////                                                                                //////////
    ////////////////////////////////////////        Kills       ////////////////////////////////////////
    //////////                             Total        Per Hour    /Hour Active              //////////
    //////////        Waterfiend           1,038          365.88          365.88              //////////
    //////////                XP       969,699.6      341,807.09      341,807.09              //////////
    //////////          Const XP       319,911.6      112,764.87      112,764.87              //////////
    //////////                                                                                //////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////

  14. #589
    Join Date
    Aug 2014
    Posts
    278
    Mentioned
    10 Post(s)
    Quoted
    113 Post(s)

    Default

    Quote Originally Posted by J_R View Post
    This script kills waterfiends as fast/almost as fast as I do... sometimes it attacks another npc before it finishes killing the one it is on but that didn't really matter for my purposes.

    The only other thing is that it still doesn't recognize the guthix's blessing ability on the action bar, this is probably not a problem specifically with the script though. I solved it by hardcoding the guthix ability to be called before death's swiftness every time death's swiftness is available.

    It's probably already suggested but maybe adding potion support by default is the only improvement I can think of.

    Proggy:
    Code:
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////       Bonsai       ////////////////////////////////////////
    ////////////////////////////////////////       Fighter      ////////////////////////////////////////
    ////////////////////////////////////////       _______      ////////////////////////////////////////
    //////////                                                                                //////////
    //////////  Script runtime:                                                               //////////
    //////////       2 hr 50 min 13 sec(Total) 2 hr 50 min 13 sec(Active) 0 sec(Break)        //////////
    //////////                                                                                //////////
    ////////////////////////////////////////        Kills       ////////////////////////////////////////
    //////////                             Total        Per Hour    /Hour Active              //////////
    //////////        Waterfiend           1,038          365.88          365.88              //////////
    //////////                XP       969,699.6      341,807.09      341,807.09              //////////
    //////////          Const XP       319,911.6      112,764.87      112,764.87              //////////
    //////////                                                                                //////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    Cb level and what did you use ranged?. could not last long in waterfiends using melee.

  15. #590
    Join Date
    May 2014
    Posts
    633
    Mentioned
    8 Post(s)
    Quoted
    322 Post(s)

    Default

    was using it for charms with 99 range and a royal crossbow, the entire thing took only 1 inventory of food.

  16. #591
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Note View Post
    Code:
    ***** TcombatMgr.attack: End of fight detected
    Error: The Box you passed to Rectangle exceed the bitmap's bounds at line 116
    Execution failed.
    Simba Code:
    (*
    TMufasaBitmap.drawBox
    ~~~~~~~~~~~~~~~~~~~~~

    .. code-block:: pascal

        procedure TMufasaBitmap.drawBox(box: TBox; fill: boolean; color: TColor);

    Draws a TBox onto the TMufasaBitmap

    .. note::

        - by Ollybest
        - Last Updated: 19 July 2013 by Ollybest

    Example:

    .. code-block:: pascal

        tmb.drawBox(intToBox(50, 50, 345, 345), false, clLime);

    *)

    procedure TMufasaBitmap.drawBox(box: TBox; fill: boolean; color: TColor);
    var
      tpa: TPointArray;
    begin
      if (not fill) then
      begin
        try
          tpa := edgeFromBox(box);
        except
          tpa := [point(box.x1, box.y1)];
        finally
          self.drawTPA(tpa, color);
        end;
      end else
        self.rectangle(box, color); //this is what it highlights
    end;

    This error pops up from time to time i don't know why.. nothing out of the odinary happens in game itself..
    any advice?
    Quote Originally Posted by lovebotter View Post
    Was just about to post the same error:
    I posted an update that should fix this. Let me know if you see it any more.

  17. #592
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by victordono View Post
    Okay so this isnt it exactly, im completely new to this sorry but if u can help

    how would i make it loop? do i just put loot item into the waterfiend program before it ends?
    That was pretty close, and it's great you want to give scripting a try. I recommend going through the basic scripting tutorials and starting a new help thread (probably here)

    Quote Originally Posted by wowgnomes View Post
    Could you use this for the ghost place? World 2 is super laggy so I don't know if I need to modify the reaction speed or something in the script
    No, too incompatible.

    Quote Originally Posted by J_R View Post
    The only other thing is that it still doesn't recognize the guthix's blessing ability on the action bar, this is probably not a problem specifically with the script though. I solved it by hardcoding the guthix ability to be called before death's swiftness every time death's swiftness is available.

    It's probably already suggested but maybe adding potion support by default is the only improvement I can think of.
    Are you using manual abilities, then? There's a writeln commented out in _doAbilities that can help debug the SRL getAbilityCooldown response. It might be returning off values.

    Re: potions, I'm probably not getting to it for a while but you could hook it into __defaultHealthCheck pretty easily.

    Both of those are in includes\bonsai\blCombat.simba

    Other Stuff
    Most other issues are failures on the red circle detector and the weakness of the yellow one. I started reworking them but don't have much time for a while. In the mean time, I hate to say it, but just don't use it in the places it's not working well.

    "Doctor, my arm hurts when I move it this way..."
    Last edited by bonsai; 10-31-2014 at 10:24 AM.

  18. #593
    Join Date
    Oct 2014
    Posts
    33
    Mentioned
    0 Post(s)
    Quoted
    16 Post(s)

    Default

    Sometimes takes a long time to start, sometimes it doesn't even start (can't find any NPC) but when it works, it works like a charm

  19. #594
    Join Date
    Jun 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by J_R View Post
    was using it for charms with 99 range and a royal crossbow, the entire thing took only 1 inventory of food.
    Can you post your XML file please? Having a hard time with the colors.
    Last edited by ulkog; 11-04-2014 at 11:07 AM.

  20. #595
    Join Date
    May 2014
    Posts
    633
    Mentioned
    8 Post(s)
    Quoted
    322 Post(s)

    Default

    Quote Originally Posted by ulkog View Post
    Can you post your XML file please? Having a hard time with the colors.
    I just used autodetect and the script made the color file for me...I was running it in the chaos tunnels though if that makes any difference. Don't really want to post the file, it's pretty big.

  21. #596
    Join Date
    Jun 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by J_R View Post
    I just used autodetect and the script made the color file for me...I was running it in the chaos tunnels though if that makes any difference. Don't really want to post the file, it's pretty big.
    PM me please? Autodetect's not working for me, even in Chaos tunnels.. it's giving an overload or nothing detected at all

  22. #597
    Join Date
    Aug 2014
    Posts
    278
    Mentioned
    10 Post(s)
    Quoted
    113 Post(s)

    Default

    i have used auto detect for more than 20+ monsters and they work fine from small to big. wonder why it doesnt work for you.

  23. #598
    Join Date
    Apr 2012
    Posts
    96
    Mentioned
    1 Post(s)
    Quoted
    52 Post(s)

    Default

    Wow that waterfiend proggy is impressive. I wonder if with full armadyl gear with armadyl crossbow at ~75 ranged Id get any decent xp
    99's using SRL bots: Mining, Smithing, Magic, Cooking, Firemaking, Fletching, Hunting, Divination, Fishing, Woodcutting, Defense, Attack, Strenght, Constitution, Contruction, Ranged.
    Thanks to: Ashaman, DannyRS, The Mayor, footballjds, KeepBotting, Press Play, bonsai, Clarity, BANNED ON jonesy259 JASTRALS

  24. #599
    Join Date
    Apr 2012
    Location
    Gielinor
    Posts
    231
    Mentioned
    4 Post(s)
    Quoted
    33 Post(s)

    Default

    When I try to run Autodetect, I get:

    Simba Code:
    FindColorsBitmap returned an error
    ***** Tcolorizer.motionDetect: FAILED TO IDENTIFY ANYTHING.
    FindColorsBitmap returned an error
    ***** Tcolorizer.motionDetect: FAILED TO IDENTIFY ANYTHING.
    FindColorsBitmap returned an error
    ***** Tcolorizer.motionDetect: FAILED TO IDENTIFY ANYTHING.

    I tested this for multiple locations, still the same error message. I then used ACA to color pick,but in simba/includes/bonsai, there is no libnpcstandard.xml. I've removed the bonsai folder and tried reinstalling, but still no libnpcstandard.xml file shows up.

    You mentioned this:

    Quote Originally Posted by bonsai View Post
    See the second post in the thread for more info on adding new entries.

    "Add your entry into the user XML file (SIMBADIR/includes/bonsai/libnpcUser.xml). If this is your first time making one you can use this template for the formatting:"

    The file needs to start with <npclist> then the text you quoted then </npclist>
    but the second post does not contain this information.

  25. #600
    Join Date
    Aug 2014
    Posts
    278
    Mentioned
    10 Post(s)
    Quoted
    113 Post(s)

    Default

    Quote Originally Posted by MMOE View Post
    When I try to run Autodetect, I get:

    Simba Code:
    FindColorsBitmap returned an error
    ***** Tcolorizer.motionDetect: FAILED TO IDENTIFY ANYTHING.
    FindColorsBitmap returned an error
    ***** Tcolorizer.motionDetect: FAILED TO IDENTIFY ANYTHING.
    FindColorsBitmap returned an error
    ***** Tcolorizer.motionDetect: FAILED TO IDENTIFY ANYTHING.

    I tested this for multiple locations, still the same error message. I then used ACA to color pick,but in simba/includes/bonsai, there is no libnpcstandard.xml. I've removed the bonsai folder and tried reinstalling, but still no libnpcstandard.xml file shows up.

    You mentioned this:



    but the second post does not contain this information.
    Simba/Includes/Bonsai/Colors <--- go to that..

Page 24 of 55 FirstFirst ... 14222324252634 ... LastLast

Thread Information

Users Browsing this Thread

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

Posting Permissions

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