What would be like a skeleton code to add a looter ?
What would be like a skeleton code to add a looter ?
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
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
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.
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?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.
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
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.
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
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 ////////// ////////// ////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
was using it for charms with 99 range and a royal crossbow, the entire thing took only 1 inventory of food.
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)
No, too incompatible.
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
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.Other Stuff
"Doctor, my arm hurts when I move it this way..."![]()
Last edited by bonsai; 10-31-2014 at 10:24 AM.
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
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.
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
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)