[SRL-6] bonsaiFighter
bonsai
2013-11-08 13:13:46
Combat leveling script
Melee/Range/Magic
99s reported:[INDENT]I gave up tracking them! Here were the realy ones:
@nutta124 @Mantasx27 @uhit @everve @Note @jarofhearts @Cyanempire @ayzee5793[/INDENT]
Features:[INDENT]
- Autodetects and autocolors NPCs
- Motion detection mode
- Left or right click support to initiate fight.
- Food support. Will log out before letting you die.
- Autoupdater
- Antiban
- Basic break system so you can set time periods for regular breaks.
- On-screen and debug window progress reports.
- Pre-targets next npc while fighting
[/INDENT]
Requirements:[INDENT]You need a functional setup with current software (
Simba 1.x, SMART 8.X, SRL-6)
You need to use the player manager to add your character to a players file. The player manager is on the simba menu under srl->player manager.
[/INDENT]
Installing:[INDENT]Download the installer at the bottom of this post.
Run this installer script and it will download the most current package. The installer will delete itself when done. You will end up with bonsaiFighter.simba in your SIMBADIR/scripts folder. It will also install library files in SIMBADIR/includes/bonsai[/INDENT]
EOC Abilities:[INDENT]The player form has a field manualAbilities. My current recommendation is to set this to False and use the Runescape combat mode "revolution". This will automatically use your abilities without the script needing to do anything.
If you set manualAbilities to True the script will use abilities on your visible ability bar. It uses the first 9 slots from RIGHT to LEFT. If you place basic skills on the left, threshold in the middle, and ultimate on the right, it will use the ultimate and threshold when they are ready.[/INDENT]
In-game setup:[INDENT]Make sure your interface settings have
Always show target information checked.
Locate your character in the room you will be fighting in with a weapon in hand. You should be zoomed all the way out (smallest view of yourself).
If you want food support, have the food in your inventory. Set the food to one of the open taskbar slots. When you run the script, make sure the food key is set to the key to activate this slot.[/indent]
Example setup:[INDENT]

Note:
- A: If you grab the key you can move this up here out of the way. It helps keep the screen clear.
- B: Put your XP thing here. I don't use it yet but many scripts do and I will at some point
- C: Get this button out of the way
- D: Notice the food is on the '=' key
[/indent]
You can use the fighter as an include so you can make your own custom fighter/looter! [INDENT]Here is a sample that fights a few crawling corpses. You need a color file from the fighter that matches the name on the npc in the code.
program corpseTorso;
{$DEFINE SMART}
{$include_once srl-6/srl.simba}
{$include_once bonsai/blCombat.simba}
var
ccTorso: Tnpc;
i: integer;
begin
SetupSRL();
ccTorso.init('crawling-corpse-torso', true);
for i := 0 to 5 do
begin
combatMgr.attack(ccTorso, true {wait until dead},
nil {use default foodhandler}, MOUSE_RIGHT);
sleep(5000);
end;
end.
[/INDENT]
Known bugs / issues:[INDENT]
- Be patient with the coloring. It takes time to decide :)
- You can't fight NPCs that are over your level
- If it can't find enough colors to start fighting, try zooming in a little to get more detail. Remove the (bad) color file from your early attempts.
[/INDENT]
Improvements to be made:[INDENT]
- CTS2 color mode
- Form. Needs tabs. Human style breaking needs to be put in.
- Many others…
[/INDENT]
IMPORTANT NOTE: [indent]Since the script will autoupdate your changes can get overwritten. The updater will save previous versions to FILENAME.simba.bak
If you don't migrate your changes before two updates
you will lose them!! It's a good idea to save your entries somewhere.
[/INDENT]
Progress reported:[INDENT]
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 15 hr 52 min 54 sec(Total) 15 hr 52 min 54 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// NOTE 7,920 498.69 498.69 //////////
////////// XP 2,727,648 171,747.59 171,747.59 //////////
////////// Const XP 899,712 56,650.77 56,650.77 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
[/INDENT]
Credits:[INDENT]
@Camel - StarPaint debug
@Cyanempire - Testing, User assistance, color files
@Clarity - Jsons, web lookup for XP[/indent]
Color files:[INDENT]
If google doesn't overload[/INDENT]
Installer:[INDENT][ATTACH]27058[/ATTACH][/INDENT]
bonsai
2013-11-08 13:17:50
Fight Detectors99% of the problems with the sctipt are that it is hard to detect some of the fight indicators. The script might be run anywhere with any background mess. Various game doodads covers things briefly. Other people might be running around, popups, etc. It's pretty difficult to find things that work in every case.
This script uses a variety of detectors and decides on fight status depending on the results. Here's what those icons mean when you are fighting:

- A - The gold lock on the enemy target popup
- B - The health bar over your head
- C - The adrenaline bar over your head
- D - The text area of the popup
- E - The yellow circle of someone attacking you (THIS ONE IS WORKING POORLY)
- F - The red circle around your target NPC
- G - Detects enemy death from the '0' in the popup. This never turns yellow since the program flashes them all red when this happens!!
- H - If this is green, the program thinks it is in a fight.
Here's another view if it helps. You can't see the gold lock, but you know what it is:
Every time an enemy dies you should see the icons flash red. If this is not happening the DTM needs to be worked on. The program works a lot worse if this one is not working correctly.
Congrats on the (re)release! :)
freeplay
2013-11-09 03:07:17
Nice work on this. Tested it out on giant rats… The color choice was less than ideal but once i corrected it with ACA everything ran smoothly. Once i got the colors correct left click worked reasonably well.
sharkbaits
2013-11-09 17:29:28
I'm having difficulty at flesh crawlers. It finds the first one just fine, and initiates combat but after that the screen just rotates and nothing else happens.
bonsai
2013-11-09 19:49:18
From: sharkbaits
I'm having difficulty at flesh crawlers. It finds the first one just fine, and initiates combat but after that the screen just rotates and nothing else happens.
I just retried them and it was finding them ok here. BTW, there's a bunch of people that bot those rooms. I noticed that when I was testing and just had a hard time finding somewhere quiet to try. I ran a 6 hour test in the northeast room a couple of weeks ago
Maybe the color isn't working well for you. You can use ACA to pick a new one and edit the entry in SIMBADIR/includes/bonsai/libnpc.simba (use CTS 2).
You can uncomment the {$DEFINE DEBUG_ON} line at the top of bonsaiFighter.simba and it will generate lots of info about what it's doing.
If it's spinning around that pretty much tells me that it's not finding anything to fight.
Did you set it to left click? If so, try it with right click.
sharkbaits
2013-11-10 11:24:04
Alright, I'll try the things you said. I originally was using right click but after that did the same thing I just started going through things I could change. Thank you for your input and I'll try it, it's very helpful.
freeplay
2013-11-12 11:48:01
I've been having some trouble getting the script to run for long periods of time…
I've turned on debug and the few lines i see after the program has stopped is
***** Health check returning 55 percent
***** Identified 1 potential targets, trying to initiate fight
***** Fight initiated
***** Logging player in
not sure what to make of that
edit:
oh and another crash but this one i found the cause
sometimes you will do something like hover over the buttons to switch the action bar. This covers up the health meter, so the script thinks you have a health% in the single digits.
bonsai
2013-11-12 13:39:01
From: freeplay
I've been having some trouble getting the script to run for long periods of time…
I've turned on debug and the few lines i see after the program has stopped is
***** Health check returning 55 percent
***** Identified 1 potential targets, trying to initiate fight
***** Fight initiated
***** Logging player in
not sure what to make of that
edit:
oh and another crash but this one i found the cause
sometimes you will do something like hover over the buttons to switch the action bar. This covers up the health meter, so the script thinks you have a health% in the single digits.
update posted. probably not perfect yet but should help with these issues.
freeplay
2013-11-12 16:30:15
hmmmm….
now the script ends as soon as my client loads, without trying to log in
not sure, maybe something is wrong with my setup
bonsai
2013-11-12 16:44:17
I probably borked it. I know I used the copy I posted the other day after I figured out why it was saying not logged in so much. But I may have used it only when already logged in.
Can't test today. I think I got banned, login not working. :fiery:
freeplay
2013-11-12 17:03:58
:( sorry about the ban.
Take your time with the fix.
Edit:
hey look at that it works, your code is fine.
I'm just an idiot who botched it by accident.
almost1monkey
2013-11-19 17:52:15
[Error] C:\Simba\Scripts\bonsaiFighterInstall.simba(35:11): Duplicate identifier 'TUPDATER' at line 35
Compiling failed.
Keeps giving me this error, I've tried scanning through and also commenting out different sections.Still keeps giving me this error. Not very sure what to do?
bonsai
2013-11-19 18:22:44
From: almost1monkey
[Error] C:\Simba\Scripts\bonsaiFighterInstall.simba(35:11): Duplicate identifier 'TUPDATER' at line 35
Compiling failed.
Keeps giving me this error, I've tried scanning through and also commenting out different sections.Still keeps giving me this error. Not very sure what to do?
I think you have your interpreter set to pascalscript. Use script->interpreter->lape
This is a script for SRL6/RS3 so it uses lape.
I'm planning on working on this some more this week. Made a couple of tweaks, added a secondary method of finding the in-fight popup. I need to level a new character so I'll try to get some hours on it before I post it. the other script I was working on got me spanked so I gotta chill out on that anyway :)
almost1monkey
2013-11-19 19:13:14
Yeah you're right, almost as soon as I posted it I thought "You're running this in pascal dummy" Thank you haha :) and that sounds awesome. I haven't done any scripting in years but I just recently started back up into RS and there aren't very many out there so I might as well.
almost1monkey
2013-11-19 19:46:58
It's actually getting hung up after logging my player in, it chooses the correct world and then just sits there still waiting for the login even though it's already done. Any suggestion? I've made sure to edit everything I needed to as well.
bonsai
2013-11-19 20:04:43
Not a proper answer but you could try logging in first then running the script.
If you uncomment the {$DEFINE DEBUG_ON} line at the top of bonsaiFighter.simba it will generate lots of output so it would be easier to see where it's bugging up. Sounds like the player.login() isn't returning from the symptoms.
If you search for disableSRLDebug you can change the 'true' to 'false' (or just uncomment it). Then you'll get SRL debug printing in the same window with the script debug.
almost1monkey
2013-11-19 20:14:03
From: bonsai
Not a proper answer but you could try logging in first then running the script.
If you uncomment the {$DEFINE DEBUG_ON} line at the top of bonsaiFighter.simba it will generate lots of output so it would be easier to see where it's bugging up. Sounds like the player.login() isn't returning from the symptoms.
If you search for disableSRLDebug you can change the 'true' to 'false' (or just uncomment it). Then you'll get SRL debug printing in the same window with the script debug.
Alright so I checked the debug and this is what it's giving me.
—- WARNING: Unknown color count: 777
—- HINT: Please report this issue in the SRL bugs section of the forum
—— Saving screenshot: unknown_login_count.png
—- Login response: One minute as passed…
—— All players inactive…
– TPlayer.login(): False
I'm not exactly sure what to do about that :duh:
I figured out what the issue was. It could not detect my player when I was down in the level with catablepons. I moved to flesh crawlers and its working now.
RoyalPain
2013-11-20 00:14:29
hey I need some help! When I run the script it stops by itself after opening SMART and I'm left with this:
Exception in Script: Runtime error: "Access violation" at line 394, column 33
The following bitmaps were not freed: [SMART Debug Image]
File[C:\Users\Sony\Desktop\Simba\Includes\SRL-6/logs/SRL log (20-11-13 at 12.11.10 AM).txt] has not been freed in the script, freeing it now.
bonsai
2013-11-20 04:34:55
I believe that line is setupSRL() so you're not even getting launched. You should have debug output in SIMBADIR/include/srl-6/logs
Are you able to run a simple shell?
program new;
{$DEFINE SMART}
{$i srl-6/srl.simba}
begin
clearDebug();
setupSRL();
end.
gorouchan
2013-11-20 06:06:33
Why doesn't the script start? It just keep saying this?
—- Waiting up to 5 minutes for RS to load…
—- 1 minute(s) have passed, client is not ready yet
—- 2 minute(s) have passed, client is not ready yet
—- 3 minute(s) have passed, client is not ready yet
I already tried logging in so it doesn't have to log my account in. It seems it doesn't recognize SMART. But it already said this in Debug Box so..
——– Found 1 free client(s), attempting to pair to one…
———- smartSetAsTarget(): Succesfully set SMART[6272] as Simba's target
——– Succesfully paired to a existing client, SMART[6272]
—— smartPairToExistingClient(): result = true
—— Succesfully initialized via pairing to a previously spawned client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
http://i.imgur.com/KxnCrsV.pngI think the fact that the internal color data capture is disabled makes the S.M.A.R.T client non interactive? How do I enable it? Thanks!
bonsai
2013-11-20 07:43:54
From: gorouchan
Why doesn't the script start? It just keep saying this?
—- Waiting up to 5 minutes for RS to load…
—- 1 minute(s) have passed, client is not ready yet
I think the fact that the internal color data capture is disabled makes the S.M.A.R.T client non interactive?
SRL isn't recognizing that RS loaded in the smart window.
I would use the test script in the post above yours until it works ok.
Make sure you followed everything in the
setup guide, expecially setting up your graphic settings like brightness, opengl, etc.
The internal color thing is normal. Here's what mine looks like on a good launch.
[ATTACH=CONFIG]22396[/ATTACH]
gorouchan
2013-11-20 09:01:51
Do you have any idea why I keep re updating SRL and SPS?
I mean,
Update> Finished Updating> Close Simba> Reopen Simba> The SRL and SPS menus are gone from the tool bar. And this happened more than 5 times already. I kept updating and updating whenever I reopen Simba, the SRL and SPS menus are gone then when I try to enable them, there will be an update available. It's truly annoying. I believe the reason why the script doesn't work is because of this.
Your script seems to disable the SRL and SPS. O.o
http://i.imgur.com/DVdmQO0.png
bonsai
2013-11-20 09:28:20
The script isn't doing that to you. I'm not sure what would cause that but it's an issue with simba/extensions. I remember some posts about people losing extensions a couple of weeks ago. I don't remember seeing a solution on why it happened.
I did a new simba install on a clean machine yesterday and everything went ok. I did have to force a simba update the first time I ran it and say yes to the question about "you already have the current version, you sure you want to update".
freeplay
2013-11-23 17:56:55
My first 6+ hour run with this script :)
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ ( )\ ) ) )
¸.·´¯`·.¸ ( )\ ) ( (()/( ( ( ( ( /( ( /( ( (
¸.·´¯`·.¸ )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )(
¸.·´¯`·.¸ ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\
¸.·´¯`·.¸ | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_)
¸.·´¯`·.¸ | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_|
¸.·´¯`·.¸ |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_|
¸.·´¯`·.¸ |___/
¸.·´¯`·.¸
¸.·´¯`·.¸ Script runtime:
¸.·´¯`·.¸ 6 hr 54 min 29 sec(Total) 6 hr 21 min 15 sec(Active) 33 min 13 sec(Break)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸ KILLS ¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
almost1monkey
2013-11-24 01:15:04
It's been working wonderfully, I just tried to add a NPC and am unsure if I did it right
I added turoth to it
['Turoth', 63, 14.5, 9606336, 18.918, 19.525, 11.786,['ttack', 'uroth'], 45, 45, 170, _standardDTM, 120, -1, [5]]
like so. Picked the color with aca and used the rgb tol and xyz values. I was unsure which slot in that was meant for which so I guessed.
However I am now getting this error in the bonsaifighter script
Exception in Script: Expression is not a valid range at line 80, column 7 in file "C:\Simba\Includes\bonsai\libnpc.simba"
and
Exception in Script: Constant expression expected at line 80, column 7
in the libnc script
Any idea why?
bonsai
2013-11-24 04:16:30
From: almost1monkey
['Turoth', 63, 14.5, 9606336, 18.918, 19.525, 11.786,['ttack', 'uroth'], 45, 45, 170, _standardDTM, 120, -1, [5]]
In ACA, you need to change it to CTS 2. After choosing a bunch of the colors and making sure 'mark best color' highlights the npc good, you enter the best color data into the program. It's also a good idea to do this on a few different screenshots taken from different logins/worlds. They love to change these a little here and there so sometimes you think you pick a great color then it doesn't work :)
In your example you have the tolerance value (an integer) set to 18.918 (an extended).
bonsai
2013-11-24 04:19:41
From: freeplay
My first 6+ hour run with this script :)
Sweet! I've fallen behind on getting an update posted. I have a slightly newer version that I only ran for about 2 hours and I'm not sure it has enough value added to bother people with the update (have to recustomize, etc).
bonsai
2013-11-24 04:36:09
From: sharkbaits
I'm having difficulty at flesh crawlers. It finds the first one just fine, and initiates combat but after that the screen just rotates and nothing else happens.
I had this same problem with a fresh setup and it was because I had the XP counter display thing on.
That was blcoking the compass so the SRL function to rotate was not able to see it.
freeplay
2013-11-24 11:47:08
From: bonsai
Sweet! I've fallen behind on getting an update posted. I have a slightly newer version that I only ran for about 2 hours and I'm not sure it has enough value added to bother people with the update (have to recustomize, etc).
Yeah, i had to make some changes to the code once I found the cause of the logout bug. What's happening is that if the logout button is covered you're script using the srl script thinks that you are logged out. So you try to log in. log in uses the same method to check that you are logged out. it is also fooled because the log out button is still covered. Eventually the log in times out.
This becomes worse if you are eating food because, if the food bar is covered you send the mouse to a random point in the minimap(covering it covers the log out). The run energy icon is in the minimap. This increases the odds of a crash.
I just added extra if statements so that if its going to try to log in or quit it moves the mouse to a safe location first and rechecks.
yay! just finished my second run with these changes >>>>>>>>>>>>>>>>>6 hr 11 min 3 sec(Total)
I think i got all the bugs out :)
freeplay
2013-11-24 13:50:52
Exception in Script: Unknown declaration "smartClientWidth" at line 425, column 51 in file "C:\Simba\Includes\bonsai\libnpc.simba"
I'm also having the SPS and SRL problems when i open a script rather than opening simba itself. Reinstalling Simba doesn't fix it :(
I have no idea whats going on here or if its related to the above error…
bonsai
2013-11-26 10:09:13
I'm working on some code changes including storing user customization and NPCs in XML files so you won't lose your settings when there is a program update. It's a lot of code so I'll need to run it through some testing. Hope to post it up in the next few days.
In the mean time, the script works with the new fixed screen SRL. The only thing you need to do is bump down the pixel counts in SIMBADIR/includes/bonsai/libnpc.simba
The smaller screen results in fewer pixels matched. Cut the _pointMatch on your NPC to a half or third of the current value.
bonsai
2013-11-26 10:10:25
From: freeplay
Exception in Script: Unknown declaration "smartClientWidth" at line 425, column 51 in file "C:\Simba\Includes\bonsai\libnpc.simba"
I'm also having the SPS and SRL problems when i open a script rather than opening simba itself. Reinstalling Simba doesn't fix it :(
I have no idea whats going on here or if its related to the above error…
This doesn't sound good. I don't think its related to the script. Did you get working since this post?
From: bonsai
This doesn't sound good. I don't think its related to the script. Did you get working since this post?
Ahh… I changed the smart client dimensions to constants since they can no longer be changed.
bonsai
2013-11-26 10:57:28
From: Olly
Ahh… I changed the smart client dimensions to constants since they can no longer be changed.
I just used them; no changes. If he was getting unknown declaration it sounds like his SRL include was wonky. Or maybe a script without the {$DEFINE SMART}?
Actually i think he's trying to run the whole file, one of your includes.
freeplay
2013-11-26 14:46:19
I can get the fighting script to run if define
smartClientWidth=800;
smartClientHeight = 600;
In the libnpc include.
These are the just the values from smart.simba
On another note the size of the client is now different, so the interfaces don't fit nicely anymore. Do I just change the dimensions of the client using those variables in smart.simba? or is there a better way?
bonsai
2013-11-26 16:47:16
From: freeplay
I can get the fighting script to run if define
smartClientWidth=800;
smartClientHeight = 600;
In the libnpc include.
These are the just the values from smart.simba
On another note the size of the client is now different, so the interfaces don't fit nicely anymore. Do I just change the dimensions of the client using those variables in smart.simba? or is there a better way?
Did you see
this announcement about the screen changes?
You need to set graphics to fixed mode and choose the "old school" interface preset.
And I don't know why you would have to set smartClientXXX manually, the script includes srl.simba which includes smart.simba. Which leaves me thinking you removed / commented {$DEFINE SMART} at the top of bonsaiFighter.simba
bonsai
2013-11-27 17:16:10
Program updates posted, the autoupdater should pick them up or just redownload/run the installer.
Your old changes will be saved in <filename>.bak so make sure you save(d) them.
See the OP for more information. I will try to work up a good post on adding new NPCs.
* Added xml files to store user preferences and user defined NPCs. This should help with future updates so your customizations don't get overwritten.
* Changed definitions / code to support the new fixed size screen.
* Modified logic on mouse moving / avoiding covering the health bar, etc. So far so good on my tests.
* Changed to use my object finding library, added support for multiple colors on NPC (not really tested yet). Multiple colors are inclusive (meaning both colors must be found within a certain distance or they will not be considered matches).
* Changed use of toATPA(width, height) to use of split(dist).
* ???
Let me know if you bump into any issues.
almost1monkey
2013-11-28 01:21:00
I'm getting this error now
—– getJavaPath()
——– Using parameters [
http://world27.runescape.com/, f6972040531000897125]
——– Using plugins "OpenGL32.dll"
——– FATAL ERROR: Failed to spawn a SMART client
——– Freeing the minimap mask
****** bonsaiFighter: Script shutting down
I've made all necessary changes
bonsai
2013-11-28 01:35:41
From: almost1monkey
I'm getting this error now
—– getJavaPath()
——– Using parameters [http://world27.runescape.com/, f6972040531000897125]
——– Using plugins "OpenGL32.dll"
——– FATAL ERROR: Failed to spawn a SMART client
——– Freeing the minimap mask
****** bonsaiFighter: Script shutting down
I've made all necessary changes
Can you validate your software with something simple like this:
program new;
{$DEFINE SMART}
{$i srl-6/srl.simba}
begin
ClearDebug();
SetupSRL();
players.setup(['TTnick'], 'characters');
currentPlayer := 0;
players[0].world := 33;
players[currentPlayer].login();
// wait(10000);
// players[currentPlayer].logout();
end.
If that's ok, maybe post more of the log? I left debug on so there should probably be a bunch of stuff before that.
Here's mine from same section of debug
***** loadSettings: ..... mouseStyle =right
***** loadSettings: ..... npc =autodetect
***** Next break time calculated, break in 132.418033333333 minutes
-- setupSRL()
---- Setting up SRL...
---- initSmart():
------ Attempting to pair to a previously spawned client
------ smartPairToExistingClient():
-------- Found no free clients to pair to
------ smartPairToExistingClient(): result = false
------ Attempting to spawn a new client..
------ smartCreateClient():
---------- smartGetParameters(): Succesfully grabbed paramters
-------- getJavaPath():
---------- Attempting to search for your Java path
---------- Found your java path @ C:\Program Files\Java\jre7\bin\java.exe
-------- getJavaPath()
-------- Using parameters [http://world27.runescape.com/, f47593253025683428]
-------- Using plugins "OpenGL32.dll"
-------- Succesfully spawned a client, attempting to target
---------- smartSetAsTarget(): Succesfully set SMART[5024] as Simba's target
------ smartCreateClient(): result = true
------ Succesfully initialized via spawning a new client
---- initSmart()
------ smartSetupDrawing(): Succesfully setup SMART drawing
---- Waiting up to 5 minutes for RS to load...
------ __setInputBoxes(): Set username and password boxes
---- Client is ready.
---- Setup SRL in 16630ms.
-- setupSRL(): True
***** Logging player in
Gongarth
2013-11-29 11:09:20
I need help! For some reason my bot just sits and spins around then stops, spins around then stops over and over till it logs me off and wont fight anything! HELP MEH!
bonsai
2013-11-29 13:34:54
From: Gongarth
I need help! For some reason my bot just sits and spins around then stops, spins around then stops over and over till it logs me off and wont fight anything! HELP MEH!
Sorry about that! It's probably due to a bad color for that NPC. I had some problems myself this morning with a couple of them.
I'll have to spend some time gathering snapshots and recoloring.
You can try replacing the one you're working with. Run the ACA tool against a fresh screenshot (using CTS 2) and enter the "best color" data into the XML file entry for that NPC. The XML file is SIMBADIR/includes/bonsai/libnpcStandard.xml
On the positive side of things, I got EOC abilities working and started testing it.
Gongarth
2013-11-29 18:52:04
I just got Simba and I have no idea what the ACA or CTS 2 is! Can you give a detailed quote I can read that shows me where these tools are and everything I have to set up to change the colors for the Skeleton and Warped bat npc's?(ACA CTS 2)
Cashbaq
2013-11-29 21:08:30
Cashbaq
2013-11-29 21:10:39
[PHP]¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ ( )\ ) ) )
¸.·´¯`·.¸ ( )\ ) ( (()/( ( ( ( ( /( ( /( ( (
¸.·´¯`·.¸ )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )(
¸.·´¯`·.¸ ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\
¸.·´¯`·.¸ | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_)
¸.·´¯`·.¸ | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_|
¸.·´¯`·.¸ |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_|
¸.·´¯`·.¸ |___/
¸.·´¯`·.¸
¸.·´¯`·.¸ Script runtime:
¸.·´¯`·.¸ 1 hr 39 min 13 sec(Total) 1 hr 39 min 13 sec(Active) 0 sec(Break)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸ KILLS ¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ Giant Spider
¸.·´¯`·.¸ 213(Killed) 129(per hour run) 129(per hour active)
¸.·´¯`·.¸ 18105(xp) 10948(xp per hour run) 10948(xp per hour active)
¸.·´¯`·.¸ 5964(const xp) 3606(const xp per hour run) 3606(const xp per hour active)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸[/PHP]
:)
Cashbaq
2013-11-29 21:13:33
From: Gongarth
I just got Simba and I have no idea what the ACA or CTS 2 is! Can you give a detailed quote I can read that shows me where these tools are and everything I have to set up to change the colors for the Skeleton and Warped bat npc's?(ACA CTS 2)
Start here:
http://lmgtfy.com/?q=How+to+use+ACA+with+Simba
The Spark
2013-11-29 22:52:49
Just some suggestions:
Can you add Varrock Sewers: Deadly Red Spider? Because that's the main mob to kill from around lvl 70-99 :)
Giant spiders are OK but aren't great, and Deadly Red Spiders are really great for leveling.
Also: If you can add like a path to the bank to restock on food, that also would be awesome :)
Great script man!! ^_^
Gongarth
2013-11-30 00:53:15
Hey I would really appreciate if anyone can get the colors! I've tried almost every mob and yet I have not been able to detect even one of them! Can someone somehow give the color inputs they are using for each mob? I would really appreciate it!!
bonsai
2013-11-30 06:20:43
From: Gongarth
Hey I would really appreciate if anyone can get the colors! I've tried almost every mob and yet I have not been able to detect even one of them! Can someone somehow give the color inputs they are using for each mob? I would really appreciate it!!
I'm working on recoloring today. I have to gather a lot of screenshots from multiple logins/computers so it's time consuming. I hope to post an update later today.
If you're having trouble with all npcs, I wonder if your graphic settings are very different than mine?
Can you check against this?
[ATTACH=CONFIG]22448[/ATTACH]
Does your screen look like this?
[ATTACH=CONFIG]22449[/ATTACH]
bonsai
2013-11-30 06:27:37
From: sparkyownage
Just some suggestions:
Can you add Varrock Sewers: Deadly Red Spider? Because that's the main mob to kill from around lvl 70-99 :)
Giant spiders are OK but aren't great, and Deadly Red Spiders are really great for leveling.
Also: If you can add like a path to the bank to restock on food, that also would be awesome :)
Great script man!! ^_^
I'll try to get them in the update expected today/tomorrow. I actually started gathering some NPCs from that area yesterday. There aren't too many places loaded with things to fight, I was wondering if it might end up with a lot of idle time.
I wouldn't expect a bank run capability (probably ever :) ). That's a lot, especially considering the number of places it would have to know how to walk back to.
It seems like you get the most XP fighting things that you can kill with one/two whacks, so if you're needing a lot of food I think there may be more effective things to fight.
Cashbaq
2013-11-30 09:48:18
[PHP]¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ ( )\ ) ) )
¸.·´¯`·.¸ ( )\ ) ( (()/( ( ( ( ( /( ( /( ( (
¸.·´¯`·.¸ )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )(
¸.·´¯`·.¸ ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\
¸.·´¯`·.¸ | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_)
¸.·´¯`·.¸ | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_|
¸.·´¯`·.¸ |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_|
¸.·´¯`·.¸ |___/
¸.·´¯`·.¸
¸.·´¯`·.¸ Script runtime:
¸.·´¯`·.¸ 1 hr 23 min 3 sec(Total) 1 hr 23 min 3 sec(Active) 0 sec(Break)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸ KILLS ¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ Giant Spider
¸.·´¯`·.¸ 185(Killed) 122(per hour run) 122(per hour active)
¸.·´¯`·.¸ 15725(xp) 10379(xp per hour run) 10379(xp per hour active)
¸.·´¯`·.¸ 5180(const xp) 3419(const xp per hour run) 3419(const xp per hour active)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸[/PHP]
Gongarth
2013-11-30 11:43:23
First ever run!
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ ( )\ ) ) )
¸.·´¯`·.¸ ( )\ ) ( (()/( ( ( ( ( /( ( /( ( (
¸.·´¯`·.¸ )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )(
¸.·´¯`·.¸ ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\
¸.·´¯`·.¸ | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_)
¸.·´¯`·.¸ | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_|
¸.·´¯`·.¸ |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_|
¸.·´¯`·.¸ |___/
¸.·´¯`·.¸
¸.·´¯`·.¸ Script runtime:
¸.·´¯`·.¸ 42 min 25 sec(Total) 42 min 25 sec(Active) 0 sec(Break)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸ KILLS ¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ Giant Spider
¸.·´¯`·.¸ 75(Killed) 106(per hour run) 106(per hour active)
¸.·´¯`·.¸ 6375(xp) 9018(xp per hour run) 9018(xp per hour active)
¸.·´¯`·.¸ 2100(const xp) 2971(const xp per hour run) 2971(const xp per hour active)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
liam033500
2013-11-30 13:19:21
i cant run this scrip for some reson here is what i get:
——————————————————-
– Checking libupdater.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking libobjfind.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking libnpc.simba for updates.
– Version is current, no update needed.
***** _loadNpc: Loaded NPC record, name=Warped Cockroach color1=3624328 xp=24.9
***** _loadNpc: Loaded NPC record, name=Corpse Spider color1=4681085 xp=25
***** _loadNpc: Loaded NPC record, name=Warped Fly color1=2372952 xp=27.6
***** _loadNpc: Loaded NPC record, name=Crawling corpse torso color1=4020577 xp=40
***** _loadNpc: Loaded NPC record, name=Warped rat color1=4610917 xp=41
***** _loadNpc: Loaded NPC record, name=Skeleton color1=10017521 xp=33.9
***** _loadNpc: Loaded NPC record, name=Warped bat color1=4868944 xp=48
***** _loadNpc: Loaded NPC record, name=Corpse archer color1=7496753 xp=50
***** _loadNpc: Loaded NPC record, name=Skoblin color1=5273221 xp=36.5
***** _loadNpc: Loaded NPC record, name=Corpse mage color1=5524794 xp=52
***** _loadNpc: Loaded NPC record, name=Troll brute color1=6188401 xp=30
***** _loadNpc: Loaded NPC record, name=Goblin color1=4218426 xp=34
***** _loadNpc: Loaded NPC record, name=Minotaur color1=8230551 xp=34
***** _loadNpc: Loaded NPC record, name=Wolf color1=10077376 xp=0
***** _loadNpc: Loaded NPC record, name=Zombie color1=4212039 xp=31
***** _loadNpc: Loaded NPC record, name=Flesh Crawler color1=1062466 xp=64.5
***** _loadNpc: Loaded NPC record, name=Giant Rat color1=2370095 xp=30
***** _loadNpc: Loaded NPC record, name=Giant Spider color1=463646 xp=85
***** _loadNpc: Loaded NPC record, name=Catablepon color1=4155702 xp=132
***** _loadNpc: Loaded NPC record, name=Scorpion color1=2835556 xp=44
***** _loadNpc: Loaded NPC record, name=Spider color1=3359297 xp=36
***** _loadNpc: Requested file does not exist [C:\Simba\Includes\bonsai\libnpcUser.xml]
——————————————————-
– Checking libitem.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking libtask.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking libtracker.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking libbreak.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking bonsaiFighter.simba for updates.
– Version is current, no update needed.
***** loadSettings: Loaded settings from [C:\Simba\Scripts\bonsaiFighterSettings.xml]
***** loadSettings: ….. playerName =SnakeDecay
***** loadSettings: ….. playerFile =SnakeDecay
***** loadSettings: ….. desiredWorld =0
***** loadSettings: ….. healthPercentToEatAt =50
***** loadSettings: ….. healthPercentToQuit =25
***** loadSettings: ….. cantFindNpcLoops =150
***** loadSettings: ….. averageSessionMin =120
***** loadSettings: ….. sessionVarianceMin =20
***** loadSettings: ….. averageBreakMin =17
***** loadSettings: ….. breakVarianceMin =5
***** loadSettings: ….. logoutWhenExiting =False
***** loadSettings: ….. mouseStyle =left
***** loadSettings: ….. npc =Warped Cockroach
***** Next break time calculated, break in 122.33485 minutes
– setupSRL()
—- Setting up SRL…
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found no free clients to pair to
—— smartPairToExistingClient(): result = false
—— Attempting to spawn a new client..
—— smartCreateClient():
———- smartGetParameters(): Succesfully grabbed paramters
——– getJavaPath():
———- Attempting to search for your Java path
———- Found your java path @ C:\Program Files (x86)\Java\jre7\bin\java.exe
——– getJavaPath()
——– Using parameters [
http://world36.runescape.com/, f3083590200738444005]
——– Using plugins "OpenGL32.dll"
——– Succesfully spawned a client, attempting to target
———- smartSetAsTarget(): Succesfully set SMART[1316] as Simba's target
—— smartCreateClient(): result = true
—— Succesfully initialized via spawning a new client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
—- 1 minute(s) have passed, client is not ready yet
—- 2 minute(s) have passed, client is not ready yet
—- 3 minute(s) have passed, client is not ready yet
—- 4 minute(s) have passed, client is not ready yet
—- Client is taking too long to load, terminating…
– setupSRL(): False
– Freeing the minimap mask
****** bonsaiFighter: Script shutting down
—- Saving screenshot: bonsaiFighter.png
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ ( )\ ) ) )
¸.·´¯`·.¸ ( )\ ) ( (()/( ( ( ( ( /( ( /( ( (
¸.·´¯`·.¸ )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )(
¸.·´¯`·.¸ ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\
¸.·´¯`·.¸ | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_)
¸.·´¯`·.¸ | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_|
¸.·´¯`·.¸ |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_|
¸.·´¯`·.¸ |___/
¸.·´¯`·.¸
¸.·´¯`·.¸ Script runtime:
¸.·´¯`·.¸ 5 min 7 sec(Total) 5 min 7 sec(Active) 0 sec(Break)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
– Succesfully freed SMART[1316]
Successfully executed.
i think it may have somthing to do with this:
—- Waiting up to 5 minutes for RS to load…
—- 1 minute(s) have passed, client is not ready yet
—- 2 minute(s) have passed, client is not ready yet
—- 3 minute(s) have passed, client is not ready yet
—- 4 minute(s) have passed, client is not ready yet
—- Client is taking too long to load, terminating…
liam033500
2013-11-30 14:45:13
Dont worry i have figered out what when wrong it was just a mistype in the players folder
The Spark
2013-11-30 18:19:31
From: bonsai
I wouldn't expect a bank run capability (probably ever :) ). That's a lot, especially considering the number of places it would have to know how to walk back to.
It seems like you get the most XP fighting things that you can kill with one/two whacks, so if you're needing a lot of food I think there may be more effective things to fight.
Not really alot of banks, one for stronghold of security, maybe edgeville bank or varrock west bank, and for lumbridge dungeon, lumbridge bank I think..? so a maximum of around 4 banks you would have to put paths for, though I don't know if that would be difficult to put in your script or not XD
bobingtonbob
2013-12-01 01:32:32
From: sparkyownage
Not really alot of banks, one for stronghold of security, maybe edgeville bank or varrock west bank, and for lumbridge dungeon, lumbridge bank I think..? so a maximum of around 4 banks you would have to put paths for, though I don't know if that would be difficult to put in your script or not XD
One could put in a script to teleport to a city and then walk to bank…? I don't think that would be too hard. Let us know when you are finished coding it! :D
liam033500
2013-12-01 07:00:21
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ ( )\ ) ) )
¸.·´¯`·.¸ ( )\ ) ( (()/( ( ( ( ( /( ( /( ( (
¸.·´¯`·.¸ )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )(
¸.·´¯`·.¸ ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\
¸.·´¯`·.¸ | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_)
¸.·´¯`·.¸ | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_|
¸.·´¯`·.¸ |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_|
¸.·´¯`·.¸ |___/
¸.·´¯`·.¸
¸.·´¯`·.¸ Script runtime:
¸.·´¯`·.¸ 29 min 46 sec(Total) 29 min 46 sec(Active) 0 sec(Break)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸ KILLS ¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ Warped Cockroach
¸.·´¯`·.¸ 135(Killed) 272(per hour run) 272(per hour active)
¸.·´¯`·.¸ 3362(xp) 6775(xp per hour run) 6775(xp per hour active)
¸.·´¯`·.¸ 1107(const xp) 2231(const xp per hour run) 2231(const xp per hour active)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
First run! :)
liam033500
2013-12-01 11:25:23
¸.·´¯`·.¸ Script runtime:
¸.·´¯`·.¸ 2 hr 18 min 6 sec(Total) 2 hr 18 min 6 sec(Active) 0 sec(Break)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸ KILLS ¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ Crawling corpse torso
¸.·´¯`·.¸ 276(Killed) 120(per hour run) 120(per hour active)
¸.·´¯`·.¸ 11040(xp) 4797(xp per hour run) 4797(xp per hour active)
¸.·´¯`·.¸ 3643(const xp) 1583(const xp per hour run) 1583(const xp per hour active)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
First Long run! :)
bonsai
2013-12-01 17:17:38
I posted an updated color file in the first post. The forum wouldn't allow .xml extension, so I had to make it .xml.txt
Copy this file to SIMBADIR/includes/bonsai/libnpcStandard.xml to get the new definitions.
I have to write some code to get the XML files working with versions/autoupdate.
I also updated the script to use the EOC abilities.
Added a few NPCs. Deadly red spider by request, moss giant, shade/ghost/ankou from bottom floor of the stronghold. Couldn't test the varrock ones due to low level. The stronghold ones don't work too great due to colors being the same as backgrounds and they move fast.
The Spark
2013-12-01 21:16:15
Er, I'm getting this error, it finds the monster but it takes like 10 seconds because it cant find it and then it finds it via color match, anyone can help me?
****** Having problems finding NPC, sleeping
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 24
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 25
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 26
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 27
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 28
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 29
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 30
****** Having problems finding NPC, rotating cam.
***** Altering angle to 205
***** Health check returning 102 percent
***** Health check returning 102 percent
TObjFind.choose: found 1 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
****** Didnt find a Catablepon to fight. timesFailed = 31
****** Having problems finding NPC, moving to closest yellow dot
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 32
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 33
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 34
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 35
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 36
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 37
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 38
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 39
TObjFind.choose: found 0 possible objects
****** Didnt find a Catablepon to fight. timesFailed = 40
****** Having problems finding NPC, rotating cam.
***** Altering angle to 59
TObjFind.choose: found 3 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
TObjFind.choose: chooseOption called on object, result=True
***** Fight initiated
***** Tnpc.isInFight: did not find standard DTM, trying color match
***** Tnpc.isInFight: did not find standard DTM, trying color match
***** Tnpc.isInFight: did not find standard DTM, trying color match
and then it found it.
and also, it says returning health: 102%??? and its eating all my food when im not even below 50%
Cashbaq
2013-12-02 02:30:27
The health part is weird, but not really a problem as long as you're not dying and your food is not being wasted. With the monster finding, either edit the colour codes and tolerances yourself or fight a monster that has a more contrasting colour to its environment, this will help the script to find the monster a lot easier. Lastly, Bonsai uploaded a new xml file with updated info in it, if you haven't downloaded that and added as per the instructions
here, you should do that too. Let us know how you go.
Cashbaq
2013-12-02 02:31:51
[PHP]¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ ( )\ ) ) )
¸.·´¯`·.¸ ( )\ ) ( (()/( ( ( ( ( /( ( /( ( (
¸.·´¯`·.¸ )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )(
¸.·´¯`·.¸ ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\
¸.·´¯`·.¸ | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_)
¸.·´¯`·.¸ | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_|
¸.·´¯`·.¸ |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_|
¸.·´¯`·.¸ |___/
¸.·´¯`·.¸
¸.·´¯`·.¸ Script runtime:
¸.·´¯`·.¸ 3 hr 14 min 20 sec(Total) 2 hr 55 min 16 sec(Active) 19 min 4 sec(Break)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸ KILLS ¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸
¸.·´¯`·.¸ Giant Spider
¸.·´¯`·.¸ 448(Killed) 138(per hour run) 153(per hour active)
¸.·´¯`·.¸ 38080(xp) 11757(xp per hour run) 13036(xp per hour active)
¸.·´¯`·.¸ 12544(const xp) 3873(const xp per hour run) 4294(const xp per hour active)
¸.·´¯`·.¸
¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸[/PHP]
bonsai
2013-12-02 03:29:35
From: sparkyownage
Er, I'm getting this error, it finds the monster but it takes like 10 seconds because it cant find it and then it finds it via color match, anyone can help me?
TObjFind.choose: found 0 possible objects
This is indicating a color issue (if there are NPCs in view). For fix, I would check grahpic settings against the screenshot I posted a few posts back. Or recolor the entry to your own setup.
***** Tnpc.isInFight: did not find standard DTM, trying color match
***** Tnpc.isInFight: did not find standard DTM, trying color match
***** Tnpc.isInFight: did not find standard DTM, trying color match
This is normal, it spams that message in the time between clicking the NPC and the fight starting. On a couple of NPCs the DTM doesn't match and it spams that the whole fight.
and also, it says returning health: 102%???
That's normal too, they changed something that gives me back a few more pixels on the color check I do. I just need to record the newer count and use that for the percent. It's pretty harmless though.
and its eating all my food when im not even below 50%
This one's not harmless. It shouldn't eat the food unless it detects health lower than the percent you set in your settings. There were some earlier bugs with that but I haven't noticed anything on this version. I'll poke around and see if I see any likely cause. The old issues were when the health bar got covered up and it couldn't read it.
bonsai
2013-12-02 03:32:34
BTW, if the debugs are annoying anyone, they turn off by commenting out line 7. They're helpful if having problems but way too much when things are running ok :)
{$DEFINE DEBUG_ON}
Change to:
// {$DEFINE DEBUG_ON}
KeepBotting
2013-12-03 22:25:16
@Anyone that wants to fight deadly red spiders, I find these colors to be almost perfect:
<name>DRS</name>
<xp>399</xp>
<constXp>131.6</constXp>
<color1>3164087</color1>
<tolerance1>13</tolerance1>
<hue1>0.15</hue1>
<sat1>1.26</sat1>
Nehalem
2013-12-04 01:33:08
not working here
– Checking bonsaiFighter.simba for updates.
– Version is current, no update needed.
***** Next break time calculated, break in 178.49415 minutes
– setupSRL()
—- Setting up SRL…
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found 1 free client(s), attempting to pair to one…
——– Failed to pair to SMART[11832]
—— smartPairToExistingClient(): result = false
—— Attempting to spawn a new client..
—— smartCreateClient():
———- smartGetParameters(): Succesfully grabbed paramters
——– getJavaPath():
———- Attempting to search for your Java path
———- Found your java path @ C:\Program Files (x86)\Java\jre7\bin\java.exe
——– getJavaPath()
——– Using parameters [(unable to post links, f5335362921684422725]
——– Using plugins "OpenGL32.dll"
——– Succesfully spawned a client, attempting to target
———- smartSetAsTarget(): Succesfully set SMART[11216] as Simba's target
—— smartCreateClient(): result = true
—— Succesfully initialized via spawning a new client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
—— __setInputBoxes(): Set username and password boxes
—- Client is ready.
—- Setup SRL in 13828ms.
– setupSRL(): True
***** Logging player in
***** Health check returning 67 percent
***** Health check returning 67 percent
****** Starting auto detect process
***** autoDetect checking for Warped Cockroach
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Corpse Spider
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Warped Fly
TObjFind.choose: found 2 possible objects
TObjFind.choose: mouse moved to object 0
Font tmpMouseoverChars already loaded as: tmpMouseoverChars
TObjFind.choose: examining mouseText=Attack Giant spider (level.. SZ)
TObjFind.choose: Attack Giant spider (level.. SZ) matched; will click object
****** Auto detected NPC:
****** Could not set up NPC [autodetect]. Verify name is in XML file.
***** Loop ended, terminating
****** bonsaiFighter: Script shutting down
bonsai
2013-12-04 04:44:54
From: Nehalem
not working here
Font tmpMouseoverChars already loaded as: tmpMouseoverChars
TObjFind.choose: examining mouseText=Attack Giant spider (level.. SZ)
TObjFind.choose: Attack Giant spider (level.. SZ) matched; will click object
****** Auto detected NPC:
****** Could not set up NPC [autodetect]. Verify name is in XML file.
***** Loop ended, terminating
****** bonsaiFighter: Script shutting down
Looks like I bugged up the autodetect. Set your npc name to
'Giant spider' at the top of the script and it should run fine.
I'll poke at the code later and post an update.
The Spark
2013-12-04 19:02:22
Can you make it so that the script is using keys instead of clicking skills? It's unhumane, and makes it so that there is a greater chance of getting caught.
The Spark
2013-12-04 19:04:35
From: KeepBotting
@Anyone that wants to fight deadly red spiders, I find these colors to be almost perfect:
<name>DRS</name>
<xp>399</xp>
<constXp>131.6</constXp>
<color1>3164087</color1>
<tolerance1>13</tolerance1>
<hue1>0.15</hue1>
<sat1>1.26</sat1>
Thank you :D
bonsai
2013-12-04 20:25:08
From: sparkyownage
Can you make it so that the script is using keys instead of clicking skills? It's unhumane, and makes it so that there is a greater chance of getting caught.
Update posted, you should get it the next time you run the script.
Changes:
* When loading NPCs it will lowercase the names for comparisons. This will fix the autodetect problem posted today as well as any other case issues. Giant Rat == Giant rat == GIANT RAT
* Abilities are activated by keystroke instead of mouse clicks
* User NPCs are loaded before the pre-installed ones. That way if you override one of the the provided ones, your entry will take precendence.
stickyninja
2013-12-05 17:54:34
"Exception in Script: Unknown declaration "TObjFilterSpec" at line 268, column 38 in file "C:\Simba\Includes\bonsai\libnpc.simba"
This is the error I'm getting when I try and run this script. Any ideas?
bonsai
2013-12-05 18:25:00
From: stickyninja
"Exception in Script: Unknown declaration "TObjFilterSpec" at line 268, column 38 in file "C:\Simba\Includes\bonsai\libnpc.simba"
This is the error I'm getting when I try and run this script. Any ideas?
That's wierd. Was this on a new install or existing?
I just downloaded the installer to one of my machines and did a full install and it compiled ok.
TObjFilterSpec is in file SIMBADIR/includes/bonsai/libobjfind.simba
Somehow you don't have that or it is corrupt?
I would grab the installer from the first post and run that to fix things up.
stickyninja
2013-12-07 21:44:14
That fixed the first problem. now this is the error I'm getting.
Am I missing something here?
"Exception in Script: Runtime error: "Access violation" at line 421, column 33
The following DTMs were not freed: [0]
The following bitmaps were not freed: [Minimap Mask, SMART Debug Image]
File[C:\Simba\Includes\SRL-6/logs/SRL log (07-12-13 at 08.42.43 PM).txt] has not been freed in the script, freeing it now."
bonsai
2013-12-07 21:59:50
From: stickyninja
That fixed the first problem. now this is the error I'm getting.
Am I missing something here?
"Exception in Script: Runtime error: "Access violation" at line 421, column 33
The following DTMs were not freed: [0]
The following bitmaps were not freed: [Minimap Mask, SMART Debug Image]
File[C:\Simba\Includes\SRL-6/logs/SRL log (07-12-13 at 08.42.43 PM).txt] has not been freed in the script, freeing it now."
You need to edit bonsaiFighterSettings.xml and add your player nickname and filename
I guess I should have a check on that and a clear error message.
stickyninja
2013-12-08 20:47:06
From: bonsai
You need to edit bonsaiFighterSettings.xml and add your player nickname and filename
I guess I should have a check on that and a clear error message.
Okay, I'll give it a try. I was trying to use the player manager for login.
bonsai
2013-12-08 21:04:05
From: stickyninja
Okay, I'll give it a try. I was trying to use the player manager for login.
It does use the player manager but you still need to tell each script which nickname(s) to run for. You can put a bunch of characters into one player manager file.
Scripts also need the name of your player manager file. Player manager uses "default.xml" by default but you can change it to any name you want.
stickyninja
2013-12-10 01:30:52
From: bonsai
It does use the player manager but you still need to tell each script which nickname(s) to run for. You can put a bunch of characters into one player manager file.
Scripts also need the name of your player manager file. Player manager uses "default.xml" by default but you can change it to any name you want.
I finally got it to log in but it isn't attacking anything. I'm going to do a clean install of everything and see if that helps.
catsrback321
2013-12-10 06:19:22
Hey, I have tried running your script at minotaurs and goblins at the stronghold of security and it logs me in,
stands there for a little bit and terminates the script. In the de-bug it says:
***** Logging player in
*************************************************
***** ERROR GETTING PLAYER LOGGED IN, EXITING!!!
*************************************************
****** bonsaiFighter: Script shutting down
I have ran the sample script you provided to someone else earlier in this thread and that works fine :)
bonsai
2013-12-10 08:13:46
From: catsrback321
Hey, I have tried running your script at minotaurs and goblins at the stronghold of security and it logs me in,
stands there for a little bit and terminates the script. In the de-bug it says:
***** Logging player in
*************************************************
***** ERROR GETTING PLAYER LOGGED IN, EXITING!!!
*************************************************
****** bonsaiFighter: Script shutting down
I have ran the sample script you provided to someone else earlier in this thread and that works fine :)
It prints that message if "players[currentPlayer].login()" fails, so the SRL library is claiming you're not logged in.
I suspect RS is changing colors again and messing up the libraries. One of my test characters started doing stuff like this yesterday while another one worked fine.
bonsai
2013-12-10 08:15:43
From: stickyninja
I finally got it to log in but it isn't attacking anything. I'm going to do a clean install of everything and see if that helps.
That seems drastic if you have a workable setup that launches smart and logs in.
I would double check the graphics settings. I posted a screenshot previously in the thread.
Otherwise you might be having the same issue as catsrback321. What's the debug output looking like?
catsrback321
2013-12-10 10:14:47
this is a bigger caption of the debug,
—- Client is ready.
—- Setup SRL in 219ms.
– setupSRL(): True
***** Logging player in
*************************************************
***** ERROR GETTING PLAYER LOGGED IN, EXITING!!!
*************************************************
****** bonsaiFighter: Script shutting down
I've tried it in a few places wearing different things :/
bonsai
2013-12-10 13:04:53
From: catsrback321
this is a bigger caption of the debug,
—- Client is ready.
—- Setup SRL in 219ms.
– setupSRL(): True
***** Logging player in
*************************************************
***** ERROR GETTING PLAYER LOGGED IN, EXITING!!!
*************************************************
****** bonsaiFighter: Script shutting down
I've tried it in a few places wearing different things :/
Are you sure your graphic settings are all correct?
•Open the settings interface and select the preset layout Old School.
•Click Interface Settings and make sure that the "Slim Headers" is checked.
•Make sure the "Hide title bars when locked" is not checked.
graphics settingsIf so, you're hitting an SRL bug regarding the login checking.
the code that you're passing through is calling two SRL functions, isLoggedIn() and login() and these are failing.
if (not isLoggedIn()) then
begin
writeln('***** Logging player in');
takeScreenshot(scriptName + '.png');
if (not players[currentPlayer].login()) then
begin
writeln('*************************************************');
writeln('***** ERROR GETTING PLAYER LOGGED IN, EXITING!!!');
writeln('*************************************************');
terminateScript();
end
else
begin
mainscreen.setangle(MS_ANGLE_HIGH);
exitSquealOfFortune();
end;
end;
freeplay
2013-12-12 00:58:03
Script is running great :)
Every night I run it before I sleep and wake up to it still running strong.
Any chance you could add a 6-hour-fix. The length of my runs is limited by the frequency of the breaks i use and I would rather not forgo breaks to run all day. I know that it RS doesn't boot you out immediately after 6 hours anymore, but having a session run significantly more than 6 hours seems like it would be a red flag.
bonsai
2013-12-12 03:41:34
From: freeplay
Script is running great :)
Every night I run it before I sleep and wake up to it still running strong.
Any chance you could add a 6-hour-fix. The length of my runs is limited by the frequency of the breaks i use and I would rather not forgo breaks to run all day. I know that it RS doesn't boot you out immediately after 6 hours anymore, but having a session run significantly more than 6 hours seems like it would be a red flag.
It was my understanding from reading the code that player.login() would end up calling sixhourfix for me with no intervention. I thought it worked ok because I had a few runs more than six hours. Not much more, so maybe I just got lucky.
What sort of error do you see? Do you get a decent screenshot in the SIMBADIR/includes/srl-6/logs folder?
freeplay
2013-12-12 03:59:50
From: bonsai
It was my understanding from reading the code that player.login() would end up calling sixhourfix for me with no intervention. I thought it worked ok because I had a few runs more than six hours. Not much more, so maybe I just got lucky.
What sort of error do you see? Do you get a decent screenshot in the SIMBADIR/includes/srl-6/logs folder?
Ah, i've got it. The problem solves itself, but not in the way I expected. I would just recommend that people use frequent but short breaks as opposed to fewer long breaks (like I had). It never results in an error, but if you have long periods in between breaks you could have your client open for 8~9 hours (on a variable that jagex clearly watches).
bonsai
2013-12-12 04:07:56
From: freeplay
Ah, i've got it. The problem solves itself, but not in the way I expected. I would just recommend that people use frequent but short breaks as opposed to fewer long breaks (like I had). It never results in an error, but if you have long periods in between breaks you could have your client open for 8~9 hours (on a variable that jagex clearly watches).
At some point around 6 hours open they'll force you out. When it logs back in it should detect the six hour issue and spawn a new client, then log you in. At least, that's my understanding of it.
So you should be able to get 9-10 hour runs, but the last few hours would be on a second client session.
And during break you get idled out like if you walked away and left the browser open. That probably happens a lot so I don't think it's something too trackable. The length of actual login/activity per day; now that's something I would think they run reports on.
ifyouseekau
2013-12-12 04:49:55
Hi there, I got this error while attempting to run the script:
***** Logging player in
Exception in Script: Runtime error: "Font [NumberCharsSmooth] not found." at line 813, column 19 in file "C:\Simba\Includes\srl-6\lib\utilities\wrappers.simba"
The following DTMs were not freed: [0]
The following bitmaps were not freed: [Minimap Mask, SMART Debug Image]
File[C:\Simba\Includes\SRL-6/logs/SRL log (12-12-13 at 05.53.59 PM).txt] has not been freed in the script, freeing it now.
bonsai
2013-12-12 05:09:03
Your install isn't good. Perhaps force a simba update? Pick tools->update and if it says you are up to date, force it anyway.
Restart simba afterwards, do the same on the SRL menu, srl->update. If it updates, restart simba again.
Hopefully that will clear up any issues.
freeplay
2013-12-12 10:38:08
Ok, now I have an interesting error message that I get occasionally at the end of a long run.
Program exception!
Stacktrace:
Exception class: EThread
Message: Thread creation error: Not enough storage is available to process this command.
$004592BC
$006241F6
$0060E3D4
$004349D4
$0042C90A
$005835A5
$0058350F
$00508911
$768B7694
$768B870E
$768B85A5
$768B9C40
$00509475
$0042638C
$004267AF
$004494A3
$00426765
Simba Version: 1003
I don't think its an issue with my simba install, since other scripts i run for long times don't do this. I'll have the actual debug when I reproduce it.
bonsai
2013-12-12 12:06:23
Interesting. Best guess is that something my libraries/objects are doing cause a memory leak.
Did you catch any debug from the script before it happened? That might help me hone in on a culprit.
Or even the SRL output from SIMBADIR/includes/srl-6/logs may tell me.
Lape is a little quirky sometimes and I may need to avoid something I'm doing or find a different way to do it.
freeplay
2013-12-12 17:42:31
From: bonsai
Interesting. Best guess is that something my libraries/objects are doing cause a memory leak.
Did you catch any debug from the script before it happened? That might help me hone in on a culprit.
Or even the SRL output from SIMBADIR/includes/srl-6/logs may tell me.
Lape is a little quirky sometimes and I may need to avoid something I'm doing or find a different way to do it.
I had debug off when i got it this time, but i'm working on getting it again. I won't have a good internet connection for several hours so I'll probably post the actual debug tomorrow. The output i posted was from SIMBADIR/includes/srl-6/logs.
It crashes simba after 6-8 hours of running your script and i think that might be cumulative.
(a 2 hour run and a 6 hour run without restarting was the case for this crash)
stickyninja
2013-12-12 21:22:52
From: bonsai
Are you sure your graphic settings are all correct?
•Open the settings interface and select the preset layout Old School.
•Click Interface Settings and make sure that the "Slim Headers" is checked.
•Make sure the "Hide title bars when locked" is not checked.
That is my issue… I forgot to setup the graphics settings right. Got it up and running now. Thanks for the help!
freeplay
2013-12-13 01:10:40
TObjFind.choose: chooseOption called on object, result=True
***** Fight initiated
***** Tnpc.isInFight: did not find standard DTM, trying color match
***** Tnpc.isInFight: did not find standard DTM, trying color match
***** Tnpc.isInFight: did not find standard DTM, trying color match
***** Tnpc._doAbilities: ability[12] returned cooldown 40
***** Tnpc._doAbilities: ability[11] returned cooldown 1
***** Tnpc._doAbilities: activated ability[11]
***** Health check returning 98 percent
***** Health check returning 98 percent
***** Tnpc._doAbilities: ability[12] returned cooldown 50
***** Tnpc._doAbilities: ability[11] returned cooldown 1
***** Tnpc._doAbilities: activated ability[11]
***** Tnpc._doAbilities: ability[12] returned cooldown 62
***** Tnpc._doAbilities: ability[11] returned cooldown 88
***** Tnpc._doAbilities: ability[10] returned cooldown 63
***** Tnpc._doAbilities: ability[9] returned cooldown 90
***** Tnpc._doAbilities: ability[8] returned cooldown 1
***** Tnpc._doAbilities: activated ability[8]
***** Health check returning 98 percent
***** Health check returning 98 percent
***** Tnpc._doAbilities: ability[12] returned cooldown 73
***** Tnpc._doAbilities: ability[11] returned cooldown 1
***** Tnpc._doAbilities: activated ability[11]
***** Tnpc.isInFight: did not find standard DTM, trying color match
***** End of fight detected
***** Killed a Flesh Crawler
This is the simba output. The actual debug file was never created. I don't think this will be much help…
stickyninja
2013-12-13 02:13:36
Do I need to change something to make my guy eat? it got down to 20% with a full inventory of food and didn't eat.
Other than that working great! Here is my first run progress report.
////////////////////////////////////////////////////////////////////////////////////////////////////
////////// ( )\ ) ) ) //////////
////////// ( )\ ) ( (()/( ( ( ( ( /( ( /( ( ( //////////
////////// )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )( //////////
////////// ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\ //////////
////////// | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_) //////////
////////// | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_| //////////
////////// |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_| //////////
////////// |___/ //////////
////////// //////////
////////// Script runtime: //////////
////////// 2 hr 40 min 25 sec(Total) 2 hr 21 min 57 sec(Active) 18 min 28 sec(Break)//////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Corpse mage //////////
////////// 566(Killed) 212(per hour run) 239(per hour active) //////////
////////// 29432(xp) 11007(per hour run) 12440(per hour active) //////////
////////// 9679(const xp) 3620(per hour run) 4091(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
bonsai
2013-12-13 02:29:09
From: stickyninja
Do I need to change something to make my guy eat? it got down to 20% with a full inventory of food and didn't eat.
Other than that working great! Here is my first run progress report.
Sweet. Glad you got it going ok.
For the food, you need to assign the food to quick inventory A and make sure that slot has 'z' for the hotkey.
It just presses z when it wants to eat.
stickyninja
2013-12-13 09:45:50
From: bonsai
Sweet. Glad you got it going ok.
For the food, you need to assign the food to quick inventory A and make sure that slot has 'z' for the hotkey.
It just presses z when it wants to eat.
Okay I got it. Just one more setting I didn't check first. Thanks for the help.
The Spark
2013-12-13 19:02:34
Bank support would be lovely :) <3
stickyninja
2013-12-14 09:21:44
Script runtime:
7 hr 5 min 14 sec(Total) 6 hr 11 min 15 sec(Active) 53 min 59 sec(Break)
KILLS
Corpse mage
1586(Killed) 224(per hour run) 256(per hour active)
82472(xp) 11637(per hour run) 13329(per hour active)
27121(const xp) 3827(per hour run) 4383(per hour active)
Longest run yet! :)
freeplay
2013-12-14 13:55:19
I have a question about the color detection.
If you set two colors in the xml file, is it:
monster with color 1 and color 2
monster with color 1 or color 2
or something else?
bonsai
2013-12-14 16:07:42
From: freeplay
I have a question about the color detection.
If you set two colors in the xml file, is it:
monster with color 1 and color 2
monster with color 1 or color 2
or something else?
It will find both colors on the mainscreen. It filters these by clusting all pixels within a certain distance (<dist> in the XML file). So if you have a great color match you can use small dist like 2-3. If your color match gets holes, you could use higher numbers.
Then it fiters again keeping the areas where BOTH colors esist within a certain distance. That distance is in the XML file named <inclDist>. So if you use 35 it will only keep items where both of those colors are with 35 of each other.
The filtering also drops out small or large objects to minimize finding the wrong thing. Those are <minPixels> and <maxPixels>).
bonsai
2013-12-16 12:54:19
I changed the second post in this thread to have the information on how to add your own NPC entry. Please let me know if it is unclear.
freeplay
2013-12-17 12:21:05
Wow, that's a nice guide!
Thanks for the information :)
bonsai
2013-12-18 08:26:59
Word of warning…
Got a clean account permabanned at a time when I was only running this script (for short periods with plenty of breaks).
Too many bad mouseovers? Not sure.
It said macro goldfarm which makes no sense. The account has no money and super minimal trading history.
From: bonsai
Word of warning…
Got a clean account permabanned at a time when I was only running this script (for short periods with plenty of breaks).
Too many bad mouseovers? Not sure.
It said macro goldfarm which makes no sense. The account has no money and super minimal trading history.
What monsters where you fighting? I think they do macro goldfarm bans for things like cows/chickens because they're popular for training combat goldfarming bots, as well as monsters that are commonly botted for money.
The Spark
2013-12-22 11:44:06
////////////////////////////////////////////////////////////////////////////////////////////////////
////////// ( )\ ) ) ) //////////
////////// ( )\ ) ( (()/( ( ( ( ( /( ( /( ( ( //////////
////////// )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )( //////////
////////// ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\ //////////
////////// | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_) //////////
////////// | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_| //////////
////////// |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_| //////////
////////// |___/ //////////
////////// //////////
////////// Script runtime: //////////
////////// 10 hr 36 min 22 sec(Total) 9 hr 13 min 40 sec(Active) 1 hr 22 min 42 sec(Break)//////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Catablepon //////////
////////// 1717(Killed) 162(per hour run) 186(per hour active) //////////
////////// 226644(xp) 21369(per hour run) 24561(per hour active) //////////
////////// 74690(const xp) 7042(per hour run) 8094(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Got me from 66 to 69 attack.
Ashaman88
2013-12-23 10:54:14
Nice script, been getting a few levels on one of my accounts. Couple of things I noticed/suggestions
-When using the left click only option, it still clicks on monsters that have already been attacked (*). I think you have it excluded for the right click option, but I had to change a couple things to exclude the mouseovertext *. (This was with giant spiders) - I also changed the left click to a multi click, but that's just personal pref
-Why not add detection for when the monster has 0 hp and then immediately go to next one instead of waiting for the overhead dealio to go away? (Went ahead and added this in me local version)
-I was having trouble getting it to eat, so I ended up just putting the food in slot 1 of the action bar, and removing that bar from the ability checker since I don't use all of the ability slots.
-Another suggestion would be to add reguvinate or however you spell capability to help limit food usage
-Also you may want to put in OP that you need to have the target popup dealio turned on for it to work (You may have mentioned and I missed it - I had it turned off at LRC b/c it takes up a lot of room
Hope I didn't come across as raggin on your script, it is definitely really good!
////////////////////////////////////////////////////////////////////////////////////////////////////
////////// ( )\ ) ) ) //////////
////////// ( )\ ) ( (()/( ( ( ( ( /( ( /( ( ( //////////
////////// )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )( //////////
////////// ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\ //////////
////////// | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_) //////////
////////// | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_| //////////
////////// |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_| //////////
////////// |___/ //////////
////////// //////////
////////// Script runtime: //////////
////////// 1 hr 22 min 30 sec(Total) 1 hr 22 min 30 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Giant Spider //////////
////////// 570(Killed) 415(per hour run) 415(per hour active) //////////
////////// 48450(xp) 35235(per hour run) 35235(per hour active) //////////
////////// 15960(const xp) 11607(per hour run) 11607(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
lersner
2013-12-24 14:30:13
Amazing script! Im learning a little bit from your scripts man! Keep doing this good work i really appreciate it and im sure more do :)
stickyninja
2013-12-29 00:39:08
Script runtime: 5 hr 38 min 1 sec(Total) 5 hr 1 min 39 sec(Active) 36 min 22 sec(Break)
KILLS
Minotaur
1595(Killed) 283(per hour run) 317(per hour active)
54230(xp) 9626(per hour run) 10787(per hour active)
17864(const xp) 3171(per hour run) 3553(per hour active)
Best one yet! ;)
hmm was trying at warped cockroach, it does a lot of mouse hovering :(
I get 1 kill per minute roflol
edit: fixed, had to add a little wait before TObjFind.choose :)
edit2: superb script mate, this performs great!
Ponyrokkusu
2014-01-08 06:15:28
Edit: Nope, disregard this again, I'm still an idiot! xD
preetham96
2014-01-08 07:40:08
hey i got a lil prob when i run the script it asks for something called an army password for decryption when runscape login screen comes up i dont know what to type and if i just click enter it says sucessfully executedor if i cancel it it says
Exception in Script: Runtime error: "Access violation" at line 421, column 33
The following DTMs were not freed: [0]
The following bitmaps were not freed: [Minimap Mask, SMART Debug Image]
File[C:\Simba\Includes\SRL-6/logs/SRL log (08-01-14 at 03.45.25 PM).txt] has not been freed in the script, freeing it now.
bonsai
2014-01-08 13:18:11
That would imply you set encryption and a password on your player file when you set it up.
I never tried that so I'm not sure off the top of my head what may need to be done in the script (if anything).
If you want to get going immediately, set up another player file without the encryption and use that.
badezy
2014-01-13 03:35:10
Hi Bonsai - thanks for the great script. I'm new to the community and whilst I have used the search button I can't find a solution to my problem… I am sure it's simple.
I am getting the 'socket disconnected; unpairing' error.
Could you please help me?
bonsai
2014-01-13 07:27:14
From: badezy
Hi Bonsai - thanks for the great script. I'm new to the community and whilst I have used the search button I can't find a solution to my problem… I am sure it's simple.
I am getting the 'socket disconnected; unpairing' error.
Could you please help me?
That message always comes up when a script exits. The question is, why is the script exiting.
The info to solve your problem is most likely in the simba log. check SIMBADIR/includes/srl-6/logs
To get more logging in the simba window itself, make sure around line 7 that "{$DEFINE DEBUG_ON}" is not commented out. Also change around line 418 "disableSRLDebug := true" to "disableSRLDebug := false".
I did a test login this morning and had a problem with the login being recognized. It logged me in fine but the login() function didn't return it just sat waiting. Not sure if a recent update has messed up the SRL library a little.
badezy
2014-01-13 07:45:22
Thanks so much for replying.
This is the log….
– TPlayer.login(): False
*************************************************
***** ERROR GETTING PLAYER LOGGED IN, EXITING!!!
*************************************************
– Freeing the minimap mask
****** bonsaiFighter: Script shutting down
—- Saving screenshot: bonsaiFighter.png
But I don't understand because it appears to log in just fine. Then once it logs in it just waits then eventually brings up the menu and then stops.
bonsai
2014-01-13 09:07:02
From: badezy
Thanks so much for replying.
This is the log….
– TPlayer.login(): False
*************************************************
***** ERROR GETTING PLAYER LOGGED IN, EXITING!!!
*************************************************
– Freeing the minimap mask
****** bonsaiFighter: Script shutting down
—- Saving screenshot: bonsaiFighter.png
But I don't understand because it appears to log in just fine. Then once it logs in it just waits then eventually brings up the menu and then stops.
Yeah, assuming you have your graphics all set correctly, it looks like an SRL issue with the new RS update. It did it to me on a system that definitely worked well in the past.
It doesn't look like anyone has reported a bug yet. I'm at work so I can't test and gather info to write up a bug report.
It might work if you stop/start the script after you get logged in. Depends on whether the isloggedin() function is also wonky.
badezy
2014-01-13 16:58:53
From: bonsai
Yeah, assuming you have your graphics all set correctly, it looks like an SRL issue with the new RS update. It did it to me on a system that definitely worked well in the past.
It doesn't look like anyone has reported a bug yet. I'm at work so I can't test and gather info to write up a bug report.
It might work if you stop/start the script after you get logged in. Depends on whether the isloggedin() function is also wonky.
Understand, thanks very much.
Could I delete the 'isloggedin()' and then perhaps it will work?
bonsai
2014-01-14 03:04:31
From: badezy
Understand, thanks very much.
Could I delete the 'isloggedin()' and then perhaps it will work?
Yes, that would probably work around it temporarily.
badezy
2014-01-14 04:21:02
Didn't work I am afraid :(
From: badezy
Didn't work I am afraid :(
go to lin 418-420: fill your rafiki data there:
players.setup(['bot'], 'much');
currentPlayer := 0;
players[currentPlayer].world := 120;
works for me
badezy
2014-01-14 04:54:34
Hey, I tried that - same thing, can I maybe add you to Skype to show you what I am doing on my screen?
From: badezy
Hey, I tried that - same thing, can I maybe add you to Skype to show you what I am doing on my screen?
euh sure, gimme your skype
badezy
2014-01-15 05:30:39
Hey I just wanna thank you both for your help - I've resolved the issue. It was me fucking up the setup. I apologise for jerking you both around.
badezy
2014-01-22 07:11:36
Hi Bonsai, I've been using your script alot - with no issues. But all of a sudden I am getting this quite alot:
TObjFind.choose: found 1 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
****** Didnt find a Flesh Crawler to fight. timesFailed = 29
Any fixes?
bonsai
2014-01-22 10:50:52
From: badezy
Hi Bonsai, I've been using your script alot - with no issues. But all of a sudden I am getting this quite alot:
TObjFind.choose: found 1 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
****** Didnt find a Flesh Crawler to fight. timesFailed = 29
Any fixes?
It's not catching any mouseovertext. Maybe if you put a small wait in between the mouse move and text check it will get it?
File SIMBADIR/includes/bonsai/libobjfind.simba, function TObjFind.choose (around line 1243).
mouse(objPoints[i].rand(pointVariance), MOUSE_MOVE);
{$IFDEF DEBUG_ON} writeln('TObjFind.choose: mouse moved to object ', i); {$ENDIF}
moText := getMouseOverText();
Try changing to:
mouse(objPoints[i].rand(pointVariance), MOUSE_MOVE);
{$IFDEF DEBUG_ON} writeln('TObjFind.choose: mouse moved to object ', i); {$ENDIF}
wait(250);
moText := getMouseOverText();
You can play with the 250 to see what works well.
If it helps let me know and I can put out for general release.
stickyninja
2014-01-22 11:30:20
////////////////////////////////////////////////////////////////////////////////////////////////////
////////// ( )\ ) ) ) //////////
////////// ( )\ ) ( (()/( ( ( ( ( /( ( /( ( ( //////////
////////// )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )( //////////
////////// ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\ //////////
////////// | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_) //////////
////////// | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_| //////////
////////// |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_| //////////
////////// |___/ //////////
////////// //////////
////////// Script runtime: //////////
////////// 13 hr 9 min 21 sec(Total) 11 hr 38 min 35 sec(Active) 1 hr 30 min 45 sec(Break)//////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Catablepon //////////
////////// 2356(Killed) 179(per hour run) 202(per hour active) //////////
////////// 224762(xp) 17085(per hour run) 19304(per hour active) //////////
////////// 73743(const xp) 5605(per hour run) 6334(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Longest one I've gotten yet! ;)
bonsai
2014-01-22 12:53:33
From: stickyninja
////////////////////////////////////////////////////////////////////////////////////////////////////
////////// ( )\ ) ) ) //////////
////////// ( )\ ) ( (()/( ( ( ( ( /( ( /( ( ( //////////
////////// )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )( //////////
////////// ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\ //////////
////////// | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_) //////////
////////// | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_| //////////
////////// |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_| //////////
////////// |___/ //////////
////////// //////////
////////// Script runtime: //////////
////////// 13 hr 9 min 21 sec(Total) 11 hr 38 min 35 sec(Active) 1 hr 30 min 45 sec(Break)//////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Catablepon //////////
////////// 2356(Killed) 179(per hour run) 202(per hour active) //////////
////////// 224762(xp) 17085(per hour run) 19304(per hour active) //////////
////////// 73743(const xp) 5605(per hour run) 6334(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Longest one I've gotten yet! ;)
Grrr, you guys suck! I usually bot for an hour or two at a time and I keep getting bans!!! :fiery:
I'm about ready to bot my main since f2p chars get whack-a-moled.
I need to find some time to work on another script. Ashaman keeps releasing 10 scripts a week; it's making me feel lazy.
From: bonsai
Grrr, you guys suck! I usually bot for an hour or two at a time and I keep getting bans!!! :fiery:
I'm about ready to bot my main since f2p chars get whack-a-moled.
I need to find some time to work on another script. Ashaman keeps releasing 10 scripts a week; it's making me feel lazy.
Do u make your accounts in a short time span?
badezy
2014-01-22 17:07:31
From: bonsai
It's not catching any mouseovertext. Maybe if you put a small wait in between the mouse move and text check it will get it?
File SIMBADIR/includes/bonsai/libobjfind.simba, function TObjFind.choose (around line 1243).
mouse(objPoints[i].rand(pointVariance), MOUSE_MOVE);
{$IFDEF DEBUG_ON} writeln('TObjFind.choose: mouse moved to object ', i); {$ENDIF}
moText := getMouseOverText();
Try changing to:
mouse(objPoints[i].rand(pointVariance), MOUSE_MOVE);
{$IFDEF DEBUG_ON} writeln('TObjFind.choose: mouse moved to object ', i); {$ENDIF}
wait(250);
moText := getMouseOverText();
You can play with the 250 to see what works well.
If it helps let me know and I can put out for general release.
Thanks for replying - I'll give it a shot and let you know!
stickyninja
2014-01-25 20:56:47
From: bonsai
Grrr, you guys suck! I usually bot for an hour or two at a time and I keep getting bans!!! :fiery:
I'm about ready to bot my main since f2p chars get whack-a-moled.
I need to find some time to work on another script. Ashaman keeps releasing 10 scripts a week; it's making me feel lazy.
Sorry to hear about your bans!
badezy
2014-01-28 07:12:35
Am just loving your script mate - I'll post a proggy soon.
Have you had any luck with the collecting at all? Even it was charms it'd be helpful.
nutta124
2014-02-01 07:11:22
mm i cant find ''libnpcUser.xml'' in my bonsai folder
i only have ''libnpcStandard''
bonsai
2014-02-01 08:28:50
There is none by default, you need to make one if you are adding your own NPCs.
You can copy the libnpcStandard.xml and cut out all the entries (except one). Then overwrite that one with your NPC info.
I actually found a little time to mess around this morning and was working on a few small changes to this script. I braved running it on my main and can see some things on the local system that aren't obvious when you're on a slow teamviewer connection.
The fighting DTM wasn't matching well so I'm doing a new one, using the new HP function, etc. Anyone else been seeing any quirks I should look for?
nutta124
2014-02-01 10:32:43
did i do something wrong? it telling me to verify the name
[ATTACH=CONFIG]22840[/ATTACH]
its my first time doing this kind of stuff soo im not even sure what am i doing half of the time
<npc>
<name>Deadly Red Spider</name>
<xp>399</xp>
<constXp>131.6</constXp>
<color1>3412084</color1>
<tolerance1>6</tolerance1>
<hue1>0.28</hue1>
<sat1>1.19</sat1>
<color2>-1</color2>
<tolerance2>0</tolerance2>
<hue2>0.0</hue2>
<sat2>0.0</sat2>
<dist>5</dist>
<inclDist>0</inclDist>
<minPixels>50</minPixels>
<maxPixels>200</maxPixels>
<maxFightSeconds>60</maxFightSeconds>
<uptext>pider</uptext>
</npc>
bonsai
2014-02-01 16:50:26
Did you have all that wrapped by <npclist> and ended with </npclist> ?
Did you leave npcToFight (line 30 in bonsaiFighter.simba) set to 'autodetect' or did you change it to 'Deadly Red Spider' (recommended)?
You might want to meld in the rest of those pink colors or set <dist> larger than 5 to cover the gaps.
I'm pretty sure someone posted a good color for DRS if you browse the thread.
Moneymake
2014-02-07 17:13:13
From: bonsai
That would imply you set encryption and a password on your player file when you set it up.
I never tried that so I'm not sure off the top of my head what may need to be done in the script (if anything).
If you want to get going immediately, set up another player file without the encryption and use that.
Hey bonsai I am also getting that same message, but it does not say anything about the password, it simply starts to check all updates and set up the client and comes up with this…
—- Client is ready.
—- Setup SRL in 234ms.
– setupSRL(): True
Exception in Script: Runtime error: "Access violation" at line 421, column 33
The following DTMs were not freed: [0]
The following bitmaps were not freed: [Minimap Mask, SMART Debug Image]
File[C:\Simba\Includes\SRL-6/logs/SRL log (08-02-14 at 11.07.51 AM).txt] has not been freed in the script, freeing it now.
<<<< The first 3 lines of the debug that I posted before, to a newbie like me sounds like everything is going fine, but something little is affecting why the script is failing to start up.
Any information on why this could be happening is greatly appreciated, great script by the way, I can't wait to finally test it and get u a proggy =D
I appreciate the time taken for you reading this =D
//////////
////////// Script runtime: //////////
////////// 1 hr 45 min 52 sec(Total) 1 hr 45 min 52 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Goblin //////////
////////// 525(Killed) 298(per hour run) 298(per hour active) //////////
////////// 17850(xp) 10117(per hour run) 10117(per hour active) //////////
////////// 525(const xp) 298(per hour run) 298(per hour active) //////////
//////////
soyun
2014-02-18 00:31:49
my guy starts attacking another npc halfway through the fight, anyway to stop that?
I don't know too much but I'm thinking you hafta find extend the max time waited per battle. Whereever that would be in the script, im not sure.
Godless
2014-02-20 07:12:06
I don't know too much but I'm thinking you hafta find extend the max time waited per battle. Whereever that would be in the script, im not sure.
A good idea, but I have it set to the default 60 seconds and it still does it - there's no way it takes 60 seconds to 2/3 hit a DRS.
I can get this script to run steadily for hours in Chaos Tunnels at DRS with a SGS as I don't have to use food then (doesn't seem to want to eat for me).
The only issue is it doesn't wait until the monster is killed before trying to attack another and it shows the "can't find something to attack" error too much (even if it does) causing it to stop the script prematurely unless I set the error count before shut down until like 4000. Other than that it's a great script, not the most efficient, but hey, considering I didn't have to make the script or train manually, it's a win win. Cheers bonsai!
nutta124
2014-03-02 05:48:15
Exception in Script: Runtime error: "Access violation" at line 421, column 33
The following DTMs were not freed: [0]
The following bitmaps were not freed: [Minimap Mask, SMART Debug Image]
help?
Spectral
2014-03-03 10:02:34
Works well but stopped moving after an Hour and a half and I was just in the lobby
Neva Banned
2014-03-17 15:19:57
I will try this soon so I can get 99 slayer because I have always hated combat it bores me.
Ophanim
2014-03-22 19:11:07
I want to punch something.
I'm trying to add Dagon'hai Monks, but the surrounding area is basically the same color as their robes. What the hell! This is so annoying. The mouse goes haywire because it thinks Dagon'hai Monks are everywhere!
Furthermore, I tried to render each NPC in Photoshop individually… but then for some reason, the script couldn't recognize them in-game at all.
E: I'm personally deeming this impossible. If anyone has a working script extension for Dagon'hai Monks, I'd love you forever…
bonsai
2014-03-22 21:09:18
From: Ophanim
I want to punch something.
I'm trying to add Dagon'hai Monks, but the surrounding area is basically the same color as their robes. What the hell! This is so annoying. The mouse goes haywire because it thinks Dagon'hai Monks are everywhere!
Furthermore, I tried to render each NPC in Photoshop individually… but then for some reason, the script couldn't recognize them in-game at all.
E: I'm personally deeming this impossible. If anyone has a working script extension for Dagon'hai Monks, I'd love you forever…
Yeah, the other monks were a problem too. You can probably get it working by using more than one color. If you provide two colors the script identifies the area where both colors are present within the specified distance. Also, the min/max settings can help with stuff like this. If the background matches are returning 800 pixels and the NPC is returning more like 200, you can set the max around 300 and the background gets filtered out.
See post two for info on playing with the settings and how to test it. You can post a screenshot if you're having problems getting it going.
Not sure what you mean regarding photoshop. If you're talking about grabbing screen shots to test with, maybe your method of copy/paste is changing colors?
I usually use the snipping tool and paste it into MS paint.
I have an updated copy of the script that I haven't had a chance to test thoroughly. I added support for the user form and made a couple of small tweaks. I also added a directX flag but haven't tried anything with it yet.
Ophanim
2014-03-22 23:51:20
From: bonsai
Yeah, the other monks were a problem too. You can probably get it working by using more than one color. If you provide two colors the script identifies the area where both colors are present within the specified distance. Also, the min/max settings can help with stuff like this. If the background matches are returning 800 pixels and the NPC is returning more like 200, you can set the max around 300 and the background gets filtered out.
See post two for info on playing with the settings and how to test it. You can post a screenshot if you're having problems getting it going.
Not sure what you mean regarding photoshop. If you're talking about grabbing screen shots to test with, maybe your method of copy/paste is changing colors?
I usually use the snipping tool and paste it into MS paint.
I have an updated copy of the script that I haven't had a chance to test thoroughly. I added support for the user form and made a couple of small tweaks. I also added a directX flag but haven't tried anything with it yet.
Yeah, I tried using more than one color. Unfortunately, literally the only ones that don't seem to meld with the background is the golden belt-thing and the skin. Those colors make the cursor go haywire as well. I'll try to continue tinkering with it, but I think I might just train on them manually (*cry*).
Also, what I meant by rendering them in Photoshop was basically individually cropping each NPC on a white background and then continuing the color process with ACA. I can't show pictures, sorry.
Odds are that I'm doing this wrong. It's my first time. It took me like an hour to even get Simba set up (LOL).
Yoboi
2014-03-24 00:09:35
Superb script, I've used it for deadly red spiders, too bad that it can't bank haha.
I personally use a charm impling and it becomes a fighter/charm collector ;)
Thanks for this amazing script!
NineteenNinetyNine
2014-03-31 01:38:46
Great script! It's working great without stopping at Catablepons and Flesh Crawlers for hours. Will try to get some nice proggies in.
Godless
2014-04-03 06:05:27
From: NineteenNinetyNine
Great script! It's working great without stopping at Catablepons and Flesh Crawlers for hours. Will try to get some nice proggies in.
Any luck with those reports? I can never get it to run longer than an hour.
bonsai
2014-04-03 11:32:06
From: Desirousphere
Any luck with those reports? I can never get it to run longer than an hour.
Do you know why it's failing? It will create a screenshot when it exits. That is usually helpful to see where it was at. They are in the SIMBADIR/includes/srl-6/logs folder.
The only problems I had with it running for hours was if it chased an NPC out of the room and couldn't find them any more. Or if color matches were poor but in that case it generally fails right when started.
You can turn more debugging on by making sure "{$DEFINE DEBUG_ON}" is not commented out near the top. Also search for disableSRLDebug and make sure it's set to false. It will generate an offensive amount of debugging info :D
NineteenNinetyNine
2014-04-04 13:30:26
From: Desirousphere
Any luck with those reports? I can never get it to run longer than an hour.
I already reached my goal of 99 ranged thanks to this script, but the script would always run for atleast 4 hours straight.
bonsai
2014-04-05 03:27:10
I finally posted an updated version. Please let me know if you see any regression.
Changes:
* Added support for player form. You don't need to edit bonsaiFighterSettings.xml any more!
* Added DirectX support (I did not test this, please give feedback if you do).
* Added support for revolution combat mode. I recommend using this for abilities. Recent updates seem to have bugged up the SRL ability functions. In the player form, set manualAbilities to False. In runescape set your
combat mode to revolution.
* Removed a useless sleep, added a small sleep between mouse move and uptext checking.
It looks like there are some new problems detecting the in-fight popup. I didn't try to make a new DTM for it at this time. The secondary check is working so it has minimal impact.
Yoboi
2014-04-06 01:06:28
I'm having trouble adding waterfiends to the script properly, should I try to use the second colour function in order to ease the detection of waterfiends?
This is what I have
<npc>
<name>Waterfiend</name>
<xp>934</xp>
<constXp>308</constXp>
<color1>7561002</color1>
<tolerance1>6</tolerance1>
<hue1>0.36</hue1>
<sat1>2.35</sat1>
<color2>-1</color2>
<tolerance2>0</tolerance2>
<hue2>0.0</hue2>
<sat2>0.0</sat2>
<dist>4</dist>
<inclDist>0</inclDist>
<minPixels>10</minPixels>
<maxPixels>275</maxPixels>
<maxFightSeconds>100</maxFightSeconds>
<uptext>aterfiend</uptext>
</npc>
bonsai
2014-04-06 05:32:11
From: Yoboi
I'm having trouble adding waterfiends to the script properly, should I try to use the second colour function in order to ease the detection of waterfiends?
Can you post one or two screenshots so I can take a look without getting myself there?
Is the script saying that it can't find them and quitting after a couple of minutes of thrashing?
Godless
2014-04-06 06:36:09
Will have a play with it within the next day or two and let you know my results bonsai. Appreciate the effort. :)
terrmiits
2014-04-07 19:14:40
From: Yoboi
Superb script, I've used it for deadly red spiders, too bad that it can't bank haha.
I personally use a charm impling and it becomes a fighter/charm collector ;)
Thanks for this amazing script!
Hey, can u please provide me with you deadly red spider npc colours and other? I cant get to work this script on DRS, everything else runs just like a charm, already 99 att achieved with this. Too bad it doesnt collect charms and banks
Godless
2014-04-08 08:23:56
Hey bonsai, got it to run longer than I have been able to before since you updated it. Any way for me to make it slow down on how often it will attempt to attack a new spider?
bonsai
2014-04-08 12:24:34
From: Desirousphere
Hey bonsai, got it to run longer than I have been able to before since you updated it. Any way for me to make it slow down on how often it will attempt to attack a new spider?
Sure, you can add a wait in the main loop after it kills one. Around line 359. Note the wait added below (1-2 second delay).
I really have to wonder if you guys would get better XP fighting something else that you can kill in 1-2 whacks where there are plenty of them in a single place. For lower levels I found junk NPCs like troll brutes got better XP than fighting something closer to your own level.
if npc.attack(WAIT_FOR_END_OF_FIGHT, checkHealthAndEat, mouseStyle, manualAbilities) then
begin
{$IFDEF DEBUG_ON} writeln('***** Killed a ' + npc.name()); {$ENDIF}
timesFailed := 0;
antiBan();
tracker.recordKill(npc.name());
tracker.killHud();
if ((tracker.numKilled(npc) mod 15) = 0) then
tracker.progressReport();
wait(randomRange(1000,2000);
end
Also, could you post your XML entry for the person above you asking for a DRS entry? Thanks!
Yoboi
2014-04-08 19:45:55
Here's what I used to train to 90 atk/def/str at deadly red spiders, hope it works for you.
<npc>
<name>Deadly Red Spider</name>
<xp>399</xp>
<constXp>131.6</constXp>
<color1>5988626</color1>
<tolerance1>11</tolerance1>
<hue1>4.36</hue1>
<sat1>1.51</sat1>
<color2>-1</color2>
<tolerance2>0</tolerance2>
<hue2>0.0</hue2>
<sat2>0.0</sat2>
<dist>5</dist>
<inclDist>0</inclDist>
<minPixels>50</minPixels>
<maxPixels>200</maxPixels>
<maxFightSeconds>120</maxFightSeconds>
<uptext>pider</uptext>
</npc>
Neva Banned
2014-04-08 22:44:00
Love the script, on my way to 99 slayer and working on reading 1000 wpm ;)
terrmiits
2014-04-09 15:19:55
From: Yoboi
Here's what I used to train to 90 atk/def/str at deadly red spiders, hope it works for you.
<npc>
<name>Deadly Red Spider</name>
<xp>399</xp>
<constXp>131.6</constXp>
<color1>5988626</color1>
<tolerance1>11</tolerance1>
<hue1>4.36</hue1>
<sat1>1.51</sat1>
<color2>-1</color2>
<tolerance2>0</tolerance2>
<hue2>0.0</hue2>
<sat2>0.0</sat2>
<dist>5</dist>
<inclDist>0</inclDist>
<minPixels>50</minPixels>
<maxPixels>200</maxPixels>
<maxFightSeconds>120</maxFightSeconds>
<uptext>pider</uptext>
</npc>
OMG, Thank you Yoboi! Finally DRS works like a charm! Thank you really much! :)
EDIT: Hey, btw, bonsai, are you planning in future to add charm picking to your autofighter? That would be flawless :)
Yoboi
2014-04-09 19:28:47
From: terrmiits
OMG, Thank you Yoboi! Finally DRS works like a charm! Thank you really much! :)
EDIT: Hey, btw, bonsai, are you planning in future to add charm picking to your autofighter? That would be flawless :)
I'd recommend on leeching 100k tokens and getting a charming imp. By the way, ALWAYS use a ring of life if you have a charming imp.
bonsai
2014-04-09 19:51:30
From: terrmiits
OMG, Thank you Yoboi! Finally DRS works like a charm! Thank you really much! :)
EDIT: Hey, btw, bonsai, are you planning in future to add charm picking to your autofighter? That would be flawless :)
From: Yoboi
I'd recommend on leeching 100k tokens and getting a charming imp. By the way, ALWAYS use a ring of life if you have a charming imp.
Just as I was really getting into writing some scripts life threw me a couple of curveballs and I haven't had any time to spend on it. ATM I'm working 10-11 hours a day and taking care of a 16 month old on my own. Not much time and energy left for runescape lol.
Currently the script is very basic and just focused on XP.
I think the next step would be to use it as a base and produce some NPC specific scripts that could handle more of the drops/banking that people ask for. DRS is obviously a popular one.
I agree with Yobio on the imp. That's a simple way of getting the charms drops. Picking up drops is pretty hard to do in an intelligent manner. I can already see the complaints about how few NPCs it kills, inefficient, etc. Heck, people have already complained about efficiency and if you read the script all it does is find an npc, attack it, and find the next one :)
The easiest additions would probably be potion/prayer support. I don't think anyone has asked for them but they would help boost xp and save food.
I will probably add a foodKey option so we can stop using the (buggy) quick inventory and use the ability bar slots. That a simple coding effort.
Yoboi
2014-04-09 22:08:38
From: bonsai
The easiest additions would probably be potion/prayer support. I don't think anyone has asked for them but they would help boost xp and save food.
I will probably add a foodKey option so we can stop using the (buggy) quick inventory and use the ability bar slots. That a simple coding effort.
What I did to bypass the "buggy" quick inventory bar issue is to set a key without the ability bar to whatever hotkey I set the food to.
For example, I switched the = ability bar key to z for food and it never fails to eat at my desired health %.
xJennYx
2014-04-10 07:27:02
Fcuking brilliant, banned on 7 year acc :(
boobooo42
2014-04-10 12:39:55
From: xJennYx
Fcuking brilliant, banned on 7 year acc :(
How not to post 101.
terrmiits
2014-04-10 14:04:05
From: Yoboi
I'd recommend on leeching 100k tokens and getting a charming imp. By the way, ALWAYS use a ring of life if you have a charming imp.
Damn,but it would take a lot of time to get 100k tokens, atm lvl 14 dungeoneering, played for hour or so and got 270+ tokens, i realised that it would take a lot of time to get charming imp. Any recommendations?
EDIT:
" ATM I'm working 10-11 hours a day and taking care of a 16 month old on my own. Not much time and energy left for runescape lol."
I fully understand u, working 12hour shifts on CNC and also father of 2months old son :) Luckily for me, not alone. Cheers!
Godless
2014-04-12 02:14:18
From: bonsai
Sure, you can add a wait in the main loop after it kills one. Around line 359. Note the wait added below (1-2 second delay).
I really have to wonder if you guys would get better XP fighting something else that you can kill in 1-2 whacks where there are plenty of them in a single place. For lower levels I found junk NPCs like troll brutes got better XP than fighting something closer to your own level.
I've got high enough stats that I two hit spiders, plus I use a Saradomin Godsword to negate prayer and HP drain.
I'll give that code a try soon and let you know.
From: bonsai
Also, could you post your XML entry for the person above you asking for a DRS entry? Thanks!
Sorry guys, been a way for a few days, going to try Yoboi's settings and see if they are better than mine. Will let you all know tonight.
*************************************************************************
***** ERROR: You did not provide a valid playername/nickname/player file
*************************************************************************
****** bonsaiFighter: Script shutting down
—- Saving screenshot: bonsaiFighter.png
Anyone know what's up with this? Filled out the details fine. Didn't have this issue when I tried to use it last.
Rogue Sniper
2014-04-14 21:32:17
Im at warped rats and i keep getting this error.
***** Logging player in
***** Health check returning 84 percent
****** Starting auto detect process
***** autoDetect checking for Warped Cockroach
TObjFind.choose: found 6 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=Attack Warped rat
TObjFind.choose: Attack Warped rat matched; will click object
****** Auto detected NPC:
****** Could not set up NPC [autodetect]. Verify name is in XML file.
***** Loop ended, terminating
****** bonsaiFighter: Script shutting down
plus i think i messed something up with the game setting cuz my games looks like this.
[ATTACH=CONFIG]23188[/ATTACH]
bonsai
2014-04-15 02:48:59
From: Rogue Sniper
Im at warped rats and i keep getting this error.
***** Logging player in
***** Health check returning 84 percent
****** Starting auto detect process
***** autoDetect checking for Warped Cockroach
TObjFind.choose: found 6 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=Attack Warped rat
TObjFind.choose: Attack Warped rat matched; will click object
****** Auto detected NPC:
****** Could not set up NPC [autodetect]. Verify name is in XML file.
***** Loop ended, terminating
****** bonsaiFighter: Script shutting down
plus i think i messed something up with the game setting cuz my games looks like this.
[ATTACH=CONFIG]23188[/ATTACH]
That looks like a bug in the autodetect to me. I'll look into it. In the mean time choose warped rat from the drop down list in the form.
I think your screen looks ok.
Rogue Sniper
2014-04-15 15:14:55
Thanks bonsai … i got it to work by not using auto detect and i fixed the screen too by resetting the graphics to normal and then back to SMART
Moneymake
2014-04-16 00:34:08
Hey very nice script man, able to run it fine however it seems like the script has trouble locating the mobs. For example, the script searches for long amounts of time before finding a mob(I am using Deadly Red Spiders in Varrock Sewers). So it will move around skimming over some of the spiders but it does not pick them up and continues to follow a loop until finally it finds one and restarts the process. Is it maybe a problem with my computer because nobody else seems to have the problem. Anyways thanks again for the awsome script much appreciated.
Moneymake
2014-04-16 00:44:57
From: Yoboi
Here's what I used to train to 90 atk/def/str at deadly red spiders, hope it works for you.
<npc>
<name>Deadly Red Spider</name>
<xp>399</xp>
<constXp>131.6</constXp>
<color1>5988626</color1>
<tolerance1>11</tolerance1>
<hue1>4.36</hue1>
<sat1>1.51</sat1>
<color2>-1</color2>
<tolerance2>0</tolerance2>
<hue2>0.0</hue2>
<sat2>0.0</sat2>
<dist>5</dist>
<inclDist>0</inclDist>
<minPixels>50</minPixels>
<maxPixels>200</maxPixels>
<maxFightSeconds>120</maxFightSeconds>
<uptext>pider</uptext>
</npc>
Sorry bit a of a noob, I cannot find where to put this into the script, where did u put it?
bonsai
2014-04-16 02:46:10
From: Moneymake
Sorry bit a of a noob, I cannot find where to put this into the script, where did u put it?
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>
Moneymake
2014-04-16 05:24:43
From: bonsai
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>
ok thanks a lot, btw I posted sumthin above this, I should have just incorporated the two dunno why I made separate ones, but do u have any idea about that?
bonsai
2014-04-16 20:51:16
From: Moneymake
ok thanks a lot, btw I posted sumthin above this, I should have just incorporated the two dunno why I made separate ones, but do u have any idea about that?
That problem sounds like a bad color match, and hopefully the new entry will take care of it.
killercrashy
2014-04-25 23:56:54
For some reason my Rejuvinate ability will not activate while everything else does. Any thoughts? I didn't have an issue with past versions, but it's been about a month since I've used it.
bonsai
2014-04-26 00:12:22
From: killercrashy
For some reason my Rejuvinate ability will not activate while everything else does. Any thoughts? I didn't have an issue with past versions, but it's been about a month since I've used it.
Did you try it with manualAbilities set to false and runescape set to combat mode "revolution"? Then the script doesn't even need to press abilities.
You can turn on the debugging and see what's printing when it checks the abilities. If the script doesn't think it's ready that would be something in the SRL6 library. The ability checking function is a bit rough.
killercrashy
2014-04-26 01:23:53
From: bonsai
Did you try it with manualAbilities set to false and runescape set to combat mode "revolution"? Then the script doesn't even need to press abilities.
You can turn on the debugging and see what's printing when it checks the abilities. If the script doesn't think it's ready that would be something in the SRL6 library. The ability checking function is a bit rough.
I tried using revolution - problem is that it doesn't automatically activate threshold or ultimate abilities (rejuvenate being ultimate).
Looking in the debug the script is able to use my other abilities, but simply isn't showing anything with the slot containing rejuvinate.
donze
2014-05-02 15:10:11
Niiice bot! but it would be perfect if it could go back to town and fill up with food and go back to stronghold of security and find the Flesh Crawlers and repeat :)
+5 stars
terrmiits
2014-05-05 21:28:00
Thanks bonsai for helping me achieve 99 attack :)
andyroo
2014-06-08 07:08:59
hi ive been using this script very often lately. a problem i noticed is that the tnpc.isinfight function would detect an enemy health bar when the mouse was hovering over it, and i was not necessarily fighting it. this caused the script to stop with the "is in fight too long" case. so i added a case function so that every once in a while it does a smallmousemovement function. these functions are in include/bonsai, for those who do not know.
TimeRiders
2014-06-19 01:58:18
If anyone is able to help me out
I see that on the npc list theres deadly red spiders and I'm in the Varrock Dungeon and it seems to not log in or not attack the spider any help with this situation… sorry for sounding like a scrub
bonsai
2014-06-19 11:11:40
From: TimeRiders
If anyone is able to help me out
I see that on the npc list theres deadly red spiders and I'm in the Varrock Dungeon and it seems to not log in or not attack the spider any help with this situation… sorry for sounding like a scrub
Would have to see the debug output from the simba screen to tell if it's a setup issue or just a player manager / player name type issue.
Double check your settings vs. the setup guide. OpenGL/DirectX, screen size, display settings…
When you run the script, make sure you're selecting the same (opengl/directx) as you used in setting up. Make sure the player file and name are correct (and it is case sensitive).
Yoboi posted this entry for spiders, it may work better. You can edit SIMBADIR/includes/bonsai/libnpcStandard.xml
From: Yoboi
Here's what I used to train to 90 atk/def/str at deadly red spiders, hope it works for you.
<npc>
<name>Deadly Red Spider</name>
<xp>399</xp>
<constXp>131.6</constXp>
<color1>5988626</color1>
<tolerance1>11</tolerance1>
<hue1>4.36</hue1>
<sat1>1.51</sat1>
<color2>-1</color2>
<tolerance2>0</tolerance2>
<hue2>0.0</hue2>
<sat2>0.0</sat2>
<dist>5</dist>
<inclDist>0</inclDist>
<minPixels>50</minPixels>
<maxPixels>200</maxPixels>
<maxFightSeconds>120</maxFightSeconds>
<uptext>pider</uptext>
</npc>
bonsai
2014-06-19 11:17:28
I tried to run this the other day to validate I added directX properly to my machine.
The colors in the lumby dungeon are changed. It used to be kind of grey on grey now it's much brighter. Cockroaches used to be pinkish, now they're red.
I didn't check the stronghold and should probably double check my runescape settings.
Others seeing the same? Not sure I have the mental energy to go recolor all the entries :)
fridaynitelights
2014-06-22 12:15:54
From: bonsai
I tried to run this the other day to validate I added directX properly to my machine.
The colors in the lumby dungeon are changed. It used to be kind of grey on grey now it's much brighter. Cockroaches used to be pinkish, now they're red.
I didn't check the stronghold and should probably double check my runescape settings.
Others seeing the same? Not sure I have the mental energy to go recolor all the entries :)
I'm having the same experience in Stronghold. Had to redo the colors myself. There's a bit of a learning curve, but one you get the hang of it, you're good.
this script is pretty good, the only issue I'm having is that it just doesnt recognize the guthix blessing spell (it skips over it even if i put it to the right of death's swiftness). Do you know why?
I am running it at waterfiends and black demons without any other issues.
I think I managed to hard code the guthix blessing in by tying it to death's swiftness but idk if there is a better solution
TimeRiders
2014-06-23 00:54:46
Script wont eat at all
From: TimeRiders
Script wont eat at all
To make it eat you need to drag food to the action bar and customise key bind it to the 'z' key.
beefman
2014-06-24 12:34:01
It wouldn't let me run the script. I got this ;
-------------------------------------------------------
-- Installing bonsaiFighter
-------------------------------------------------------
-- Checking for bonsai include folder:
-- include folder already exists, no change made
-------------------------------------------------------
-- Installing latest libupdater.simba
-- file C:\Simba\Includes\bonsai\libupdater.simba already exists, renaming to .bak
-- removing file C:\Simba\Includes\bonsai\libupdater.simba.bak
-- Script C:\Simba\Includes\bonsai\libupdater.simba has been updated
-------------------------------------------------------
-- Installing latest libtracker.simba
-- file C:\Simba\Includes\bonsai\libtracker.simba already exists, renaming to .bak
-- removing file C:\Simba\Includes\bonsai\libtracker.simba.bak
-- Script C:\Simba\Includes\bonsai\libtracker.simba has been updated
-------------------------------------------------------
-- Installing latest libtask.simba
-- file C:\Simba\Includes\bonsai\libtask.simba already exists, renaming to .bak
-- removing file C:\Simba\Includes\bonsai\libtask.simba.bak
-- Script C:\Simba\Includes\bonsai\libtask.simba has been updated
-------------------------------------------------------
-- Installing latest libnpc.simba
-- file C:\Simba\Includes\bonsai\libnpc.simba already exists, renaming to .bak
-- removing file C:\Simba\Includes\bonsai\libnpc.simba.bak
-- Script C:\Simba\Includes\bonsai\libnpc.simba has been updated
-------------------------------------------------------
-- Installing latest libitem.simba
-- file C:\Simba\Includes\bonsai\libitem.simba already exists, renaming to .bak
-- removing file C:\Simba\Includes\bonsai\libitem.simba.bak
-- Script C:\Simba\Includes\bonsai\libitem.simba has been updated
-------------------------------------------------------
-- Installing latest libbreak.simba
-- file C:\Simba\Includes\bonsai\libbreak.simba already exists, renaming to .bak
-- removing file C:\Simba\Includes\bonsai\libbreak.simba.bak
-- Script C:\Simba\Includes\bonsai\libbreak.simba has been updated
-------------------------------------------------------
-- Installing latest libobjfind.simba
-- file C:\Simba\Includes\bonsai\libobjfind.simba already exists, renaming to .bak
-- removing file C:\Simba\Includes\bonsai\libobjfind.simba.bak
-- Script C:\Simba\Includes\bonsai\libobjfind.simba has been updated
-------------------------------------------------------
-- Installing latest libnpcStandard.xml
-- file C:\Simba\Includes\bonsai\libnpcStandard.xml already exists, renaming to .bak
-- removing file C:\Simba\Includes\bonsai\libnpcStandard.xml.bak
-- Script C:\Simba\Includes\bonsai\libnpcStandard.xml has been updated
-------------------------------------------------------
-- Installing latest bonsaiFighter.simba
-- file C:\Simba\Scripts\bonsaiFighter.simba already exists, renaming to .bak
-- removing file C:\Simba\Scripts\bonsaiFighter.simba.bak
-- Script C:\Simba\Scripts\bonsaiFighter.simba has been updated
-------------------------------------------------------
-- Installing latest bonsaiFighterSettings.xml
-- file C:\Simba\Scripts\bonsaiFighterSettings.xml already exists, renaming to .bak
-- removing file C:\Simba\Scripts\bonsaiFighterSettings.xml.bak
-- Script C:\Simba\Scripts\bonsaiFighterSettings.xml has been updated
-------------------------------------------------------
-- Install Completed
-------------------------------------------------------
Successfully executed.
>
bonsai
2014-06-24 15:41:37
That's fine, Beefman. It installed the scripts. Now open up bonsaifighter.simba and it should pull up a form.
As we were discussing the colors have changed for most everything so you'll probably have to read post 2 and color what you want. Or ask in the thread if someone has a current entry for what you want.
beefman
2014-06-24 18:27:50
From: bonsai
That's fine, Beefman. It installed the scripts. Now open up bonsaifighter.simba and it should pull up a form.
As we were discussing the colors have changed for most everything so you'll probably have to read post 2 and color what you want. Or ask in the thread if someone has a current entry for what you want.
Ah my bad, sorry for being a newbie. :P thanks for the help ha. Working now!
beefman
2014-06-26 07:21:42
Still can't get the script working. I run the scripts, logs in and looks for monsters (I'm at Stronghold of Security; Goblin, Minotaur, Wolf) However, it cannot find anything. It looks and shortly executes after.
I've checked my settings and i have my interface settings as Always show target information checked and it is completely zoomed out and i've check all my other settings. Any idea?
bonsai
2014-06-26 14:15:08
The colors have changed, it probably can't locate the NPCs. You'll have to capture the new colors (see post 2 in this thread).
If anyone has recolored these already, please post updated colors. I can work them into the xlm file.
Not sure when I will get time to redo them. Life is becoming more free but I think I have one more busy month coming before I really get a break.
Godless
2014-06-27 10:16:10
I'll try and learn it tomorrow and fix Troll brutes, if I get the time.
shazs
2014-06-27 14:18:52
when u guys re-take the colors please use 0% transparency so that we will all get similar results and not have problems with the colors :) I myself will see if I can capture some images and compile them.
shazs
2014-06-28 12:21:01
I got it to attack and kill the Minotaurs, but after it attacks the first one it just logs off. It just didnt detect that it killed the minotaur. Is there any way to fix this? here is what it said in the debug:
***** Logging player in
***** Health check returning 100 percent
TObjFind.choose: found 2 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
TObjFind.choose: chooseOption called on object, result=True
***** Fight initiated
***** Health check returning 100 percent
****** Something wrong… in fight too long
****** bonsaiFighter: Script shutting down
////////////////////////////////////////////////////////////////////////////////////////////////////
////////// ( )\ ) ) ) //////////
////////// ( )\ ) ( (()/( ( ( ( ( /( ( /( ( ( //////////
////////// )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )( //////////
////////// ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\ //////////
////////// | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_) //////////
////////// | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_| //////////
////////// |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_| //////////
////////// |___/ //////////
////////// //////////
////////// Script runtime: //////////
////////// 32 sec(Total) 32 sec(Active) 0 sec(Break) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Successfully executed.
Reliquin95726
2014-06-28 19:33:07
////////// Script runtime: //////////
////////// 1 hr 26 min 15 sec(Total) 1 hr 26 min 15 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Giant Spider //////////
////////// 706(Killed) 491(per hour run) 491(per hour active) //////////
////////// 60010(xp) 41742(per hour run) 41742(per hour active) //////////
////////// 19768(const xp) 13750(per hour run) 13750(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Having some issues with it attacking 5-6 spiders at a time, i end up surviving but it uses 7-8 lobsters due to continuously engaging more instead of finishing off the ones that are attacking it.
shazs
2014-06-29 09:42:55
<npc>
<name>Minotaur</name>
<xp>34</xp>
<constXp>11.2</constXp>
<color1>2391215</color1>
<tolerance1>28</tolerance1>
<hue1>0.17</hue1>
<sat1>0.92</sat1>
<color2>-1</color2>
<tolerance2>0</tolerance2>
<hue2>0.0</hue2>
<sat2>0.0</sat2>
<dist>8</dist>
<inclDist>0</inclDist>
<minPixels>20</minPixels>
<maxPixels>63</maxPixels>
<maxFightSeconds>120</maxFightSeconds>
<uptext>Minotaur</uptext>
</npc>
Here are updated colors for the minotaurs and it magically started to detect when it killed them so now it doesn't just attack one and log… Great bot :)
And about the colors.. every once in a while it will attack a rat.. idk why.. maybe its just antiban or maybe its the colors, but its not really a problem. I just wanted to mention that it does this.
bonsai
2014-06-29 11:17:32
From: Reliquin95726
Having some issues with it attacking 5-6 spiders at a time, i end up surviving but it uses 7-8 lobsters due to continuously engaging more instead of finishing off the ones that are attacking it.
Haha, I love when that happens!!
Do you have the pop ups enabled? The script isn't detecting that you got into a fight so it's attacking another NPC.
More of the debug output would be helpful to see the problem.
bonsai
2014-06-29 11:26:54
From: shazs
And about the colors.. every once in a while it will attack a rat.. idk why.. maybe its just antiban or maybe its the colors, but its not really a problem. I just wanted to mention that it does this.
The rat should be due to a color match in common with the minotaur. Harmless enough imo although it will be a little bit off on XP tracking.
Thanks for sharing the entry back! Anyone else who can please do the same. 20-63 looks pretty tight on the size match.
I'm planning on working on the script in a few weeks when I'm settled down. I have some new logic for the fight detection so maybe fix some of those false alarms.
shazs
2014-06-29 13:21:23
20-63 is the original size match that you had listed :p I'll see if I can help you out and get some more colors for you. Is there any potential for banking being added to the bot?
bonsai
2014-06-29 19:08:31
From: shazs
20-63 is the original size match that you had listed :p I'll see if I can help you out and get some more colors for you. Is there any potential for banking being added to the bot?
Oh, that's because I was matching on the tiny white horns. Run the test program in post 2 against your screenshot and it should show you how big your current matches are returning. If they're larger than 63 you'll be missing them with that entry.
Adding banking would mean making a branch script just for a specific NPC. I've thought about doing it for DRS since so many people like them. It's not a huge chore, the main script logic is simple. It just needs SPS maps and a little logic to use them.
Reliquin95726
2014-06-30 01:11:36
From: bonsai
Haha, I love when that happens!!
Do you have the pop ups enabled? The script isn't detecting that you got into a fight so it's attacking another NPC.
More of the debug output would be helpful to see the problem.
next time i run it ill run the debug with it. also ill check out to see if i had that running, im pretty sure i do but you never know :-P ill give ya an update tomorrow probably.
Doldol
2014-06-30 09:49:35
I have a suggestion;
It would be awesome if the script could use regenerate (which only works out of combat) when below a certain HP threshold, that way the script could run indefinitely, and I could use a 2H weapon! =]
But the script runs pretty good on Giant Spiders and Ankous for me on OpenGL, thanks a bunch for your work!
rewopelet
2014-06-30 18:44:31
for some reason it doesn't attack anything. having problem finding npc
shazs
2014-06-30 20:20:47
What npc are you attempting to attack? The colors may not have been updated for the specific npc yet.
TimeRiders
2014-07-01 08:27:39
From: rewopelet
for some reason it doesn't attack anything. having problem finding npc
Like Rewopelet said what npc's are you trying to attack ?
I encountered this problem when i first started using the script , you should check and make sure you set up your interface and graphics correctly, are you running in OpenGL or Direct-x ?
Lucidity
2014-07-02 15:05:58
I'm actually testing the script, been running it for a good 10 hours on two accounts. Works fairly decent, love how you can adjust things so easily.
nutta124
2014-07-02 17:17:07
did DRS got a colour change?
shazs
2014-07-02 20:18:24
only one way to find out :p
fridaynitelights
2014-07-02 23:20:38
From: xevo1
I'm actually testing the script, been running it for a good 10 hours on two accounts. Works fairly decent, love how you can adjust things so easily.
Would you mind sharing your settings/monsters?
Lucidity
2014-07-03 02:06:02
Well, I'm using the default NPC's that came with it - I haven't tried adding my own!
shazs
2014-07-03 07:48:34
But which npc's are you attacking? Some of the colors haven't changed such as catablepons, but others such as corpse mages need to be updated. It would just help to know which ones dont need to be updated.
nutta124
2014-07-03 14:23:47
there should be a page where players post their monster's colour number and such ~.~ thought it was a great idea.
TimeRiders
2014-07-03 22:49:34
From: nutta124
there should be a page where players post their monster's colour number and such ~.~ thought it was a great idea.
Try to make it a forum that's a great idea in my opinion :)
TimeRiders
2014-07-03 22:52:21
i looked at the libnpcStandard.xml.txt
and just informing you that the deadly red spider information on their is false
TimeRiders
2014-07-04 06:37:56
Just letting you know , i don't know why but the script will be running fine then it will attack a npc not fully kill and hop to another and continue like its not being attacked other times it will attack the ones it didn't finish but ive died numerous times now and it's just getting so frustrating cause i will think to my self that i can go do something else other than babysitting and come back dead ( the script is great don't get me wrong dude, just it's something to look into i'm not sure if this is happening/happened to other individuals running this script)
nutta124
2014-07-04 14:33:06
where do i add my own npc? in the script it siad in ''libnpcUser.xml'' but theres only libpcStandard.xml?!?
TimeRiders
2014-07-04 23:36:48
From: nutta124
where do i add my own npc? in the script it siad in ''libnpcUser.xml'' but theres only libpcStandard.xml?!?
Someone correct me if im wrong but you download the second file it should say "libnpcStandard.xml.txt" then you just add the npc like the rest
bonsai
2014-07-05 06:07:37
From: TimeRiders
Someone correct me if im wrong but you download the second file it should say "libnpcStandard.xml.txt" then you just add the npc like the rest
libnpcStandard.xml is the file automatically installed by the script. You make libnpcUser.xml yourself, just follow the same structure as the other one.
If the script updates it will only change libnpcStandard.xml and you won't lose your manual entries in libnpcUser.xml.
You can also add entries to libnpcStandard.xml. You just carry the risk that the script will overwrite them.
bonsai
2014-07-05 06:13:14
From: TimeRiders
Just letting you know , i don't know why but the script will be running fine then it will attack a npc not fully kill and hop to another and continue like its not being attacked other times it will attack the ones it didn't finish but ive died numerous times now and it's just getting so frustrating cause i will think to my self that i can go do something else other than babysitting and come back dead ( the script is great don't get me wrong dude, just it's something to look into i'm not sure if this is happening/happened to other individuals running this script)
If it moves on to another NPC that means it thought the fight was over (did not detect the in-fight popup).
I need to rework some of that logic. I'm thinking to use the red targeting circle as a primary indicator and the popup as a secondary.
It's disappointing it didn't recognize your low health and let it die.
nutta124
2014-07-10 21:39:37
The script ran for 4 hours but it self shutdown
Exception in Script: Runtime error: "Out of memory" at line 145, column 23 in file "C:\Simba\Includes\srl-6\lib\utilities\wrappers.simba"
The following DTMs were not freed: [0]
The following bitmaps were not freed: [Minimap Mask, SMART Debug Image, Gametab Bitmap[13], Gametab Bitmap[12], Gametab Bitmap[11], Gametab Bitmap[10], Gametab Bitmap[9], Gametab Bitmap[8], Gametab Bitmap[7], Gametab Bitmap[6], Gametab Bitmap[5], Gametab Bitmap[4], Gametab Bitmap[3], Gametab Bitmap[2], Gametab Bitmap[0], Gametab Bitmap[1]]
File[C:\Simba\Includes\SRL-6/logs/SRL log (10-07-14 at 10.31.50 PM).txt] has not been freed in the script, freeing it now.
bonsai
2014-07-11 04:40:49
From: nutta124
The script ran for 4 hours but it self shutdown
Yuck I don't like the looks of that one at all. No clue how to debug a memory leak in a script lol.
It's probably some slop in libobjfind.simba.
You doing anything unusual like a two color npc?
nutta124
2014-07-11 10:20:43
No, i was using the script's giant spider.
mathozz
2014-07-23 08:54:01
can someone add waterfiends?
bonsai
2014-07-23 11:19:40
I've been working on automatic detection. It's about half baked.
It finds NPCs based on screen movement, grabs colors around the mouse area, and tests them to find usable ones.
It's pretty sweet. No more coloring!! I have it working, just refining some ideas like balancing accuracy / speed.
nutta124
2014-07-23 15:25:26
Whoa, but what if theres 2 different monsters in an area? O.o
bonsai
2014-07-23 19:12:21
From: nutta124
Whoa, but what if theres 2 different monsters in an area? O.o
Yes, that can be a problem. I can keep an NPC name in the form and reject incorrect matches on the motion detection.
Can't do much about a color matching both unless you want to right click, decide it's the wrong one, and move one. Might as well just kill the dang thing ehehe
It runs the mouse around like a madman for a couple of minutes right now. Looking to smooth that out so it learns over time but still gets killing asap.
Hitting background colors is a problem, the findcolors hangs for a long time collecting them.
mathozz
2014-07-24 17:07:40
cool +1
alee1
2014-07-25 13:19:18
From: bonsai
Yes, that can be a problem. I can keep an NPC name in the form and reject incorrect matches on the motion detection.
Can't do much about a color matching both unless you want to right click, decide it's the wrong one, and move one. Might as well just kill the dang thing ehehe
It runs the mouse around like a madman for a couple of minutes right now. Looking to smooth that out so it learns over time but still gets killing asap.
Hitting background colors is a problem, the findcolors hangs for a long time collecting them.
Hey mate, whenever I try to run your script and the fight menu pops up and when i have everything checked
And click Run It just opens a new client? i really need help, thanks.
bonsai
2014-07-25 15:06:27
I'm not sure I understand. When you hit run on the form a SMART window should come up and start loading runescape.
Are you saying you get more than one of these?
What shows up in the simba console at the bottom of the window?
alee1
2014-07-25 17:50:00
From: bonsai
I'm not sure I understand. When you hit run on the form a SMART window should come up and start loading runescape.
Are you saying you get more than one of these?
What shows up in the simba console at the bottom of the window?
I already have one but I get another one?
nutta124
2014-07-26 10:57:07
it doesnt use my weapon's special -.- i have the special icon in the action bar but it never been activate
HELPPP!@ D:
alee1
2014-07-26 18:47:20
Why does it only attack 1 monster then it just stays there??
nutta124
2014-07-26 18:53:19
From: alee1
Why does it only attack 1 monster then it just stays there??
its probably couldnt find the colour. what monster were you fighting?
alee1
2014-07-26 18:58:08
From: nutta124
its probably couldnt find the colour? what monster are you fighting?
Giant spiders, can you help me with team viewer
nutta124
2014-07-26 19:13:09
From: alee1
Giant spiders, can you help me with team viewer
the giant spider's colors are pretty old(i think O.o). you should try using the ACA tool to get a better color
if you want i can give you my Fire Giant(Chaos tunnel)'s color if you're interested, its not prefect but i could run it for 2/3 hours before running out of food supply
alee1
2014-07-26 19:17:14
From: nutta124
the giant spider's colors are pretty old(i think O.o). you should try using the ACA tool to get a better color
if you want i can give you my Fire Giant(Chaos tunnel)'s color if you're interested, its not prefect but i could run it for 2/3 hours before running out of food supply
Yea sure that would be better.
nutta124
2014-07-26 19:19:15
From: alee1
Yea sure that would be better.
you're welcome~
<npc>
<name>Fire giant</name>
<xp>424</xp>
<constXp>140</constXp>
<color1>2900866</color1>
<tolerance1>26</tolerance1>
<hue1>0.14</hue1>
<sat1>1.10</sat1>
<color2>-1</color2>
<tolerance2>0</tolerance2>
<hue2>0.0</hue2>
<sat2>0.0</sat2>
<dist>4</dist>
<inclDist>0</inclDist>
<minPixels>450</minPixels>
<maxPixels>1500</maxPixels>
<maxFightSeconds>180</maxFightSeconds>
<uptext>iant</uptext>
</npc>
alee1
2014-07-26 19:39:55
From: nutta124
you're welcome~
Hey man thanks for the code, but just one question, I add it to the notepad where all
The codes for the other monsters? Just that?
nutta124
2014-07-26 20:00:50
yeah, add it to ''libnpcStandard.xml''
Then, in the start up menu there should be ''Fire Giant'' in the monster list
nutta124
2014-07-26 20:31:35
bonsai!!~~ the manualAbilities wouldnt click on the ''Special Attack'' icon -.- its a threshold ability so Revolution would not activate it. FIX?! T-T
i really need it for my saradomin gs's healing ability~~ thank you :3
bonsai
2014-07-26 21:50:57
From: alee1
I already have one but I get another one?
I don't know what could cause that. I assume it happens with any script?
Did you try something simple like:
program new;
{$DEFINE SMART}
{$i srl-6/srl.simba}
begin
clearDebug();
setupSRL();
end.
If it still happens, post in one of the general help areas, it's not a script issue.
bonsai
2014-07-26 21:53:11
From: alee1
Why does it only attack 1 monster then it just stays there??
The debug window should tell you what it's thinking. If you didn't enable it:
Around line 7 there is a line of code: "{$DEFINE DEBUG_ON}". Comment this out to reduce the printed output to a minimum. Uncomment it to get detailed logging for reporting problems and troubleshooting.
To enable SRL level debugging, search for disableSRLDebug and make sure it is set to 'False'.
bonsai
2014-07-26 21:56:18
From: nutta124
it doesnt use my weapon's special -.- i have the special icon in the action bar but it never been activate
HELPPP!@ D:
Are you using the manual abilities? If so, the srl function to check if the ability is ready might not be giving back a proper answer.
I use the automatic (revolution?), I don't know what it would do there.
nutta124
2014-07-26 22:00:20
Yeah, im using manual abilities. revolution cant active threshold ability nor ultimate ability :/
bonsai
2014-07-26 22:00:28
From: nutta124
bonsai!!~~ the manualAbilities wouldnt click on the ''Special Attack'' icon -.- its a threshold ability so Revolution would not activate it. FIX?! T-T
i really need it for my saradomin gs's healing ability~~ thank you :3
Check out includes/bonsai/libnpc.simba
Uncomment the writeln near the top of Tnpc._doAbilities
Then run it and you will see what actionbar.getBilityCooldown() is telling us.
If that's a consistent number when ready, let's say '99', add 99 to the if statement there
"if (pct = 1) or (pct = 99) then"
bonsai
2014-07-26 22:03:51
I'm hoping to publish a revamped version in a week or two. The color detect stuff is close to complete.
I think the colors changed on the popup box. That can lead to you starting new fights before done and swarming yourself.
People might want to try this DTM at the top of includes/bonsai/libnpc.simba:
_npcInfightDTM = 'mlwAAAHicY2eAAEYgZgViTiTMBpWTgGIxIOaDqgMBbkERnJgLKM+CAzPiwVAAAKx0AgE=';
nutta124
2014-07-27 14:30:57
wait im a little confused o.o so i open libnpc in simba then Uncomment the writeln near the top of Tnpc._doAbilities? what does uncomment meant in this context?
mathozz
2014-07-28 07:14:40
yo man i am using also sgds on fire giants and i picked that special ability on Z instead of food and its working try it
mathozz
2014-07-28 15:31:27
after update it stop working cant find npcs
bonsai
2014-07-28 16:00:16
From: mathozz
after update it stop working cant find npcs
Argh. Can't get this autocolor version finished fast enough!
I'll try to figure out how to fit the sword special into things while I'm at it.
mathozz
2014-07-28 19:08:16
so script dont working now right>
bonsai
2014-07-28 20:19:52
is it just the color of the fire giants isn't matching?
nutta124
2014-07-29 05:54:15
its working fine for me
Script runtime: //////////
////////// 3 hr 55 min 59 sec(Total) 3 hr 38 min 45 sec(Active) 17 min 13 sec(Break)//////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Fire giant //////////
////////// 945(Killed) 240(per hour run) 259(per hour active) //////////
////////// 400680(xp) 101871(per hour run) 109894(per hour active) //////////
////////// 132300(const xp) 33637(per hour run) 36286(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
have to stop because i was running out of food
mathozz
2014-07-29 06:16:18
weird i used same colors as nutta posted and it wasnt working :X btw nutta if you using that sara godsword use special on z as food you can stay here forever with that heals
mathozz
2014-07-29 06:18:59
ok its working now iam on greater demons and its ok:D
nutta124
2014-07-29 11:48:22
Yeah, it would work if i only use the basic ability (revaluation) and dont use any threshold/ultimate (manual)
Any way you can fix the "***** Tnpc.isInFight() found more than one popup box open on screen" error? It keeps going to the next NPC before the first is dead. Otherwise great script and custom NPCs are working great.
bonsai
2014-07-29 13:19:13
From: therossity
Any way you can fix the "***** Tnpc.isInFight() found more than one popup box open on screen" error? It keeps going to the next NPC before the first is dead. Otherwise great script and custom NPCs are working great.
Did you try the new DTM I posted a few posts back?
I'm working on a script update, it's probably a couple of weeks out.
nutta124
2014-07-29 14:47:41
the script doesn't click on the world i desire ~.~
From: bonsai
Did you try the new DTM I posted a few posts back?
I'm working on a script update, it's probably a couple of weeks out.
Yes, just tried it and while the error itself does not appear anymore in Simba, the script still attacks before killing the one it started with.
mathozz
2014-07-29 18:57:36
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Fire giant //////////
////////// 295(Killed) 393(per hour run) 393(per hour active) //////////
////////// 125080(xp) 166755(per hour run) 166755(per hour active) //////////
////////// 41300(const xp) 55061(per hour run) 55061(per hour active) //////////
////////// //////////
//////////////////////////////////////////////////////////////////////////////////////////////////// gr8 xp
Another bug is that it's counting each kill as 2. The counter increeases by 1 when engaging a monster and then again after it dies. This is doubled when the above bug I posted happens.
nutta124
2014-07-30 15:49:27
WHAT?! 160k exp per hour!? what weapon were you using?
bonsai
2014-07-30 15:50:44
From: therossity
Another bug is that it's counting each kill as 2. The counter increeases by 1 when engaging a monster and then again after it dies. This is doubled when the above bug I posted happens.
Would have to see the debug output to tell what it's thinking.
From: bonsai
Would have to see the debug output to tell what it's thinking.
***** Killed a Werewolf
TObjFind.choose: found 4 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 2
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 3
TObjFind.choose: examining mouseText=
****** Didnt find a Werewolf to fight. timesFailed = 1
TObjFind.choose: found 5 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 2
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** Fight initiated
***** Health check returning 86 percent
***** Tnpc.isInFight: did not find standard DTM, trying color match
***** End of fight detected
***** Killed a Werewolf
***** Health check returning 83 percent
alee1
2014-07-30 17:53:42
Why does it take Agees to kill it says'finding ankou 100 times.
Getting pissed
From: alee1
Why does it take Agees to kill it says'finding ankou 100 times.
Getting pissed
Calm down man, this script doesn't owe you anything.
nutta124
2014-07-30 20:18:15
it started to use special attack now <3
but sometime it uses the special attack when it not ready(not enough adrenaline)
different sword require different amout of adrenaline to use their special (25%, 30% 50% 60% ect)
nutta124
2014-07-30 22:11:29
i been getting this problem lately: upon logging on it would type both my ID and Password in the ''username'' box
mathozz
2014-08-01 05:26:20
////////// Script runtime: //////////
////////// 9 hr 4 min 3 sec(Total) 8 hr 47 min 15 sec(Active) 16 min 48 sec(Break) //////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Fire giant //////////
////////// 2804(Killed) 309(per hour run) 319(per hour active) //////////
////////// 1188896(xp) 131114(per hour run) 135292(per hour active) //////////
////////// 392560(const xp) 43292(per hour run) 44672(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
longerprog:D
theorange
2014-08-01 13:00:59
auto detected NPC: Could not set up NPC [autodetect]. Verify name is in XML file.
script shutting down.
—- Client is ready.
—- Setup SRL in 17296ms.
– setupSRL(): True
***** Logging player in
***** Health check returning 86 percent
****** Starting auto detect process
***** autoDetect checking for Warped Cockroach
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Corpse Spider
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Warped Fly
TObjFind.choose: found 3 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Crawling corpse torso
TObjFind.choose: found 4 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Warped rat
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Skeleton
TObjFind.choose: found 5 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 2
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Warped bat
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Corpse archer
TObjFind.choose: found 1 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
***** autoDetect checking for Skoblin
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Corpse mage
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Troll brute
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Goblin
TObjFind.choose: found 9 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Minotaur
TObjFind.choose: found 3 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 2
TObjFind.choose: examining mouseText=
***** autoDetect checking for Wolf
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Zombie
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Flesh Crawler
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Giant Rat
TObjFind.choose: found 1 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
***** autoDetect checking for Giant Spider
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Catablepon
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Scorpion
TObjFind.choose: found 1 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
***** autoDetect checking for Spider
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Deadly Red Spider
TObjFind.choose: found 1 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=Open Gate of War
***** autoDetect checking for Ankou
TObjFind.choose: found 17 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Ghost
TObjFind.choose: found 9 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Moss Giant
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Shade
TObjFind.choose: found 0 possible objects
****** Auto detected NPC:
****** Could not set up NPC [autodetect]. Verify name is in XML file.
***** Loop ended, terminating
****** bonsaiFighter: Script shutting down
—
It logged into rs, started moving the mouse around the screen (looking for goblins), and didn't click/recognize them, but I installed the file, and it has the Always show target information checked.
Goblin is in the xml file..
goblin text:
<npc>
<name>Goblin</name>
<xp>34</xp>
<constXp>1</constXp>
<color1>3433072</color1>
<tolerance1>26</tolerance1>
<hue1>0.27</hue1>
<sat1>0.25</sat1>
<color2>-1</color2>
<tolerance2>0</tolerance2>
<hue2>0.0</hue2>
<sat2>0.0</sat2>
<dist>3</dist>
<inclDist>0</inclDist>
<minPixels>100</minPixels>
<maxPixels>450</maxPixels>
<maxFightSeconds>120</maxFightSeconds>
<uptext>oblin</uptext>
</npc>
Any suggestions?
bonsai
2014-08-01 15:38:29
From: theorange
auto detected NPC: Could not set up NPC [autodetect]. Verify name is in XML file.
script shutting down.
Any suggestions?
Don't use autodetect, fill in goblin. If it still won't find them the color is outdated.
theorange
2014-08-01 17:39:45
From: bonsai
Don't use autodetect, fill in goblin. If it still won't find them the color is outdated.
That fixed it! They aren't eating their food in the inventory though… It does pause/logout/quit if the health gets to the set percentage, but food does not become eaten… What to do for that?
It also keeps trying to use memberskills on f2p servers, how to disable that?
Sometimes it fails to associate with a RS window, getting stuck in the "waiting for RS to load" phase, even though the screen is on directX/etc/with all the proper settings/transperency levels and all, how to fix that? Even when I close and reload the rs window occasionally it won't recognize the window it creates itself. – Only 2 builds are running properly right now, any time I try another instance, fresh install, proper graphic settings, it will load RS, log the player in, then it wont' interact with the screen at all, but it has the exact same settings as the two running ones
Also:
****** Something wrong… in fight too long
****** bonsaiFighter: Script shutting down
Also:
If they are in the stronghold of security, and missclick to step through a door, they get stuck, and it doesn't recognize it is stuck. Similarly if it tries to click on a monster in another room it gets stuck.
Also:
[11:40:21 PM] a: "failed to spawn smart client"
Nice script btw.
alee1
2014-08-01 20:37:17
From: theorange
auto detected NPC: Could not set up NPC [autodetect]. Verify name is in XML file.
script shutting down.
—- Client is ready.
—- Setup SRL in 17296ms.
– setupSRL(): True
***** Logging player in
***** Health check returning 86 percent
****** Starting auto detect process
***** autoDetect checking for Warped Cockroach
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Corpse Spider
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Warped Fly
TObjFind.choose: found 3 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Crawling corpse torso
TObjFind.choose: found 4 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Warped rat
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Skeleton
TObjFind.choose: found 5 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 2
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Warped bat
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Corpse archer
TObjFind.choose: found 1 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
***** autoDetect checking for Skoblin
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Corpse mage
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Troll brute
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Goblin
TObjFind.choose: found 9 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Minotaur
TObjFind.choose: found 3 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 2
TObjFind.choose: examining mouseText=
***** autoDetect checking for Wolf
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Zombie
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Flesh Crawler
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Giant Rat
TObjFind.choose: found 1 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
***** autoDetect checking for Giant Spider
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Catablepon
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Scorpion
TObjFind.choose: found 1 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
***** autoDetect checking for Spider
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Deadly Red Spider
TObjFind.choose: found 1 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=Open Gate of War
***** autoDetect checking for Ankou
TObjFind.choose: found 17 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Ghost
TObjFind.choose: found 9 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=Attack
TObjFind.choose: Attack matched; will click object
***** autoDetect checking for Moss Giant
TObjFind.choose: found 0 possible objects
***** autoDetect checking for Shade
TObjFind.choose: found 0 possible objects
****** Auto detected NPC:
****** Could not set up NPC [autodetect]. Verify name is in XML file.
***** Loop ended, terminating
****** bonsaiFighter: Script shutting down
—
It logged into rs, started moving the mouse around the screen (looking for goblins), and didn't click/recognize them, but I installed the file, and it has the Always show target information checked.
Goblin is in the xml file..
goblin text:
<npc>
<name>Goblin</name>
<xp>34</xp>
<constXp>1</constXp>
<color1>3433072</color1>
<tolerance1>26</tolerance1>
<hue1>0.27</hue1>
<sat1>0.25</sat1>
<color2>-1</color2>
<tolerance2>0</tolerance2>
<hue2>0.0</hue2>
<sat2>0.0</sat2>
<dist>3</dist>
<inclDist>0</inclDist>
<minPixels>100</minPixels>
<maxPixels>450</maxPixels>
<maxFightSeconds>120</maxFightSeconds>
<uptext>oblin</uptext>
</npc>
Any suggestions?
Happens to me to
alee1
2014-08-01 20:39:58
From: mathozz
////////// Script runtime: //////////
////////// 9 hr 4 min 3 sec(Total) 8 hr 47 min 15 sec(Active) 16 min 48 sec(Break) //////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Fire giant //////////
////////// 2804(Killed) 309(per hour run) 319(per hour active) //////////
////////// 1188896(xp) 131114(per hour run) 135292(per hour active) //////////
////////// 392560(const xp) 43292(per hour run) 44672(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
longerprog:D
Hey m8, where do I put the fire giant code at?
Thanks :)
nutta124
2014-08-02 11:15:45
From: alee1
Hey m8, where do I put the fire giant code at?
Thanks :)
put it in libnpcStandard.xml in Simba\Includes\bonsai
alee1
2014-08-03 18:50:09
Idk what's wrong is it me or is the script slow ? It rarly kills anything..
bonsai
2014-08-04 04:06:03
From: alee1
Idk what's wrong is it me or is the script slow ? It rarly kills anything..
I'm aware it has deteriorated from game updates. When it's working properly it moves right on from one to the next.
I'm working on a new version. I need about 2 days of coding and a day of testing. Maybe by this weekend if life is quiet.
From: bonsai
I'm aware it has deteriorated from game updates. When it's working properly it moves right on from one to the next.
I'm working on a new version. I need about 2 days of coding and a day of testing. Maybe by this weekend if life is quiet.
Any chance of a loot function? :D
bonsai
2014-08-09 06:41:31
If anyone wants to beta test the autocoloring version, I think it's stable enough to let you try.
It's a long way from done so keep an eye on it. I killed myself yesterday.
When the form comes up, type "autodetect" into the NPC name.
The first time you fight something takes a while to get some colors but once it gets cranking it gets better and better. If you return to an NPC you already colored it gets right down to business.
Replace your SIMBADIR/scripts/bonsaiFighter.simba and SIMBADIR/includes/bonsai/libnpc.simba with the below.
SIMBADIR/includes/bonsai/libcolorizer.simba is a new file, put it in place.
Let me know how you do!!
SIMBADIR/scripts/bonsaiFighter.simba:// -----------------------------------------------------------------------------
// -- bonsaiFighter.simba
// -- Written by: bonsai
// -----------------------------------------------------------------------------
program bonsaiFighter;
{$DEFINE SMART}
{$DEFINE DEBUG_ON}
{$include_once srl-6/srl.simba}
{$include_once srl-6/lib/misc/srlplayerform.simba}
{$include_once bonsai/libnpc.simba}
{$include_once bonsai/libitem.simba}
{$include_once bonsai/libtracker.simba}
{$include_once bonsai/libbreak.simba}
{$f-}
// -----------------------------------------------------------------------------
// -- CUSTOMIZING
// --
// -- Script is customized by using the form that pops up when you run it
// --
// -- To add NPCs, you edit SIMBADIR/includes/bonsai/libnpcUser.xml.
// -- See the script thread for more information.
// -----------------------------------------------------------------------------
const
scriptName = 'bonsaiFighter';
bonsaiFighterVersion = '2.0';
bonsaiFighterVerUrl = 'http://pastebin.com/raw.php?i=pTW8JsUM';
bonsaiFighterCodeUrl = 'http://pastebin.com/raw.php?i=94U0sEny';
bonsaiFighterXmlVerUrl = 'http://pastebin.com/raw.php?i=asBUvqnX';
bonsaiFighterXmlCodeUrl = 'http://pastebin.com/raw.php?i=KDTDguyH';
var
healthPercentToEatAt: integer = 50;
healthPercentToQuit: integer = 25;
healthTimer: TTimeMarker;
logoutWhenExiting: boolean = false;
playerName: string = 'noname';
playerFile: string = 'nofile';
desiredWorld: integer = 0;
mouseStyle: integer = MOUSE_RIGHT;
cantFindNpcLoops: integer = 150;
manualAbilities: boolean = false;
averageSessionMin: integer = 120;
sessionVarianceMin: integer = 20;
averageBreakMin: integer = 17;
breakVarianceMin: integer = 5;
graphicsMode: string = 'OpenGL';
npcToFight: string = 'autodetect';
// -----------------------------------------------------------------------------
// doPlayerLogin()
//
// Checks if the player is logged in and attempts to log it in if not.
// Also sets screen settings to our default (overhead view).
// Takes a screenshot to help debug why the user would need to get
// logged in.
// -----------------------------------------------------------------------------
procedure doPlayerLogin();
begin
if (not isLoggedIn()) then
begin
writeln('***** Logging player in');
takeScreenshot(scriptName + '.png');
if (not players[currentPlayer].login()) then
begin
writeln('*************************************************');
writeln('***** ERROR GETTING PLAYER LOGGED IN, EXITING!!!');
writeln('*************************************************');
terminateScript();
end
else
begin
mainscreen.setangle(MS_ANGLE_HIGH);
exitSquealOfFortune();
end;
end;
end;
// -----------------------------------------------------------------------------
// checkHealthAndEat()
//
// Checks the health percentage and eats if needed. If health is too low
// it initiates shutdown so we don't die. Uses a timer so it doesn't check
// it too frequently.
// -----------------------------------------------------------------------------
procedure checkHealthAndEat();
var
hp: integer;
begin
if (healthTimer.getTime() < 8000) then
exit;
hp := actionbar.getHPPercent();
{$IFDEF DEBUG_ON}
writeln('***** Health check returning ', hp, ' percent');
{$ENDIF}
if (hp < healthPercentToEatAt) then
sendKeys('z', 250, 40);
if (hp < healthPercentToQuit) then
begin
writeln('***** Terminating script due to low health');
terminateScript();
end;
healthTimer.start();
end;
// -----------------------------------------------------------------------------
// antiBan()
//
// This gets called often to provide some random actions.
// -----------------------------------------------------------------------------
procedure antiBan();
begin
case (random(275)) of
1, 19, 35, 60:
begin
{$IFDEF DEBUG_ON} writeln('****** antiBan [move off client and sleep]'); {$ENDIF}
mouseOffClient(OFF_CLIENT_RANDOM);
wait(randomRange(5000,10000));
end;
5,8,15,25,28,35,38,45,48:
begin
{$IFDEF DEBUG_ON} writeln('****** antiBan [sleep and move mouse] + [secondary]'); {$ENDIF}
sleepAndMoveMouse(randomRange(2000,3000));
case (random(12)) of
1: randomRclickItem();
2: sleepAndMoveMouse(randomRange(1000,2000));
3: pickUpMouse();
4,5,11: begin mouseOffClient(OFF_CLIENT_RANDOM); wait(randomRange(5000,10000)); end;
6: smallRandomMouse();
7: randomCompass(50, 150, true);
8: mouseMovingObject();
9,10: begin
tabStats.open();
mouseBox(tabStats.getSkillBox(random(25)), MOUSE_MOVE);
wait(randomRange(2750,4750));
tabBackpack.open();
end;
end; // case (random(12))
end;
end;
end;
// -----------------------------------------------------------------------------
// scriptShutdown()
//
// This function is put into the termination chain to be called whenever
// the script stops.
// -----------------------------------------------------------------------------
procedure scriptShutdown();
begin
{$IFDEF DEBUG_ON} writeln('****** ' + scriptName + ': Script shutting down'); {$ENDIF}
takeScreenshot(scriptName + '.png');
tracker.progressReport();
if (logoutWhenExiting and isLoggedIn()) then
players[currentPlayer].logout();
end;
// -----------------------------------------------------------------------------
// onBreakStart()
//
// This gets called whenever we start a break. Tells the time tracker we
// are paused.
// -----------------------------------------------------------------------------
procedure onBreakStart();
begin
tracker.pause();
end;
// -----------------------------------------------------------------------------
// onBreakEnd()
//
// This gets called when we come back from a break. Turns the timer back on
// and makes sure the player is logged in.
// -----------------------------------------------------------------------------
procedure onBreakEnd();
begin
tracker.resume();
doPlayerLogin();
end;
// -----------------------------------------------------------------------------
// initPlayerForm()
//
// Set up the form
// -----------------------------------------------------------------------------
procedure initPlayerForm();
var
i: integer;
n: Tnpc;
begin
with playerForm do
begin
name := scriptName + bonsaiFighterVersion;
scriptHelpThread := 'http://villavu.com/forum/showthread.php?t=106661';
scriptSettingsPath := scriptPath + scriptName + 'settings.txt';
editBoxLabels := ['World', 'When to eat (Health %)', 'When To Quit (Health %)', 'Loops Without Finding NPC',
'Session Length (Minutes)', 'Session Variance (Minutes)', 'Break Length (Minutes)', 'Break Variance (Minutes)'];
editBoxDefaults := [ '0', '50', '25', '150', '120', '20', '17', '5'];
checkBoxLabels := ['Manual Abilites', 'Logout when exiting'];
checkBoxDefaults := ['False', 'False'];
comboBoxLabels := ['Mouse Style', 'GraphicsMode', 'NPC'];
comboBoxDefaults := ['Left', 'OpenGL', 'autodetect'];
setLength(comboBoxItems, length(comboBoxLabels));
comboBoxItems[0] := ['Left', 'Right'];
comboBoxItems[1] := ['OpenGL', 'DirectX'];
// comboBoxItems[2] := n.listAllNpcs();
comboBoxItems[2] := ['i','need','to','write','this'];
end;
end;
// -----------------------------------------------------------------------------
// getPlayerForm()
//
// Get results from the form
// -----------------------------------------------------------------------------
procedure getPlayerForm();
var
i: integer;
mouseStr: string;
begin
players.setup(playerForm.playerNames, playerForm.playerFile);
if (length(players) < 1) then
begin
writeln('*************************************************************************');
writeln('***** ERROR: You did not provide a valid playername/nickname/player file');
writeln('*************************************************************************');
terminateScript();
end;
desiredWorld := StrToIntDef (playerForm.players[0].settings[0], 0);
healthPercentToEatAt := StrToIntDef (playerForm.players[0].settings[1], 50);
healthPercentToQuit := StrToIntDef (playerForm.players[0].settings[2], 25);
cantFindNpcLoops := StrToIntDef (playerForm.players[0].settings[3], 150);
averageSessionMin := StrToIntDef (playerForm.players[0].settings[4], 120);
sessionVarianceMin := StrToIntDef (playerForm.players[0].settings[5], 20);
averageBreakMin := StrToIntDef (playerForm.players[0].settings[6], 17);
breakVarianceMin := StrToIntDef (playerForm.players[0].settings[7], 5);
manualAbilities := StrToBoolDef(playerForm.players[0].settings[8], false);
logoutWhenExiting := StrToBoolDef(playerForm.players[0].settings[9], false);
mouseStr := lowercase (playerForm.players[0].settings[10]);
graphicsMode := playerForm.players[0].settings[11];
npcToFight := playerForm.players[0].settings[12];
case mouseStr of
'right', 'mouse_right':
mouseStyle := MOUSE_RIGHT;
'left', 'mouse_left':
mouseStyle := MOUSE_LEFT;
end;
currentPlayer := 0;
players[currentPlayer].world := desiredWorld;
end;
// -----------------------------------------------------------------------------
// MAIN
// -----------------------------------------------------------------------------
const
WAIT_FOR_END_OF_FIGHT = true;
trackingHeader: TStringArray = [
' ( )\ ) ) ) ',
' ( )\ ) ( (()/( ( ( ( ( /( ( /( ( ( ',
' )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )( ',
'((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\ ',
' | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_)',
' | _ \/ _ \| '' \))(_-</ _` | | | | __| | |/ _` | | '' \ | _|/ -_) | ''_|',
' |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_| ',
' |___/ '];
// http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20
var
timesFailed: integer; // how many times did we fail to find an npc
npc: Tnpc; // object representing the npc we are fighting
pb: TBox;
begin
// initialize and prepare things
//
updater.check4update('bonsaiFighter.simba', bonsaiFighterVersion,
bonsaiFighterVerUrl, bonsaiFighterCodeUrl, false);
if (updater.wereUpdatesPerformed) then
begin
writeln('');
writeln('////////////////////////////////////////////');
writeln('////////////////////////////////////////////');
writeln('/// SCRIPT WAS UPDATED, CLOSE AND REOPEN ///');
writeln('/// SCRIPT WAS UPDATED, CLOSE AND REOPEN ///');
writeln('/// SCRIPT WAS UPDATED, CLOSE AND REOPEN ///');
writeln('/// SCRIPT WAS UPDATED, CLOSE AND REOPEN ///');
writeln('////////////////////////////////////////////');
writeln('////////////////////////////////////////////');
terminateScript();
end;
addOnTerminate('scriptShutdown');
initPlayerForm();
runPlayerForm();
if (not playerForm.isScriptReady) then
terminatescript;
getPlayerForm();
smartEnableDrawing := true;
tracker.init(scriptName, trackingHeader);
breakTimer.init(averageSessionMin, sessionVarianceMin,
averageBreakMin, breakVarianceMin, onBreakStart, onBreakEnd);
if (graphicsMode = 'DirectX') then
smartPlugins := ['d3d9.dll'];
SetupSRL();
disableSRLDebug := true;
// do the work
//
healthTimer.start();
timesFailed := 0;
while (true) do
begin
breakTimer.check4break();
doPlayerLogin();
checkHealthAndEat();
if (npc.name() = '') then
npc.init(npcToFight);
if (npc.name() = '') then
begin
writeln('****** Could not set up NPC [', npcToFight, '].');
break;
end;
if npc.attack(WAIT_FOR_END_OF_FIGHT, checkHealthAndEat, mouseStyle, manualAbilities) then
begin
{$IFDEF DEBUG_ON} writeln('***** Killed a ' + npc.name()); {$ENDIF}
timesFailed := 0;
antiBan();
tracker.recordKill(npc.name());
tracker.killHud();
if ((tracker.numKilled(npc) mod 15) = 0) then
tracker.progressReport();
case npc.colorCount() of
01..05: npc.colorize(10000, 5);
06..09: npc.colorize(2500, 10);
10..19:
begin
case random(10) of
0..6: npc.colorize(850, 20);
end;
end;
else
begin
case random(10) of
0,1: npc.colorize(400, 99999);
end;
end;
end;
end
else
begin // npc was not found
inc(timesFailed);
{$IFDEF DEBUG_ON}
writeln('****** Didnt find a ', npc.name(), ' to fight. timesFailed = ', timesFailed);
{$ENDIF}
if (timesFailed >= cantFindNpcLoops) then
begin
writeln('**** Terminating script due to too many failures to find npc');
break;
end;
if ((timesFailed mod 10) = 0) then
begin
{$IFDEF DEBUG_ON}
writeln('****** Having problems finding NPC, rotating cam.');
{$ENDIF}
npc.angleTowards();
// not sure how it happens but I found screenshot with bad angle when
// it failed.
mainscreen.setangle(MS_ANGLE_HIGH);
end;
if ((timesFailed mod 23) = 0) then
begin
{$IFDEF DEBUG_ON}
writeln('****** Having problems finding NPC, sleeping');
{$ENDIF}
wait(randomRange(3500,4500));
end;
if ((timesFailed mod 31) = 0) then
begin
{$IFDEF DEBUG_ON}
writeln('****** Having problems finding NPC, moving to closest yellow dot');
{$ENDIF}
npc.moveToClosest();
end;
end; // npc not found
end; // while (true)
writeln('***** Loop ended, terminating');
terminateScript();
end.
SIMBADIR/includes/bonsai/libnpc.simba:// -----------------------------------------------------------------------------
// -- libnpc.simba
// -- Written by: bonsai
// -----------------------------------------------------------------------------
// {$DEFINE SMART}
{$include_once srl-6/srl.simba}
{$include_once bonsai/libupdater.simba}
{$include_once bonsai/libcolorizer.simba}
{$f-}
const
libnpcVersion = '2.0';
libnpcVerUrl = 'http://pastebin.com/raw.php?i=PmQqYTCq';
libnpcCodeUrl = 'http://pastebin.com/raw.php?i=UEsQSzsu';
type
Tnpc = record
_name : string; // runescape name for npc, is used as a key for lookups
_xp : extended; // combat xp received when killed
_constitutionXp : extended; // constitution xp received when killed
_colorizer : Tcolorizer;
_maxFightSeconds : integer; // how long is too long to be in a fight?
end;
const
// _npcInfightDTM = 'mlwAAAHicY2dgYOhkYWDoB+JJSLgPiLuAWIgRgsWBWAGINYBYC4q5BUVwYqBWnJgRD4YCAOi5Bls=';
_npcInfightDTM = 'mlwAAAHicY2eAAEYgZgViTiTMBpWTgGIxIOaDqgMBbkERnJgLKM+CAzPiwVAAAKx0AgE=';
var
_npcDtmId: integer;
_npcFightFlag: boolean = false;
// -----------------------------------------------------------------------------
// Tnpc access functions
//
// Simple functions to give users access to the object data. Users should
// not be accessing the internal data directly in case we change it.
// -----------------------------------------------------------------------------
function Tnpc.name(): string;
begin
result := self._name;
end;
function Tnpc.xp(): extended;
begin
result := self._xp;
end;
function Tnpc.constitutionXp(): extended;
begin
result := self._constitutionXp;
end;
function Tnpc.uptext(): String;
begin
result := self._colorizer.uptext;
end;
function Tnpc.dist(): integer;
begin
result := self._colorizer.dist;
end;
function Tnpc.minPixels(): integer;
begin
result := self._colorizer.minPixels;
end;
function Tnpc.maxPixels(): integer;
begin
result := self._colorizer.maxPixels;
end;
function Tnpc.maxFightSeconds(): integer;
begin
result := self._maxFightSeconds;
end;
function Tnpc.colorCount(): integer;
begin
result := length(self._colorizer.successful);
end;
// -----------------------------------------------------------------------------
// init()
//
// initialize an NPC object.
// -----------------------------------------------------------------------------
procedure Tnpc.init(npcName: string);
var
i: integer;
begin
self._colorizer.init(npcName, 'Attack', 150, 5, 10, 1, 2000);
if (npcName <> '') and (lowercase(npcName) <> 'autodetect') then
begin
self._name := npcName;
self._xp := 10; // need to look these up online
self._constitutionXp := 5;
self._maxFightSeconds := 60;
self._colorizer.load();
end;
if (lowercase(npcName) = 'autodetect') then
begin
{$IFDEF DEBUG_ON} writeln('****** Tnpc.init: Starting auto detect process'); {$ENDIF}
self.motionDetect();
writeln('****** Tnpc.init: Auto detected NPC: ' + self.name());
end;
end;
// -----------------------------------------------------------------------------
// equals()
//
// Function to compare one NPC object to another. Perhaps it's not solid
// but only the name field is checked. var is used even though compareTo
// is not changed. This is due to wierd lape violation errors when passing
// records around.
// -----------------------------------------------------------------------------
function Tnpc.equals(var compareTo: Tnpc): boolean;
begin
result := (self._name = compareTo.name());
end;
// -----------------------------------------------------------------------------
// angleTowards()
//
// Splits the minimap into quadrants and changes our view to the quadrant
// with the most NPCs in it
// -----------------------------------------------------------------------------
procedure Tnpc.angleTowards()
var
b: TBox;
c: TPoint;
quadrant: array[0..3] of TBox;
dotCount: TPointArray;
i, longest, longestQ, angl: integer;
begin
b := minimap.getBounds();
c := minimap.getCenterPoint();
// NE, SE, SW, NW
quadrant[0] := IntToBox(c.x, b.y1, b.x2, c.y);
quadrant[1] := IntToBox(c.x, c.y, b.x2, b.y2);
quadrant[2] := IntToBox(b.x1, c.y, c.x, b.y2);
quadrant[3] := IntToBox(b.x1, b.y1, c.x, c.y);
longest := -1;
for i := 0 to 3 do
begin
dotCount := minimap.getDots(MM_DOT_NPC, quadrant[i]);
if (length(dotCount) > longest) then
begin
longestQ := i;
longest := length(dotCount);
end;
end;
angl := trunc(minimap.getAngleDegrees()) + (45*((longestQ*2)+1));
if (angl > 360) then
angl := angl - 360;
{$IFDEF DEBUG_ON} writeln('***** Tnpc.angleTowards: Altering angle to ', angl); {$ENDIF}
minimap.setAngle(trunc(angl));
end;
// -----------------------------------------------------------------------------
// moveToClosest()
//
// Clicks on the closest yellow dot on the minimap in an attempt to get
// us back in view of an npc to fight. It's possible for it to click
// on something unrelated and make things worse :)
// -----------------------------------------------------------------------------
procedure Tnpc.moveToClosest()
var
yellowDots: TPointArray;
begin
yellowDots := minimap.getDots(MM_DOT_NPC, minimap.getBounds());
yellowDots.sortFromPoint(minimap.getBounds().getMiddle());
mouse(yellowDots[0], MOUSE_LEFT);
end;
// -----------------------------------------------------------------------------
// isInFight()
//
// Function to determine if the npc is in a fight.
// -----------------------------------------------------------------------------
function Tnpc.isInFight(suppressDebug: boolean = false): boolean;
var
votes, gold1, red1, box1, box2, green1, green2, dtmfs1, sum: integer;
tpa: TPointArray;
search: TBox;
begin
votes := 0;
gold1 := countColorTolerance(2726093, mainscreen.getBounds(),
9, colorSetting(2,0.14,2.16));
if (gold1 > 50) then
inc(votes);
if (gold1 > 80) then
inc(votes);
if (gold1 > 100) then
inc(votes);
red1 := countColorTolerance(3094484, mainscreen.getBounds(),
25, colorSetting(0));
if (red1 > 45) then
inc(votes);
box1 := countColorTolerance(1380618, mainscreen.getBounds(),
0, colorSetting(0));
if (box1 > 150) then
votes := votes + 2;
box2 := countColorTolerance(1381133, mainscreen.getBounds(),
2, colorSetting(0));
if (box2 > 150) then
votes := votes + 2;
green1 := countColorTolerance(3308832, mainscreen.getBounds(),
15, colorSetting(2, 0.27, 1.56));
if (green1 > 125) then
inc(votes);
search := mainscreen.playerBox;
search.expand(35);
green2 := countColorTolerance(45128, search, 9, colorSetting(2, 0.70, 0.00));
if (green2 > 40) then
inc(votes);
// if (findDTMs(_npcDtmId, tpa, mainscreen.getBounds())) then
// begin
// dtmfs1 := length(tpa);
// end;
// if (dtmfs1 > 1) then // if we can see more than one dtm, the mouse is
// smallRandomMouse(100); // probably on another npc so two popups are open
//
// sum := gold1 + red1 + box1 + box2 + green2 + green1 + dtmfs1;
if (votes > 4) then
result := true
else
result := false;
if (not suppressDebug) then
begin
{$IFDEF DEBUG_ON}
writeln('***** Tnpc.isInFight: result=', result, ' votes=', votes, ' gold1=', gold1,
' red1=', red1, ' box1=', box1, ' box2=', box2,
' green1=', green1, ' green2=', green2);
{$ENDIF}
end;
end;
// -----------------------------------------------------------------------------
// _doAbilities()
//
// Chooses available abilities during s fight
// -----------------------------------------------------------------------------
procedure Tnpc._doAbilities();
var
i, pct: integer;
keyStr: string;
begin
for i := 9 downto 1 do // used 9 to match revolution
begin
pct := actionBar.getAbilityCooldown(i);
// {$IFDEF DEBUG_ON}
// writeln('***** Tnpc._doAbilities: ability[', i, '] returned cooldown ', pct);
// {$ENDIF}
if (pct = 1) then
begin
case i of
0..9: keyStr := intToStr(i);
10: keyStr := '0';
11: keyStr := '-';
12: keyStr := '=';
end;
SendKeys(keyStr[1], 60 + Random(60), 60 + Random(60));
{$IFDEF DEBUG_ON}
writeln('***** Tnpc._doAbilities: activated ability[', i, ']');
{$ENDIF}
exit; // only do one ability
end;
end;
end;
// -----------------------------------------------------------------------------
// attack()
//
// Finds an NPC, initiates an attack, and (if asked to) waits for the fight
// to complete. Calls a user specified procedure to check if we need
// food and eat.
// -----------------------------------------------------------------------------
function Tnpc.attack(waitTilDead: boolean; foodProc: procedure; mouseStyle: integer = MOUSE_RIGHT;
manualAbilities: boolean = false): boolean;
var
t, i, x, y, col: integer;
b: TBox;
nname: string;
found, found2: boolean;
colList: TIntegerArray;
begin
with self._colorizer do
begin
// b := likelyBox(col);
b := multiBox(colList);
if not b.equals(intToBox(-1,-1,-1,-1)) then
begin
result := detectObj(x, y, nname, b, mouseStyle);
for i := 0 to high(colList) do
updateTrials(colList[i], result);
end
else
result := false;
end;
if (result and waitTilDead) then
begin
{$IFDEF DEBUG_ON} writeln('***** Tnpc.attack: Fight initiated'); {$ENDIF}
found := false;
found2 := false;
// give it time to run over and get into the fight
// if a smaller value is used it gets more kills/hr but
// sometimes it does take that long to run around
t := getSystemTime() + randomRange(3200,3900);
repeat
wait(50);
found := self.isInFight(true);
until (found or (getSystemTime() >= t));
i := 0;
t := getSystemTime() + (self._maxFightSeconds * 1000);
while self.isInFight() do
begin
found2 := true;
wait(randomRange(150,250));
if (i mod 15) = 0 then // don't call too frequently
begin
if (manualAbilities) then
self._doAbilities();
foodProc();
end;
if (getSystemTime() >= t) then
begin
{$IFDEF DEBUG_ON} writeln('****** Tnpc.attack: Something wrong... in fight too long'); {$ENDIF}
terminateScript();
end;
inc(i);
end;
if not (found or found2) then
begin
{$IFDEF DEBUG_ON} writeln('****** Tnpc.attack: Probable miss, did not detect start of fight'); {$ENDIF}
result := false;
end
else
begin
{$IFDEF DEBUG_ON} writeln('***** Tnpc.attack: End of fight detected'); {$ENDIF}
end;
end;
end;
// -----------------------------------------------------------------------------
// colorize()
//
// Tests new and in progress colors to try to find new ones that are successful.
// -----------------------------------------------------------------------------
function Tnpc.colorize(maxTime: integer = 120000; enough: integer = 5): boolean;
begin
result := self._colorizer.colorize(maxTime, enough);
end;
// -----------------------------------------------------------------------------
// motionDetect()
//
// Finds NPCs based on screen movement (pixel shift).
//
// Improves color knowledge until we have at least 5 successful colors to use.
// -----------------------------------------------------------------------------
function Tnpc.motionDetect(): string;
var
s, nname: string;
function strToNpc(s: string): string;
var
sa, sa2: TStringArray;
i: integer;
begin
// Returns the NPC name from strings like
// "Attack NPC NAME (level XX)"
// "Attack *NPC NAME (level XX)"
if (pos('Attack', s) <> 1) then exit;
sa := explode(' ', s);
if (length(sa) <= 1) then exit;
if (pos('*', sa[1]) > 0) then
begin
sa2 := explode('*', sa[1]);
sa[1] := sa2[1];
end
result := sa[1];
for i := 2 to high(sa) do
begin
if (pos('(', sa[i]) > 0) then break;
result := result + ' ' + sa[i];
end;
end;
begin
{$IFDEF DEBUG_ON} writeln('***** Tnpc.motionDetect: Starting ... '); {$ENDIF}
self.init('');
s := self._colorizer.motionDetect();
// nname := strToNpc(s);
nname := s;
if (s <> '') then
self.init(nname);
{$IFDEF DEBUG_ON} writeln('***** Tnpc.motionDetect: Detected ', nname, '(', s, ')'); {$ENDIF}
while (self.colorCount() < 5) do
begin
{$IFDEF DEBUG_ON} writeln('***** Tnpc.motionDetect: Trying to identify more colors'); {$ENDIF}
self.colorize(60000, 5);
end;
end;
// -----------------------------------------------------------------------------
// _npcTerminate
//
// This is hooked into the script termination stream. It frees up any
// DTMs we loaded.
// -----------------------------------------------------------------------------
procedure _npcTerminate();
begin
freeDTM(_npcDtmId);
end;
// -----------------------------------------------------------------------------
// initializer
//
// Ensures we call the function to free DTMS if the script exits.
// Checks for online updates.
// -----------------------------------------------------------------------------
begin
addOnTerminate('_npcTerminate');
// updater.check4update('libnpc.simba', libnpcVersion,
// libnpcVerUrl, libnpcCodeUrl, true);
_npcDtmId := DTMFromString(_npcInfightDTM);
end;
SIMBADIR/includes/bonsai/libcolorizer.simba:// -----------------------------------------------------------------------------
// -- libcolorizer.simba
// -- Written by: bonsai
// -----------------------------------------------------------------------------
// {$DEFINE SMART}
{$include_once srl-6/srl.simba}
{$include_once bonsai/libupdater.simba}
{$f-}
const
libcolorizerVersion = '1.0';
libcolorizerVerUrl = 'http://pastebin.com/raw.php?i=PmQqYXXX';
libcolorizerCodeUrl = 'http://pastebin.com/raw.php?i=UEsQXXXX';
BLACKLIST_THRESHOLD = 500; // msec. if a findcolor takes longer than this we dont want it
PIXELSHIFT_WAIT = 300; // msec
SUCCESS_THRESHOLD = 0.66; // what is good enough (percent) to call a color successful
FAILURE_THRESHOLD = 0.30; // what is bad enough (percent) to call a failure
ATTEMPT_THRESHOLD = 30; // by this many attempts, demand success or blacklist
GRIDSIZE = 50; // box size to break up the screen for motion detection
CLEANUP_LOW_WATER = 40; // how many colors to keep if we are cleaning up
type
TcolRec = record
color : integer;
count : integer;
attempts : integer;
matches : integer;
lastPoints : integer;
lastObj : integer;
maxPoints : integer;
maxObj : integer;
queryTime : integer;
end;
TcolSet = array of TcolRec;
Tcolorizer = record
name : string;
discovered : TcolSet;
active : TcolSet;
successful : TcolSet;
blacklist : TcolSet;
runty : TcolSet;
uptext : string;
uptextTimeout : integer;
tol : integer;
dist : integer;
minPixels : integer;
maxPixels : integer;
end;
// -----------------------------------------------------------------------------
// Some functions that had issues or were missing from SRL
// -----------------------------------------------------------------------------
function getPixelShiftAverage(b: TBoxArray; waitPerLoop,
maxTime: integer): TIntegerArray; override;
var
len, i, j: integer;
samples: array of TIntegerArray;
tmp: TIntegerArray;
timer: TTimeMarker;
begin
i := 0;
timer.start();
while (timer.getTime() < maxTime) do
begin
setLength(samples, i + 1);
samples[i] := getPixelShift(b, waitPerLoop);
inc(i);
end;
setLength(tmp, i); // i got incremented one extra time so is good for length
len := length(b);
setLength(result, len);
for i := 0 to (len - 1) do
begin
for j := 0 to high(samples) do
tmp[j] := samples[j][i];
result[i] := tmp.average();
end;
end;
function getPixelShift(b: TBoxArray; time: integer): TIntegerArray; override;
var
hi, i: integer;
before, after: integer;
begin
hi := high(b);
setLength(result, hi+1);
before := bitmapFromClient(mainscreen.getBounds());
sleep(time);
after := bitmapFromClient(mainscreen.getBounds());
for i := 0 to hi do
result[i] := calculatePixelShift(before, after, b[i]);
freeBitmap(before);
freeBitmap(after);
end;
function TIntegerArray.max(): integer;
var
i, tmpmax: integer;
begin
tmpmax := -(MAXINT);
for i := 0 to length(self) do
if self[i] > tmpmax then tmpmax := self[i];
exit(tmpmax);
end;
function TBoxArray.pixelShift(time: integer = 200): TIntegerArray;
begin
result := getPixelShift(self, time);
end;
function TBoxArray.returnInArray(const b : TBox) : integer;
var
i: integer;
begin
for i := 0 to high(self) do
if (self[i].equals(b)) then exit(i);
exit(-1);
end;
function TBoxArray.isInArray(const b : TBox) : Boolean;
begin
if (self.returnInArray(b) <> -1) then
result := true
else
result := false;
end;
procedure TBoxArray.addIndex(const b : TBox; const index : Integer);
var
I : Integer;
begin
if not inRange(index, low(self), length(self)) then
begin
WriteLn('ERROR: addIndex: index larger than array length.');
Exit;
end;
setLength(self, length(self)+1);
for I := high(self)-1 downto index do
self[I+1] := self[I];
self[index] := b;
end;
procedure TBoxArray.append(const b : TBox);
begin
self.addIndex(b, length(self));
end;
procedure TBoxArray.combine(const arr : TBoxArray);
var
i : integer;
begin
for i := 0 to high(arr) do
self.append(arr[i]);
end;
// -----------------------------------------------------------------------------
// successPercent()
//
// Returns the success percentage
// -----------------------------------------------------------------------------
function TcolRec.successPercent(): extended;
begin
result := (self.matches / self.attempts);
end;
// -----------------------------------------------------------------------------
// sortByCount()
//
// sorts the array by count desc
// -----------------------------------------------------------------------------
procedure TcolSet.sortByCount();
var
i, j, m: integer;
tmp: TcolSet;
begin
setLength(tmp, 1);
for i := 0 to high(self) - 1 do
begin
m := i;
for j := i + 1 to high(self) do
begin
if self[j].count > self[m].count then
m := j;
end;
tmp[0] := self[m];
self[m] := self[i];
self[i] := tmp[0];
end;
end;
// -----------------------------------------------------------------------------
// sortBySuccess()
//
// sorts the array by success rate desc
// -----------------------------------------------------------------------------
procedure TcolSet.sortBySuccess();
var
i, j, m: integer;
tmp: TcolSet;
begin
setLength(tmp, 1);
for i := 0 to high(self) - 1 do
begin
m := i;
for j := i + 1 to high(self) do
begin
if ((self[j].attempts = 0) or (self[m].attempts = 0)) then continue;
if (self[j].successPercent() > self[m].successPercent()) then
m := j;
end;
tmp[0] := self[m];
self[m] := self[i];
self[i] := tmp[0];
end;
end;
// -----------------------------------------------------------------------------
// returnInArray()
//
// Returns the index of color c in the array (-1 if not found)
// -----------------------------------------------------------------------------
function TcolSet.returnInArray(const c: integer): integer;
var
i: integer;
begin
for i := 0 to high(self) do
if (self[i].color = c) then exit(i);
exit(-1);
end;
// -----------------------------------------------------------------------------
// isInArray()
//
// Returns true if color c in the array
// -----------------------------------------------------------------------------
function TcolSet.isInArray(const c: integer): boolean;
var
i: integer;
begin
i := self.returnInArray(c);
if (i = -1) then
result := false
else
result := true;
end;
// -----------------------------------------------------------------------------
// append()
//
// Adds a color to the array
// -----------------------------------------------------------------------------
procedure TcolSet.append(const t: TcolRec);
var
i: integer;
begin
setLength(self, (length(self) + 1));
self[high(self)] := t;
end;
// -----------------------------------------------------------------------------
// deleteIndex()
//
// Deletes the color at the given index
// -----------------------------------------------------------------------------
procedure TcolSet.deleteIndex(const index: integer);
var
i : integer;
begin
if not inRange(index, low(self), high(self)) then
begin
writeln('TcolSet.deleteIndex: ERROR - index (', index, ' is out of range');
exit;
end;
for i := index to (high(self) - 1) do
self[i] := self[i + 1];
setLength(self, (length(self) - 1));
end;
// -----------------------------------------------------------------------------
// delete()
//
// Deletes the color
// -----------------------------------------------------------------------------
procedure TcolSet.delete(const c: integer);
var
i : integer;
begin
i := self.returnInArray(c);
if (i >= 0) then
self.deleteIndex(i);
end;
// -----------------------------------------------------------------------------
// cleanupColors()
//
// Weeds down the color list
// -----------------------------------------------------------------------------
procedure TcolSet.cleanupColors();
var
i, t, cnt: integer;
tmp: TcolSet;
begin
cnt := 1;
while (cnt < 15) do
begin
if (length(self) < CLEANUP_LOW_WATER) then exit;
t := 0;
setLength(tmp, length(self));
for i := 0 to high(self) do
begin
if ((self[i].matches > 0) or (self[i].count > cnt)) then
begin
tmp[t] := self[i];
inc(t);
end;
end;
setLength(tmp, t);
self := tmp;
inc(cnt);
end;
end;
// -----------------------------------------------------------------------------
// _fpath()
//
// Make a file path
// -----------------------------------------------------------------------------
function Tcolorizer._fpath(): string;
var
s: string;
begin
if (self.name = '') then
begin
result := '';
exit;
end;
s := lowercase(self.name);
s := replace(s, ' ', '-', [rfReplaceAll]);
s := replace(s, '/', '-', [rfReplaceAll]);
s := replace(s, ':', '-', [rfReplaceAll]);
result := includePath + 'bonsai\colors\';
if (not DirectoryExists(result)) then
begin
if (CreateDirectory(result)) then
writeln('***** Tcolorizer._fpath: created include folder ' + result)
else
writeln('***** Tcolorizer._fpath: ERROR - Could not create directory ' + result);
end;
result := result + s + '.xml';
end;
// -----------------------------------------------------------------------------
// load()
//
// Loads previous work from a file
// -----------------------------------------------------------------------------
function Tcolorizer.load(): boolean;
var
fileId, i, j, k: integer;
filePath, fileData: string;
allData, colArr, colorSets, cRec: TStringArray;
tmp: TcolRec;
begin
result := false;
filePath := self._fpath();
if (not FileExists(filePath)) then
begin
{$IFDEF DEBUG_ON} writeln('***** Tcolorizer.load: Requested file does not exist [', filePath, ']'); {$ENDIF}
exit;
end;
fileId := OpenFile(filePath, false);
if (fileId = -1) then
begin
{$IFDEF DEBUG_ON} writeln('***** Tcolorizer.load: OpenFile failed [', filePath, ']'); {$ENDIF}
exit;
end;
if (not ReadFileString(fileId, fileData, FileSize(fileId))) then
begin
{$IFDEF DEBUG_ON} writeln('***** Tcolorizer.load: ReadFileString failed [', filePath, ']'); {$ENDIF}
exit;
end;
CloseFile(fileId);
// now we have the contents in fileData, parse it
allData := MultiBetween(fileData, '<colorizer>', '</colorizer>');
if (length(allData) <> 1) then
begin
writeln('***** Tcolorizer.load: Corrupt file [', filePath,
'], does not have proper <colorizer></colorizer> tags');
exit;
end;
self.name := between('<name>', '</name>', allData[0]);
self.uptext := between('<uptext>', '</uptext>', allData[0]);
uptextTimeout := StrToIntDef(between('<uptextTimeout>', '</uptextTimeout>', allData[0]), 0);
tol := StrToIntDef(between('<tol>', '</tol>', allData[0]), 0);
dist := StrToIntDef(between('<dist>', '</dist>', allData[0]), 0);
minPixels := StrToIntDef(between('<minPixels>', '</minPixels>', allData[0]), 0);
maxPixels := StrToIntDef(between('<maxPixels>', '</maxPixels>', allData[0]), 0);
colorSets := ['discovered', 'active', 'successful', 'blacklist', 'runty'];
for i := 0 to high(colorSets) do
begin
colArr := multiBetween(allData[0], '<' + colorSets[i] + '>', '</' + colorSets[i] + '>');
for j := 0 to high(colArr) do
begin
cRec := multiBetween(colArr[j], '<colorRecord>', '</colorRecord>');
for k := 0 to high(cRec) do
begin
tmp.color := StrToIntDef(between('<color>', '</color>', cRec[k]), 0);
tmp.count := StrToIntDef(between('<count>', '</count>', cRec[k]), 0);
tmp.attempts := StrToIntDef(between('<attempts>', '</attempts>', cRec[k]), 0);
tmp.matches := StrToIntDef(between('<matches>', '</matches>', cRec[k]), 0);
tmp.lastPoints := StrToIntDef(between('<lastPoints>', '</lastPoints>', cRec[k]), 0);
tmp.lastObj := StrToIntDef(between('<lastObj>', '</lastObj>', cRec[k]), 0);
tmp.maxPoints := StrToIntDef(between('<maxPoints>', '</maxPoints>', cRec[k]), 0);
tmp.maxObj := StrToIntDef(between('<maxObj>', '</maxObj>', cRec[k]), 0);
tmp.queryTime := StrToIntDef(between('<queryTime>', '</queryTime>', cRec[k]), 0);
case colorSets[i] of
'discovered' : begin; self.discovered.append(tmp); end;
'active' : begin; self.active.append(tmp); end;
'successful' : begin; self.successful.append(tmp); end;
'blacklist' : begin; self.blacklist.append(tmp); end;
'runty' : begin; self.runty.append(tmp); end;
end;
end;
end;
end;
end;
// -----------------------------------------------------------------------------
// save()
//
// Saves the accumulated data
// -----------------------------------------------------------------------------
procedure Tcolorizer.save();
var
s, filePath: string;
i, j, fileId: integer;
colorSets: TstringArray;
function colRec(r: TcolRec): string;
begin
result := result + ' <colorRecord>';
result := result + '<color>' + intToStr(r.color) + '</color>';
result := result + '<count>' + intToStr(r.count) + '</count>';
result := result + '<attempts>' + intToStr(r.attempts) + '</attempts>';
result := result + '<matches>' + intToStr(r.matches) + '</matches>';
result := result + '<lastPoints>' + intToStr(r.lastPoints) + '</lastPoints>';
result := result + '<lastObj>' + intToStr(r.lastObj) + '</lastObj>';
result := result + '<maxPoints>' + intToStr(r.maxPoints) + '</maxPoints>';
result := result + '<maxObj>' + intToStr(r.maxObj) + '</maxObj>';
result := result + '<queryTime>' + intToStr(r.queryTime) + '</queryTime>';
result := result + '</colorRecord>' + #13#10;
end;
begin
s := s + '<colorizer>' + #13#10;
s := s + ' <name>' + self.name + '</name>' + #13#10;
s := s + ' <uptext>' + self.uptext + '</uptext>' + #13#10;
s := s + ' <uptextTimeout>' + intToStr(self.uptextTimeout) + '</uptextTimeout>' + #13#10;
s := s + ' <tol>' + intToStr(self.tol) + '</tol>' + #13#10;
s := s + ' <dist>' + intToStr(self.dist) + '</dist>' + #13#10;
s := s + ' <minPixels>' + intToStr(self.minPixels) + '</minPixels>' + #13#10;
s := s + ' <maxPixels>' + intToStr(self.maxPixels) + '</maxPixels>' + #13#10;
colorSets := ['discovered', 'active', 'successful', 'blacklist', 'runty'];
for i := 0 to high(colorSets) do
case colorSets[i] of
'discovered':
begin
s := s + ' <discovered>' + #13#10;
for j := 0 to high(self.discovered) do
s := s + colRec(self.discovered[j]);
s := s + ' </discovered>' + #13#10;
end;
'active':
begin
s := s + ' <active>' + #13#10;
for j := 0 to high(self.active) do
s := s + colRec(self.active[j]);
s := s + ' </active>' + #13#10;
end;
'successful':
begin
s := s + ' <successful>' + #13#10;
for j := 0 to high(self.successful) do
s := s + colRec(self.successful[j]);
s := s + ' </successful>' + #13#10;
end;
'blacklist':
begin
s := s + ' <blacklist>' + #13#10;
for j := 0 to high(self.blacklist) do
s := s + colRec(self.blacklist[j]);
s := s + ' </blacklist>' + #13#10;
end;
'runty':
begin
s := s + ' <runty>' + #13#10;
for j := 0 to high(self.runty) do
s := s + colRec(self.runty[j]);
s := s + ' </runty>' + #13#10;
end;
end;
s := s + '</colorizer>' + #13#10;
filePath := self._fpath();
fileId := RewriteFile(filePath, false);
if (fileId = -1) then
begin
{$IFDEF DEBUG_ON} writeln('***** Tcolorizer.save: RewriteFile failed [', filePath, ']'); {$ENDIF}
exit;
end;
if (not WriteFileString(fileId, s)) then
begin
{$IFDEF DEBUG_ON} writeln('***** Tcolorizer.save: WriteFileString failed [', filePath, ']'); {$ENDIF}
exit;
end;
CloseFile(fileId);
end;
// -----------------------------------------------------------------------------
// init()
//
// Initialize the object
// -----------------------------------------------------------------------------
procedure Tcolorizer.init(nm: string; ut: string; utt: integer; t: integer;
d: integer; minp: integer; maxp: integer);
begin
self.name := nm;
self.uptext := ut;
self.uptextTimeout := utt;
self.tol := t;
self.dist := d;
self.minPixels := minp;
self.maxPixels := maxp;
// setLength(self.discovered, 0);
// setLength(self.active, 0);
// setLength(self.successful, 0);
// setLength(self.blacklist, 0);
// setLength(self.runty, 0);
end;
// -----------------------------------------------------------------------------
// setName()
//
// Initialize the object
// -----------------------------------------------------------------------------
procedure Tcolorizer.setName(nm: string);
begin
self.name := nm;
end;
// -----------------------------------------------------------------------------
// updateCount()
//
// Updates count info for a color. Adds it if new.
// -----------------------------------------------------------------------------
procedure Tcolorizer.updateCount(col: integer; cnt: integer);
var
d, a, s, b, r: integer;
begin
d := self.discovered.returnInArray(col);
a := self.active.returnInArray(col);
s := self.successful.returnInArray(col);
b := self.blacklist.returnInArray(col);
r := self.runty.returnInArray(col);
if (d+a+s+b+r = -5) then // this is a new color
begin
setLength(self.discovered, length(self.discovered) + 1);
with self.discovered[high(self.discovered)] do
begin
color := col;
count := cnt;
attempts := 0;
matches := 0;
lastPoints := 0;
lastObj := 0;
maxPoints := 0;
maxObj := 0;
queryTime := 0;
end;
end
else
begin
if (d >= 0) then
self.discovered[d].count := self.discovered[d].count + cnt;
if (a >= 0) then
self.active[a].count := self.active[a].count + cnt;
if (s >= 0) then
self.successful[s].count := self.successful[s].count + cnt;
if (b >= 0) then
self.blacklist[b].count := self.blacklist[b].count + cnt;
if (r >= 0) then
self.runty[r].count := self.runty[r].count + cnt;
end;
end;
// -----------------------------------------------------------------------------
// updateTrials()
//
// Records success/failure of an attempt to use a color. Will move the
// color from place to place depending on the situation.
// -----------------------------------------------------------------------------
procedure Tcolorizer.updateTrials(col: integer; success: boolean);
var
d, a, s, b, r: integer;
percent: extended;
begin
d := self.discovered.returnInArray(col);
a := self.active.returnInArray(col);
s := self.successful.returnInArray(col);
b := self.blacklist.returnInArray(col);
r := self.runty.returnInArray(col);
if (d+a+s+b+r = -5) then
begin
writeln('Tcolorizer.updateTrials: ERROR - Asked to update color, ', col, ' - does not exist');
exit;
end
if (d >= 0) then
with self.discovered[d] do
begin
inc(attempts);
if (success) then inc(matches);
// move it to active since it is being used.
{$IFDEF DEBUG_ON} writeln('***** Tcolorizer.updateTrials: moving (', self.discovered[d].color, ') discovered -> active'); {$ENDIF}
self.active.append(self.discovered[d]);
self.discovered.deleteIndex(d);
end;
if (a >= 0) then
with self.active[a] do
begin
inc(attempts);
if (success) then inc(matches);
percent := matches / attempts;
// see if this active color has met criteria for blacklist or success
if ((attempts >= ATTEMPT_THRESHOLD) and (percent < SUCCESS_THRESHOLD)) or
((attempts >= 5) and (percent < FAILURE_THRESHOLD)) then
begin
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.updateTrials: moving (', self.active[a].color,
') active -> blacklist');
{$ENDIF}
self.blacklist.append(self.active[a]); // time to give up on this one
self.active.deleteIndex(a);
end
else if ((matches >= 5) and (percent >= SUCCESS_THRESHOLD)) then
begin
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.updateTrials: moving (', self.active[a].color,
') active -> successful');
{$ENDIF}
self.successful.append(self.active[a]);
self.active.deleteIndex(a);
self.save();
end;
end;
if (s >= 0) then
with self.successful[s] do
begin
inc(attempts);
if (success) then inc(matches);
// if ((matches / attempts) < (SUCCESS_THRESHOLD - 0.1)) then
// begin
// {$IFDEF DEBUG_ON}
// writeln('***** Tcolorizer.updateTrials: moving (', self.successful[s].color,
// ') successful -> active');
// {$ENDIF}
// self.active.append(self.successful[s]);
// self.successful.deleteIndex(s);
// self.save();
// end;
end;
if (b >= 0) then
with self.blacklist[b] do
begin
inc(attempts);
if (success) then inc(matches);
end;
if (r >= 0) then
with self.runty[r] do
begin
inc(attempts);
if (success) then inc(matches);
end;
// self.save();
end;
// -----------------------------------------------------------------------------
// updatePointCount()
//
// Updates stats on a color
// -----------------------------------------------------------------------------
procedure Tcolorizer.updatePointCount(col: integer; points: integer;
objs: integer; msec: integer);
var
d, a, s, b, r: integer;
begin
d := self.discovered.returnInArray(col);
a := self.active.returnInArray(col);
s := self.successful.returnInArray(col);
b := self.blacklist.returnInArray(col);
r := self.runty.returnInArray(col);
if (d+a+s+b+r = -5) then
begin
writeln('***** Tcolorizer.updatePointCount: ERROR - Asked to update color, ',
col, ' - does not exist');
exit;
end
if (d >= 0) then
with self.discovered[d] do
begin
lastPoints := points;
lastObj := objs;
if (points > maxPoints) then maxPoints := points;
if (objs > maxObj) then maxObj := objs;
if (msec > queryTime) then queryTime := msec;
if (msec > BLACKLIST_THRESHOLD) then // move it to the blacklist
begin
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.updatePointCount: moving (', self.discovered[d].color,
') discovered -> blacklist');
{$ENDIF}
self.blacklist.append(self.discovered[d]);
self.discovered.deleteIndex(d);
end
else if ((objs < 1) and (matches = 0)) then // move it to the runty list
begin
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.updatePointCount: moving (', self.discovered[d].color,
') discovered -> runty. objs=', objs, ' points=', points);
{$ENDIF}
self.runty.append(self.discovered[d]);
self.discovered.deleteIndex(d);
end
else // since it is being used, move it to active
begin
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.updatePointCount: moving (', self.discovered[d].color,
') discovered -> active');
{$ENDIF}
self.active.append(self.discovered[d]);
self.discovered.deleteIndex(d);
end;
end;
if (a >= 0) then
with self.active[a] do
begin
lastPoints := points;
lastObj := objs;
if (points > maxPoints) then maxPoints := points;
if (objs > maxObj) then maxObj := objs;
if (msec > queryTime) then queryTime := msec;
if (msec > BLACKLIST_THRESHOLD) then // move it to the blacklist
begin
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.updatePointCount: moving (', self.active[a].color,
') active -> blacklist');
{$ENDIF}
self.blacklist.append(self.active[a]);
self.active.deleteIndex(a);
end
else if ((objs < 1) and (matches = 0)) then // move it to the runty list
begin
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.updatePointCount: moving (', self.active[a].color,
') active -> runty');
{$ENDIF}
self.runty.append(self.active[a]);
self.active.deleteIndex(a);
end;
end;
if (s >= 0) then
with self.successful[s] do
begin
lastPoints := points;
lastObj := objs;
if (points > maxPoints) then maxPoints := points;
if (objs > maxObj) then maxObj := objs;
if (msec > queryTime) then queryTime := msec;
if (msec > BLACKLIST_THRESHOLD) then // move it to the blacklist
begin
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.updatePointCount: moving (', self.successful[s].color,
') successful -> blacklist');
{$ENDIF}
self.blacklist.append(self.successful[s]);
self.successful.deleteIndex(s);
self.save();
end
else if (objs < 1) then // move it to the runty list
begin
// {$IFDEF DEBUG_ON}
// writeln('***** Tcolorizer.updatePointCount: moving (', self.successful[s].color,
// ') successful -> runty');
// {$ENDIF}
// self.runty.append(self.successful[s]);
// self.successful.deleteIndex(s);
end;
end;
if (b >= 0) then
with self.blacklist[b] do
begin
writeln('***** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (', col, ')');
lastPoints := points;
lastObj := objs;
if (points > maxPoints) then maxPoints := points;
if (objs > maxObj) then maxObj := objs;
if (msec > queryTime) then queryTime := msec;
end;
if (r >= 0) then
with self.runty[r] do
begin
writeln('***** Tcolorizer.updatePointCount: Warning - Updating runty color (', col, ')');
lastPoints := points;
lastObj := objs;
if (points > maxPoints) then maxPoints := points;
if (objs > maxObj) then maxObj := objs;
if (msec > queryTime) then queryTime := msec;
if (msec > BLACKLIST_THRESHOLD) then // move it to the blacklist
begin
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.updatePointCount: moving (', self.runty[r].color,
') runty -> blacklist');
{$ENDIF}
self.blacklist.append(self.runty[r]);
self.runty.deleteIndex(r);
end
else if (objs > 1) then // it started providing matches, move out of runty
begin
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.updatePointCount: moving (', self.runty[r].color,
') runty -> active');
{$ENDIF}
self.active.append(self.runty[r]);
self.runty.deleteIndex(r);
end;
end;
self.save();
end;
// -----------------------------------------------------------------------------
// delete()
//
// Delete info for a color
// -----------------------------------------------------------------------------
procedure Tcolorizer.delete(col: integer);
var
d, a, s, b, r: integer;
begin
d := self.discovered.returnInArray(col);
a := self.active.returnInArray(col);
s := self.successful.returnInArray(col);
b := self.blacklist.returnInArray(col);
r := self.runty.returnInArray(col);
if (d+a+s+b+r = -5) then
begin
writeln('Tcolorizer.delete: ERROR - Asked to delete color, ',
col, ' - does not exist');
exit;
end
{$IFDEF DEBUG_ON} writeln('***** Tcolorizer.delete: deleting (', col, ')'); {$ENDIF}
if (d >= 0) then self.discovered.delete(col);
if (a >= 0) then self.active.delete(col);
if (s >= 0) then self.successful.delete(col);
if (b >= 0) then self.blacklist.delete(col);
if (r >= 0) then self.runty.delete(col);
end;
// -----------------------------------------------------------------------------
// cleanupColors()
//
// Weeds down the color list. Does not clean sucessful, blacklisted,
// or runty lists since these keep us from using bad colors or are the result
// of hard searching.
// -----------------------------------------------------------------------------
procedure Tcolorizer.cleanupColors();
var
i, t, cnt: integer;
found: boolean;
tmp: Tcolorizer;
begin
self.discovered.cleanupColors();
self.active.cleanupColors();
end;
// -----------------------------------------------------------------------------
// gather()
//
// Gathers a color by screen quadrants so we dont get so bogged
// down on background colors that take forever to collect. Hopefully
// don't have to break this into eights or make it recursive.
// -----------------------------------------------------------------------------
function Tcolorizer.gather(var tpa: TPointArray; col: integer): boolean;
var
b: TBox;
c: TPoint;
quadrant: array[0..3] of TBox;
i: integer;
timer: TTimeMarker;
qtpa: TPointArray;
begin
b := mainscreen.getBounds();
c := mainscreen.getCenterPoint();
// NE, SE, SW, NW
quadrant[0] := IntToBox(c.x, b.y1, b.x2, c.y);
quadrant[1] := IntToBox(c.x, c.y, b.x2, b.y2);
quadrant[2] := IntToBox(b.x1, c.y, c.x, b.y2);
quadrant[3] := IntToBox(b.x1, b.y1, c.x, c.y);
setLength(tpa, 0);
timer.start();
for i := 0 to 3 do
begin
setLength(qtpa, 0);
if (findColorsTolerance(qtpa, col, quadrant[i], self.tol)) then
begin
if (timer.getTime() > (BLACKLIST_THRESHOLD div 4)) then
begin
// dump this color for something more productive
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.gather: blacklisting (', col, ') for timeout.');
{$ENDIF}
self.updatePointCount(col, length(qtpa)*4, 0, BLACKLIST_THRESHOLD+1);
result := false;
exit;
end
else
tpa.combine(qtpa);
end;
end;
if (length(tpa) > 0) then
result := true
else
result := false;
end;
// -----------------------------------------------------------------------------
// gather()
//
// Gathers a color into an atpa.
// -----------------------------------------------------------------------------
function Tcolorizer.gather(var atpa: T2DPointArray; c: integer): boolean; overload;
var
tpa: TPointArray;
timer: TTimeMarker;
begin
setLength(tpa, 0);
result := true;
timer.start();
if (not self.gather(tpa, c)) then
begin
result := false;
// no point in updating if it already got blacklisted
if (not self.blacklist.isInArray(c)) then
begin
self.updatePointCount(c, 0, 0, timer.getTime());
end;
exit;
end;
atpa := tpa.split(self.dist);
atpa.filterBetween(0, self.minPixels);
atpa.filterBetween(self.maxPixels, maxint);
atpa.sortBySize();
if (length(atpa) = 0) then
result := false;
self.updatePointCount(c, length(tpa), length(atpa), timer.getTime());
end;
// -----------------------------------------------------------------------------
// sample()
//
// Grabs a sampling of colors around the mouse area
// -----------------------------------------------------------------------------
procedure Tcolorizer.sample(n: integer = 3);
var
i, x, y: integer;
b: TBox;
colList: TIntegerArray;
begin
getMousePos(x,y);
b := [x, y, x, y];
b.expand(n);
if (b.x1 < 0) then b.x1 := 0;
if (b.x2 < 0) then b.x2 := 0;
if (b.y1 < 0) then b.y1 := 0;
if (b.y2 < 0) then b.y2 := 0;
colList := getColors(b.createTPA());
for i := 0 to high(colList) do
self.updateCount(colList[i], 1);
end;
// -----------------------------------------------------------------------------
// deepSample()
//
// Jiggles the mouse around a good spot to see if we can collect more colors
// -----------------------------------------------------------------------------
procedure Tcolorizer.deepSample(x: integer; y: integer; n: integer = 3);
var
p: TPoint;
i, t: integer;
matched: boolean;
s: string;
begin
p.create(x,y);
i := 5;
matched := true;
while (matched) do
begin
matched := false;
mouse(p.rand(i));
inc(i);
t := getSystemTime() + randomRange(uptextTimeout, uptextTimeout+80);
repeat
wait(20);
s := getMouseOverText();
if (pos(self.uptext, s) > 0) then
begin
matched := true;
self.sample(n);
end
else
if (s <> '') then // we got an uptext, but it isnt what we want
break;
until (matched or (getSystemTime() > t));
end;
end;
// -----------------------------------------------------------------------------
// untriedColors()
//
// Returns an array of colors we havent tried yet
// -----------------------------------------------------------------------------
function Tcolorizer.untriedColors() : TIntegerArray;
var
i, j: integer;
closeToBG, bgList: TIntegerArray;
begin
if (length(self.discovered) > CLEANUP_LOW_WATER) then
self.cleanupColors(); // might as well try to cut it down
self.discovered.sortByCount();
// put colors close to successful ones first in the list
for i := 0 to high(self.successful) do
for j := 0 to high(self.discovered) do
begin
if SimilarColors(self.successful[i].color, self.discovered[j].color, 10) then
begin
result.append(self.discovered[j].color);
break;
end;
end;
// find background colors (blacklisted with high queryTime). Put
// things close to the blacklist at the end.
setLength(bgList, 0);
for i := 0 to high(self.blacklist) do
begin
if self.blacklist[i].queryTime > BLACKLIST_THRESHOLD then
bgList.append(self.blacklist[i].color);
end;
setLength(closeToBG, 0);
for i := 0 to high(bgList) do
for j := 0 to high(self.discovered) do
begin
if (not result.isInArray(self.discovered[j].color)) and
SimilarColors(bgList[i], self.discovered[j].color, 10) then
begin
closeToBG.append(self.discovered[j].color);
break;
end;
end;
for i := 0 to high(self.discovered) do
if (not result.isInArray(self.discovered[i].color)) and
(not closeToBG.isInArray(self.discovered[i].color)) then
begin
result.append(self.discovered[i].color);
end;
result.combine(closeToBG);
end;
// -----------------------------------------------------------------------------
// activeColors()
//
// Returns an array of colors we need to test more
// -----------------------------------------------------------------------------
function Tcolorizer.activeColors() : TIntegerArray;
var
i: integer;
begin
if (length(self.active) > CLEANUP_LOW_WATER) then
self.cleanupColors(); // might as well try to cut it down
setLength(result, 0);
self.active.sortBySuccess();
for i := 0 to high(self.active) do
result.append(self.active[i].color);
end;
// -----------------------------------------------------------------------------
// successfulColors()
//
// Returns an array of colors we have confidence in
// -----------------------------------------------------------------------------
function Tcolorizer.successfulColors() : TIntegerArray;
var
i: integer;
begin
self.successful.sortBySuccess();
for i := 0 to high(self.successful) do
result.append(self.successful[i].color);
end;
// -----------------------------------------------------------------------------
// multiBox()
//
// Uses the five most successful colors to return a box that is likely
// to have an NPC in it
// -----------------------------------------------------------------------------
function Tcolorizer.multiBox(var clist: TIntegerArray; rand: boolean = true) : Tbox;
var
s, pointCount, qTimes: TIntegerArray;
atpa: T2DPointArray;
allPoints, tpa: TPointArray;
t: TTimeMarker;
i: integer;
begin
s := self.successfulColors();
if (length(s) < 1) then
begin
result := [-1,-1,-1,-1];
exit;
end;
setLength(clist, 0);
setLength(pointCount, 0);
setLength(qTimes, 0);
for i := 0 to min(5, high(s)) do
begin
t.reset();
t.start();
if self.gather(tpa, s[i]) then
begin
allPoints.combine(tpa);
clist.append(s[i]);
pointCount.append(length(tpa));
qTimes.append(t.getTime());
end;
end;
atpa := allPoints.split(self.dist);
atpa.filterBetween(0, self.minPixels);
atpa.filterBetween(self.maxPixels, maxint);
if (length(atpa) < 1) then
begin
result := [-1,-1,-1,-1];
exit;
end;
if rand then
result := atpa[random(length(atpa))].getBounds()
else
begin
atpa.sortBySize();
result := atpa[0].getBounds();
end;
for i := 0 to min(5, high(s)) do
self.updatePointCount(clist[i], pointCount[i], length(atpa), qTimes[i]);
{$IFDEF DEBUG_ON}
smartImage.drawBox(result, true, clOrange);
sleep(80);
smartImage.clearArea(result);
{$ENDIF}
end;
// -----------------------------------------------------------------------------
// likelyBox()
//
// Uses the successful list to return a box that is likely to have an NPC in it
// -----------------------------------------------------------------------------
function Tcolorizer.likelyBox(var c: integer; rand: boolean = true) : Tbox;
var
s: TIntegerArray;
atpa: T2DPointArray;
begin
s := self.successfulColors();
if (length(s) < 1) then
begin
result := [-1,-1,-1,-1];
exit;
end;
if rand then
c := s[random(length(s))]
else
c := s[0];
if self.gather(atpa, c) then
begin
if rand then
result := atpa[random(length(atpa))].getBounds()
else
result := atpa[0].getBounds();
end
else
begin
result := [-1,-1,-1,-1];
exit;
end;
{$IFDEF DEBUG_ON}
smartImage.drawBox(result, true, clOrange);
sleep(80);
smartImage.clearArea(result);
{$ENDIF}
end;
// -----------------------------------------------------------------------------
// testCol()
//
// Sees if a color will get us to the desired mousetext
// -----------------------------------------------------------------------------
function Tcolorizer.testCol(c: integer; trials: integer = 1): boolean;
var
i, t, x, y: integer;
s: string;
atpa: T2DPointArray;
matched: boolean;
timer: TTimeMarker;
begin
result := false;
if (not self.gather(atpa, c)) then
begin
self.updateTrials(c, false);
exit;
end;
for i := 0 to high(atpa) do
begin
if (trials = 0) then
break
else
trials := trials - 1;;
matched := false;
timer.start();
t := randomRange(uptextTimeout, uptextTimeout+80);
atpa[i].getBounds().mouse();
repeat
wait(20);
s := getMouseOverText();
if (pos(self.uptext, s) > 0) then
matched := true
else
if (s <> '') then // we got an uptext, but it isnt what we want
break;
until (matched or (timer.getTime() > t));
if (matched) then
begin
case random(10) of
0: begin
getMousePos(x,y);
self.deepSample(x,y);
end;
end;
self.updateTrials(c, true);
result := true;
end
else
self.updateTrials(c, false);
end;
end;
// -----------------------------------------------------------------------------
// colorize()
//
// Tests colors to try to find new ones that are successful.
// -----------------------------------------------------------------------------
function Tcolorizer.colorize(maxTime: integer = 120000; enough: integer = 5): boolean;
var
i, timeout: integer;
tia: TIntegerArray;
begin
if (length(self.successful) >= enough) then
begin
result := true;
exit;
end;
result := false;
timeout := getSystemTime() + maxTime;
while (getSystemTime() < timeout) do
begin
if ((length(self.active) < 8) and (length(self.discovered) > 0)) then
begin
tia := self.untriedColors();
if (length(tia) < 1) then exit;
self.testCol(tia[0], 1);
end
else
begin
tia := self.activeColors();
if (length(tia) < 1) then exit;
self.testCol(tia[random(length(tia))], 5);
end;
if (length(self.successful) >= enough) then
begin
{$IFDEF DEBUG_ON}
writeln('***** Tcolorizer.colorize: Reached our goal of ', enough, ' good colors.');
{$ENDIF}
result := true;
exit;
end;
end;
end;
// -----------------------------------------------------------------------------
// detectObj()
//
// Detect an object in a box.
// -----------------------------------------------------------------------------
function Tcolorizer.detectObj(var x: integer; var y: integer; var menuText: string;
b: TBox; mouseButton: integer = MOUSE_MOVE): boolean;
var
i, j: integer;
s: string;
opts: TOptionArray;
t: integer;
p: TPoint;
matched: boolean;
begin
x := 0;
y := 0;
menuText := '';
result := false;
matched := false;
if (mouseButton = MOUSE_NONE) or (mouseButton = MOUSE_MIDDLE) then exit;
t := getSystemTime() + randomRange(uptextTimeout, uptextTimeout+80);
repeat
b.mouse();
wait(20);
s := getMouseOverText();
if (pos(self.uptext, s) > 0) then
begin
menuText := s;
matched := true;
result := true;
end
else
if (s <> '') then break; // we got an uptext, but it isnt what we want
until (matched or (getSystemTime() > t));
if (matched) then
begin
self.sample();
getMousePos(x,y); // save this for a sec
case (mouseButton) of
MOUSE_LEFT:
begin
fastClick(MOUSE_LEFT);
exit;
end;
MOUSE_RIGHT, MOUSE_MOVE:
begin
fastClick(MOUSE_RIGHT);
if (mouseButton = MOUSE_RIGHT) then
begin
result := chooseoption.select([self.uptext], 100);
exit;
end
opts := chooseOption.getOptions();
chooseOption.close();
for j := 0 to high(opts) do
begin
if (pos(self.uptext, opts[j].str) > 0) then
begin
menuText := opts[j].str;
break;
end;
end;
mouse(point(x,y), MOUSE_MOVE);
end;
end;
end;
end;
// -----------------------------------------------------------------------------
// examineGrid()
//
// Try to detect an object in one of the boxes in grid.
// -----------------------------------------------------------------------------
function Tcolorizer.examineGrid(grid: TBoxArray): string;
var
i, j, x, y, t: integer;
s: string;
opts: TOptionArray;
p: TPoint;
matched: boolean;
begin
result := '';
while (length(grid) > 0) do
begin
i := randomRange(0, length(grid));
if self.detectObj(x, y, s, grid[i]) then
begin
result := s;
break;
end;
grid.deleteIndex(i);
end;
if (result <> '') then
self.deepSample(x,y);
end;
// -----------------------------------------------------------------------------
// motionDetect()
//
// Finds objects based on screen movement (pixel shift).
// -----------------------------------------------------------------------------
function Tcolorizer.motionDetect(): string;
var
i, j, t: integer;
grid, targetGrid, tried: TBoxArray;
pixels: TIntegerArray;
max, percent: integer;
begin
result := '';
setLength(tried, 0);
grid := mainscreen.getBounds().split(GRIDSIZE, GRIDSIZE);
for t := 15 to 95 with 20 do
begin
if (t > 70) then // we're not doing very good, lets try some
setLength(tried, 0); // of the boxes we tried earlier
pixels := grid.pixelShift(PIXELSHIFT_WAIT);
max := pixels.max();
setLength(targetGrid, 0);
for i := 0 to high(grid) do
begin
if (tried.isInArray(grid[i])) then // dont keep moving the mouse to the
continue; // same place... try new ones
percent := trunc( ((pixels[i]/max) * 100.0 ));
if ((percent + t) > 100) then
begin
setLength(targetGrid, length(targetGrid)+1);
targetGrid[high(targetGrid)] := grid[i];
end;
end;
result := self.examineGrid(targetGrid);
if ((result = '') or (result = 'Attack')) then
begin
{$IFDEF DEBUG_ON} writeln('***** Tcolorizer.motionDetect: FAILED TO IDENTIFY ANYTHING. tol=', t); {$ENDIF}
end
else
begin
{$IFDEF DEBUG_ON} writeln('***** Tcolorizer.motionDetect: Identified - ', result); {$ENDIF}
exit;
end;
tried.combine(targetGrid);
end;
end;
// -----------------------------------------------------------------------------
// _colorizerTerminate
//
// This is hooked into the script termination stream.
// -----------------------------------------------------------------------------
procedure _colorizerTerminate();
begin
end;
// -----------------------------------------------------------------------------
// initializer
//
// Ensures we call the function to free DTMS if the script exits.
// Checks for online updates.
// -----------------------------------------------------------------------------
begin
addOnTerminate('_colorizerTerminate');
// updater.check4update('libcolorizer.simba', libcolorizerVersion,
// libcolorizerVerUrl, libcolorizerCodeUrl, true);
end;
bonsai
2014-08-09 06:49:22
A couple of other notes….
It's a good idea to check the box for "logout when exiting". That's the source of some instances of dying. I always leave it unchecked because I'm running around or testing different things.
There will never be looting or banking in the generic fighter. It's for XP or knocking out slayer tasks. Anyway, there is no sensible way to implement generic looting and banking for all npcs. Looting, maybe.
I may release specific versions for something (like a charm gatherer or DRS) but this one won't have it.
bonsai
2014-08-10 06:10:00
Hey, you guys that use the SGS…
Do you want it to activate it the same time it would have eaten food (i.e. don't use it until health drops to the % in the form)?
Or would you prefer to be more aggressive (i.e. use it any time it's available)?
yvan49
2014-08-10 11:40:02
use it same time it would have eaten food
nutta124
2014-08-10 16:20:33
SGS user~~
imo i would prefer it to be more aggressive as you may say
i dont know about the others, though
nutta124
2014-08-12 19:54:48
just a quick question, bonsai, do you use OpenGL or DirectX?
The Spark
2014-08-12 20:08:56
From: nutta124
just a quick question, bonsai, do you use OpenGL or DirectX?
If it doesn't say to use DirectX then always use OpenGL because using OpenGL is part of the correct graphics settings by default. Scripts will specify if they want you to use DirectX because it's not part of the default graphic settings for SIMBA.
It doesn't say to use DirectX in the original post, so you need to use OpenGL
pipos1
2014-08-12 23:47:52
autocoloring is a really good idea man !! i am testing it atm and i will give u feedback and proggries if its flawless :)
bonsai
2014-08-13 00:29:29
From: nutta124
just a quick question, bonsai, do you use OpenGL or DirectX?
I use the directx plugin. The machine I mostly use for this suffers from that opengl crash / white screen.
bonsai
2014-08-13 00:33:16
From: sparkyownage
It doesn't say to use DirectX in the original post, so you need to use OpenGL
The form lets you choose either one. I used to use ogl before it got flaky.
I should be testing both before rolling it out though :)
bonsai
2014-08-13 00:35:34
From: pipos1
autocoloring is a really good idea man !! i am testing it atm and i will give u feedback and proggries if its flawless :)
Tyty. I would appreciate that. Please note the bans this week and use a junk account.
I should probably post updated code, I made a few improvements since posting the version above.
pipos1
2014-08-13 11:55:09
From: bonsai
Tyty. I would appreciate that. Please note the bans this week and use a junk account.
I should probably post updated code, I made a few improvements since posting the version above.
the autocoloring is just amaizing it work perfecly only some monster are just too close to background color so it doesnt find it but its normal:p
and here my little proggries i didnt pass the 6hours limit??[ATTACH=CONFIG]23796[/ATTACH]
i used a new acc that why the exp/h is low but i used right-click and the script is pretty flawless
bonsai
2014-08-13 13:29:50
From: pipos1
the autocoloring is just amaizing it work perfecly only some monster are just too close to background color so it doesnt find it but its normal:p
and here my little proggries i didnt pass the 6hours limit??[ATTACH=CONFIG]23796[/ATTACH]
i used a new acc that why the exp/h is low but i used right-click and the script is pretty flawless
Thanks, pipos.
One of the things not done yet is the XP tracking. For now I set it to 10XP per kill and 1ConstitutionXP.
The string I get back from the menu option can be corrupt. It's not getting some of the yellow text and the spaces get dropped sometimes. So it's hard to get an exact real NPC name. Then need to look the name up on runescape wiki or something to get the XP. I know everyone loves their progress reports but I consider it secondary to making the script work.
Which NPC was too close to BG to color? The ony one I had real trouble with so far is the ghost/ankou. Too much white for that one to work.
I tested some in rooms with 2-3 NPC types and it often ends up with mixed colors from all of them. So it kills a mixture of things.
I saw it catching rats so I know it's fast/accurate enough.
pipos1
2014-08-15 00:25:28
i tried again alot of monster with the autocolor and the only monster it didnt work is monk at edgeville in the dungeon
Xiiiii
2014-08-15 19:18:50
How long should the autocolour take? Tried it with troll chuckers and t didn't work, (stuck on finding colours) though that might have been because they have similar colours to their background
pipos1
2014-08-15 19:50:46
From: Xiiiii
How long should the autocolour take? Tried it with troll chuckers and t didn't work, (stuck on finding colours) though that might have been because they have similar colours to their background
when the debug is spamming: ***** Tnpc.motionDetect: Trying to identify more colors
just stop the script and start it again when the monster is similar to background it can take 2-3 time before you find it
the autocolor take between about 1-3min once it took me like 6min lol
btw troll chucker work i was training there yesterday
Xiiiii
2014-08-15 20:34:37
No longer getting the
***** Tnpc.motionDetect: Trying to identify more color
line at troll chuckers, seems to be replaced by this:
***** Tcolorizer.updatePointCount: moving (5332091) discovered -> blacklist
***** Tcolorizer.updatePointCount: moving (9213345) discovered -> active
***** Tcolorizer.updateTrials: moving (12379621) active -> blacklist
***** Tcolorizer.updatePointCount: moving (6586272) discovered -> blacklist
***** Tcolorizer.updatePointCount: moving (8751767) discovered -> active
***** Tcolorizer.updateTrials: moving (9213345) active -> successful
***** Tcolorizer.updatePointCount: moving (5398398) discovered -> blacklist
***** Tcolorizer.updatePointCount: moving (6653600) discovered -> active
pipos1
2014-08-15 22:01:18
this is good its finding color it can take 1-3min but i think its at troll chucker it took me 6min lol
pipos1
2014-08-15 22:03:59
srry for double post my computer lagged :/ idk how to delete it
plasmahand
2014-08-16 00:03:50
Have been using it on fire giants, has ran perfectly for 10-15 hours before. This evening I checked on it after 3 hours and found it timed out, Somehow it died at fire giants, last health check in the log showed 78%. I guess it went though another portal and kept taking hits. Maybe make it check health anyway every 30 seconds?
pipos1
2014-08-16 00:46:19
From: plasmahand
Have been using it on fire giants, has ran perfectly for 10-15 hours before. This evening I checked on it after 3 hours and found it timed out, Somehow it died at fire giants, last health check in the log showed 78%. I guess it went though another portal and kept taking hits. Maybe make it check health anyway every 30 seconds?
you should bring ring of life :p
gcthorpe
2014-08-16 13:16:25
having a little issue loading the script and i can't post a screenshot because i just joined the community, so i'll try my utmost best to describe it. when i start the script, it allows me to choose whatever options but when click "run" a new window pops up saying "invalid parameter". i copied some of the code in simba to below, if that helps.
thanks,
——– Using plugins "OpenGL32.dll"
——– FATAL ERROR: Failed to spawn a SMART client
****** bonsaiFighter: Script shutting down
Xiiiii
2014-08-18 06:41:27
//////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Warped Cockroach //////////
////////// 1020(Killed) 582(per hour run) 582(per hour active) //////////
////////// 25398(xp) 14485(per hour run) 14485(per hour active) //////////
////////// 8364(const xp) 4770(per hour run) 4770(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Seems to be working well, but choosing warped cockroaches causes it to attack corpse spiders. Choosing corpse spiders makes it attack corpse spiders.
prostaker
2014-08-23 06:05:52
Sweet script. Works nice for slayer. Curently at 55 slayer :) Thankyou
bonsai
2014-08-23 06:14:29
From: prostaker
Sweet script. Works nice for slayer. Curently at 55 slayer :) Thankyou
Thanks. Are you using the original from the first post or the new one I posted a little ways up?
Still working on cleaning things up for an update. I was running a long test yesterday but some fool wanted to be my BF after a couple of hours so I bailed before he reported it :duh:
////////////////////////////////////////////////////////////////////////////////////////////////////
////////// ( )\ ) ) ) //////////
////////// ( )\ ) ( (()/( ( ( ( ( /( ( /( ( ( //////////
////////// )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )( //////////
////////// ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\ //////////
////////// | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_) //////////
////////// | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_| //////////
////////// |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_| //////////
////////// |___/ //////////
////////// //////////
////////// Script runtime: //////////
////////// 2 hr 41 min 51 sec(Total) 2 hr 29 min 3 sec(Active) 12 min 48 sec(Break) //////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Gelatinous Abomination //////////
////////// 561(Killed) 208(per hour run) 226(per hour active) //////////
////////// 22440(xp) 8320(per hour run) 9040(per hour active) //////////
////////// 7405(const xp) 2746(per hour run) 2983(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
regzastyle
2014-08-24 07:35:15
hi im using your latest scipt (autodetect) . why on me it always say tnpc.motiondetect: trying to identitiy more color for almost 10 minuets? im trying to hunt corpse spider
bonsai
2014-08-24 08:05:52
From: regzastyle
hi im using your latest scipt (autodetect) . why on me it always say tnpc.motiondetect: trying to identitiy more color for almost 10 minuets? im trying to hunt corpse spider
It might take 5 minutes or so to get colors initially.
The success of the autocolor has some luck involved. If the first time it grabs color it gets bad ones, it will take a long time or sometimes not even find anything.
It if doesn't seem to be hitting them while coloring, stop and retry. I would remove the color file if it made one (SIMBADIR\includes\bonsai\colors)
I'm going to release some coloring tools with the fighter. I figured some ways to pre-seed the color file and get much better results. Then you can color separate from fighting or share color files. I don't like all that crazy mouse activity on my better accounts!
Cyanempire
2014-08-24 11:06:33
I was able to set it up but when im logged in it just keeps moving the mouse around and then ends it after awhile tried it on Warped Cockroaches.. was planning on using it on Cave slimes but have no idea how to. please help me :<
^Fixed i already got it working but was wondering if it can pick up loot/or bank
anyway can you help me set it up with other monsters as i dont understand the post on 1st page. Thank you
^Fixed Got it to do other monsters
Now trying to develop looting for the script. cant determine what procedure to use it always gives error on compiling
regzastyle
2014-08-25 21:39:01
From: bonsai
It might take 5 minutes or so to get colors initially.
The success of the autocolor has some luck involved. If the first time it grabs color it gets bad ones, it will take a long time or sometimes not even find anything.
It if doesn't seem to be hitting them while coloring, stop and retry. I would remove the color file if it made one (SIMBADIR\includes\bonsai\colors)
I'm going to release some coloring tools with the fighter. I figured some ways to pre-seed the color file and get much better results. Then you can color separate from fighting or share color files. I don't like all that crazy mouse activity on my better accounts!
hi im just doing this (if doesn't seem to be hitting them while coloring, stop and retry) like your suggest. its working now and its grab color realy fast. but how can i make it looting coin or specifict food ?
Thanks in advance
bonsai
2014-08-25 23:11:41
From: regzastyle
hi im just doing this (if doesn't seem to be hitting them while coloring, stop and retry) like your suggest. its working now and its grab color realy fast. but how can i make it looting coin or specifict food ?
Thanks in advance
For food, it either uses the 'Z' key or the form has a place to enter the keystroke depending on your version. So bind your food to the actionbar and key and it will eat.
The script does not loot or walk to specific places. You want an NPC specific script for that like The Mayors GAO.
The main bonsaiFighter script is pretty simple. A motivated person could customize it for a specific purpose.
regzastyle
2014-08-26 09:41:14
ok thanks. im also using The mayor gao script. its worked well. but your script killing really fast. about 470-500 lvl.19 skeleton per hours. with my 38 combat account. there so many thread in this forum. where can i start to make may own scipt ?
bonsai
2014-08-26 10:26:05
From: regzastyle
ok thanks. im also using The mayor gao script. its worked well. but your script killing really fast. about 470-500 lvl.19 skeleton per hours. with my 38 combat account. there so many thread in this forum. where can i start to make may own scipt ?
Deinitely The Mayor's
guide.
Spaceblow
2014-08-30 19:53:16
Your second post is so helpful, I didn't think about that yet.
Works well, I used it on hell hounds for the charms they drop and it worked great, ran it for about 2 hours and babysat while doing some work just incase.
bonsai
2014-08-30 23:22:52
From: Spaceblow
Your second post is so helpful, I didn't think about that yet.
I'm doing it differently in the next version. It does have the full autodetect/color but I'm finding it best to spend a little time up front pre-coloring. Plus you can run color tests on a junky account. The coloring is really mouse crazy. Anyway, here's how I've been doing it now…
BTW, this process works great to get colors for anything, not just NPCs.
1. Grab a bitmap of the mainscreen in the desired spot.
2. Copy it to another file, edit it, and black out the NPCs.
3. Run a script to grab the colors that make up the NPC.
3a. Compare the blacked out places to the original to come up with every color that was blacked out. This is all the colors in the NPC (plus whatever slop you blacked out).
3b. Take that list, query back to the blacked out mask. Since the mask only has background, this tells us if the color bleeds to other objects and should be avoided.
3c. Query good colors against the full picture to see what a real query would get. If it takes too long, too little results it is weeded out.
3c. Output a list of colors from 3a that did not match the background in 3b or perform poorly in 3c.
This weeds out most of the bad colors that cause long hangs if you do it live. It's shocking to see how big these are, 2000+ colors per NPC even with tol 10/20/30
I run another script while logged in. It takes this color list and makes attempts at NPC location. It weeds through the list and comes up with the truly successful colors that can be used.
Here's an example of the first part for skeletons. They're tough due to similar color with the background. It only found ~50 colors worth using and weeded out ~2800 colors that we need to avoid. Coloring live it would waste tons of time on those.
Skeleton pic

Mask

result
http://pastebin.com/raw.php?i=MBWWiSXe
bonsai
2014-08-31 16:42:47
Road tested the new one… 6 hour fix didn't restart smart but it was cranking along. Still a little pokey but at least it's not crapping out.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 6 hr 54 min 23 sec(Total) 6 hr 3 min 23 sec(Active) 51 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// warped-fly 1,981 286.83 327.08 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Spaceblow
2014-08-31 17:37:23
I've read your reply multiple times but I still can't visualise most of the stuff you said. I'm feeling kind of dumb because I don't really get it… :p
From: bonsai
1. Grab a bitmap of the mainscreen in the desired spot.
A printscreen would be good enough, I understand this.
From: bonsai
2. Copy it to another file, edit it, and black out the NPCs.
Copy the original and edit the copied file in Photoshop to black out the NPC's, yes I also understand this.
From: bonsai
3. Run a script to grab the colors that make up the NPC.
What script are you talking about? I thought the way to get colours was by using ACA?
From: bonsai
3a. Compare the blacked out places to the original to come up with every color that was blacked out. This is all the colors in the NPC (plus whatever slop you blacked out).
3b. Take that list, query back to the blacked out mask. Since the mask only has background, this tells us if the color bleeds to other objects and should be avoided.
3c. Query good colors against the full picture to see what a real query would get. If it takes too long, too little results it is weeded out.
3c. Output a list of colors from 3a that did not match the background in 3b or perform poorly in 3c.
To be honest, I really don't know what you're talking about. I would lie if I would say that I understood everything… :p
You don't need to explain it because I probably won't use it any time soon but it's definitely a very interesting idea you have. If you have some time on your hands, why not make a little tutorial or something so people like me could learn from you. :)
From: Spaceblow
I've read your reply multiple times but I still can't visualise most of the stuff you said. I'm feeling kind of dumb because I don't really get it… :p
A printscreen would be good enough, I understand this.
Copy the original and edit the copied file in Photoshop to black out the NPC's, yes I also understand this.
What script are you talking about? I thought the way to get colours was by using ACA?
To be honest, I really don't know what you're talking about. I would lie if I would say that I understood everything… :p
You don't need to explain it because I probably won't use it any time soon but it's definitely a very interesting idea you have. If you have some time on your hands, why not make a little tutorial or something so people like me could learn from you. :)
+1 "
If you have some time on your hands, why not make a little tutorial or something so people like me could learn from you. :)"
Cyanempire
2014-09-01 02:15:08
////////// //////////
////////// Script runtime: //////////
////////// 2 hr 13 min 47 sec(Total) 2 hr 13 min 47 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Catablepon //////////
////////// 1021(Killed) 458(per hour run) 458(per hour active) //////////
////////// 134772(xp) 60442(per hour run) 60442(per hour active) //////////
////////// 44414(const xp) 19918(per hour run) 19918(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
acezfate
2014-09-01 13:46:38
Hey, I keep getting a start up error.
Edit1: This is with the first version, Non (auto-detect)
Exception in Script: Unknown declaration "i" at line 440, column 25 in file "C:\Simba\Includes\bonsai\libobjfind.simba"
but the auto detect is taking forever to start up,will let you know if i can get it running
Edit: ok got it to work for 40 minutes but then this happend
***** Tnpc.attack: End of fight detected
***** Killed a Attack Gelatinous abomination
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 1
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 2
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 3
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 4
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 5
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 6
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 7
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 8
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 9
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 10
****** Having problems finding NPC, rotating cam.
***** Tnpc.angleTowards: Altering angle to 299
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 11
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 12
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 13
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 14
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 15
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 16
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 17
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 18
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 19
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 20
****** Having problems finding NPC, rotating cam.
***** Tnpc.angleTowards: Altering angle to 347
***** Tcolorizer.updatePointCount: ERROR - Asked to update color, 877739572 - does not exist
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 21
***** Health check returning 71 percent
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 22
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 23
****** Having problems finding NPC, sleeping
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 24
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 25
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 26
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 27
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 28
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 29
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 30
****** Having problems finding NPC, rotating cam.
***** Tnpc.angleTowards: Altering angle to 35
***** Tcolorizer.updatePointCount: ERROR - Asked to update color, 925827072 - does not exist
***** Tcolorizer.updatePointCount: ERROR - Asked to update color, 1010251575 - does not exist
***** Tcolorizer.updatePointCount: ERROR - Asked to update color, 926365495 - does not exist
****** Didnt find a Attack Gelatinous abomination to fight. timesFailed = 31
****** Having problems finding NPC, moving to closest yellow dot
Exception in Script: Runtime error: "Access violation" at line 179, column 9 in file "C:\Simba\Includes\bonsai\libnpc.simba"
The following DTMs were not freed: [0]
The following bitmaps were not freed: [Minimap Mask, SMART Debug Image, Gametab Bitmap[0], Gametab Bitmap[1], Gametab Bitmap[2], Gametab Bitmap[3], Gametab Bitmap[4], Gametab Bitmap[5], Gametab Bitmap[6], Gametab Bitmap[7], Gametab Bitmap[8], Gametab Bitmap[9], Gametab Bitmap[10], Gametab Bitmap[11], Gametab Bitmap[12], Gametab Bitmap[13]]
File[C:\Simba\Includes\SRL-6/logs/SRL log (01-09-14 at 12.57.36 PM).txt] has not been freed in the script, freeing it now.
Compiled successfully in 3073 ms.
acezfate
2014-09-01 13:53:43
"Lag post" sorry.
3Garrett3
2014-09-02 00:31:46
////////// Script runtime: //////////
////////// 1 hr 11 sec(Total) 1 hr 11 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// KILLS ////////////////////////////////////////
////////// Goblin //////////
////////// 285(Killed) 284(per hour run) 284(per hour active) //////////
////////// 9690(xp) 9660(per hour run) 9660(per hour active) //////////
////////// 285(const xp) 284(per hour run) 284(per hour active) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
It ran pretty well, but I noticed a few areas where improvements would help.
It doesn't seem to have a long enough wait before deciding if it's in a fight or not, if a goblin was walking away from me when it clicked, it would end up picking a new one while I was moving and fighting two. The other thing that seemed off was that the mouse has a tendency to wander around when looking for goblins. I haven't looked through the code to see how it does all the searching, but there has to be a more efficient way of going about it. It wanders past multiple targets before it selects one, typically not succeeding at finding the closest one (leading to the first error). Maybe it's just the colours, I'd have to look closer to figure it out.
In the end, it timed out because it couldn't find any goblins. I hadn't been watching at the time, but when I logged in it was still in the right location. The char I was using wasn't very strong so I doubt I actually killed everything in the area (stronghold). I'd have to be watching closer to give a better report on the failure. I assume that the wandering mouse counts as a try each time, and I could see that causing problems.
bonsai
2014-09-02 03:38:16
Thanks for the updates/info. I'm pretty close on a new version so I will be waiting until then to address more tweaks.
I keep getting sidetracked plus it seems like the script is still working ok (albeit with known flaws).
bonsai
2014-09-02 03:42:28
From: 3Garrett3
It doesn't seem to have a long enough wait before deciding if it's in a fight or not, if a goblin was walking away from me when it clicked, it would end up picking a new one while I was moving and fighting two. The other thing that seemed off was that the mouse has a tendency to wander around when looking for goblins. I haven't looked through the code to see how it does all the searching, but there has to be a more efficient way of going about it. It wanders past multiple targets before it selects one, typically not succeeding at finding the closest one (leading to the first error). Maybe it's just the colours, I'd have to look closer to figure it out.
In the end, it timed out because it couldn't find any goblins. I hadn't been watching at the time, but when I logged in it was still in the right location. The char I was using wasn't very strong so I doubt I actually killed everything in the area (stronghold). I'd have to be watching closer to give a better report on the failure. I assume that the wandering mouse counts as a try each time, and I could see that causing problems.
Left clicking is always going to be an issue. NPCs are pretty quick and it's easy to just miss. Right click is controllable because you know if the menu comes up.
The wandering mouse is some old logic because other popups would block things. Or a bad goblic color.
When the script exits it makes a snapshot in SIMBADIR\includes\srl-6\logs so you may be able to see what it looked like when it gave up.
bonsai
2014-09-02 03:45:13
From: acezfate
but the auto detect is taking forever to start up,will let you know if i can get it running
Edit: ok got it to work for 40 minutes but then this happend
It looks like it thinks its fighting, not detecting. I would remove the color xml file and try to redo it.
I made some improvements on that stuff but the autocoloring is always prone to chance.
acezfate
2014-09-02 05:39:36
From: bonsai
It looks like it thinks its fighting, not detecting. I would remove the color xml file and try to redo it.
I made some improvements on that stuff but the autocoloring is always prone to chance.
Is it possible for people to share collectives of the color file instead of them having to re- "colorcode" it self every time?
or better yet, like have a database that automatically updates when a player goes to kill a group of mobs, the bot would self learn and make it so future players didnt have to re"colorcode" but instead just pull the color file from database. Kind of like a self learning bot.
it would function like this in theory,
1)Player runs auto detect,
2)Bot detects mobs(Names)
3)Checks database for Color file
4)If no color file for specified mob Run Color detection,
4a)When finished upload color file to database
If you really wanna get fancy
Have the bot update Color detection file based on if some one has gotten a better proggy efficiency on same mobs.
Again this is all in theory and would make a hell of a Paid/Donor bot.
3Garrett3
2014-09-02 08:15:11
From: bonsai
Left clicking is always going to be an issue. NPCs are pretty quick and it's easy to just miss. Right click is controllable because you know if the menu comes up.
The wandering mouse is some old logic because other popups would block things. Or a bad goblic color.
When the script exits it makes a snapshot in SIMBADIR\includes\srl-6\logs so you may be able to see what it looked like when it gave up.
Probably should have mentioned that I was using right clicks to be more accurate. I might look at colors when I run it tonight to see if I can get it to not wander too much. I checked the directory and there is only a snapshot of right before it typed my login info. Like I said, it looks like it timed out, because it was in the lobby and not actually logged out. Maybe that's why it couldn't find goblins, I couldn't be sure.
bonsai
2014-09-02 08:28:40
From: acezfate
Is it possible for people to share collectives of the color file instead of them having to re- "colorcode" it self every time?
or better yet, like have a database that automatically updates when a player goes to kill a group of mobs, the bot would self learn and make it so future players didnt have to re"colorcode" but instead just pull the color file from database. Kind of like a self learning bot.
it would function like this in theory,
1)Player runs auto detect,
2)Bot detects mobs(Names)
3)Checks database for Color file
4)If no color file for specified mob Run Color detection,
4a)When finished upload color file to database
If you really wanna get fancy
Have the bot update Color detection file based on if some one has gotten a better proggy efficiency on same mobs.
Again this is all in theory and would make a hell of a Paid/Donor bot.
Great ideas.
At the least we can share in thread and I can keep a repository on google or something.
acezfate
2014-09-02 09:02:20
From: bonsai
Great ideas.
At the least we can share in thread and I can keep a repository on google or something.
Thanks, ill definitely share places ill be training.
lolers
2014-09-02 16:37:58
I'm having a problem where the screen goes black after 10-15 minutes of run time. Did I do something wrong setting up simba, or is it RS's antibot measures?
bonsai
2014-09-02 17:05:56
From: lolers
I'm having a problem where the screen goes black after 10-15 minutes of run time. Did I do something wrong setting up simba, or is it RS's antibot measures?
All of smart is black?
I used to have that problem on a machine I teamviewed. Seemed to have to do with screen locking/unlocking.
Cyanempire
2014-09-02 18:50:25
i hope the loot thing i made helped you in some way since i cant get it to work myself :(
3Garrett3
2014-09-02 22:26:38
The biggest problem I'm noticing is that it clicks the mob but reports that it hasn't actually clicked anything. Immediately after clicking it starts looking for a new mob. I had it attack 3 minotaurs at the same time in the stronghold. I had to stop using it for now because there were other people around and it looked extremely bot-like. I looked through the include and there's a custom clicking function for objects even, I didn't make it further down the rabbit hole to try finding it. I hope you can throw this in (just a longer wait or a pixleshift check or something to make sure it catches the fighting correctly) with your next planned update.
Edit:
I increased the wait after clicking the mob and turned it to right click only, which seems to be helping. The wait is increased from 3-5 seconds (I think it was) to 8-10.
lolers
2014-09-04 01:48:29
From: bonsai
All of smart is black?
I used to have that problem on a machine I teamviewed. Seemed to have to do with screen locking/unlocking.
Don't have team viewer, and only the game screen is black, the smart GUI is normal and still has runescape's custom cursor. And there's this annoying thing where if the smart window isn't minimized it'll jump to the active window when the kill count updates, and when it is minimized, it'll make the current window deactive. I'll try with a different script tomorrow, but I'm sure at this point, it's just my config.
bonsai
2014-09-05 09:48:38
I oculd use a variety of pictures of the combat popups. If anyone could pm me a snap or link I would appreciate it!
Still hoping to get a test link out this weekend for the new version.
Tx.
nutta124
2014-09-05 15:40:32
what do you mean by combat popups? like when we engage in a combat?
bonsai
2014-09-05 16:48:22
yes. this guy…
nutta124
2014-09-06 06:23:25
well ~.~
[ATTACH=CONFIG]23970[/ATTACH]
bonsai
2014-09-06 07:10:46
From: nutta124
well ~.~
[ATTACH=CONFIG]23970[/ATTACH]
Thanks! These will add to my library and they are nice and random. PMs are fine to not bump the thread.
I did get new DTMs working yesterday. Man, oh man, I hate making DTMs! The dang screen is flashing at me and I can't get the points where I want them. Ehehe if you could watch over my shoulder you would laugh.
I'm cleaning up the code for the beta release. I hope some of you guys who have been so helpful will test it out!
I had it running earlier. It was so fast I'm going to have to add delays in between fights! 600+ npcs per hour. I had to stop it. I was like, 'OK I'm getting banned. Abort, abort.'.
The coloring stuff is still ragged, though, so it's a little hit or miss. You guys will find tons of stuff to complain about lol.
I did make a lot of improvements. It doesn't stick so bad on background colors and I used the motion stuff to gather some better initial colors than just what was near the mouse.
It's pretty sensitive. You mess around with a couple of the constants and it can be very different. I haven't really locked onto the best default methods.
Here's a dtm tolerance washer I hacked up from some old post with bixby says and olly. In case you are lazy like me.
procedure setDTMTol(var d: integer; tol: integer)
var
ts: TSDTM;
i: integer;
s: string;
begin
if not DTMExists(d) then exit;
ts := MDTMToSDTM(GetDTM(d));
for i := 0 to high(ts.subpoints) do
ts.subpoints[i].tolerance := tol;
s := GetDTMName(d);
FreeDTM(d);
d := AddSDTM(ts);
SetDTMName(d, s);
end;
bonsai
2014-09-07 14:35:01
The BETA is uploadedHopefully it won't just belly flop on you.
Installing:You'll need to get Brandon's
Prosocks plugin and include file. I moved the code to google and they require https.
1. Download his zip and put ProSock.dll in SIMBADIR\plugins
2. He has an include in the post under "if using simba". Save that to SIMBADIR\includes\socks.simba
InstallerFor now, I guess, use full autodetect. I need to work on a postable coloring tool so people can pre-make color files offline.
Once you did the detection on an NPC you can pick them from the list in the form.
Quirks:Autodetect works on motion. If your NPCs don't move it won't detect them. It won't work well in highly animated places and who knows what it will do when it can see 3 kinds of NPCs at once. It will probably label as one and fight them all :)
The DTMs for detecting fight status may need more tolerance. You can edit that at the bottom of SIMBADIR\includes\bonsai\blCombat.simba
setDTMTol(_enemyHealth0DTM, 5);
setDTMTol(_combatPopupDTM, 20);
The 5 and 20 are tolerances, bump them up a little if detection seems off.
Cyanempire
2014-09-07 19:20:29
Will try this and give you reports soon :)
hopefully we could continue on that loot thing
we were developing.
bonsai
2014-09-07 19:41:58
From: Cyanempire
Will try this and give you reports soon :)
hopefully we could continue on that loot thing
we were developing.
Thanks! Let me know if you get corrupt files, somehow I ended up with missing spaces/tabs.
Worst case you can grab files from
here. I put a couple of color files up there too.
And, sure, I'll try to help you with your looting hookup, but as I've said before in the thread, I'm not adding looting any time soon. I have other things I want to work on. I just want to tighten this one up without adding much.
bonsai
2014-09-08 03:32:57
It looks like the files are getting corrupted when reading them from https.
Until I work it out, you can grab a zip from
google and move the files in manually.
Am in love with this script at the moment. Literally got me 50 - 72 slayer :O
bonsai
2014-09-10 18:56:03
From: uhit
Am in love with this script at the moment. Literally got me 50 - 72 slayer :O
Haha, thanks! It's nice to open the thread and not find a complaint or bug :)
I'm updating the new version pretty much daily, please try it out and let me know how you do.
It's still doing a little bit of swarming but it's coming along.
Installer
3Garrett3
2014-09-10 21:13:06
I might have messed up, but I just upgraded to RC3 and the installer is telling me I don't have socks. The include socks to be exact.
bonsai
2014-09-10 21:21:02
From: 3Garrett3
I might have messed up, but I just upgraded to RC3 and the installer is telling me I don't have socks. The include socks to be exact.
See
this post.
You need a plugin Brandon wrote that does ssl. I have my code on google and they only use https.
There's a snippet in his post you need to save to SIMBADIR\includes\socks.simba
3Garrett3
2014-09-10 21:38:18
From: bonsai
See this post.
You need a plugin Brandon wrote that does ssl. I have my code on google and they only use https.
There's a snippet in his post you need to save to SIMBADIR\includes\socks.simba
Well that's embarrassing. I probably should have done some more extensive research. Thanks for your patience. This works with magic right? I'm going to go throw some spells at goblins and see what happens (I'll equip the mindspike or whatever it's called).
Edit:
I'm awful at this
Error: Unknown declaration "drawSystemFont" at line 771
In BIBitmap
bonsai
2014-09-10 21:55:59
From: 3Garrett3
Well that's embarrassing. I probably should have done some more extensive research. Thanks for your patience. This works with magic right? I'm going to go throw some spells at goblins and see what happens (I'll equip the mindspike or whatever it's called).
Edit:
I'm awful at this
Error: Unknown declaration "drawSystemFont" at line 771
In BIBitmap
That's not you, that's new simba (I assume). drawsystemfont is a method of tmufasabitmap, at least on mine.
It's just a wrapper that isn't used. I put a new copy of blBitmap up there with it commented out. If you hit more you could do the same and let me know which ones are bad.
Pull it from google or rerunning the installer should refresh it. I didn't bump the version for autoupdate.
I need to test the new simba. I've been heads down on this work (and real life lol).
3Garrett3
2014-09-10 22:13:16
From: bonsai
That's not you, that's new simba (I assume). drawsystemfont is a method of tmufasabitmap, at least on mine.
It's just a wrapper that isn't used. I put a new copy of blBitmap up there with it commented out. If you hit more you could do the same and let me know which ones are bad.
Pull it from google or rerunning the installer should refresh it. I didn't bump the version for autoupdate.
I need to test the new simba. I've been heads down on this work (and real life lol).
Yeah it's the new Simba I'm using. I'll run the installer again.
Update: I ran it in Goblin village and it's completely not working there. Just hovered one while gathering colours and then spazzed out all over the screen saying it needed more colours. I'll go to the stronghold and see what happens there.
Edit: Stronghold too.
bonsai
2014-09-10 22:27:21
From: 3Garrett3
Yeah it's the new Simba I'm using. I'll run the installer again.
Update: I ran it in Goblin village and it's completely not working there. Just hovered one while gathering colours and then spazzed out all over the screen saying it needed more colours. I'll go to the stronghold and see what happens there.
Edit: Stronghold too.
That's how it works! It has to find and test colors before it can get to work. It takes 2-3 minutes usually.
Every once in a while you'll see "moving xxx -> successful". Once it finds 5 colors it starts fighting.
And, yes, it's mouse crazy so run it on nooby accounts. We can share color files to avoid everyone doing it. I have a method to do a lot of the coloring offline but need to work on some tools.
(edit) I'm probably also going to post a version that works 100% on motion detection. It won't catch the ones sitting still but will work out of the box really nice.
Godless
2014-09-11 08:38:57
I run the installer but don't get a script and the installer stays where it is?
From: Godless
I run the installer but don't get a script and the installer stays where it is?
Run the installed and manually download the Include that bonsai provides in the HTML format.
bonsai
2014-09-11 09:24:11
From: Godless
I run the installer but don't get a script and the installer stays where it is?
What is the output in the simba debug window?
The most likely thing to stop the installer from working is not setting up the ProSocks correctly.
You could also install manually from
google but afaik the installer is working ok.
nutta124
2014-09-11 16:03:30
im about to get 99 attack using this script, 2 level away <3
bonsai
2014-09-12 00:10:53
From: nutta124
im about to get 99 attack using this script, 2 level away <3
I think this is the first one! I feel like a proud pappy.
Motion-only mode is readySee
this post for install info. If you already installed the beta, re-install to pick up the changes.
In the form choose motiondetect for the NPC. It will log in and whack anything that moves. No colors, no nonsense.
I need to fine tune the motion function. I'm seeing some big boxes returning on occasion.
This is a lot nicer for people who wanted to poke at the script without suffering the coloring side of things.
Godless
2014-09-12 00:58:20
1. Download his zip and put ProSock.dll in SIMBADIR\pluginsI've done this.
2. He has an include in the post under "if using simba". Save that to SIMBADIR\includes\socks.simbaThis is the part I've messed up on I imagine. What's the include and how do I save it? In notepad, etc? Sorry for the nooby question/s lol.

This?
bonsai
2014-09-12 03:01:29
From: Godless
1. Download his zip and put ProSock.dll in SIMBADIR\plugins
I've done this.
2. He has an include in the post under "if using simba". Save that to SIMBADIR\includes\socks.simba
This is the part I've messed up on I imagine. What's the include and how do I save it? In notepad, etc? Sorry for the nooby question/s lol.

This?
Can't read that little pic so I'll nod my head yes :)
Here's Brandon's socs.simba file recopied from his post
{$loadlib ProSock}
type
MAIL = record
{$IFNDEF CODEINSIGHT}
__Address: String;
__Username: String;
__EncryptedUsername: String;
__EncryptedPassword: String;
__Receiver: String;
__FromName: String;
__ToName: String;
__Subject: String;
__Message: String;
__BufferSize: Integer;
__ssl_info: SSLSocket;
{$ENDIF}
end;
type
HTTPS = record
{$IFNDEF CODEINSIGHT}
__Headers: Array Of String;
__ParameterKeys: Array Of String;
__ParameterValues: Array Of String;
__Host: String;
__Address: String;
__BufferSize: Integer;
__ssl_info: SSLSocket;
{$ENDIF}
end;
{$IFNDEF CODEINSIGHT}
var
__Pro_Socket_Terminate_MAIL_Array: Array of ^SSLSocket;
__Pro_Socket_Terminate_HTTPS_Array: Array of ^SSLSocket;
Procedure __Destroy_Pro_MAIL_Sockets;
var
I: Integer;
Begin
For I := 0 To High(__Pro_Socket_Terminate_MAIL_Array) Do
Pro_FreeSocket(__Pro_Socket_Terminate_MAIL_Array[I]);
SetLength(__Pro_Socket_Terminate_MAIL_Array, 0);
End;
Procedure __Destroy_Pro_HTTPS_Sockets;
var
I: Integer;
Begin
For I := 0 To High(__Pro_Socket_Terminate_HTTPS_Array) Do
Pro_FreeSocket(__Pro_Socket_Terminate_HTTPS_Array[I]);
SetLength(__Pro_Socket_Terminate_HTTPS_Array, 0);
End;
Procedure __MemSet(Buffer: Pointer; Value: Byte; Size: Cardinal);
type
BytePtr = ^Byte;
var
I: Integer;
Begin
For I := 0 To Size Do
BytePtr(Buffer)[I]^ := Value;
End;
Procedure MAIL.__PrintSocket();
var
Buffer: String;
Bytes_Read: Integer;
Begin
SetLength(Buffer, self.__BufferSize);
__MemSet(@Buffer[1], 0, self.__BufferSize);
While((Bytes_Read := Pro_ReadSocket(@self.__ssl_info, @Buffer[1], self.__BufferSize)) > 0) Do
Begin
writeln(Trim(Buffer));
__MemSet(@Buffer[1], 0, self.__BufferSize);
If (Not Pro_IsPendingSocket(@self.__ssl_info)) Then
break;
End;
End;
{$ENDIF}
Procedure MAIL.Create(Address: String; Port: Word; Username, Password, MailTo: String);
Begin
Self.Create(Address, Port, Username, Password, MailTo, '');
End;
Procedure MAIL.Create(Address: String; Port: Word; Username, Password, MailTo, Subject: String) overload;
Begin
self.__Address := Address;
self.__ssl_info.port := Port;
self.__ssl_info.address := @self.__Address[1];
self.__ssl_info.socktype := SSLSocketType.SSL23_CLIENT_METHOD;
self.__EncryptedUsername := Base64Encode(Username);
self.__EncryptedPassword := Base64Encode(Password);
self.__Username := Username;
self.__Receiver := MailTo;
self.__Subject := Subject;
self.__BufferSize := 512;
Pro_CreateSocket(@self.__ssl_info);
Pro_ConnectSocket(@self.__ssl_info);
SetLength(__Pro_Socket_Terminate_MAIL_Array, Length(__Pro_Socket_Terminate_MAIL_Array) + 1);
__Pro_Socket_Terminate_MAIL_Array[High(__Pro_Socket_Terminate_MAIL_Array)] := @self.__ssl_info;
AddOnTerminate('__Destroy_Pro_MAIL_Sockets');
End;
Procedure MAIL.Free;
var
I, J: Integer;
Begin
For I := 0 To High(__Pro_Socket_Terminate_MAIL_Array) Do
Begin
If (__Pro_Socket_Terminate_MAIL_Array[I] = @self.__ssl_info) Then
Begin
For J := I To High(__Pro_Socket_Terminate_MAIL_Array) - 1 Do
__Pro_Socket_Terminate_MAIL_Array[J] := __Pro_Socket_Terminate_MAIL_Array[J + 1];
SetLength(__Pro_Socket_Terminate_MAIL_Array, High(__Pro_Socket_Terminate_MAIL_Array));
End;
End;
Pro_CloseSocket(@self.__ssl_info);
Pro_FreeSocket(@self.__ssl_info);
End;
Procedure MAIL.SetSubject(subject: String);
Begin
self.__Subject := subject;
End;
Procedure MAIL.SetMessage(message: String);
Begin
self.__Message := message;
End;
Procedure MAIL.SetFromName(from_name: String)
Begin
self.__FromName := from_name;
End;
Procedure MAIL.SetToName(to_name: String);
Begin
self.__ToName := to_name;
End;
Procedure MAIL.SetBufferSize(size: Integer);
Begin
If (size > 0) Then
self.__BufferSize := size;
End;
Procedure MAIL.SendMail;
var
Str: String;
Begin
If (self.__ssl_info.connected) Then
Begin
Str := 'EHLO ' + self.__Address + #13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
self.__PrintSocket();
Str := 'AUTH LOGIN' + #13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
self.__PrintSocket();
Pro_WriteSocket(@self.__ssl_info, self.__EncryptedUsername + #13#10, Length(self.__EncryptedUsername) + 2);
self.__PrintSocket();
Pro_WriteSocket(@self.__ssl_info, self.__EncryptedPassword + #13#10, Length(self.__EncryptedPassword) + 2);
self.__PrintSocket();
self.__PrintSocket();
Str := 'MAIL FROM: <' + self.__Username + '>' + #13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
self.__PrintSocket();
Str := 'VRFY ' + self.__Username + #13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
self.__PrintSocket();
Str := 'RCPT TO: <' + self.__Receiver + '>' + #13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
self.__PrintSocket();
Pro_WriteSocket(@self.__ssl_info, 'DATA' + #13#10, 6);
self.__PrintSocket();
Str := 'From: ' + self.__FromName + '<' + self.__Username + '>' + #13#10;
Str := Str + 'To: ' + self.__ToName + '<' + self.__Receiver + '>' + #13#10;
Str := Str + 'Subject: ' + self.__Subject + #13#10#13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
Pro_WriteSocket(@self.__ssl_info, self.__Message + #13#10 + '.' + #13#10, Length(self.__Message) + 5);
self.__PrintSocket();
Pro_WriteSocket(@self.__ssl_info, 'QUIT' + #13#10, 6);
self.__PrintSocket();
End;
End;
{$IFNDEF CODEINSIGHT}
Function HTTPS.__GetHost(Address: String): String;
var
I: Integer;
Begin
I := Pos('://', Address);
if (I >= 0) then
Address := Copy(Address, I + 3, Length(Address) - I);
I := Pos('/', Address);
if (I > 0) then
Address := Copy(Address, 0, I - 1);
Result := Address;
End;
Function HTTPS.__GetLocation(Address: String): String;
var
I: Integer;
Begin
I := Pos('://', Address);
if (I >= 0) then
Address := Copy(Address, I + 3, Length(Address) - I);
I := Pos('/', Address);
if (I > 0) then
Address := Copy(Address, I + 1, Length(Address) - I);
Result := Address;
End;
Function HTTPS.__RecvLine: String;
var
Line: String;
Character: Char;
Begin
While(True) Do
Begin
Pro_ReadSocket(@self.__ssl_info, @Character, 1);
If (Character = #13) Then
Begin
Pro_ReadSocket(@self.__ssl_info, @Character, 1);
If (Character = #10) Then Break;
Line := Line + #13;
End Else
If (Character = #10) Then Break;
Line := Line + Character;
End;
Result := Line;
End;
Function HTTPS.__RecvHeader: TStringArray;
var
I: Integer;
Line: String;
Begin
While(True) Do
Begin
Line := self.__RecvLine();
If (Length(Line) = 0) Then Exit;
SetLength(Result, Length(Result) + 1);
Result[I] := Line;
Inc(I);
End;
End;
Function HTTPS.__FindHeaderValue(LineToFind: String): String;
var
I, H, Position: Integer;
Begin
H := High(self.__Headers);
For I := 0 To H Do
Begin
Position := Pos(':', self.__Headers[I]);
If ((Position > 0) And (Copy(self.__Headers[I], 0, Position - 1) = LineToFind)) Then
Begin
Position := Pos(' ', self.__Headers[I]);
If (Position <> 0) Then
Begin
Result := Copy(self.__Headers[I], Position + 1, Length(self.__Headers[I]) - Position);
Exit;
End;
End;
End;
End;
Function HTTPS.__RecvChunkSize: Integer;
var
Line: String;
Position: Integer;
Function HexToInt(Hex : String): Integer;
var
Str : String;
Begin;
Str := '$' + Trim(Hex);
Result := StrToInt(Str);
If (Pos('-', Hex) > 0) Then
Result := -Result;
End;
Begin
Line := self.__RecvLine();
Position := Pos(';', Line);
If (Position <> 0) Then
Delete(Line, Position, 1);
Result := HexToInt(Line);
End;
Function HTTPS.__ReadChunked: String;
var
Encoding: String;
ChunkLength: Integer;
Buffer: String;
Bytes_Read: Integer;
Begin
SetLength(Buffer, self.__BufferSize);
__MemSet(@Buffer[1], 0, self.__BufferSize);
ChunkLength := 0;
Encoding := Lowercase(self.GetHeader('Transfer-Encoding'));
If (Encoding = 'chunked') Then
Begin
ChunkLength := self.__RecvChunkSize();
While(ChunkLength <> 0) Do
Begin
Bytes_Read := Pro_ReadSocket(@self.__ssl_info, @Buffer[1], ChunkLength);
Result := Result + Copy(Buffer, 0, Bytes_Read);
__MemSet(@Buffer[1], 0, self.__BufferSize);
self.__RecvLine();
ChunkLength := self.__RecvChunkSize();
End;
End Else
Begin
Encoding := self.GetHeader('Content-Length');
If (Length(Encoding) > 0) Then
Begin
ChunkLength := StrToIntDef(Encoding, -1);
If (ChunkLength > 0) Then
Begin
Bytes_Read := 0;
While(Bytes_Read < ChunkLength) Do
Begin
__MemSet(@Buffer[1], 0, self.__BufferSize);
Bytes_Read := Bytes_Read + Pro_ReadSocket(@self.__ssl_info, @Buffer[1], self.__BufferSize);
Result := Result + Copy(Buffer, 0, Bytes_Read);
If ((Bytes_Read >= ChunkLength) or (Bytes_Read = 0)) Then
Break;
End;
End;
End Else
Begin
While(True) Do
Begin
Bytes_Read := Pro_ReadSocket(@self.__ssl_info, @Buffer[1], self.__BufferSize);
If (Bytes_Read = 0) Then
Break;
Result := Result + Copy(Buffer, 0, Bytes_Read);
__MemSet(@Buffer[1], 0, self.__BufferSize);
End;
End;
End;
Result := Trim(Replace(Result, #0, '', [rfReplaceAll]));
End;
{$ENDIF}
Procedure HTTPS.Create(Address: String; Port: Word);
Begin
self.__Address := Address;
self.__ssl_info.port := Port;
self.__ssl_info.address := @self.__Address[1];
self.__ssl_info.socktype := SSLSocketType.SSL23_CLIENT_METHOD;
self.__BufferSize := 512;
Pro_CreateSocket(@self.__ssl_info);
Pro_ConnectSocket(@self.__ssl_info);
SetLength(__Pro_Socket_Terminate_HTTPS_Array, Length(__Pro_Socket_Terminate_HTTPS_Array) + 1);
__Pro_Socket_Terminate_HTTPS_Array[High(__Pro_Socket_Terminate_HTTPS_Array)] := @self.__ssl_info;
AddOnTerminate('__Destroy_Pro_HTTPS_Sockets');
End;
Procedure HTTPS.Free;
var
I, J: Integer;
Begin
For I := 0 To High(__Pro_Socket_Terminate_HTTPS_Array) Do
Begin
If (__Pro_Socket_Terminate_HTTPS_Array[I] = @self.__ssl_info) Then
Begin
For J := I To High(__Pro_Socket_Terminate_HTTPS_Array) - 1 Do
__Pro_Socket_Terminate_HTTPS_Array[J] := __Pro_Socket_Terminate_HTTPS_Array[J + 1];
SetLength(__Pro_Socket_Terminate_HTTPS_Array, High(__Pro_Socket_Terminate_HTTPS_Array));
End;
End;
Pro_FreeSocket(@self.__ssl_info);
Pro_CloseSocket(@self.__ssl_info);
End;
Procedure HTTPS.ClearParameters;
Begin
SetLength(self.__ParameterKeys, 0);
SetLength(self.__ParameterValues, 0);
End;
Function HTTPS.GetParameter(Parameter: String): String;
var
I: Integer;
Begin
For I := 0 To High(self.__ParameterKeys) Do
If (self.__ParameterKeys[I] = Lowercase(Parameter)) Then
Begin
Result := self.__ParameterValues[I];
Break;
End;
End;
Procedure HTTPS.SetParameter(Parameter, Value: String);
var
I, L: Integer;
Exists: Boolean;
Begin
Exists := False;
L := Length(__ParameterKeys);
For I := 0 To L - 1 Do
If (self.__ParameterKeys[I] = Lowercase(Parameter)) Then
Begin
self.__ParameterValues[I] := Lowercase(Parameter);
Exists := True;
Break;
End;
If (Not Exists) Then
Begin
SetLength(self.__ParameterKeys, L + 1);
SetLength(self.__ParameterValues, L + 1);
self.__ParameterKeys[L] := Lowercase(Parameter);
self.__ParameterValues[L] := Value;
End;
End;
Function HTTPS.GetHeader(Key: String): String;
Begin
If (Length(self.__Headers) <= 0) Then
self.__Headers := self.__RecvHeader();
Result := self.__FindHeaderValue(Key);
End;
Function HTTPS.CreateGetHeader: String;
var
I, J: Integer;
Generic_Keys: Array of String;
Generic_Values: Array of String;
Function KeyFound(this: ^HTTPS; Generic_Key: String): Boolean;
var
I: Integer;
Begin
Result := False;
For I := 0 To High(this^.__ParameterKeys) Do
Begin
If (this^.__ParameterKeys[I] = Lowercase(Generic_Key)) Then
Begin
Result := True;
Exit;
End;
End;
End;
Begin
Generic_Keys := ['Connection', 'User-Agent', 'Accept', 'Accept-Language', 'Accept-Charset', 'Cache-Control'];
Generic_Values := ['close', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11',
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'en-US,en;q=0.8', 'ISO-8859-1,UTF-8;q=0.7,*;q=0.7',
'no-cache'];
Result := 'GET /' + self.__GetLocation(self.__Address) + ' HTTP/1.1' + #13#10;
Result := Result + 'Host: ' + self.__GetHost(self.__Address) + #13#10;
For I := 0 To High(Generic_Keys) Do
Begin
If (KeyFound(@self, Generic_Keys[I])) Then
Result := Result + self.__ParameterKeys[I] + ': ' + self.__ParameterValues[I] + #13#10
Else
Result := Result + Generic_Keys[I] + ': ' + Generic_Values[I] + #13#10;
End;
Result := Result + #13#10;
End;
Function HTTPS.GetPage: String;
var
Header: String;
Begin
Header := self.CreateGetHeader();
Pro_WriteSocket(@self.__ssl_info, Header, Length(Header));
Result := self.__ReadChunked;
End;
Function HTTPS.GetRawPage: String;
var
Header: String;
Buffer: String;
Bytes_Read: Integer;
Begin
Header := self.CreateGetHeader();
Pro_WriteSocket(@self.__ssl_info, Header, Length(Header));
self.__RecvHeader();
SetLength(Buffer, self.__BufferSize);
__MemSet(@Buffer[1], 0, self.__BufferSize);
While((Bytes_Read := Pro_ReadSocket(@self.__ssl_info, @Buffer[1], self.__BufferSize)) > 0) Do
Begin
Result := Result + Trim(Buffer);
__MemSet(@Buffer[1], 0, self.__BufferSize);
End;
Result := Trim(Replace(Result, #0, '', [rfReplaceAll]));
End;
Godless
2014-09-12 04:51:47
From: bonsai
Can't read that little pic so I'll nod my head yes :)
Here's Brandon's socs.simba file recopied from his post
{$loadlib ProSock}
type
MAIL = record
{$IFNDEF CODEINSIGHT}
__Address: String;
__Username: String;
__EncryptedUsername: String;
__EncryptedPassword: String;
__Receiver: String;
__FromName: String;
__ToName: String;
__Subject: String;
__Message: String;
__BufferSize: Integer;
__ssl_info: SSLSocket;
{$ENDIF}
end;
type
HTTPS = record
{$IFNDEF CODEINSIGHT}
__Headers: Array Of String;
__ParameterKeys: Array Of String;
__ParameterValues: Array Of String;
__Host: String;
__Address: String;
__BufferSize: Integer;
__ssl_info: SSLSocket;
{$ENDIF}
end;
{$IFNDEF CODEINSIGHT}
var
__Pro_Socket_Terminate_MAIL_Array: Array of ^SSLSocket;
__Pro_Socket_Terminate_HTTPS_Array: Array of ^SSLSocket;
Procedure __Destroy_Pro_MAIL_Sockets;
var
I: Integer;
Begin
For I := 0 To High(__Pro_Socket_Terminate_MAIL_Array) Do
Pro_FreeSocket(__Pro_Socket_Terminate_MAIL_Array[I]);
SetLength(__Pro_Socket_Terminate_MAIL_Array, 0);
End;
Procedure __Destroy_Pro_HTTPS_Sockets;
var
I: Integer;
Begin
For I := 0 To High(__Pro_Socket_Terminate_HTTPS_Array) Do
Pro_FreeSocket(__Pro_Socket_Terminate_HTTPS_Array[I]);
SetLength(__Pro_Socket_Terminate_HTTPS_Array, 0);
End;
Procedure __MemSet(Buffer: Pointer; Value: Byte; Size: Cardinal);
type
BytePtr = ^Byte;
var
I: Integer;
Begin
For I := 0 To Size Do
BytePtr(Buffer)[I]^ := Value;
End;
Procedure MAIL.__PrintSocket();
var
Buffer: String;
Bytes_Read: Integer;
Begin
SetLength(Buffer, self.__BufferSize);
__MemSet(@Buffer[1], 0, self.__BufferSize);
While((Bytes_Read := Pro_ReadSocket(@self.__ssl_info, @Buffer[1], self.__BufferSize)) > 0) Do
Begin
writeln(Trim(Buffer));
__MemSet(@Buffer[1], 0, self.__BufferSize);
If (Not Pro_IsPendingSocket(@self.__ssl_info)) Then
break;
End;
End;
{$ENDIF}
Procedure MAIL.Create(Address: String; Port: Word; Username, Password, MailTo: String);
Begin
Self.Create(Address, Port, Username, Password, MailTo, '');
End;
Procedure MAIL.Create(Address: String; Port: Word; Username, Password, MailTo, Subject: String) overload;
Begin
self.__Address := Address;
self.__ssl_info.port := Port;
self.__ssl_info.address := @self.__Address[1];
self.__ssl_info.socktype := SSLSocketType.SSL23_CLIENT_METHOD;
self.__EncryptedUsername := Base64Encode(Username);
self.__EncryptedPassword := Base64Encode(Password);
self.__Username := Username;
self.__Receiver := MailTo;
self.__Subject := Subject;
self.__BufferSize := 512;
Pro_CreateSocket(@self.__ssl_info);
Pro_ConnectSocket(@self.__ssl_info);
SetLength(__Pro_Socket_Terminate_MAIL_Array, Length(__Pro_Socket_Terminate_MAIL_Array) + 1);
__Pro_Socket_Terminate_MAIL_Array[High(__Pro_Socket_Terminate_MAIL_Array)] := @self.__ssl_info;
AddOnTerminate('__Destroy_Pro_MAIL_Sockets');
End;
Procedure MAIL.Free;
var
I, J: Integer;
Begin
For I := 0 To High(__Pro_Socket_Terminate_MAIL_Array) Do
Begin
If (__Pro_Socket_Terminate_MAIL_Array[I] = @self.__ssl_info) Then
Begin
For J := I To High(__Pro_Socket_Terminate_MAIL_Array) - 1 Do
__Pro_Socket_Terminate_MAIL_Array[J] := __Pro_Socket_Terminate_MAIL_Array[J + 1];
SetLength(__Pro_Socket_Terminate_MAIL_Array, High(__Pro_Socket_Terminate_MAIL_Array));
End;
End;
Pro_CloseSocket(@self.__ssl_info);
Pro_FreeSocket(@self.__ssl_info);
End;
Procedure MAIL.SetSubject(subject: String);
Begin
self.__Subject := subject;
End;
Procedure MAIL.SetMessage(message: String);
Begin
self.__Message := message;
End;
Procedure MAIL.SetFromName(from_name: String)
Begin
self.__FromName := from_name;
End;
Procedure MAIL.SetToName(to_name: String);
Begin
self.__ToName := to_name;
End;
Procedure MAIL.SetBufferSize(size: Integer);
Begin
If (size > 0) Then
self.__BufferSize := size;
End;
Procedure MAIL.SendMail;
var
Str: String;
Begin
If (self.__ssl_info.connected) Then
Begin
Str := 'EHLO ' + self.__Address + #13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
self.__PrintSocket();
Str := 'AUTH LOGIN' + #13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
self.__PrintSocket();
Pro_WriteSocket(@self.__ssl_info, self.__EncryptedUsername + #13#10, Length(self.__EncryptedUsername) + 2);
self.__PrintSocket();
Pro_WriteSocket(@self.__ssl_info, self.__EncryptedPassword + #13#10, Length(self.__EncryptedPassword) + 2);
self.__PrintSocket();
self.__PrintSocket();
Str := 'MAIL FROM: <' + self.__Username + '>' + #13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
self.__PrintSocket();
Str := 'VRFY ' + self.__Username + #13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
self.__PrintSocket();
Str := 'RCPT TO: <' + self.__Receiver + '>' + #13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
self.__PrintSocket();
Pro_WriteSocket(@self.__ssl_info, 'DATA' + #13#10, 6);
self.__PrintSocket();
Str := 'From: ' + self.__FromName + '<' + self.__Username + '>' + #13#10;
Str := Str + 'To: ' + self.__ToName + '<' + self.__Receiver + '>' + #13#10;
Str := Str + 'Subject: ' + self.__Subject + #13#10#13#10;
Pro_WriteSocket(@self.__ssl_info, Str, Length(Str));
Pro_WriteSocket(@self.__ssl_info, self.__Message + #13#10 + '.' + #13#10, Length(self.__Message) + 5);
self.__PrintSocket();
Pro_WriteSocket(@self.__ssl_info, 'QUIT' + #13#10, 6);
self.__PrintSocket();
End;
End;
{$IFNDEF CODEINSIGHT}
Function HTTPS.__GetHost(Address: String): String;
var
I: Integer;
Begin
I := Pos('://', Address);
if (I >= 0) then
Address := Copy(Address, I + 3, Length(Address) - I);
I := Pos('/', Address);
if (I > 0) then
Address := Copy(Address, 0, I - 1);
Result := Address;
End;
Function HTTPS.__GetLocation(Address: String): String;
var
I: Integer;
Begin
I := Pos('://', Address);
if (I >= 0) then
Address := Copy(Address, I + 3, Length(Address) - I);
I := Pos('/', Address);
if (I > 0) then
Address := Copy(Address, I + 1, Length(Address) - I);
Result := Address;
End;
Function HTTPS.__RecvLine: String;
var
Line: String;
Character: Char;
Begin
While(True) Do
Begin
Pro_ReadSocket(@self.__ssl_info, @Character, 1);
If (Character = #13) Then
Begin
Pro_ReadSocket(@self.__ssl_info, @Character, 1);
If (Character = #10) Then Break;
Line := Line + #13;
End Else
If (Character = #10) Then Break;
Line := Line + Character;
End;
Result := Line;
End;
Function HTTPS.__RecvHeader: TStringArray;
var
I: Integer;
Line: String;
Begin
While(True) Do
Begin
Line := self.__RecvLine();
If (Length(Line) = 0) Then Exit;
SetLength(Result, Length(Result) + 1);
Result[I] := Line;
Inc(I);
End;
End;
Function HTTPS.__FindHeaderValue(LineToFind: String): String;
var
I, H, Position: Integer;
Begin
H := High(self.__Headers);
For I := 0 To H Do
Begin
Position := Pos(':', self.__Headers[I]);
If ((Position > 0) And (Copy(self.__Headers[I], 0, Position - 1) = LineToFind)) Then
Begin
Position := Pos(' ', self.__Headers[I]);
If (Position <> 0) Then
Begin
Result := Copy(self.__Headers[I], Position + 1, Length(self.__Headers[I]) - Position);
Exit;
End;
End;
End;
End;
Function HTTPS.__RecvChunkSize: Integer;
var
Line: String;
Position: Integer;
Function HexToInt(Hex : String): Integer;
var
Str : String;
Begin;
Str := '$' + Trim(Hex);
Result := StrToInt(Str);
If (Pos('-', Hex) > 0) Then
Result := -Result;
End;
Begin
Line := self.__RecvLine();
Position := Pos(';', Line);
If (Position <> 0) Then
Delete(Line, Position, 1);
Result := HexToInt(Line);
End;
Function HTTPS.__ReadChunked: String;
var
Encoding: String;
ChunkLength: Integer;
Buffer: String;
Bytes_Read: Integer;
Begin
SetLength(Buffer, self.__BufferSize);
__MemSet(@Buffer[1], 0, self.__BufferSize);
ChunkLength := 0;
Encoding := Lowercase(self.GetHeader('Transfer-Encoding'));
If (Encoding = 'chunked') Then
Begin
ChunkLength := self.__RecvChunkSize();
While(ChunkLength <> 0) Do
Begin
Bytes_Read := Pro_ReadSocket(@self.__ssl_info, @Buffer[1], ChunkLength);
Result := Result + Copy(Buffer, 0, Bytes_Read);
__MemSet(@Buffer[1], 0, self.__BufferSize);
self.__RecvLine();
ChunkLength := self.__RecvChunkSize();
End;
End Else
Begin
Encoding := self.GetHeader('Content-Length');
If (Length(Encoding) > 0) Then
Begin
ChunkLength := StrToIntDef(Encoding, -1);
If (ChunkLength > 0) Then
Begin
Bytes_Read := 0;
While(Bytes_Read < ChunkLength) Do
Begin
__MemSet(@Buffer[1], 0, self.__BufferSize);
Bytes_Read := Bytes_Read + Pro_ReadSocket(@self.__ssl_info, @Buffer[1], self.__BufferSize);
Result := Result + Copy(Buffer, 0, Bytes_Read);
If ((Bytes_Read >= ChunkLength) or (Bytes_Read = 0)) Then
Break;
End;
End;
End Else
Begin
While(True) Do
Begin
Bytes_Read := Pro_ReadSocket(@self.__ssl_info, @Buffer[1], self.__BufferSize);
If (Bytes_Read = 0) Then
Break;
Result := Result + Copy(Buffer, 0, Bytes_Read);
__MemSet(@Buffer[1], 0, self.__BufferSize);
End;
End;
End;
Result := Trim(Replace(Result, #0, '', [rfReplaceAll]));
End;
{$ENDIF}
Procedure HTTPS.Create(Address: String; Port: Word);
Begin
self.__Address := Address;
self.__ssl_info.port := Port;
self.__ssl_info.address := @self.__Address[1];
self.__ssl_info.socktype := SSLSocketType.SSL23_CLIENT_METHOD;
self.__BufferSize := 512;
Pro_CreateSocket(@self.__ssl_info);
Pro_ConnectSocket(@self.__ssl_info);
SetLength(__Pro_Socket_Terminate_HTTPS_Array, Length(__Pro_Socket_Terminate_HTTPS_Array) + 1);
__Pro_Socket_Terminate_HTTPS_Array[High(__Pro_Socket_Terminate_HTTPS_Array)] := @self.__ssl_info;
AddOnTerminate('__Destroy_Pro_HTTPS_Sockets');
End;
Procedure HTTPS.Free;
var
I, J: Integer;
Begin
For I := 0 To High(__Pro_Socket_Terminate_HTTPS_Array) Do
Begin
If (__Pro_Socket_Terminate_HTTPS_Array[I] = @self.__ssl_info) Then
Begin
For J := I To High(__Pro_Socket_Terminate_HTTPS_Array) - 1 Do
__Pro_Socket_Terminate_HTTPS_Array[J] := __Pro_Socket_Terminate_HTTPS_Array[J + 1];
SetLength(__Pro_Socket_Terminate_HTTPS_Array, High(__Pro_Socket_Terminate_HTTPS_Array));
End;
End;
Pro_FreeSocket(@self.__ssl_info);
Pro_CloseSocket(@self.__ssl_info);
End;
Procedure HTTPS.ClearParameters;
Begin
SetLength(self.__ParameterKeys, 0);
SetLength(self.__ParameterValues, 0);
End;
Function HTTPS.GetParameter(Parameter: String): String;
var
I: Integer;
Begin
For I := 0 To High(self.__ParameterKeys) Do
If (self.__ParameterKeys[I] = Lowercase(Parameter)) Then
Begin
Result := self.__ParameterValues[I];
Break;
End;
End;
Procedure HTTPS.SetParameter(Parameter, Value: String);
var
I, L: Integer;
Exists: Boolean;
Begin
Exists := False;
L := Length(__ParameterKeys);
For I := 0 To L - 1 Do
If (self.__ParameterKeys[I] = Lowercase(Parameter)) Then
Begin
self.__ParameterValues[I] := Lowercase(Parameter);
Exists := True;
Break;
End;
If (Not Exists) Then
Begin
SetLength(self.__ParameterKeys, L + 1);
SetLength(self.__ParameterValues, L + 1);
self.__ParameterKeys[L] := Lowercase(Parameter);
self.__ParameterValues[L] := Value;
End;
End;
Function HTTPS.GetHeader(Key: String): String;
Begin
If (Length(self.__Headers) <= 0) Then
self.__Headers := self.__RecvHeader();
Result := self.__FindHeaderValue(Key);
End;
Function HTTPS.CreateGetHeader: String;
var
I, J: Integer;
Generic_Keys: Array of String;
Generic_Values: Array of String;
Function KeyFound(this: ^HTTPS; Generic_Key: String): Boolean;
var
I: Integer;
Begin
Result := False;
For I := 0 To High(this^.__ParameterKeys) Do
Begin
If (this^.__ParameterKeys[I] = Lowercase(Generic_Key)) Then
Begin
Result := True;
Exit;
End;
End;
End;
Begin
Generic_Keys := ['Connection', 'User-Agent', 'Accept', 'Accept-Language', 'Accept-Charset', 'Cache-Control'];
Generic_Values := ['close', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11',
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'en-US,en;q=0.8', 'ISO-8859-1,UTF-8;q=0.7,*;q=0.7',
'no-cache'];
Result := 'GET /' + self.__GetLocation(self.__Address) + ' HTTP/1.1' + #13#10;
Result := Result + 'Host: ' + self.__GetHost(self.__Address) + #13#10;
For I := 0 To High(Generic_Keys) Do
Begin
If (KeyFound(@self, Generic_Keys[I])) Then
Result := Result + self.__ParameterKeys[I] + ': ' + self.__ParameterValues[I] + #13#10
Else
Result := Result + Generic_Keys[I] + ': ' + Generic_Values[I] + #13#10;
End;
Result := Result + #13#10;
End;
Function HTTPS.GetPage: String;
var
Header: String;
Begin
Header := self.CreateGetHeader();
Pro_WriteSocket(@self.__ssl_info, Header, Length(Header));
Result := self.__ReadChunked;
End;
Function HTTPS.GetRawPage: String;
var
Header: String;
Buffer: String;
Bytes_Read: Integer;
Begin
Header := self.CreateGetHeader();
Pro_WriteSocket(@self.__ssl_info, Header, Length(Header));
self.__RecvHeader();
SetLength(Buffer, self.__BufferSize);
__MemSet(@Buffer[1], 0, self.__BufferSize);
While((Bytes_Read := Pro_ReadSocket(@self.__ssl_info, @Buffer[1], self.__BufferSize)) > 0) Do
Begin
Result := Result + Trim(Buffer);
__MemSet(@Buffer[1], 0, self.__BufferSize);
End;
Result := Trim(Replace(Result, #0, '', [rfReplaceAll]));
End;
Sorry! No idea why it went so small! >.<
So I just copy and save that as a .simba file?
Motion detection in a big area with only 1 mob is amazing, I'd rather use the autodetect for places like chaos tunnels otherwise the motion detection is muuuuchh smoother
bonsai
2014-09-12 05:50:28
From: Godless
Sorry! No idea why it went so small! >.<
So I just copy and save that as a .simba file?
Correct - as c:\simba\includes\socks.simba
From: uhit
Motion detection in a big area with only 1 mob is amazing, I'd rather use the autodetect for places like chaos tunnels otherwise the motion detection is muuuuchh smoother
Heck yeah, plus no breaking on updates!
Probably not so good in the stonghold since it will click outside of our 'room'. It's ok in lumby, it wanders around.
3Garrett3
2014-09-12 09:54:24
From: bonsai
Probably not so good in the stonghold since it will click outside of our 'room'. It's ok in lumby, it wanders around.
Since I suck at RS but would like to test the script:
Where would your recommended area be for a ~30 cmb (from your script earlier) which I'd now like to train mage on (using a mindspike or whatever it's called). I'll be trying it out this evening if I can find a good spot and good mob to train on.
bonsai
2014-09-12 10:31:51
From: 3Garrett3
Since I suck at RS but would like to test the script:
Where would your recommended area be for a ~30 cmb (from your script earlier) which I'd now like to train mage on (using a mindspike or whatever it's called). I'll be trying it out this evening if I can find a good spot and good mob to train on.
The lumbridge dungeon would have plenty of things to progress through and will work good with the motion detect mode. That's where I've been doing most of my recent testing.
You have to do the Blood Pact quest to get in there (quick quest and you get better weapons than you start with).
Definitely a babysitting spot though. It's too active to leave them there for hours.
There's always cows in lumby
intradaydude
2014-09-12 20:26:19
Sorry if this is noobish first time doing anything like this. but where exactly do I locate SIMBADIR\includes\socks.simba trying to add the include and thats all that is tieing me up lol
bonsai
2014-09-12 20:36:42
From: intradaydude
Sorry if this is noobish first time doing anything like this. but where exactly do I locate SIMBADIR\includes\socks.simba trying to add the include and thats all that is tieing me up lol
No need to be sorry. You need to copy the text posted and CREATE a NEW socks.simba file there.
If you installed with defaults, c:\simba\includes
And make sure you copy Prosock.dll from Brandons post into c:\simba\plugins
intradaydude
2014-09-12 20:43:08
ok thanks!, did that now getting a new error
Exception in Script: Invalid evaluation at line 13, column 1
intradaydude
2014-09-12 20:53:29
Hey man, sorry what you pmed me worked perfectly! but I cant respond to you, since Im brand new. My last question if you dont mind, it said everything was successful, what do I do to start getting the script to work in smart now?
intradaydude
2014-09-12 21:02:16
ah nvm I got it, I kept running the installer :P
bonsai
2014-09-12 21:05:38
From: intradaydude
ah nvm I got it, I kept running the installer :P
I knew there was a reason I made the installers delete themselves.
:)
intradaydude
2014-09-12 21:06:47
lmao, This is probably again my fault, its logging me in, then clicking the play button instead of selecting the identified server, this is hanging it up. It isnt realizing it is logged in and is timing out
bonsai
2014-09-12 21:08:33
From: intradaydude
lmao, This is probably again my fault, its logging me in, then clicking the play button instead of selecting the identified server, this is hanging it up. It isnt realizing it is logged in and is timing out
SRL is a little flaky with logins right now. Sometime they work, sometimes not so good.
Log it into your place by hand, then run it while logged in.
(edit)
Actually, your screen settings may be off too. Double check everything on the simba install post. Brightness, presets, etc.
intradaydude
2014-09-12 21:13:49
hmm im pretty sure I have it right, any way I could screen share you?
intradaydude
2014-09-12 22:25:31
Got it to work, but cant get it to stop saying overload 20000 Im assuming its a coloring issue, but I followed all directions, not sure how to go about fixing that :(
bonsai
2014-09-13 00:57:28
From: intradaydude
Got it to work, but cant get it to stop saying overload 20000 Im assuming its a coloring issue, but I followed all directions, not sure how to go about fixing that :(
That would be a place with too much movement for it to handle in real time. Where did you try?
intradaydude
2014-09-13 01:31:38
From: bonsai
That would be a place with too much movement for it to handle in real time. Where did you try?
at jungle spiders
bonsai
2014-09-13 01:38:28
From: intradaydude
at jungle spiders
If you want to test, that 20000 number is at the top of c:\simba\includes\bonsai\blBitmap.simba
__DIFFOVERLOAD = 20000;
Try changing to 30000 and see if it works.
intradaydude
2014-09-13 02:14:45
awesome man thanks. Right now im testing it on dark wizars and its saying tnpc.motiondetect:trying to identify more colors, it has been doing this for about 4 minutes now, is this normal when it is working? hasnt attacked anything yet
think i broke it I changed the number now i get
Exception in Script: Block expected at line 1, column 1 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
fixed it musta removed the space between = and the number
EDIT thats a lie 30000 wont work but 20000 will
found a small bug, I have it working, the problem is if the npc is higher lvl than you its not working, I tried the right click function but thats not working on them either. Just htought youd like to know
also its starting a fight on occasion before another ends and then bugging out since it never really reengages in combat, sorry for all the bumps. soon Ill be able to pm to help out lol
bonsai
2014-09-13 03:00:57
From: intradaydude
found a small bug, I have it working, the problem is if the npc is higher lvl than you its not working, I tried the right click function but thats not working on them either. Just htought youd like to know
From: intradaydude
also its starting a fight on occasion before another ends and then bugging out since it never really reengages in combat, sorry for all the bumps. soon Ill be able to pm to help out lol
Thanks for having the patience to run this through the ringer. It's hard for one person to test much. You can edit your old posts to avoid repeated posts. I don't care but a lot of others seem to like it if you do that.
It needs to see 'attack' so, no, it won't do higher level npcs. It wouldn't do any good to fight them anyway, you would burn a load of food and log out.
The second part is a known issue. I'm thinking on it. There's an easy solution (waiting after the fight) but it drops the performance from maybe 570 kill/hr to 350. It's significant.
What's happening is: it knows the fight ended because the enemy health is 0. But the popup and enemy are still displaying. It picks a new fight. If it lands on the same old npc, the game does display the menu and let you choose attack. Then the popup and npc disappear. We think we started a fight and wait a while until we decide it didn't work.
I already alleviated it some by making it avoid the previous target area when finding the new one but it still does it sometimes.
intradaydude
2014-09-13 03:07:16
Would it be possible to add higher level support? I think I may try to learn this stuff seems it would be fun to work on a project like looting and banking.
Im creating an attack pure, and would love to be able to farm jung spiders with this :P
Last thing before I hit the hay. How long you think it should say trying to identify more colors? has been doin it on dark wizards for a long time now lol
or even like cockroaches, Im currently lvl 32 with 65 att lol, I win hit the roaches but they are still higher lvl than me :P
ever since the update ive been gettin Exception in Script: Block expected at line 285, column 1 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
bonsai
2014-09-13 12:29:48
From: intradaydude
ever since the update ive been gettin Exception in Script: Block expected at line 285, column 1 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
Sorry, I guess I didn't solve my problem of uploads to google getting corrupted.
The updater leaves backup files behind, you can rename *.bak back to *.simba to revert while I figure it out.
It's got to be something in my git settings. It ends up stipping out spaces/tabs/etc randomly. Will nvestigate.
intradaydude
2014-09-13 12:49:55
alrighty cool thanks man
From: bonsai
Sorry, I guess I didn't solve my problem of uploads to google getting corrupted.
The updater leaves backup files behind, you can rename *.bak back to *.simba to revert while I figure it out.
It's got to be something in my git settings. It ends up stipping out spaces/tabs/etc randomly. Will nvestigate.
AHHHH!!! I redid all the .bak files…. then like an idiot updated it again…. Ill wait till you figure it out haha, I wanna start learning how to actually script :P
nutta124
2014-09-14 15:31:22
Notice me, senpai~
got 1-99 using bonsai's script~~
[ATTACH=CONFIG]24006[/ATTACH]
p,s: my paint skill are over 9000
bonsai
2014-09-14 15:59:47
From: nutta124
Notice me, senpai~
got 1-99 using bonsai's script~~
[ATTACH=CONFIG]24006[/ATTACH]
p,s: my paint skill are over 9000
Congratulations! I added you into the main post.
Cyanempire
2014-09-15 05:05:08
Exception in Script: Block expected at line 538, column 5 in file "C:\Simba\Includes\socks.simba"
bonsai
2014-09-15 05:23:28
From: Cyanempire
Exception in Script: Block expected at line 538, column 5 in file "C:\Simba\Includes\socks.simba"
Give me another day or so. I'm going to move the files back to pastebin and put out a new installer. I don't have the time to figure out why the upload/download keeps corrupting the files.
new installer[ATTACH]24009[/ATTACH]
bonsai
2014-09-16 20:47:21
Dropped in a few improvements, it's taking less time to find colors and start fighting.
I tried it out in a few places, lumby, wizards, cows, goblins in stronghold.
[ATTACH]24009[/ATTACH]
Cyanempire
2014-09-16 21:27:25
Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
bonsai
2014-09-16 21:33:57
From: Cyanempire
Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
Probably need the new
simba/srl.
I think these are the latest links.
http://nala.villavu.com/downloads/master/cbe23120376221cab758b4ed1100ac189ae81f17/https://github.com/SRL/SRL-6/tree/New_Simba
Cyanempire
2014-09-16 21:37:15
Error: Duplicate declaration "drawText" at line 562
^fixed
Testing out on jungle spiders will keep you posted and try on other mobs as well
want to ask whats with the paint over my game tabs they keep lighting up (yellow,red,green)??
Cyanempire
2014-09-16 22:59:03
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 40 min 14 sec(Total) 40 min 14 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Jungle spider 226 336.97 336.97 //////////
////////// XP 68,478 102,101.46 102,101.46 //////////
////////// Const XP 22,577.4 33,663.15 33,663.15 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
bonsai
2014-09-16 23:15:33
From: Cyanempire
want to ask whats with the paint over my game tabs they keep lighting up (yellow,red,green)??
That's showing the fight indicators. Mostly it's helping me figure out what is working and what needs help.
The first one is detecting the gold lock on the popup. Others are for the popup itself, the red combat circle, the yellow combat circle, and the health and adrenaline bars over your head. If the bottom right one is green, the program thinks it is in a fight. If they flash red, it detected the enemy dying.
From: Cyanempire
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 40 min 14 sec(Total) 40 min 14 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Jungle spider 226 336.97 336.97 //////////
////////// XP 68,478 102,101.46 102,101.46 //////////
////////// Const XP 22,577.4 33,663.15 33,663.15 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Woot woot. I thought that XP must be a bug but it is about right, huh? (303+100 each).
Use
tags for progress reports, it formats them nice.
Cyanempire
2014-09-16 23:17:12
yeah. i think i had atk bonus exp,
will do, trying out other mobs now.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 35 min 48 sec(Total) 35 min 48 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Fire giant 158 264.7 264.7 //////////
////////// XP 67,118.4 112,444.76 112,444.76 //////////
////////// Const XP 22,135.8 37,084.53 37,084.53 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Cyanempire
2014-09-17 00:11:39
[ATTACH=CONFIG]24023[/ATTACH]
[ATTACH=CONFIG]24024[/ATTACH]
[ATTACH=CONFIG]24025[/ATTACH]
[ATTACH=CONFIG]24026[/ATTACH]
[ATTACH=CONFIG]24027[/ATTACH]
@bonsai
This script is amazing bonsai. I dont even have to worry bout drops coz I got a pet that'll pick them for me :p
Cyanempire
2014-09-17 22:49:14
– Installing latest blCombat.simba
– file C:\Simba\Simba-rc4\Scripts\blCombat.simba already exists, renaming to .bak
– removing file C:\Simba\Simba-rc4\Scripts\blCombat.simba.bak
– Script C:\Simba\Simba-rc4\Scripts\blCombat.simba has been updated
Script has been update please close and reload
Error: Access violation at line 50
Execution failed.
after i do that it updates again ang gives the same error.. just happened now. after running it for an hour.
Re-opened after restarting
Latest version = 1.5
——————————————————-
– Installing latest blCombat.simba
– Script C:\Simba\Simba-rc4\Scripts\blCombat.simba has been updated
Error: Access violation at line 50
Execution failed.
Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
^ seems that 1.5 has error.
Nigerlet
2014-09-18 21:28:55
When I installed the new version it turns my script into
Duplicate entry '2147483647' for key 'PRIMARY'
It was working fine a couple days ago.
I have tried reinstalling.
bonsai
2014-09-18 22:33:40
From: Nigerlet
When I installed the new version it turns my script into
Duplicate entry '2147483647' for key 'PRIMARY'
It was working fine a couple days ago.
I have tried reinstalling.
Yeah, I'm having really poor luck with these sites. Pastebin is returning junk on the raw pages.
If you edit c:\simba\includes\bonsai\blUpdater.simba and replace isUpdateAvailable it will at least limp through and run.
It may have renamed something to xxx.bak on you but I think not.
function Tupdater.isUpdateAvailable(localVersion: string; url: string): boolean;
var
webVersion, s: string;
begin
webVersion := GetPage(url);
trim(webVersion);
if (not ExecRegExpr('^([0-9])*\.([0-9])*$', webVersion)) then
begin
writeln('***** ERROR: Invalid version read from site [', webVersion, ']');
result := false;
exit;
end;
if (webVersion > localVersion) then
begin
self.msg('Version on disk (' + localVersion +
') is out of date. Latest version = ' + webVersion);
result := true;
end
else
begin
self.msg('Version is current, no update needed.');
result := false;
end;
end;
It's aggravating me, I had a decent improvement to upload.
sf411
2014-09-19 17:29:33
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 8 hr 52 min 46 sec(Total) 8 hr 1 min 46 sec(Active) 51 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// minotaur 4,875 549.01 607.13 //////////
////////// XP 165,750 18,666.42 20,642.44 //////////
////////// Const XP 54,600 6,148.94 6,799.86 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
bonsai
2014-09-19 21:04:17
From: sf411
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 8 hr 52 min 46 sec(Total) 8 hr 1 min 46 sec(Active) 51 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// minotaur 4,875 549.01 607.13 //////////
////////// XP 165,750 18,666.42 20,642.44 //////////
////////// Const XP 54,600 6,148.94 6,799.86 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Whoa, nice one. 8 hours and minotaurs?
I assume it colored the wolves too and fought both of them? I've been meaning to make some custom color files for the stronghold npcs.
No big problems? Auto coloring working ok for you? Did you try the motiondetect mode?
I'm interested in hearing about npcs that work poorly with the current settings. This thing is still a little delicate. A tweak that fixes one area can break another :)
Cyanempire
2014-09-19 21:28:05
autodetect is not working and the paint is gone :[
it just bounces the mouse around possible objects then ends.
when i inspect the drop down menu for the npcs theres no option
for autodetect/motion detect.
i tried it with the preset npcs it works
but its back to the old version? the orange paint on top left?.
sf411
2014-09-19 22:02:25
From: bonsai
Whoa, nice one. 8 hours and minotaurs?
I assume it colored the wolves too and fought both of them? I've been meaning to make some custom color files for the stronghold npcs.
No big problems? Auto coloring working ok for you? Did you try the motiondetect mode?
I'm interested in hearing about npcs that work poorly with the current settings. This thing is still a little delicate. A tweak that fixes one area can break another :)
Nope only Minotaurs, there is a room with no wolves. I did zoom the camera in a little bit to keep it from seeing Minotaurs in the other room, but no real problems. Now if only I could loot…
I did not use motion-detect, autodetected.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 5 hr 6 min 7 sec(Total) 4 hr 32 min 7 sec(Active) 34 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Hellhound 2,565 502.74 565.55 //////////
////////// XP 927,247.5 181,738.84 204,445.93 //////////
////////// Const XP 305,748 59,926.06 67,413.43 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
So sexy.
LicketySplit
2014-09-19 22:28:00
Hey i need help when i try start the script the red mouse thing just bounces around and it says cant find ankou or whatever im trying to kill
any help please?
thanks
Cyanempire
2014-09-19 22:31:49
Did you setup grapchis correctly? opengl or direct x?.
bonsai
2014-09-19 22:56:51
From: sf411
Nope only Minotaurs, there is a room with no wolves. I did zoom the camera in a little bit to keep it from seeing Minotaurs in the other room, but no real problems.
That's a nice trick. I do that too.
Now if only I could loot…
When this is ready you'll be able to use the fighter as an include. I need to do a little work on disabling the on screen antics.
So you could write a 'mayor tut' script for whatever you want. When it's time to fight, you do something like this:
var
roach: TNpc
begin
roach.init('giant-cockroach');
combatMgr.attack(roach);
end;
I'm not going to be working on a generic looter. I'll try to make it easy for others who want to play there. bg5 posted a nice
looting function a couple of years ago. I'm sure a motivated person could get it up to date.
It's a bit of a rathole problem that I don't want to get sucked into right now. If I did write something that looted and banked I would post it to jr or members sections.
bonsai
2014-09-19 23:03:22
From: LicketySplit
Hey i need help when i try start the script the red mouse thing just bounces around and it says cant find ankou or whatever im trying to kill
any help please?
thanks
First question… old script or new one?
If the new one, did you pick autodetect? I don't know if the dropdown allows you to type unknown things in.
It does take up to several minutes to color a new npc but there's a fair amount of on screen status now so you should see that it's doing things.
zircon
2014-09-20 12:08:15
Does manual abilities works? Cause i'm now using revolution mode, but i want that the bot do the ultimates or saradomin godsword passive. (they are standing on the first 3 numbers of the action bar.
Edit:
I've watched a bit the bot and i saw he usually queued slot number 7&8 in the action bar, so i put my ult in those slots, problem fixed :p
nutta124
2014-09-20 17:39:50
whats going on? im gettin'
Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
was using the auto colour detector beta script thangggg
bonsai
2014-09-20 17:50:53
From: nutta124
whats going on? im gettin'
Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
was using the auto colour detector beta script thangggg
Are you using old simba/srl? I started using the new one and some changes were needed.
If you haven't, set up the RC code and rerun the installer from OP. Make a backup of your simba folder before playing with it.
Sorry, it's been a little flaky with so many things going on but I think it's all stabilized for now.
From: The Mayor
Yea that's the old simba/srl.
Get the Simba.i386-win32.exe from below link and rename it 'Simba', put it in C:/simba
http://nala.villavu.com/downloads/master/cbe23120376221cab758b4ed1100ac189ae81f17/
Replace the files in C:/Simba with the latest ones here ('Download Zip'):
https://github.com/SRL/SRL-6/tree/New_Simba
bonsai
2014-09-20 18:02:21
From: zircon
Does manual abilities works? Cause i'm now using revolution mode, but i want that the bot do the ultimates or saradomin godsword passive. (they are standing on the first 3 numbers of the action bar.
Edit:
I've watched a bit the bot and i saw he usually queued slot number 7&8 in the action bar, so i put my ult in those slots, problem fixed :p
If you check manual abilities it uses the abilities from right to left if they are ready and available. It uses slots 1-9 like the revolution. So, yes, put your ultimate to the right, basic to the left. It does not do abilities where you need to wait X seconds to fire them. I haven't tested it for a while.
I added a key for the godsword on the form. It's supposed to push that key when it's low on health. I don't have such so have not tested this. Feedback would be appreciated. I heard it doesn't work on revolution.
herolym
2014-09-22 10:30:41
– Checking for bonsai\colors include folder:
– created include folder D:\game\Simba\Includes\bonsai\colors
——————————————————-
– Installing latest blBitmap.simba
*******************************************************
***** FATAL ERROR: Could not load new script contents from
pastebin.com/raw.php?i=RwkfJn1C*******************************************************
Successfully executed.
cant link to
pastebin.com/raw.php?i=RwkfJn1C
bonsai
2014-09-22 10:42:12
From: herolym
– Checking for bonsai\colors include folder:
– created include folder D:\game\Simba\Includes\bonsai\colors
——————————————————-
– Installing latest blBitmap.simba
*******************************************************
***** FATAL ERROR: Could not load new script contents from pastebin.com/raw.php?i=RwkfJn1C
*******************************************************
Successfully executed.
cant link to pastebin.com/raw.php?i=RwkfJn1C
I'm thinking just retry. Pastebin may have had a hiccup. That URL opens now for me.
Thisaintmeyo
2014-09-22 17:17:06
I set up the player manager in srl and mentioned everything that needed to be mentioned, pop ups always open gl fixed min old school all that but it wont instant log in for me and afterwords it just points at yellow and red, never clicked, then shuts down.
I read that I was perhaps using the old Simba, so I uninstalled and reinstalled with the new exe but I get this:
Loaded Font UpChars_s
Opening Rafiki
Player Manager: Saved player information
Player Manager: Saved player list
Player Manager: Saved player list
Closing Rafiki
Error: Duplicate declaration "drawText" at line 562
Compiling failed.
the line is : procedure TMufasaBitmap.drawText(txt: string; pnt: TPoint; font: string; shadow: boolean; color: TColor);
I obviously suck at this.
Thisaintmeyo
2014-09-22 19:37:10
I got it to work after reinstalling a third time however now I am getting this:
TObjFind.choose: examining mouseText=
****** Didnt find a Goblin to fight. timesFailed = 34
TObjFind.choose: found 7 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 2
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 3
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 4
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 5
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 6
TObjFind.choose: examining mouseText=
****** Didnt find a Goblin to fight. timesFailed = 35
TObjFind.choose: found 6 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 2
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 3
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 4
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 5
TObjFind.choose: examining mouseText=
****** Didnt find a Goblin to fight. timesFailed = 36
***** Health check returning 100 percent
TObjFind.choose: found 6 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 2
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 3
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 4
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 5
TObjFind.choose: examining mouseText=
****** Didnt find a Goblin to fight. timesFailed = 37
TObjFind.choose: found 6 possible objects
TObjFind.choose: mouse moved to object 0
TObjFind.choose: examining mouseText=
TObjFind.choose: mouse moved to object 1
TObjFind.choose: examining mouseText=
****** bonsaiFighter: Script shutting down
////////////////////////////////////////////////////////////////////////////////////////////////////
////////// ( )\ ) ) ) //////////
////////// ( )\ ) ( (()/( ( ( ( ( /( ( /( ( ( //////////
////////// )((_) ( ( ( ( /( )\ /(_)) )\ )\))( )\()) )\()) ))\ )( //////////
////////// ((_)_ )\ )\ ) )\ )(_))((_) (_))_|((_)((_))\ ((_)\ (_))/ /((_)(()\ //////////
////////// | _ ) ((_) _(_/( ((_)((_)_ (_) | |_ (_) (()(_)| |(_)| |_ (_)) ((_) //////////
////////// | _ \/ _ \| ' \))(_-</ _` | | | | __| | |/ _` | | ' \ | _|/ -_) | '_| //////////
////////// |___/\___/|_||_| /__/\__,_| |_| |_| |_|\__, | |_||_| \__|\___| |_| //////////
////////// |___/ //////////
////////// //////////
////////// Script runtime: //////////
////////// 2 min 52 sec(Total) 2 min 52 sec(Active) 0 sec(Break) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Successfully executed.
Same with all the monsters on the list, I don't understand what I'm doing wrong here.
Sinix
2014-09-23 22:23:20
Won't start up for me.
I get the following error message:
Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
bonsai
2014-09-24 01:57:51
From: Sinix
Won't start up for me.
I get the following error message:
Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
Sounds like you're using the beta fighter without the beta simba. Please read the previous handful of posts for some links if you want to play with it, or just wait a week or two until the new simba comes out official and it will be easier.
If you're new to simba and just poking about, this script is not currently the best candidate. It takes a little manual messing around to get up and running at the moment.
Sinix
2014-09-24 17:20:24
Thank you for the advice.
Yes, I am new to Simba.
Do you recommend a particular alternative to this script?
bonsai
2014-09-24 17:40:45
From: Sinix
Thank you for the advice.
Yes, I am new to Simba.
Do you recommend a particular alternative to this script?
You're going to laugh but…
Any thread where the last bunch of posts are full of progress reports, thank yous, and other lala.
Avoid threads where all the recent activity is people having problems.
You're going to have to do some reading though. We're waiting on a new release of simba and srl so updates have been on hold. A lot of scripts are probably requiring you to do a little work to fix something or another.
It's a good time to just poke about and do some learning while we wait, too.
Sinix
2014-09-24 23:31:15
Great advice! I'll keep your suggestions in mind.
Can't wait to get your script going! :)
zircon
2014-09-25 05:39:37
From: bonsai
If you check manual abilities it uses the abilities from right to left if they are ready and available. It uses slots 1-9 like the revolution. So, yes, put your ultimate to the right, basic to the left. It does not do abilities where you need to wait X seconds to fire them. I haven't tested it for a while.
I added a key for the godsword on the form. It's supposed to push that key when it's low on health. I don't have such so have not tested this. Feedback would be appreciated. I heard it doesn't work on revolution.
I will test it out and i'll.give feedback asap.
I also notice the bot won't detect mobs who are higher level than u. I tried at jungle spiders who are 2levels higher than me, and he always fail to identify them.
bonsai
2014-09-25 07:47:37
From: zircon
I will test it out and i'll.give feedback asap.
I also notice the bot won't detect mobs who are higher level than u. I tried at jungle spiders who are 2levels higher than me, and he always fail to identify them.
It needs 'Attack', that's why it won't do anything.
What uptext do you get if you hover over one?
3Garrett3
2014-09-25 10:12:04
From: bonsai
It needs 'Attack', that's why it won't do anything.
What uptext do you get if you hover over one?
Isn't the uptext normally "Walk here - MOB" or something along those lines? It still has the monster name, but I think it gives the option to walk instead of attack.
Updated to new simba, and now I can't load my army file :(
It's like rafiki's manager doens't save it, yet i can see it in my players folder
bonsai
2014-09-25 15:25:49
From: uhit
Updated to new simba, and now I can't load my army file :(
It's like rafiki's manager doens't save it, yet i can see it in my players folder
I think you need to re-do them. The data is getting stored somewhere else in the new version. I don't recall where but the old files aren't being used.
From: bonsai
I think you need to re-do them. The data is getting stored somewhere else in the new version. I don't recall where but the old files aren't being used.
I'm literally stuck lol. Been trying for a good few hours
zircon
2014-09-25 15:59:39
From: bonsai
It needs 'Attack', that's why it won't do anything.
What uptext do you get if you hover over one?
Well i have tested the godsword thing, and in revolution it doesn't work, now i'm the same level as the fire giant's the bot work well :)
In full manual the godsword skill don't work either, i'll check if he gets low hps if it works.
Edit: on low hp he don't use godsword skill to heal again on manual mode (not revolution). Could u add something he just always use all action keys so he perm heal? :)
bonsai
2014-09-25 16:07:26
From: zircon
Well i have tested the godsword thing, and in revolution it doesn't work, now i'm the same level as the fire giant's the bot work well :)
In full manual the godsword skill don't work either, i'll check if he gets low hps if it works.
Edit: on low hp he don't use godsword skill to heal again on manual mode (not revolution). Could u add something he just always use all action keys so he perm heal? :)
forgive me for asking but…
You dragged it to your actionbar and told the form the right key to press? The sgs would be one of the three to the right, not one of the ones revolution is using.
It should press it if you need food and adrenaline>50, during and after combat. It should choose the sgs before the food. Although I think I just saw a bug where it might eat food even though the sgs healed you.
zircon
2014-09-25 16:18:29
From: bonsai
forgive me for asking but…
You dragged it to your actionbar and told the form the right key to press? The sgs would be one of the three to the right, not one of the ones revolution is using.
It should press it if you need food and adrenaline>50, during and after combat. It should choose the sgs before the food. Although I think I just saw a bug where it might eat food even though the sgs healed you.
Ok i've seen 've configured some settings wrong, now it works well the godsword skill even in revolution :)
Edit: i've also noticed, the bot won't login if u start it up. after he loads rs, he say it's still waiting for rs client. (i use directX mode btw)
henryuscola
2014-09-28 12:43:55
working well written script!
Spectral
2014-09-28 13:29:38
No clue what I'm doing wrong
– Checking bonsaiFighter.simba for updates.
– Version is current, no update needed.
SRL: Logfile = C:\Simba\Includes\SRL-6/logs/SRL log (28-09-14 at 10.27.07 AM).txt
– TPlayerArray.setup()
—- Loaded player: Snowblind
– TPlayerArray.setup(): Success
***** Next break time calculated, break in 113.22935 minutes
– setupSRL()
—- Setting up SRL…
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found 1 free client(s), attempting to pair to one…
———- smartSetAsTarget(): Succesfully set SMART[4196] as Simba's target
——– Succesfully paired to a existing client, SMART[4196]
—— smartPairToExistingClient(): result = true
—— Succesfully initialized via pairing to a previously spawned client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
—- WARNING: TRSActionBar.__findButton(): Failed to find any vaild bounds
—— TRSActionBar.__find(): result = false
—- Client is ready.
—- Setup SRL in 0 Seconds
– setupSRL(): True
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 1
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 2
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 3
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 4
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 5
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 6
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 7
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 8
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 9
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 10
****** Having problems finding NPC, rotating cam.
***** Altering angle to 229
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 11
***** Health check returning 100 percent
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 12
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 13
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 14
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 15
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 16
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 17
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 18
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 19
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 20
****** Having problems finding NPC, rotating cam.
***** Altering angle to 229
***** Health check returning 100 percent
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 21
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 22
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 23
****** Having problems finding NPC, sleeping
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 24
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 25
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 26
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 27
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 28
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 29
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 30
****** Having problems finding NPC, rotating cam.
***** Altering angle to 229
***** Health check returning 100 percent
TObjFind.choose: found 0 possible objects
****** Didnt find a Crawling corpse torso to fight. timesFailed = 31
****** Having problems finding NPC, moving to closest yellow dot
Exception in Script: Runtime error: "Access violation" at line 268, column 9 in file "C:\Simba\Includes\bonsai\libnpc.simba"
The following DTMs were not freed: [0]
The following bitmaps were not freed: [Minimap Mask, SMART Debug Image]
File[C:\Simba\Includes\SRL-6/logs/SRL log (28-09-14 at 10.27.07 AM).txt] has not been freed in the script, freeing it now.
Assassinranger
2014-09-28 15:08:46
Hey so it can´t seem to find the npc,
****** Didnt find a Warped Cockroach to fight. timesFailed = 30
****** Having problems finding NPC, rotating cam.
bonsai
2014-09-28 16:21:24
From: Spectral
No clue what I'm doing wrong
From: Assassinranger
Hey so it can´t seem to find the npc,
****** Didnt find a Warped Cockroach to fight. timesFailed = 30
****** Having problems finding NPC, rotating cam.
Sounds like the colors are out of date. Post two talks about how to fix them up.
Spectral
2014-09-29 02:28:03
lmao What does that mean?
Assassinranger
2014-09-29 12:07:58
From: bonsai
Sounds like the colors are out of date. Post two talks about how to fix them up.
Yep, I tried on another npc and it worked just fine.
Godless
2014-09-29 22:42:10
From: Spectral
lmao What does that mean?
The script needs to find the colours of a monster to know what to attack. The colours coded into the script are outdated (the colour of the monsters have changed), so you need to update the script with the new one. Go to the second post on the thread (
https://villavu.com/forum/showthread.php?t=106661) and it will tell you how to do this.
—–
Hey bonsai, I got this error: Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
So I navigated to the file and deleted the part in question. It's compiled okay now but it keeps giving me this:
FindColorsBitmap returned an error
***** Tcolorizer.motionDetect: FAILED TO IDENTIFY ANYTHING.
***** Tcolorizer.motionDetect: FAILED TO IDENTIFY ANYTHING.
Definitely seems related to what I deleted. Seems like I can't win either way. :(
—–
EDIT: I changed from Auto-detect to Motion-detect and it seems to be working (for now lol). Are the errors or the deletion I made important? What can I expect to happen without it?
bonsai
2014-09-30 03:48:38
You did it just right and anyone else should do the same until I get an update posted. You removed an unused function.
Which NPC were you auto-detecting? The initial scan to find them didn't work. Probably needs a little fine tuning.
The NPC needs to be moving when you start. If they sit still or something else is moving a lot it has a hard time. I know it wouldn't do the butterflies because they were so small and it's not tuned for that.
I have tricks for things like that but they take time and effort.
Assassinranger
2014-09-30 11:52:49
Seems like alot of npcs on the Lumbridge Dungeon don´t work, or the move takes a while to find. But great script man, really helping me.
Right now I am out of time, but later I´ll try to update the colors.
@bonsai, what should the brightness be at?
From: Assassinranger
Seems like alot of npcs on the Lumbridge Dungeon don´t work, or the move takes a while to find. But great script man, really helping me.
Right now I am out of time, but later I´ll try to update the colors.
@bonsai, what should the brightness be at?
Brightness should be up all the way, IIRC.
bonsai
2014-09-30 16:47:31
From: Assassinranger
Seems like alot of npcs on the Lumbridge Dungeon don´t work, or the move takes a while to find. But great script man, really helping me.
Right now I am out of time, but later I´ll try to update the colors.
@bonsai, what should the brightness be at?
From: NKN
Brightness should be up all the way, IIRC.
Well, it shouldn't really care about graphic quality or brightness much. It's coloring the npcs from what it sees. I use the standard settings you see on every tut and script page.
Ranger, the new version has no colors to update. What you can do to start fresh is delete the color file from SIMBADIR\includes\bonsai\colors and have it re-do it.
I'll try to get the OP cleaned up soon. Now that persistent bugger is out I should be set to do a clean release. This code is still new so it's probably going to flake out sometimes.
BTW I did most of my testing in lumby dung and it worked good for most of them. Some take a little longer to color.
Cyanempire
2014-09-30 18:43:28
It takes awhile to pick up colors but it works well when it does :)
Tried it on Jungle spiders which are small to fire giants who are big.
bonsai
2014-09-30 18:58:52
From: Cyanempire
It takes awhile to pick up colors but it works well when it does :)
Tried it on Jungle spiders which are small to fire giants who are big.
Cyan, have you had good luck returning later and using the old color file?
I had to re-do one today that was ok two weeks ago.
Cyanempire
2014-09-30 19:10:25
Well it works for jungle spiders and fire giants but
i still need to find other good monsters to try it on
ayzee5793
2014-10-01 15:02:18
After running the install, when I open the script, all that comes up is 22 lines of code.
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
{ bonsaiFighter.simba }
{ Written by: bonsai }
{ Date Last Modified: 2014/09 }
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
program bonsaiFighter;
{$DEFINE DEBUG_ON}
{$include_once bonsai/blCombat.simba}
{$f-}
begin
combatMgr.doMain();
end.
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯
3Garrett3
2014-10-01 15:11:54
From: ayzee5793
After running the install, when I open the script, all that comes up is 22 lines of code.
All you need to do is press run on that file and it will open a form for you to fill out.
ayzee5793
2014-10-01 15:17:23
From: 3Garrett3
All you need to do is press run on that file and it will open a form for you to fill out.
When I press run I get this.
Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
ceh430
2014-10-01 15:38:10
SGS does not work, it will use food always before SGS heal ability, it works fine only if i place it in food slot :P
bonsai
2014-10-01 16:30:58
From: ayzee5793
After running the install, when I open the script, all that comes up is 22 lines of code.
I took lessons from Joseph!
From: ayzee5793
When I press run I get this.
Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
Update your simba and SRL, there was a new release.
From: ceh430
SGS does not work, it will use food always before SGS heal ability, it works fine only if i place it in food slot :P
Forgive the questions…
You put the SGS on the actionbad outside of the revolution ones (i.e. next to the food)?
You assigned a key to it and used that key in the form for the SGS?
ceh430
2014-10-01 17:33:44
From: bonsai
Forgive the questions…
You put the SGS on the actionbad outside of the revolution ones (i.e. next to the food)?
You assigned a key to it and used that key in the form for the SGS?
yes sgs is outside of revolution one, i set food on Z and W for SGS and also used same keys in form when i started script
and btw here is one of my report:) was using autodetect to make color file for mobs my hellhound.xml got over 500KB now lol, it still doing lot of click on ground floor around instead on hounds.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 2 hr 1 min 34 sec(Total) 2 hr 1 min 34 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Hellhound 1,080 533.01 533.01 //////////
////////// XP 390,420 192,681.54 192,681.54 //////////
////////// Const XP 128,736 63,534.27 63,534.27 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
bonsai
2014-10-01 20:10:19
From: ceh430
yes sgs is outside of revolution one, i set food on Z and W for SGS and also used same keys in form when i started script
and btw here is one of my report:) was using autodetect to make color file for mobs my hellhound.xml got over 500KB now lol, it still doing lot of click on ground floor around instead on hounds.
Thanks for the info. I'll look into it.
The second part is bad news because I saw it do that too. You might have to get rid of the color file and re-do the next time, let me know. I wouldn't mind a copy of your color file if you could pm me a link.
I don't know if they're messing with the colors after a while logged in or if I just introduced some logic bug.
Looks like it was killing them pretty good for a while there.
ceh430
2014-10-02 01:26:44
From: bonsai
Thanks for the info. I'll look into it.
The second part is bad news because I saw it do that too. You might have to get rid of the color file and re-do the next time, let me know. I wouldn't mind a copy of your color file if you could pm me a link.
I don't know if they're messing with the colors after a while logged in or if I just introduced some logic bug.
Looks like it was killing them pretty good for a while there.
ok np im glad i can help, gimme a minute i will pm you link with my old hellhounds, i will try to delete it and make new one later, if i rotate camera little by little while its detecting monsters do you think it will help it to get more precise colors or i should not mess with camera while its detecting colors?
Godless
2014-10-02 05:40:36
From: bonsai
You did it just right and anyone else should do the same until I get an update posted. You removed an unused function.
Which NPC were you auto-detecting? The initial scan to find them didn't work. Probably needs a little fine tuning.
The NPC needs to be moving when you start. If they sit still or something else is moving a lot it has a hard time. I know it wouldn't do the butterflies because they were so small and it's not tuned for that.
I have tricks for things like that but they take time and effort.
Alright, good to know. I was at the Lesser Demons at the Karamja dungeon :).
Mantasx27
2014-10-02 06:28:49
I updated Simba and SRL and I am still getting Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
ceh430
2014-10-02 06:58:39
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 1 hr 2 min 36 sec(Total) 1 hr 2 min 36 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// hellhound 840 804.93 804.93 //////////
////////// XP 303,660 290,983.54 290,983.54 //////////
////////// Const XP 100,128 95,948.1 95,948.1 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
made new colors for hounds and it's working great, problem here was if you set angle to MAX it will try to pick only brown hide on their backs and thats kinda problem because there is brown floors around walls which have mostly same colors, so if i move camera down it can pick colors of their teeth and eyes
btw into antiban it would be great to add something like
hoverSkill(Skill_Magic);
Wait(GaussRangeInt(1249,2349));
and
randomGameTab(true);
at least these are things what im normally doing when im grinding combat ;)
and also it would be great if you could add toogle quick prayer on/off at least after random break or when you have >X prayer points because if you are fighting monsters which drops bones and using bonecrusher and twisted necklace like me, it's waste to NOT have activated it ALL time when you have unlimited prayer points…
Assassinranger
2014-10-02 07:25:48
So I installed the script again again it just came this on the script.
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
{ bonsaiFighter.simba }
{ Written by: bonsai }
{ Date Last Modified: 2014/09 }
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
program bonsaiFighter;
{$DEFINE DEBUG_ON}
{$include_once bonsai/blCombat.simba}
{$f-}
begin
combatMgr.doMain();
end.
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
bonsai
2014-10-02 09:04:54
From: Assassinranger
So I installed the script again again it just came this on the script.
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
{ bonsaiFighter.simba }
{ Written by: bonsai }
{ Date Last Modified: 2014/09 }
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
program bonsaiFighter;
{$DEFINE DEBUG_ON}
{$include_once bonsai/blCombat.simba}
{$f-}
begin
combatMgr.doMain();
end.
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
And when you push the run button magical things are going to happen.
:)
bonsai
2014-10-02 09:06:21
From: ceh430
…
and also it would be great if you could add toogle quick prayer on/off at least after random break or when you have >X prayer points because if you are fighting monsters which drops bones and using bonecrusher and twisted necklace like me, it's waste to NOT have activated it ALL time when you have unlimited prayer points…
Good ideas. I'll try to add the prayer in next time I work on it, it's probably only a few lines of code. Been meaning to do that anyway.
Assassinranger
2014-10-02 09:49:48
From: bonsai
And when you push the run button magical things are going to happen.
:)
Working great bonsai, thanks so much ;)
cbrems
2014-10-02 14:32:34
will this pick up items, especially those of value? I wouldn't mind getting some champion scrolls with it!
rillu
2014-10-04 10:56:50
Same error as someone else please help.
Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
bonsai
2014-10-04 11:41:04
From: rillu
Same error as someone else please help.
Exception in Script: Unknown declaration "DrawSystemTextBitmap" at line 472, column 4 in file "C:\Simba\Includes\bonsai\blBitmap.simba"
Update simba and srl, this needs the newest. The only people reporting this are those who did not update.
I know the script is a little bit lame, and I will try to get it more usable.
My focus at the moment is our group project so this will be a secondary concern.
rillu
2014-10-04 15:27:00
ok ty for the reply. I was able to update simba, but srl update and force update give me an error.
You have a new update available for Plugins!
Plugins Updater: Local Version - "1" | Remote Version = "26"
Plugins Updater: Update File - "h t t p://
wizzup.org/static/srl/simba_plugins.tar.bz2" // had to space these for post
Plugins Updater: Downloading…
Plugins Updater: Decompressing…
Plugins Updater: Extracting…
Renamed C:\Simba\Plugins\libsmartjni32.dll to C:\Simba\Plugins\libsmartjni32.dll.bak
Renamed C:\Simba\Plugins\libsmartjni64.dll to C:\Simba\Plugins\libsmartjni64.dll.bak
Renamed C:\Simba\Plugins\libsmartremote32.dll to C:\Simba\Plugins\libsmartremote32.dll.bak
Renamed C:\Simba\Plugins\libsmartremote64.dll to C:\Simba\Plugins\libsmartremote64.dll.bak
Renamed C:\Simba\Plugins\libTesseract.dll to C:\Simba\Plugins\libTesseract.dll.bak
Renamed C:\Simba\Plugins\OpenGL32.dll to C:\Simba\Plugins\OpenGL32.dll.bak
Renamed C:\Simba\Plugins\sps32.dll to C:\Simba\Plugins\sps32.dll.bak
Renamed C:\Simba\Plugins\sps64.dll to C:\Simba\Plugins\sps64.dll.bak
Plugins Update ERROR: Kill recieved from Updater.
No SRL update available.
Edit - Fixed it finally updated correctly and is working.
enviousz
2014-10-04 19:07:09
Error: Plugin(libtesseract2_32) has not been found
Compiling failed.
How could I fix this? I've tried updating plugins, redownloading the installer, etc.
Assassinranger
2014-10-04 19:19:57
Hey bonsai so when a select auto-detect when I come back and I am going to select a npc there is for example:
corpse-archer-.'-.',e!–18)
corpse-archer
skeleton
skeleton-vel–15)
which one do i pick? Just the name or with the random symbols next to it?
bonsai
2014-10-04 22:17:03
From: Assassinranger
Hey bonsai so when a select auto-detect when I come back and I am going to select a npc there is for example:
corpse-archer-.'-.',e!–18)
corpse-archer
skeleton
skeleton-vel–15)
which one do i pick? Just the name or with the random symbols next to it?
That's an artifact of it not being able to read the mouseover text. I try to clean up the name but there's only so much I can do.
I wouldn't pick autodetect when returning. Choose the one you want from the drop-down. Then there's no guesswork.
Because of the mousetext problem, you colored the same npc twice.
The color files are in SIMBADIR\includes\bonsai\colors and you can rename/delete them as needed.
Cyanempire
2014-10-04 22:27:49
Keep using the npc that you already detected in the drop down rather than auto detect.
2 weeks later colors still work for me :)
Assassinranger
2014-10-05 07:39:10
Okay I´ll delete one, but I didn´t keep using autodetect, I used it once, then when I came back there were 2 npcs.
Thomas
2014-10-05 13:08:59
The script doesnt recognise me being logged into RS3 on SMART?
The simba debug shows it's still trying to login my character, while I'm already ingame on SMART. (Status there is: booting up or something similar, while I'm already at hellhounds)
bonsai
2014-10-05 13:22:47
From: lovebotter
The script doesnt recognise me being logged into RS3 on SMART?
The simba debug shows it's still trying to login my character, while I'm already ingame on SMART. (Status there is: booting up or something similar, while I'm already at hellhounds)
Check your interface settings per the simba install thread. Also, reset your old school layout.
Sometimes things get out of whack in the game and this fixes it up.
Make sure if you use directx you pick directx in the form. If those settings mismatch nothing works right.
Not sure if there is any SRL6 login issue at the moment or if anything changed I need to catch up with.
bonsai
2014-10-05 13:24:02
From: Assassinranger
Okay I´ll delete one, but I didn´t keep using autodetect, I used it once, then when I came back there were 2 npcs.
It's a bug then, it must grab the name twice during the process and it got different ones. Next time I'm updating I'll look for it.
Sinix
2014-10-06 18:21:33
The script won't start up for me, no matter what I do.
Direct-X or Open-GL doesn't make a difference.
My screen is set up right (works for other scripts).
What am I doing wrong?
"
Unable to log player in, exiting the script" except I'm already logged in.
Compiled successfully in 1794 ms.
——————————————————-
– Checking blUpdater.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blBitmap.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blMisc.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blColorizer.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blNpc.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blTracker.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blBreak.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blCombat.simba for updates.
– Version is current, no update needed.
***** TBreakTimer: Next break time calculated, [03:25:58] from now
SRL: Logfile = C:\Simba\Includes\SRL-6/logs/SRL log (06-10-14 at 03.15.26 PM).txt
– setupSRL()
—- Setting up SRL…
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found 1 free client(s), attempting to pair to one…
——– Failed to pair to SMART[4804]
—— smartPairToExistingClient(): result = false
—— Attempting to spawn a new client..
—— smartCreateClient():
———- smartGetParameters(): Succesfully grabbed paramters
——– getJavaPath():
———- Attempting to search for your Java path
———- Found your java path @ C:\Program Files (x86)\Java\jre7\bin\java.exe
——– getJavaPath()
——– Using parameters [
http://world8.runescape.com/, f2928973790127254884]
——– Using plugins "d3d9.dll"
——– Succesfully spawned a client, attempting to target
———- smartSetAsTarget(): Succesfully set SMART[2956] as Simba's target
—— smartCreateClient(): result = true
—— Succesfully initialized via spawning a new client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
—— __setInputBoxes(): Set username and password boxes
—- Client is ready.
—- Setup SRL in 16 Seconds
– setupSRL(): True
***** Logging player in
***** bonsaiFighter: Script shutting down
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// No Header Set ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 3 min 31 sec(Total) 3 min 31 sec(Active) 0 sec(Break) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Successfully executed.
bonsai
2014-10-06 22:27:21
From: Sinix
The script won't start up for me, no matter what I do.
Direct-X or Open-GL doesn't make a difference.
My screen is set up right (works for other scripts).
What am I doing wrong?
"Unable to log player in, exiting the script" except I'm already logged in.
Compiled successfully in 1794 ms.
——————————————————-
– Checking blUpdater.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blBitmap.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blMisc.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blColorizer.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blNpc.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blTracker.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blBreak.simba for updates.
– Version is current, no update needed.
——————————————————-
– Checking blCombat.simba for updates.
– Version is current, no update needed.
***** TBreakTimer: Next break time calculated, [03:25:58] from now
SRL: Logfile = C:\Simba\Includes\SRL-6/logs/SRL log (06-10-14 at 03.15.26 PM).txt
– setupSRL()
—- Setting up SRL…
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found 1 free client(s), attempting to pair to one…
——– Failed to pair to SMART[4804]
—— smartPairToExistingClient(): result = false
—— Attempting to spawn a new client..
—— smartCreateClient():
———- smartGetParameters(): Succesfully grabbed paramters
——– getJavaPath():
———- Attempting to search for your Java path
———- Found your java path @ C:\Program Files (x86)\Java\jre7\bin\java.exe
——– getJavaPath()
——– Using parameters [http://world8.runescape.com/, f2928973790127254884]
——– Using plugins "d3d9.dll"
——– Succesfully spawned a client, attempting to target
———- smartSetAsTarget(): Succesfully set SMART[2956] as Simba's target
—— smartCreateClient(): result = true
—— Succesfully initialized via spawning a new client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
—— __setInputBoxes(): Set username and password boxes
—- Client is ready.
—- Setup SRL in 16 Seconds
– setupSRL(): True
***** Logging player in
***** bonsaiFighter: Script shutting down
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// No Header Set ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 3 min 31 sec(Total) 3 min 31 sec(Active) 0 sec(Break) //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Successfully executed.
Your screen headings for minimap and backpack do not look like everyone elses. You must have misses setup steps from the install doc.
I think it's probably something called 'slim headers' but you should recheck all the settings if you missed this one maybe you missed more.
Make sure the 'always display targets' option is on too, this script needs it.
Mantasx27
2014-10-07 16:53:38
////////////////////////////////////////////////////////////////////////////////////////////////////
////////// Script runtime: //////////
////////// 10 hr 6 min 34 sec(Total) 9 hr 49 min 34 sec(Active) 16 min 59 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// fire-giant 2,761 273.11 280.99 //////////
////////// XP 1,172,872.8 116,017.42 119,362.74 //////////
////////// Const XP 386,816.1 38,262.81 39,366.1 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
bonsai
2014-10-08 06:17:59
From: Mantasx27
////////////////////////////////////////////////////////////////////////////////////////////////////
////////// Script runtime: //////////
////////// 10 hr 6 min 34 sec(Total) 9 hr 49 min 34 sec(Active) 16 min 59 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// fire-giant 2,761 273.11 280.99 //////////
////////// XP 1,172,872.8 116,017.42 119,362.74 //////////
////////// Const XP 386,816.1 38,262.81 39,366.1 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Wow, that's a great run! Don't get yourself banned!
If you use
tags it will keep the progress report formatted and more readable.
I made some performance improvements yesterday, looking at the thread for bug isssue, then will put an update out there.
Mantasx27
2014-10-08 14:18:40
From: bonsai
Wow, that's a great run! Don't get yourself banned!
If you use tags it will keep the progress report formatted and more readable.
I made some performance improvements yesterday, looking at the thread for bug isssue, then will put an update out there.
Noted. The only problem I am having is that the bot sometimes attacks another mob before killing the first one. But since I am using SGS on mid-level mobs its not a problem at all. It might increase the xp/h though
bonsai
2014-10-08 15:30:19
From: Mantasx27
Noted. The only problem I am having is that the bot sometimes attacks another mob before killing the first one. But since I am using SGS on mid-level mobs its not a problem at all. It might increase the xp/h though
I wish I could see that. If you're one of these video whizzes send me a link to something in pm.
It moves to the next npc right away, so there's a 2-3 second window where it looks like the old fight is going but it isn't.
It should flash red after each fight, if that's not happening I have things to refine. The fight detectors must not be working well in that area is all I can think. I need to put a pic in OP and explain them.
For the SGS are you using it in the food key or on it's own SGS key? Someone complained and I looked at that but I couldn't see anything. It should push SGS key if it needs food and adrenaline > 50%. The only difference on the food key is it wouldn't check the adrenaline. But docs tell me you do need 50%. ??
IROC-Z
2014-10-08 18:59:36
Does anyone have recommendations for what to train a ranger on? They are F2P and have 58 def and 65 range or something like that. I've been doing Minotaurs but they are a little slow now. I want to get 80 range and 70 defense on them so I can make the script I want to make.
rillu
2014-10-09 06:14:02
This is not working for me. Getting an error saying unable to login. Says this after the fact that I am logged into the game, and in the room I want to fight in.
bonsai
2014-10-09 06:45:37
From: rillu
This is not working for me. Getting an error saying unable to login. Says this after the fact that I am logged into the game, and in the room I want to fight in.
I'm assuming this is true for any script, since this script just calls the SRL login functions.
My best guess is you have something off in your graphics settings. Check the info in the simba install thread. Look at the picture in the OP. Does it looklike your screen?
Did you tell the script opengl but you have setup for directx?
Mantasx27
2014-10-09 08:27:51
I am sorry I cant make a video at the time, but I am using the SGS key and it is 50% adrenaline. I have no food in my inventory, but the bot still clicks the food button because I can see the "You don't have any left" message on the screen. When I used to run with food, it ate and used the SGS special at the same time, so eventually I just ran out.
The attacking of a second mob is a bit weird from what I saw when I spectated the bot, it doesn't happen often and isn't systematic from what I can tell, it can kill many without any flaws, so I assume it's just the colors I gathered aren't perfect or something similar.
On the side note, there are attacks that hit other mobs nearby (not using them personally), but an addition to the bot could be that it prioritizes mobs which are attacking you - they have a gold ring underneath. Not sure if that's easy to detect though.
PS. I see you're using my proggy :D. Btw 99 Defense achieved.
bonsai
2014-10-09 21:02:51
From: Mantasx27
I am using the SGS key and it is 50% adrenaline.
I do believe you – I just haven't figured it out.
I have no food in my inventory, but the bot still clicks the food button because I can see the "You don't have any left" message on the screen.
I should try to fix that, it doesn't check.
When I used to run with food, it ate and used the SGS special at the same time, so eventually I just ran out.
That makes sense too, and I was looking at that. Should I do a wait() after pressing the SGS key?
The attacking of a second mob is a bit weird from what I saw when I spectated the bot, it doesn't happen often and isn't systematic from what I can tell, it can kill many without any flaws, so I assume it's just the colors I gathered aren't perfect or something similar.
I would say it's a flaw in the detector but I can live with an odd occastional one.
On the side note, there are attacks that hit other mobs nearby (not using them personally), but an addition to the bot could be that it prioritizes mobs which are attacking you - they have a gold ring underneath. Not sure if that's easy to detect though.
I was also thinking about this as a way to alleviate the occasional mob problem. Before picking a new fight, see if someone has the yellow ring and attack them.
PS. I see you're using my proggy :D. Btw 99 Defense achieved.
Added to OP. Thanks and gratz!
Thomas
2014-10-10 03:12:01
Like others have mentionned the sgs spec is not flawless, it keeps eating food allong with the spec.
For me the attacking of other npcs while still in combat happens allot.
Possible suggestions:
Rorate camera anti-ban option
More anti-ban methods And randomisation
Use of berserk ability if over a certain health percentage (same goes for tressholds like hurricane and quake)
Higher combat level npc attacking obviously
Mantasx27
2014-10-10 12:42:15
Is attacking higher combat npcs really that needed? Since the bot doesnt loot, I dont think it would increase the xp/h by a significant amount, would it?
Thomas
2014-10-10 13:37:27
From: Mantasx27
Is attacking higher combat npcs really that needed? Since the bot doesnt loot, I dont think it would increase the xp/h by a significant amount, would it?
Ofcourse it will be, being able to camp hellhounds before 92 combat would be a significant improvement over firegiants, 85 combat and ogres before that..
bonsai
2014-10-10 13:39:59
From: lovebotter
Like others have mentionned the sgs spec is not flawless, it keeps eating food allong with the spec.
For me the attacking of other npcs while still in combat happens allot.
Possible suggestions:
Rorate camera anti-ban option
More anti-ban methods And randomisation
Use of berserk ability if over a certain health percentage (same goes for tressholds like hurricane and quake)
Higher combat level npc attacking obviously
From: Mantasx27
Is attacking higher combat npcs really that needed? Since the bot doesnt loot, I dont think it would increase the xp/h by a significant amount, would it?
Mantra: that has been my thought, too. I seem to get the best xp/hr fighting things half my level or less.
Many thanks on the feedback lovebotter. These posts help me make it better. And it's nice when they're constructive and not "boo hoo this sucks". :)
Please bear with this long post:
- I'm going to try to rework the sgs/food logic a little (soon). One question is how long I have to wait for it to work. If I press the SGS key how long should I wait before checking to see if it was good enough or I need to eat some food? Or should I just assume it's good enough and get back to it later like any health check?
- I still don't get the issue where SGS key didnt work and food key did unless the SGS doesn't really need 50% adrenaline like things say it does. I don't have one, I'm coding blindly here.
- You are right on the antiban. Even though it has a little it's lame and not frequent. I should provide a more mellow mode for people concerned about bans. Having said that, for some reason combat slips through the cracks. I think I only have one ban report and that was someone doing lots of hours and more than one script. I always recommend babysitting. When people wander in and snipe something, they expect you to get irritated. If you snipe theirs, they will get pissed off. It's super easy for people to think a fighting bot is a bot.
- I'm sure swarming is a problem with fight detectors so the question is which NPC? I'll have to check them out. You guys gonna make me risk my "main". I owe an update in the OP to describe the detectors so people can tell me what isn't working.
- Re: beserk, etc, and things like prayer. I'm pretty busy now with a group project and life in general. I'm willing to try to work this sort of stuff in but it would be really helpful to try to post it as a complete feature request. Treat me like a dummy because I am, and I don't really play the game any more. If you can give me detail on how you see it fitting in, what it checks, how it reacts, etc, and hopefully some pictures I may be able to fit things in.
jst94
2014-10-10 18:56:56
Hey,
I am trying to make the script work on monsters who are a higher combat then me and it just says ; motion detection cant find anything.
Mantasx27
2014-10-10 23:03:14
From: lovebotter
Ofcourse it will be, being able to camp hellhounds before 92 combat would be a significant improvement over firegiants, 85 combat and ogres before that..
Im almost maxed out in combat stats and I get 30k xp/h more at fire giants than hounds. There are far more of them in a closed area.
bonsai
2014-10-10 23:43:50
From: jst94
Hey,
I am trying to make the script work on monsters who are a higher combat then me and it just says ; motion detection cant find anything.
It doesn't work with npcs of a higher level.
You should always check out the last portion of a thread before posting. If you read the last 10 posts your answer was already there.
jst94
2014-10-11 07:05:51
Excuse for not reading it!
Will try it on a lower monster level.
What do you recommend with a level 30 char?
bonsai
2014-10-11 07:30:38
From: jst94
Excuse for not reading it!
Will try it on a lower monster level.
What do you recommend with a level 30 char?
Others may have better suggestions, but in the lumby catacombs probably somewhere around warped bats to corpse mage.
Basically, the highest XP monster you can find that you can kill with just a few whacks so it keeps up a good kill rate.
Ultimately the judge is the xp/hr on the progress. Remember though, the first run wastes a lot of time coloring so may not be such good data.
Thomas
2014-10-11 08:28:50
Yes, I also believe the 'swarming' is caused by the bot not knowing it is already in combat by a NPC.
Sometimes it also initiates a fight on a NPC that just got killed.
I'm currently botting at firegiants, but had the same problem at other places such as ogres, hellhounds,..
Sinix
2014-10-11 12:01:41
From: bonsai
Your screen headings for minimap and backpack do not look like everyone elses. You must have misses setup steps from the install doc.
I think it's probably something called 'slim headers' but you should recheck all the settings if you missed this one maybe you missed more.
Make sure the 'always display targets' option is on too, this script needs it.
Thank you! I finally was able to get the script running.
I can't believe it was just because my "slim headers" got unchecked; I should have noticed…
Here's my proggy from a level 45 F2P account:
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 4 hr 37 min 2 sec(Total) 4 hr 37 min 2 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// flesh-crawler 2,153 466.28 466.28 //////////
////////// XP 138,868.5 30,075.16 30,075.16 //////////
////////// Const XP 45,643.6 9,885.17 9,885.17 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Thank you for sharing the script, Bonsai! :)
bonsai
2014-10-11 15:53:01
Update posted, it should auto-download.
Major changes:
* It now pre-targets the next npc while fighting
* Fixed colors on end of fight detector, should be less prone to swarming. Colors in the enemy health bar changed recently.
* Sweet star debug by Camel.
* If it uses the SGS key, it does not use the food key. Keep an eye on this and make sure it's not putting you in harms way :)
Mantasx27
2014-10-11 15:55:11
From: bonsai
Update posted, it should auto-download.
Major changes:
* It now pre-targets the next npc while fighting
* Fixed colors on end of fight detector, should be less prone to swarming. Colors in the enemy health bar changed recently.
* Sweet star debug by Camel.
* If it uses the SGS key, it does not use the food key. Keep an eye on this and make sure it's not putting you in harms way :)
Great job, bonsai. Any plans for looting, atleast the charms?
bonsai
2014-10-11 16:06:07
From: Mantasx27
Great job, bonsai. Any plans for looting, atleast the charms?
No but someone posted about using a charming imp to grab them.
I might make something like a custom rock crab script one of these days but right now we're doing a project that will likely eat most of my playtime.
My next update I should clean it up so you guys can call the fighting routine from your own scripts. That way you could mess around with making your own custom fighter/looter.
I need to find all the places I used smart/smartimage and fix it up a little. That way you don't end up with bonsai trees popping up on you :)
Mantasx27
2014-10-11 16:10:21
OMG HOW DID I FORGET ABOUT THE IMP. So many charms wasted :S
bonsai
2014-10-11 17:49:02
I MAY HAVE BROKEN THE UPDATE.
IF YOU GET ERRORS COMPILING RE-DOWNLOAD THE INSTALLER FROM OP.I posted an update so the program should respect
{$DEFINE SMART}
I added a define so onscreen graphics can be turned off:
{$DEFINE ONSCREENGRAPHICS}
You are now able to use the fighter as an include so you can make your own custom fighter/looter! Here is a sample that fights a few crawling corpses. You need a color file from the fighter that matches the name on the npc in the code.
program corpseTorso;
{$DEFINE SMART}
{$include_once srl-6/srl.simba}
{$include_once bonsai/blCombat.simba}
var
ccTorso: Tnpc;
i: integer;
begin
SetupSRL();
ccTorso.init('crawling-corpse-torso', true);
for i := 0 to 5 do
begin
combatMgr.attack(ccTorso, true {wait until dead},
nil {use default foodhandler}, MOUSE_RIGHT);
sleep(5000);
end;
end.
cbrems
2014-10-12 00:37:17
This now takes control of my mouse… :( How to make it stahp
EDIT: and now it doesn't …. interesting
Thomas
2014-10-12 06:00:40

Keep getting this after a couple of minutes, at firegiants, and I kill them at a fast rate (near max melee).
Can't have the script running for more then 10 minutes.
Other then that the update seems to be decent, haven't had to need for food yet though, but SGS healing works.
*EDIT*

Script says it is fighting, while I'm not in combat. I think it just recently engaged on a dieing fire giant.
Perhaps you could add a short sleep before attacking the next NPC to prevent this?
bonsai
2014-10-12 06:29:53
From: lovebotter

Keep getting this after a couple of minutes, at firegiants, and I kill them at a fast rate (near max melee).
Can't have the script running for more then 10 minutes.
*EDIT*
Script says it is fighting, while I'm not in combat. I think it just recently engaged on a dieing fire giant.
If it takes more than 3 minutes for a fight, bump this up and let me know.
SIMBADIR\includes\bonsai\blCombat.simba:
1043: combatMgr.maxFightSeconds := 180;
If it thinks you're in a fight and you're not, it must have missed the '0' in the enemy health. I don't see your target popup in that snap, you do have the popups enabled, right?
The script will check all of mainscreen, but I recommend getting that thing in the top left corner so it doesn't confuse other queries.
There are tolerances at the top of blCombat for the '0' DTM. If it's not flashing the red at the end of fight, maybe bump these tolerances (gently).
REDDISH = 1447227;
REDDISHTOL = 7;
GOLDISH = 439012;
GOLDISHTOL = 3;
If it misses the '0', it might think the fight is active until your adrenaline wears down, then it continues along.
Sounds like maybe for you, it never decided the fight is over.
bonsai
2014-10-12 07:21:52
I updated the second post with a description of the fight detectors.
Other than improper setups, I think the majority of the issues are fine tuning these.
Please check it out, and if your npc isn't working well, maybe you can tell me, "hey, its detecting the gold lock when it's not there".
Thanks for everyone's patience on the re-write. It's getting close to good enough you 99 hogs can go do your thing :spot:
If anyone is hot for prayer support, help me define it better. It's not just turning on and off the quick prayer. I'll need to look for potions and watch the chatbox or something for when to drink some? I'm not much on the game mechanics, so if someone really wants it take a little time to write up a step by step for a dumb old man they are a lot more likely to get what they want.
Thomas
2014-10-12 08:14:35
From: bonsai
If it takes more than 3 minutes for a fight, bump this up and let me know.
SIMBADIR\includes\bonsai\blCombat.simba:
1043: combatMgr.maxFightSeconds := 180;
If it thinks you're in a fight and you're not, it must have missed the '0' in the enemy health. I don't see your target popup in that snap, you do have the popups enabled, right?
The script will check all of mainscreen, but I recommend getting that thing in the top left corner so it doesn't confuse other queries.
There are tolerances at the top of blCombat for the '0' DTM. If it's not flashing the red at the end of fight, maybe bump these tolerances (gently).
REDDISH = 1447227;
REDDISHTOL = 7;
GOLDISH = 439012;
GOLDISHTOL = 3;
If it misses the '0', it might think the fight is active until your adrenaline wears down, then it continues along.
Sounds like maybe for you, it never decided the fight is over.
It doesnt ever take more then 3 minutes. Never more then a minute.
The target info is in the top left corner, it doesnt show in the screenshot benause my character wasn't in combat.
bonsai
2014-10-12 08:21:29
From: lovebotter
It doesnt ever take more then 3 minutes. Never more then a minute.
The target info is in the top left corner, it doesnt show in the screenshot benause my character wasn't in combat.
That makes sense.
If you have the patience, check out the second post, try it again, and let me know if you see any of the detectors acting wonky.
You can PM me to avoid bumping the thread.
Mantasx27
2014-10-12 08:59:47
The bot does not attack 2 mobs simultaneously anymore, great job on the update. I started using the charming imp/bonecrusher, and now charms/bones don't drop anymore, so it could be possible to loot some of the more valuable things like dragon helms/rune arrows @firegiants or smth similar just by seeing the color on the ground.
bonsai
2014-10-12 09:20:00
From: Mantasx27
The bot does not attack 2 mobs simultaneously anymore, great job on the update. I started using the charming imp/bonecrusher, and now charms/bones don't drop anymore, so it could be possible to loot some of the more valuable things like dragon helms/rune arrows @firegiants or smth similar just by seeing the color on the ground.
You can make one if you go through those mayor tutorials :)
program mantaGiants;
{$DEFINE SMART}
{$include_once srl-6/srl.simba}
{$include_once bonsai/blCombat.simba}
var
giant: Tnpc;
i: integer;
begin
SetupSRL();
giant.init('fire-giant', true);
while (iFeelLikeFighting) do
begin
combatMgr.attack(giant, true {wait until dead},
nil {use default foodhandler}, MOUSE_RIGHT);
// do some looting and banking
end;
end.
Thomas
2014-10-12 12:53:44
Think i've found the problem.
The bot thanks the red on the walls in the chaos tunnels is the target reticule..
The reticule detection is acting rather wonky, even at a fire giants room that doesnt have red in the walls.
This can also be seen in the screen I posted.
wowgnomes
2014-10-12 16:26:15
I really love this script, I use it for low level accounts on goblins and it's great!
Cyanempire
2014-10-12 20:12:34
—- Setting up SRL…
—- HINT: You are not using SMART, be sure to use Simba's crosshairs to select the RS client
bonsai
2014-10-12 20:58:37
From: Cyanempire
—- Setting up SRL…
—- HINT: You are not using SMART, be sure to use Simba's crosshairs to select the RS client
Rerun the installer. Sorry, I goofed the updater the other night.
Cyanempire
2014-10-13 03:04:41
Got it working. trying out different mobs.
it has difficulty with obtaining the colors of:
Grotworms
Cave Slimes
Ankous
ceh430
2014-10-13 16:35:45
isn't there way to use our colors like in old versions? i kinda dont like autodetect coloring, its much more accurate set it up with ACA :()
<name>DRS</name>
<xp>399</xp>
<constXp>131.6</constXp>
<color1>3164087</color1>
<tolerance1>13</tolerance1>
<hue1>0.15</hue1>
<sat1>1.26</sat1>
Simbanoobie
2014-10-13 22:30:02
Roughly how long should the color testing to determine npc colors be at the start of the script? I feel as if its lasting significantly longer than it should.
Got from 70-99 range and various other combat stats into 90's from under a months usage (including slayer).
Thanks a bunch bonsai! :D
ceh430
2014-10-14 03:05:50
From: bonsai
If anyone is hot for prayer support, help me define it better. It's not just turning on and off the quick prayer. I'll need to look for potions and watch the chatbox or something for when to drink some? I'm not much on the game mechanics, so if someone really wants it take a little time to write up a step by step for a dumb old man they are a lot more likely to get what they want.
i can help you with prayer, about refreshing prayer points with potions, why not simply use another quickslot for potions and use that slot if prayer points is under x points?, and when icon on action bar for prayer potions is grayed out and prayer poionts <X stop using prayer at all until player get new potions or stop bot here…
also detecting if prayers are on or off should be easy if we can check for green color around prayer buffs icons on buff bar, like while prayer >X points and green color(border for buffs) is not detected on x,y position then turn quick prayers on?
bonsai
2014-10-14 05:06:29
From: ceh430
i can help you with prayer, about refreshing prayer points with potions, why not simply use another quickslot for potions and use that slot if prayer points is under x points?, and when icon on action bar for prayer potions is grayed out and prayer poionts <X stop using prayer at all until player get new potions or stop bot here…
also detecting if prayers are on or off should be easy if we can check for green color around prayer buffs icons on buff bar, like while prayer >X points and green color(border for buffs) is not detected on x,y position then turn quick prayers on?
Thank you very much.
I'm going to try to fit the CTS2 support into the next release. Not sure when I'll get the coding time; the next week or so is looking pretty busy for me.
bonsai
2014-10-14 05:16:27
From: Simbanoobie
Roughly how long should the color testing to determine npc colors be at the start of the script? I feel as if its lasting significantly longer than it should.
1-4 minutes? It depends a little on luck. Once it finds a good color or two it improves since it can look for similar colors to try.
It starts fighting after 10 good colors are identified but it still tests them in between fights. Once it gets 20 colors it will only test occasionally.
jst94
2014-10-14 13:35:56
What do you guys recommend to kill with the following stats:
-40 attack
-40 strength
-30 def
Want to get 99,s
Thomas
2014-10-15 03:02:17
For the berserk ability; should just add a Health percentage when it is allowed to use it.
For example use berserk if over 80 hp and use sgs if under 75 hp.
And perhaps always use sgs spec if 100% adren and not over berserk treshold?
Seems like the most optimal method to implement berserk
Cyanempire
2014-10-15 04:49:05
function TBoxArray.pixelShift(time: integer = 200): TIntegerArray;
bonsai
2014-10-15 07:41:24
From: Cyanempire
function TBoxArray.pixelShift(time: integer = 200): TIntegerArray;
Update posted. Some of the utility functions I put together got moved into SRL so I had to remove them from here.
I knew you were going to be my early warning system :)
Busy week or two for me, so probably no updates unless something is fatal like this.
Cyanempire
2014-10-15 07:57:26
Haha always around to check scripts and test :)
AttilaBilly
2014-10-15 09:42:37
Now since this last update I get this
Error: Unknown declaration "append" at line 926
Compiling failed.
and it highlights this in blMisc,
result.append(atpa.getBounds());
bonsai
2014-10-15 11:02:27
From: AttilaBilly
Now since this last update I get this
Error: Unknown declaration "append" at line 926
Compiling failed.
and it highlights this in blMisc,
result.append(atpa.getBounds());
You must not have picked up the SRL changes.
On your simba menu, do SRL -> Check for Update.
Sinix
2014-10-15 17:03:47
I finally got this script to work, and have been gaining some decent levels.
Except for after this latest update, where I can't even get the script to compile.
Everything is up-to-date: sps, srl, plugins, tools, and the script.
This is the error message that I get:
"Error: Unknown declaration "append" at line 926
Compiling failed."
Any suggestions, Bonsai?
This script is awesome btw (…when I can get it to start up)!
jarofhearts
2014-10-15 17:07:53
I got the same error. I fixed it by going to SRL->Setting->Override Update, the selecting update from SRL->Update.
AttilaBilly
2014-10-15 17:46:27
From: bonsai
You must not have picked up the SRL changes.
On your simba menu, do SRL -> Check for Update.
That did nothing, it just said no update found or whatever.
AttilaBilly
2014-10-15 17:47:27
From: jarofhearts
I got the same error. I fixed it by going to SRL->Setting->Override Update, the selecting update from SRL->Update.
THANK YOU SO MUCH! I really appreciate you posting your solution man. We need more good people ;D
AttilaBilly
2014-10-15 17:51:54
And also Bonsai, thank you for the update. This script is life. With this update the fighting seems way smoother and such. I love it <3
AttilaBilly
2014-10-15 21:33:54
Are you at any time planning on adding item looting? Such as feathers?
Sinix
2014-10-16 00:26:50
I was able to get the script to work after a full re-install of Simba.
Seems to be running great now!
I second AttilaBilly's request for looting: specifically charms.
Cheers, Bonsai.
Thomas
2014-10-16 02:05:33
Do not waste your time making it loot charms bonsai… They can just get a charming imp.
bonsai
2014-10-16 03:43:28
From: Sinix
I was able to get the script to work after a full re-install of Simba.
Seems to be running great now!
I second AttilaBilly's request for looting: specifically charms.
Cheers, Bonsai.
From: lovebotter
Do not waste your time making it loot charms bonsai… They can just get a charming imp.
I'm not planning on adding looting to the generic fighter.
I added the information on using the fighter as an include to the OP. It should be pretty easy for someone to try to make their own custom chicken-killer or something.
Error: Duplicate declaration "drawText" at line 562
Compiling failed.
When I run the bonsaiFighter itself, it opens a "drawing" tab, and I get that error. Any ideas?
bonsai
2014-10-16 06:16:17
From: Clu
Error: Duplicate declaration "drawText" at line 562
Compiling failed.
When I run the bonsaiFighter itself, it opens a "drawing" tab, and I get that error. Any ideas?
Please read up a few posts for information on that. It's always a good idea when you have an issue with a script to review the last bunch of posts.
Cyanempire
2014-10-16 07:53:03
Almost 100 total Cb around 80 on cb stats thanks to Bonsai :P
I've almost had 100% success with this fantastic script but it seems to have a hard time to colorize Waterfiends.
Thanks for your amazing work man :)
AttilaBilly
2014-10-16 09:47:25
OH and btw. This script is keeping me at the top of the ironman ranged hiscores. ;)
GodBot
2014-10-16 12:06:02
Nice script. Can we expect charms support? Thanks
AttilaBilly
2014-10-16 18:42:00
From: GodBot
Nice script. Can we expect charms support? Thanks
He said no
From: bonsai
Please read up a few posts for information on that. It's always a good idea when you have an issue with a script to review the last bunch of posts.
If you mean other draw errors, I searched from page 10-22 and it is an issue with Simba? If you mean the forced update option within the last few posts, I've already done those, and my Simba is up-to-date. I've done both Check For Update and used the Force Update, is there any newer Simba version than "1731?" I'm a bit confused.
[ATTACH=CONFIG]24220[/ATTACH]
bonsai
2014-10-17 02:50:47
From: Clu
If you mean other draw errors, I searched from page 10-22 and it is an issue with Simba? If you mean the forced update option within the last few posts, I've already done those, and my Simba is up-to-date. I've done both Check For Update and used the Force Update, is there any newer Simba version than "1731?" I'm a bit confused.
[ATTACH=CONFIG]24220[/ATTACH]
There's something in your setup not getting updated properly. The function you see an error on was removed from SRL6. You can only see this error with old software.
Maybe rename your c:\simba to simba.old and do a full fresh install per the doc. I did that yesterday and confirmed it works.
It takes some patience when those "you have a new update" messages come up. Let them process until it says successful.
From: bonsai
There's something in your setup not getting updated properly. The function you see an error on was removed from SRL6. You can only see this error with old software.
Maybe rename your c:\simba to simba.old and do a full fresh install per the doc. I did that yesterday and confirmed it works.
It takes some patience when those "you have a new update" messages come up. Let them process until it says successful.
I actually did a fresh installation and update prior to my first post in this thread, but I'll try renaming the current folder and attempt another fresh install, but I did see the "Successful!" message each time I updated, which is why I included the screenie. X'D
Edit: Wait what is the doc? Is that a different method of installing the script or Simba?
Cyanempire
2014-10-17 03:33:23
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 5 hr 58 min 19 sec(Total) 5 hr 58 min 19 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// ankou 3,570 597.78 597.78 //////////
////////// XP 428,400 71,733.65 71,733.65 //////////
////////// Const XP 141,372 23,672.11 23,672.11 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
merp.
bonsai
2014-10-17 05:08:50
From: Clu
I actually did a fresh installation and update prior to my first post in this thread, but I'll try renaming the current folder and attempt another fresh install, but I did see the "Successful!" message each time I updated, which is why I included the screenie. X'D
Edit: Wait what is the doc? Is that a different method of installing the script or Simba?
When I did it, I followed
this, which leads to
this.
- renamed my old simba folder
- ran the installer in the second link
- followed the updating process in the first link
- downloaded and ran the fighter installer from OP
- opened and ran bonsaiFighter.simba
At some point I know I was seeing more than one srl extension but I don't think that was when I did it yesterday.
From: bonsai
When I did it, I followed this, which leads to this.
- renamed my old simba folder
- ran the installer in the second link
- followed the updating process in the first link
- downloaded and ran the fighter installer from OP
- opened and ran bonsaiFighter.simba
At some point I know I was seeing more than one srl extension but I don't think that was when I did it yesterday.
Followed your instructions meticulously and it is working. I don't know, my old simba install must've had something wrong with it, I didn't tinker at all aside from some additional map files which were needed for some scripts.
But I loaded up the script, and you revolutionized the way it works, instead of having NPC preset colors like before, you changed a range of things and gave it an extremely versatile coloring system. You, sir, are a wizard.
10/10, would nerdgasm at your beautiful paint again.
liam1997
2014-10-17 10:06:41
this script is awesome, but just a question, i know the paint flickers a fair bit and that's all good but i am wondering if im going to get banned because it seems really twitchy and seems to spam all the buttons for abilities? Is there a way to turn ability use off or is this just the way the script runs? (running great btw)
Thomas
2014-10-17 11:39:50
Suggestion for those using right click NPC attacking; since it already searches for the next NPC, can't you make it rightclick it once found while hovering over the attack and clicking the attack once the current NPC is dead?
Small bug; the pauze interval isn't random for me, it's always taking the same break durations.
Have it set up as 17 and delta of 6 min, but it always is a 17m break?
liam1997
2014-10-17 19:47:45
Just ran this training at low levels getting 18k xp an hour in the skill i was training plus roughly 7k in constitution.
Runs flawlessly! Thanks:bart:
bonsai
2014-10-17 20:13:03
From: liam1997
this script is awesome, but just a question, i know the paint flickers a fair bit and that's all good but i am wondering if im going to get banned because it seems really twitchy and seems to spam all the buttons for abilities? Is there a way to turn ability use off or is this just the way the script runs? (running great btw)
If you want, you can stop it from painting by removing the {$DEFINE ONSCREENGRAPHICS} line from bonsaiFighter.simba
I know why it flickers; it's just more of a pain to fix at the moment than it's worth. But it's just paint, it has nothing to do with your next question.
For abilities, I use the revolution setting in-game. On the fighter form do not use manual abilities. The game is choosing the abilities, not the script. Hard to ban you for what they did.
I would consider this script a reasonable ban risk. It doesn't perform too much antiban, it kills NPCs faster than people do, and when it's coloring it moves the mouse around like a monkey. Having said that, myself, Cyanempire, and a couple of others have put a lot of hours on it, and we haven't had any issues.
Combat is prone to reports, so I recommend babysitting while watching TV.
As always, do not bot on a character unless you would be ok losing it. If it means a lot to you, save it for legit time.
bonsai
2014-10-17 20:21:18
From: lovebotter
Suggestion for those using right click NPC attacking; since it already searches for the next NPC, can't you make it rightclick it once found while hovering over the attack and clicking the attack once the current NPC is dead?
Small bug; the pauze interval isn't random for me, it's always taking the same break durations.
Have it set up as 17 and delta of 6 min, but it always is a 17m break?
That's a great suggestion, and I do that when I legit, too. It might be tricky to get the program to do it, though.
Re: the pause, let me know if you keep seeing it. How many 17min breaks did you see? Two or three could really be random chance. The code looks basic and unchanged for a long time.
Session runtime should fall in averageSession +- sessionVariance and break time within averageBreak +- breakVariance
Sacrificial
2014-10-17 23:42:58
I'm new to this site and this is the first script I've used and I'm very impressed. I didn't want to just be a leecher and just use it without saying thank you, so thank you Bonsai!
victordono
2014-10-18 12:10:56
Using this i actually prefer the fact it only targets the monsters in my current angle ie ) it doesnt go running around searching and rotating the camera , this is because it lets me place my character in a fixed area, so it doesnt wander off to places where other monsters can aggro.
Also, ive died using this, nbd to me, i was semi afk came back was dead not sure exactly what so sorry cant help much further there, if it helps i did notice that i was getting to around 35% , even though i set it to heal at 50% and i still had food.
bonsai
2014-10-18 17:49:48
From: victordono
Using this i actually prefer the fact it only targets the monsters in my current angle ie ) it doesnt go running around searching and rotating the camera , this is because it lets me place my character in a fixed area, so it doesnt wander off to places where other monsters can aggro.
Also, ive died using this, nbd to me, i was semi afk came back was dead not sure exactly what so sorry cant help much further there, if it helps i did notice that i was getting to around 35% , even though i set it to heal at 50% and i still had food.
Good feedback. That logic got pulled due to some srl issues and I was ready to add them back in. Maybe it should be optional.
The main cause of dying is the script being buggy and swarming you. I'm working on the detectors to improve that.
Make sure you use "logout when exiting". Otherwise it doesn't even try to log you out, you will idle out of runescape. I know, if you're in a fight still it won't let you logout.
BUT, it shouldn't get to 35% like that. Are you sure you have your food bound to one of the actionbar slots and the key is the aame as entered on the form? Not one of those quick inventory slots; those are super buggy.
Cyanempire
2014-10-18 20:03:28
Sometimes when you press enter and activate chatbox and even if you entered again
hotkeys dont work so you better double check. experienced it so many times :)
victordono
2014-10-18 22:04:29
From: bonsai
Good feedback. That logic got pulled due to some srl issues and I was ready to add them back in. Maybe it should be optional.
The main cause of dying is the script being buggy and swarming you. I'm working on the detectors to improve that.
Make sure you use "logout when exiting". Otherwise it doesn't even try to log you out, you will idle out of runescape. I know, if you're in a fight still it won't let you logout.
BUT, it shouldn't get to 35% like that. Are you sure you have your food bound to one of the actionbar slots and the key is the aame as entered on the form? Not one of those quick inventory slots; those are super buggy.
Its on the same line as the one shown in your picture :)
Cyanempire
2014-10-19 08:19:56
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 11 hr 10 min 28 sec(Total) 11 hr 10 min 28 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// ankou 7,200 644.32 644.32 //////////
////////// XP 864,000 77,318.92 77,318.92 //////////
////////// Const XP 285,120 25,515.24 25,515.24 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Mantasx27
2014-10-19 13:07:24
From: GodBot
Nice script. Can we expect charms support? Thanks
get the charming imp. go to rune wiki if you do not know what it is. Bonecrusher is also a cool thing to pick up for some extra prayer xp.
On the side note, having a ring of life on you will prevent you from losing any items even in the rare occasion you'll die. Btw couldnt this script be considered a slayer one? Is there some mobs it couldnt support with auto-detect?
victordono
2014-10-19 21:15:36
At waterfiends, it sometimes think its done a fight and clicks on another, this is what results in you dying if you dont use the logout when low HP, also this problem is still a problem cause it makes you waste more food :P
bonsai
2014-10-19 22:59:06
From: victordono
At waterfiends, it sometimes think its done a fight and clicks on another, this is what results in you dying if you dont use the logout when low HP, also this problem is still a problem cause it makes you waste more food :P
In case it's basics, make sure "Always show target information" is enabled in-game and move that popup to the top left corner to get it away from most other things. Standard simba settings stuff, brightness, etc.
If you're getting swarmed, is it flashing red when it should not, or is it never flashing red?
Near the top of SIMBADIR\includes\bonsai\blCombat.simba, there are tolerances that you can try bumping up or down (gently). These are for the '0' in the enemy health on the popup window. If never red, add to them. If it flashes too soon, remove from them. Let me know if this works and what values.
REDDISHTOL = 7;
GOLDISHTOL = 3;
victordono
2014-10-20 03:49:08
What do you mean by never red? How long the HP bar stays at 0 before it disappears?
Woops nevermind didn't understand till now, will post updates if any
Okay double edit;
Now assuming the "flashing red" is that pentagram thing underneath them, yeah it sometimes cuts off for a bit, some kills it flashes till the monster is dead, when the monster is dead it flashes once more, then moves on, sometimes though it stops flashing for a short interval then resumes flashing again.
TRIPLE EDIT;
okay it seems this might be the issue, sometimes when its mousing over another monster, and that monsters info box covers the current monster, the flashing at the bottom doesn't occur ( of course this is still assuming this is what you meant by flashing red )
bonsai
2014-10-20 05:14:33
From: victordono
What do you mean by never red? How long the HP bar stays at 0 before it disappears?
Woops nevermind didn't understand till now, will post updates if any
Okay double edit;
Now assuming the "flashing red" is that pentagram thing underneath them, yeah it sometimes cuts off for a bit, some kills it flashes till the monster is dead, when the monster is dead it flashes once more, then moves on, sometimes though it stops flashing for a short interval then resumes flashing again.
TRIPLE EDIT;
okay it seems this might be the issue, sometimes when its mousing over another monster, and that monsters info box covers the current monster, the flashing at the bottom doesn't occur ( of course this is still assuming this is what you meant by flashing red )
Sorry, I meant the fight detectors on the right. They flash red color at the end of fight (if it detects it properly).
victordono
2014-10-20 19:27:44
I bumped it to 8, for an hour, its slower ( by a little bit ) before it clicks on the next waterfiend but its more smooth now
Sinix
2014-10-20 20:54:14
Why won't this script kill Deadly Red Spiders?
It fails to identify them, and then says "Ran out of discovered colours" over and over again.
Seems to work great with everything else that I've tried.
Hello everyone @ThisThread :D
I'll be testing this script out , I did it for 7hours last night with motion detect seemed alright but takes a bit for it to detect a NPC. I was at ankous? however you spell them.
How would i go on about speeding up this procedure?
Testing out Auto detect at the moment. It' says it needs 10 good colors? the script has been moving the red dot all over the screen for the past 5minutes and only found 1 good xD
am i doing something wrong?
Any advice would be great & yes i believe i have all the basic requirements and read through the Op thoroughly :D
victordono
2014-10-20 23:15:44
From: bonsai
Sorry, I meant the fight detectors on the right. They flash red color at the end of fight (if it detects it properly).
Okay, so bumped up to 8 seems stable, i think i see the problem, so the cursor hovers over these monsters while waiting for the fight to finish, sometimes itll click to fight the next monster, and that monster will run off screen, this makes the character hit the monster, but the script no longer sees this monster and thinks the fight finished
Thomas
2014-10-21 05:44:40
From: bonsai
That's a great suggestion, and I do that when I legit, too. It might be tricky to get the program to do it, though.
Re: the pause, let me know if you keep seeing it. How many 17min breaks did you see? Two or three could really be random chance. The code looks basic and unchanged for a long time.
Session runtime should fall in averageSession +- sessionVariance and break time within averageBreak +- breakVariance
Nope, its always the same Break duration
bonsai
2014-10-21 06:09:25
From: lovebotter
Nope, its always the same Break duration
I believe I found it. Change line 179 in SIMBADIR\includes\bonsai\blBreak.simba:
breakMs := minToMsec(self.averageBreak) + randomVary(self.breakVariance * 60000);
I didn't multiply it up so it was only subtracting ms from the break time. Will add to next upload if it tests out ok.
I was thinking of buying a SGS though how do i go on about assigning it a key? i don't understand this bit in the player form popup please advice
edit proggy:
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 7 hr 49 min 11 sec(Total) 7 hr 34 min 11 sec(Active) 15 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Ankou 5,193 664.07 686.01 //////////
////////// XP 623,160 79,688.77 82,320.63 //////////
////////// Const XP 205,642.8 26,297.3 27,165.81 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
bonsai
2014-10-23 00:42:49
From: Note
Hello everyone @ThisThread :D
I'll be testing this script out , I did it for 7hours last night with motion detect seemed alright but takes a bit for it to detect a NPC. I was at ankous? however you spell them.
How would i go on about speeding up this procedure?
Testing out Auto detect at the moment. It' says it needs 10 good colors? the script has been moving the red dot all over the screen for the past 5minutes and only found 1 good xD
am i doing something wrong?
Any advice would be great & yes i believe i have all the basic requirements and read through the Op thoroughly :D
Ankous are super tricky since their colors match the screen so well. I see from your later progress report that you got them. One of you guys might want to post a link to a paste of your color file so someone else doesn't have to suffer the coloring.
From: bonsai
Ankous are super tricky since their colors match the screen so well. I see from your later progress report that you got them. One of you guys might want to post a link to a paste of your color file so someone else doesn't have to suffer the coloring.
My Color files for:
Ankou:
http://www.filedropper.com/ankouFire-giant:
http://www.filedropper.com/fire-giantI tried uploading it to Villavu but it wouldn't let me :s If anyone has a better Fire giant color file id highly appreciate it . though with mine im able to get 120-130k exp/h
Thomas
2014-10-23 12:32:45
From: bonsai
I believe I found it. Change line 179 in SIMBADIR\includes\bonsai\blBreak.simba:
breakMs := minToMsec(self.averageBreak) + randomVary(self.breakVariance * 60000);
I didn't multiply it up so it was only subtracting ms from the break time. Will add to next upload if it tests out ok.
That fixed it :) great!
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 5 hr 1 min 26 sec(Total) 5 hr 1 min 26 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Fire giant 1,565 311.51 311.51 //////////
////////// XP 664,812 132,328.62 132,328.62 //////////
////////// Const XP 219,256.5 43,642.28 43,642.28 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Could have beaten OP Proggy but my overall exp per hour is better ^^
victordono
2014-10-23 13:47:27
What would be like a skeleton code to add a looter ?
bonsai
2014-10-23 16:21:20
From: victordono
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.
***** TcombatMgr.attack: End of fight detected
Error: The Box you passed to Rectangle exceed the bitmap's bounds at line 116
Execution failed.
(*
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?
Mantasx27
2014-10-24 01:26:56
99 Attack achieved.
Thomas
2014-10-24 04:07:50
From: Note
***** TcombatMgr.attack: End of fight detected
Error: The Box you passed to Rectangle exceed the bitmap's bounds at line 116
Execution failed.
(*
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:
Thomas
2014-10-24 07:08:04
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.
victordono
2014-10-24 19:53:49
Okay so this isnt it exactly, im completely new to this sorry but if u can help :)
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?
wowgnomes
2014-10-26 09:59:18
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
Sinix
2014-10-30 17:27:00
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
Cyanempire
2014-10-30 19:46:35
From: Sinix
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.
klae17
2014-10-30 20:28:27
What do you think is the best place to use this bot for Hardcore ironman (lvl 20 str, att, and def)?
Sinix
2014-10-30 21:07:52
From: Cyanempire
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! :)
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:
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// 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 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Cyanempire
2014-10-31 03:06:03
From: J_R
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:
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// 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.
was using it for charms with 99 range and a royal crossbow, the entire thing took only 1 inventory of food.
bonsai
2014-10-31 05:49:31
From: Note
***** TcombatMgr.attack: End of fight detected
Error: The Box you passed to Rectangle exceed the bitmap's bounds at line 116
Execution failed.
(*
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?
From: lovebotter
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.
bonsai
2014-10-31 06:04:52
From: victordono
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)
From: wowgnomes
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.
From: J_R
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…" :)
xCrazyGuyNL
2014-11-03 05:36:13
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
ulkog
2014-11-04 06:02:15
From: J_R
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.
From: ulkog
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.
ulkog
2014-11-04 06:33:43
From: J_R
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
Cyanempire
2014-11-04 08:33:58
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.
Mantasx27
2014-11-04 13:00:08
Wow that waterfiend proggy is impressive. I wonder if with full armadyl gear with armadyl crossbow at ~75 ranged Id get any decent xp
MasterXehanort
2014-11-05 00:14:57
When I try to run Autodetect, I get:
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:
From: bonsai
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.
Cyanempire
2014-11-05 01:27:33
From: MMOE
When I try to run Autodetect, I get:
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..
MasterXehanort
2014-11-05 03:09:26
From: Cyanempire
Simba/Includes/Bonsai/Colors <— go to that..
Would I manually add a .xml file? That folder is empty as well.
bonsai
2014-11-05 05:57:36
From: MMOE
When I try to run Autodetect, I get:
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.
The information you're quoting is old, there was an old version of the fighter that worked that way. This version doesn't have a way to do ACA (CTS2) colors yet.
Was there any more info on the debug output?
The program is trying to use motion to identify things on the screen. Are the NPCs moving around during this startup time? If there's too much motion that can be a problem but you should see 'overload' in the debug output. I'm guessing there is something twinkly near you messing with things.
Which NPC? Can you post a couple of mainscreen snaps somewhere?
I have a manual way to prepare a color file if they are really tough for some reason.
bonsai
2014-11-05 06:04:53
From: Sinix
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! :)
From: ulkog
Can you post your XML file please? Having a hard time with the colors.
See if you are able to get to this
shared folder. I'll probably have usage issues
Copy a color file to your SIMBADIR\includes\bonsai\colors folder
Thank cyanempire for the color files. If you have some others, drop one of us a download link and we can add it.
This is like one of the best auto fighter scripts i have seen comparing to other platform (websites/clients) kudos man
http://pastebin.com/S6q1y7i4 Pasted my waterfiend file there, feel free to add it to your drive.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 14 hr 12 min 51 sec(Total) 14 hr 12 min 51 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// NOTE 7,095 499.15 499.15 //////////
////////// XP 2,443,518 171,907.45 171,907.45 //////////
////////// Const XP 805,992 56,703.5 56,703.5 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
I WIN @OP PROGGY! :P
sorry wont tell ya where im training because yeah .. >.>
Edit: This is still going seeing how long till it stops .. went with one inventory of sharks
Edit#2: luckly before work i saw it dropped a effigy :P
Edit#3:
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 15 hr 52 min 54 sec(Total) 15 hr 52 min 54 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// NOTE 7,920 498.69 498.69 //////////
////////// XP 2,727,648 171,747.59 171,747.59 //////////
////////// Const XP 899,712 56,650.77 56,650.77 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Must go sleep now so i have to change pc's most likely could have gone to 20hours .. official all out of sharks ..running on sgs specs no doubt would make it 20hours straight
Pls beat my proggy ;)
everve
2014-11-07 11:07:46
Awesome script. It has been working great everywhere I've used it and just got me 99 ranged (;
From: everve
Awesome script. It has been working great everywhere I've used it and just got me 99 ranged (;
mind if i ask where did you train range at? what setup ect ect ? and congrats :P
Thank you for 99 Attack & Defence
sorry couldn't take a screen shot happened while i was asleep :( flawless script
From: Note
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 14 hr 12 min 51 sec(Total) 14 hr 12 min 51 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// NOTE 7,095 499.15 499.15 //////////
////////// XP 2,443,518 171,907.45 171,907.45 //////////
////////// Const XP 805,992 56,703.5 56,703.5 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
I WIN @OP PROGGY! :P
sorry wont tell ya where im training because yeah .. >.>
Edit: This is still going seeing how long till it stops .. went with one inventory of sharks
Edit#2: luckly before work i saw it dropped a effigy :P
Edit#3:
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 15 hr 52 min 54 sec(Total) 15 hr 52 min 54 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// NOTE 7,920 498.69 498.69 //////////
////////// XP 2,727,648 171,747.59 171,747.59 //////////
////////// Const XP 899,712 56,650.77 56,650.77 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Must go sleep now so i have to change pc's most likely could have gone to 20hours .. official all out of sharks ..running on sgs specs no doubt would make it 20hours straight
Pls beat my proggy ;)
These proggys are based of killing mighty banshees
here is the color file :P Enjoy http://www.filedropper.com/mighty-banshee
bonsai
2014-11-09 20:53:10
From: Note
These proggys are based of killing mighty banshees
here is the color file :P Enjoy
http://www.filedropper.com/mighty-banshee
Congrats!! 99s and proggy added to OP.
I don't recommend 15 hour no-break sessions but it sure is fun to see :)
Color file added to
google drive
everve
2014-11-09 23:28:50
From: Note
mind if i ask where did you train range at? what setup ect ect ? and congrats :P
Thanks! I just trained on various slayer tasks with my best gear and a bunyip.
Mantasx27
2014-11-11 10:44:31
99 Strenght and Constitution achieved. Thats 4 99s with this bot so far. With Charming imp I got more than 60k charms and more than 1.5mil prayer xp (because of the bonecrusher).
xCrazyGuyNL
2014-11-12 17:39:57
is there anywhere i can see the changelog of this script? :P

Just sharing what i gotten by this script so far :P
jarofhearts
2014-11-14 14:15:37
Used this to get 99 in all my melee stats, worked great! Thanks Bonsai.
Brose
2014-11-14 16:44:42
First of all, the script works when I am running 1 Simba client. However for some reason, it doesnt work for the next character that I created. It doesnt matter if I am running the simba fresh or even if it is the only Simba running. It only works with the first character that I tested the script on. When I tried to run it on the other guy, once in a blue moon i get some reaction, but mostly, i get the message below.
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found 1 free client(s), attempting to pair to one…
———- smartSetAsTarget(): Succesfully set SMART[5156] as Simba's target
——– Succesfully paired to a existing client, SMART[5156]
—— smartPairToExistingClient(): result = true
—— Succesfully initialized via pairing to a previously spawned client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
—- 1 minute(s) have passed, client is not ready yet
—- 2 minute(s) have passed, client is not ready yet
—- 3 minute(s) have passed, client is not ready yet
—- Client is ready.
—- Setup SRL in 4 Minutes and 0 Seconds
– setupSRL(): True
***** Logging player in
***** bonsaiFighter: Script shutting down
Edit: I found out the problem. I was being stupid and I setup my interface wrongly and hence it couldnt detect that i was already logged in.
Cyanempire
2014-11-14 22:20:25
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 11 hr 59 min 41 sec(Total) 11 hr 42 min 41 sec(Active) 17 min 0 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// ankou 4,765 397.25 406.86 //////////
////////// XP 571,800 47,670.21 48,823.49 //////////
////////// Const XP 188,694 15,731.17 16,111.75 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Achieved 99 Attack :)
liam1997
2014-11-17 09:30:36
best monsters to train low level melee?
bonsai
2014-11-17 13:13:11
From: Cyanempire
Achieved 99 Attack :)
Added!
From: liam1997
best monsters to train low level melee?
I would say lumbridge catacombs. Fight as high as you can without wasting time.
Top speed is close to 600/hr. So if you're going through food and getting 350, move down.
Cyanempire
2014-11-19 10:53:13
From: liam1997
best monsters to train low level melee?
Try Stronghold of security or Troll brutes up to 40 :)
TehCrazyBrit
2014-11-22 08:19:18
Has anyone achieved 99 Slayer with this? One of my last 99's and it's the only one there isn't an actual bot for >.<
Mantasx27
2014-11-22 17:06:23
I got quite a few of Slayer levels, but not even close to 99
From: TehCrazyBrit
Has anyone achieved 99 Slayer with this? One of my last 99's and it's the only one there isn't an actual bot for >.<
No doubt if you just find your task and start the bot you'd be able to get 99 within a month and a half probs
but i think this script is mainly for long duration of use not really slayer thing ..
on the other NOTE…
my use for this script has finally come to a end since i just got everything 99 inc HP in cmbt wise with this script thank you sir !
boscolamhk
2014-11-23 06:36:24
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 7 hr 38 min 4 sec(Total) 7 hr 38 min 4 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// deadly-red-spid 1,974 258.56 258.56 //////////
////////// XP 1,974 258.56 258.56 //////////
////////// Const XP 1,974 258.56 258.56 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
It looks good. :)
But sometimes it attacks other npc incorrectly…it hits a moss giant in varrock sewer in every 10-15 minutes.
When I choose to kill waterfiend in ancient cavern, it clicks on the dragon nearby and I got killed… :(
drbungle
2014-11-23 10:56:47
Works great but one little issue - Any tips to stop the script attacking other monsters before the one it's currently fighting is dead? I keep getting gangbanged because it starts a fight, gets halfway and then attacks something else.
Other than that great script Bonsai!
Claymore
2014-11-23 16:16:17
I want to study this script. I love the logic behind it, as it seems applicable to 95% of the NPCs trainable with (5% being NPCs like Rockcrabs). Very well thought of my friend.
bonsai
2014-11-23 17:09:04
From: boscolamhk
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// deadly-red-spid 1,974 258.56 258.56 //////////
It looks good. :)
But sometimes it attacks other npc incorrectly…it hits a moss giant in varrock sewer in every 10-15 minutes.
When I choose to kill waterfiend in ancient cavern, it clicks on the dragon nearby and I got killed… :(
That is one of the flaws of autocoloring, it tends to pick up colors on anything attackable in the area. Sometimes it helps when starting the color file to make the view a little bigger to keep it limited.
I'm not excited with that 258/hour kill rate. The script is capable of close to 600. There's probably something easier to kill at a rate of 550/hour that will get you more xp.
From: drbungle
Works great but one little issue - Any tips to stop the script attacking other monsters before the one it's currently fighting is dead? I keep getting gangbanged because it starts a fight, gets halfway and then attacks something else.
It's probably issues with the fight detectors, most likely red things keeping the combat circle detector from working. It seems like it only happens in certain places. What npc is having the problems? Maybe the guys can suggest alternatives.
From: Claymore
I want to study this script. I love the logic behind it, as it seems applicable to 95% of the NPCs trainable with (5% being NPCs like Rockcrabs). Very well thought of my friend.
Thanks. There's a
thread from the initial idea where you could post questions (or just PM/skype me). The file that does the work is SIMBADIR\includes\bonsai\blColorizer.simba
The implementation is sloppy. I would like to rewrite it one of these days. If we only had nice threading so it could query all the time in the background.
http://www.filedropper.com/mighty-banshee my mighty banshee file with over 80k kills
I'd recommend anyone to train any melee stat here as it's uncrowded like 90% of the time
and you get around 110-170k exp per hour
Gear set up*slayer helm > earmuff & face mask > Mask of Mourning or a Helm of Keening
*Bandos chest plate > anything that has good defensive stat bonus
*bandos tassets > Something good in your tire level
*Bandos boots > Dragon > your suited tire level
*Bandos gloves > RFD gloves > I don't know what other gloves are out there
*skill cape or best cape
*furry or your best combat necklace
*RING OF LIFE *Saradomin god sword ( best investment you'll make ) with this sword i can last well over 25hours without even having to bank as the script uses the sgs ability extremely well
Lobsters or better food
Last but not least you should only come here if you are 70+ in stats in my opinion
Enjoy :)
Cyanempire
2014-11-24 08:07:53
Is it only me that has the counter/Prog report broken? :O
bonsai
2014-11-24 08:52:33
From: Cyanempire
Is it only me that has the counter/Prog report broken? :O
I didn't test but if all yours are broke it's the pages from wiki (or Olly's mouseovertext is real bad).
@Clarity: you have a function to look up combat / comstitution xp with an npc name??
Cyanempire
2014-11-25 07:10:57
Still adding new mobs everyday :)
but still counter is broken for me. anyway running it 24/7 w/ minimal breaks still fine.
boscolamhk
2014-11-26 10:26:31
From: bonsai
That is one of the flaws of autocoloring, it tends to pick up colors on anything attackable in the area. Sometimes it helps when starting the color file to make the view a little bigger to keep it limited.
I'm not excited with that 258/hour kill rate. The script is capable of close to 600. There's probably something easier to kill at a rate of 550/hour that will get you more xp.
It's probably issues with the fight detectors, most likely red things keeping the combat circle detector from working. It seems like it only happens in certain places. What npc is having the problems? Maybe the guys can suggest alternatives.
Thanks. There's a thread from the initial idea where you could post questions (or just PM/skype me). The file that does the work is SIMBADIR\includes\bonsai\blColorizer.simba
The implementation is sloppy. I would like to rewrite it one of these days. If we only had nice threading so it could query all the time in the background.
Actually the kill rate varies quite a lot. It sometimes reach 450/hr (which is 100+xp/hr). Is it possible to reach 600 red spider kills per hr?? Coz very often it wrongly clicks on the moss giants nearby and stop there. I think it is only possible to reach 600 kills/hr manually, but not by program.
Mantasx27
2014-11-26 13:00:36
I'm 99 in all combat stats except Ranged. Where would be a good place to train it? I'm wearing fur armadyls + 2xKaril's hand pistols.
bonsai
2014-11-26 15:10:57
From: boscolamhk
Actually the kill rate varies quite a lot. It sometimes reach 450/hr (which is 100+xp/hr). Is it possible to reach 600 red spider kills per hr?? Coz very often it wrongly clicks on the moss giants nearby and stop there. I think it is only possible to reach 600 kills/hr manually, but not by program.
I didn't mean you could get 600 DRS per hour. I meant you could probably get 600/hr of something else that would multiply up to more XP.
I reviewed a bunch of progress reports though and you seem to be doing as well as anyone else for f2p xp/hr.
If you send me a screenshot of the spider with the moss giant visible I might be able to help you work up a color file that ignores them better.
Clarity
2014-11-27 09:04:40
From: bonsai
I didn't test but if all yours are broke it's the pages from wiki (or Olly's mouseovertext is real bad).
@Clarity: you have a function to look up combat / comstitution xp with an npc name??
Did you get this fixed? If not I'll gladly whip something up for you.
ayzee5793
2014-11-28 00:21:59
New file to add to the color collection. Already about 10k kills with this color file. Hellhounds. Actually getting me much better xp per hour than banshees due to the fact that there aren't as many obstacles and things to run around, as well as these die faster. The best way I have been using it is at the hellhound resource dungeon (taverly) wait until the hellhounds are non-aggressive, and then set the compass with north facing to the right. (this way it doesnt get caught up in the little area to the north with the rock)
Make sure to babysit though, this can be a popular place and people will wonder why you are not afking the hellhounds.
File:
http://www.filedropper.com/hellhound
boscolamhk
2014-11-28 10:05:24
From: ayzee5793
New file to add to the color collection. Already about 10k kills with this color file. Hellhounds. Actually getting me much better xp per hour than banshees due to the fact that there aren't as many obstacles and things to run around, as well as these die faster. The best way I have been using it is at the hellhound resource dungeon (taverly) wait until the hellhounds are non-aggressive, and then set the compass with north facing to the right. (this way it doesnt get caught up in the little area to the north with the rock)
Make sure to babysit though, this can be a popular place and people will wonder why you are not afking the hellhounds.
File:
http://www.filedropper.com/hellhound
Thanks for the color. Now trying it :)
Just finished another 5-hr test
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 5 hr 28 min 8 sec(Total) 5 hr 28 min 8 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// ankou 2,295 419.64 419.64 //////////
////////// XP 2,295 419.64 419.64 //////////
////////// Const XP 2,295 419.64 419.64 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
bonsai
2014-11-28 10:32:08
From: ayzee5793
New file to add to the color collection. Already about 10k kills with this color file. Hellhounds. Actually getting me much better xp per hour than banshees due to the fact that there aren't as many obstacles and things to run around, as well as these die faster. The best way I have been using it is at the hellhound resource dungeon (taverly) wait until the hellhounds are non-aggressive, and then set the compass with north facing to the right. (this way it doesnt get caught up in the little area to the north with the rock)
Make sure to babysit though, this can be a popular place and people will wonder why you are not afking the hellhounds.
File:
http://www.filedropper.com/hellhound
From: boscolamhk
Thanks for the color. Now trying it :)
Just finished another 5-hr test
File uploaded. You guys are great with the contributions and suggestions on how to use it.
I mean, at the end of the day all a fighter script does is find/click/find/click. The people figuring out ways to self heal and grab drops and whatnot are providing value far beyond the script itself. Plus all the sharing of which places work well (or not) and which are getting the best xp/hr.
It turns a simple tool into something much more useful for everyone. Thanks!!
icyhottt
2014-11-29 04:08:11
hhahahahah this script is legit and freaking awesome xD it makes me happy watching it all I would want from it would be a smarter/faster decision making process and it not to attack stuff that is already in combat and id even donate for something this legit
edit: also I understand its a ton of work and all to do all this but if you could add a simple looking option that'd be pretty legit also
edit2: it let me die im not sure how or when
edit3: second day of using it and second day it has let me die T.T luckily I was wearing nothing of value the only thing I can think of is it doesn't realize my % of health or it thinks I have food when I don't
croberger
2014-12-02 01:27:22
Any good F2P setups?
Mantasx27
2014-12-03 06:44:41
Any good mobs to train ranged on? Currently doing Lesser demons, but only getting 50k xp/h with full armadyl
waterfiends are the best range training monsters, it should probably give you around 200k-350k xp/hr depending on range lvl
Mantasx27
2014-12-03 15:30:44
From: J_R
waterfiends are the best range training monsters, it should probably give you around 200k-350k xp/hr depending on range lvl
Arent they going to wreck my face?
Dark_Flame
2014-12-03 16:58:20
From: Mantasx27
Arent they going to wreck my face?
Depends what defense and gear you have
Edit: Okay you have armadyl, you should be fine
Theron
2014-12-03 17:42:09
How would I set this up to loot noted coal?
From: Mantasx27
Arent they going to wreck my face?
Depends, I could stay there for 5-6 hours with an inventory of sharks or monks (dont remember), 99def, and armadyl armour you should at least last 3 (keep in mind I did have guthix's blessing and deaths swiftness though and detecting guthix's blessing on actionbar doesn't quite work right so I tied it to death's swiftness by making it always try blessing before DS :P)
Mantasx27
2014-12-04 06:32:50
Tried waterfiend, lasting ~ an hour depending if the bot starts attacking more than one mob at once. ~200k ranged xp though. Thanks for the advice guys!
Another option that is slower than waterfiends but still way faster than 50k/hr is black demons. I don't remember the exact rates but I'd expect you'd be able to last a lot longer there and get at least 150k xp/hr - 250k xp/hr depending on range level
ayzee5793
2014-12-05 02:24:21
Bonsai, 99 str completely with this script. I used my hellhound colors as well as mighty banshees. Anyone got any questions on setups or anything let me know. Thank you again for this,hopefully my hellhound color file was helpful to people!
xSorrels
2014-12-05 23:56:05
Works pretty well. Somewhat. Lol
Can you help me add Looter in this?
Strictly want charms.
Thanks!
Mantasx27
2014-12-07 08:00:05
From: xSorrels
Works pretty well. Somewhat. Lol
Can you help me add Looter in this?
Strictly want charms.
Thanks!
Just buy Charming imp with dungeoneering tokens, you can also get the bonecrusher for some extra prayer xp!
xSorrels
2014-12-07 10:26:59
From: Mantasx27
Just buy Charming imp with dungeoneering tokens, you can also get the bonecrusher for some extra prayer xp!
Lol, well thanks for the help…
Started DG and going for 100k tokens.
Although a looter would be extremely helpful.
drbungle
2014-12-07 11:41:48
Is it possible to manually update colours with ACA?
I can't find anything in any of the includes
cheers
Mantasx27
2014-12-07 14:17:30
The only thing this bot needs is for it to use ultimates when you reach 100% momentum
bonsai
2014-12-07 14:32:40
From: drbungle
Is it possible to manually update colours with ACA?
I can't find anything in any of the includes
cheers
Not yet, but maybe later today if I stay motivated. I'm making some fixes now and that is next on the list.
From: Mantasx27
The only thing this bot needs is for it to use ultimates when you reach 100% momentum
Using manual abilities? It activates the rightmost one it thinks is ready. If they're not firing it may be the values returned in the function that checks them.
Or are you talking about the abilities you need to push, wait, then push again?
Mantasx27
2014-12-07 16:25:28
From: bonsai
Using manual abilities? It activates the rightmost one it thinks is ready. If they're not firing it may be the values returned in the function that checks them.
Or are you talking about the abilities you need to push, wait, then push again?
Didnt read the original post clearly, works fine now that I set it up properly
bonsai
2014-12-08 02:11:52
Update posted, please let me know if you have any issues.
You may want to retest places that were working poorly in the past.
Major changes:
* New XP lookup courtesy of Clarity so Cyan will stop bugging me
* Fixed issues in startup where it was running some parts more than once
* Fixed issues with using split instead of cluster, improved speed, removed unneeded workaround code
* Reworked detection due to game updates. Popup box is now disappearing very quickly.
* Re-added logic for rotating cam, moving to NPCs. It's an option in the form if you want to disable it.
Cyanempire
2014-12-08 02:59:47
From: bonsai
Update posted, please let me know if you have any issues.
You may want to retest places that were working poorly in the past.
Major changes:
* New XP lookup courtesy of Clarity so Cyan will stop bugging me
* Fixed issues in startup where it was running some parts more than once
* Fixed issues with using split instead of cluster, improved speed, removed unneeded workaround code
* Reworked detection due to game updates. Popup box is now disappearing very quickly.
* Re-added logic for rotating cam, moving to NPCs. It's an option in the form if you want to disable it.
Thank you bonsai! :P
running this now asap.
drbungle
2014-12-08 10:32:32
<3 <3
Mantasx27
2014-12-08 12:57:24
Bot seems to be running smoothly. No problems encountered so far. Cant last longer, running out of food since they hit too hard on me.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 1 hr 28 min 31 sec(Total) 1 hr 28 min 31 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// waterfiend 375 254.19 254.19 //////////
////////// XP 333,450 226,022.25 226,022.25 //////////
////////// Const XP 111,150 75,340.75 75,340.75 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
bonsai
2014-12-09 14:58:56
Posted an update with a few tolerances bumped up. It was failing to detect the red combat circle for some people.
Also added the little red flash at the end of the fight because…. well, just because.
IROC-Z
2014-12-09 22:44:28
For those wanting to make a looter to do with this fighter, would it be possible to incorporate it into the part of the script that sense the red combat circle? Have it store the coords then call a seperate file, the looter just like your script is set up, and then continue on with the rest of your script like normal?
Mantasx27
2014-12-11 05:25:57
Just hit 99 Ranged. Its the 5th 99 with this bot so far!
bonsai
2014-12-11 05:54:45
From: IROC-Z
For those wanting to make a looter to do with this fighter, would it be possible to incorporate it into the part of the script that sense the red combat circle? Have it store the coords then call a seperate file, the looter just like your script is set up, and then continue on with the rest of your script like normal?
I think you could access the field it stores after calling the fight function. Try adding to the example in the OP.
combatMgr.attack(ccTorso, true, nil, MOUSE_RIGHT);
writeln(combatMgr.lastTargetBox);
From: Mantasx27
Just hit 99 Ranged. Its the 5th 99 with this bot so far!
Go Manta go!
xSorrels
2014-12-11 06:50:23
Does this script pot, for lets say, dragons?
Antifire pots…?
bonsai
2014-12-11 09:02:30
From: xSorrels
Does this script pot, for lets say, dragons?
Antifire pots…?
No, sorry, no potion support at this time.
Mantasx27
2014-12-11 12:37:07
Why are u calling me Manta lol. My name is Mantas :D
shaezy
2014-12-11 22:01:43
Hey, was using this script and was working excellently! but i stopped it, then clicked run again and it doesnt even start up? im getting this error
Error: Operator expected at line 340
Compiling failed.
and it opens a script called production which has 784 lines of nothing but one line? line 340 is blank also..
i've tried reinstalling and updating everything but that didnt work
EDIT: ok just found out that it does it with all my scripts… WTF??
shaezy
2014-12-11 22:20:31
working again. had to uninstall simba and redo everthing. not sure what the cause was though?
The Mayor
2014-12-12 00:12:11
From: shaezy
working again. had to uninstall simba and redo everthing. not sure what the cause was though?
It was just some bad code pushed to SRL earlier today, nothing to do with this script ;)
boscolamhk
2014-12-12 01:50:34
It seems the food key is not working for me…i set food key to "1" and it doesn't heal when my hp dropped below the level. I manually press 1 and it heals.
(it works again after I reset my Simba….dunno what has happened)
Theron
2014-12-12 19:04:15
From: boscolamhk
It seems the food key is not working for me…i set food key to "1" and it doesn't heal when my hp dropped below the level. I manually press 1 and it heals.
(it works again after I reset my Simba….dunno what has happened)
You may want to reread the OP, I haven't used food with this script, but it does specifically have it as the '=' key.
Cyanempire
2014-12-12 21:03:45
You can put food in any key, it should work. i have mine on Z
dominos
2014-12-12 23:29:58
I've been using this for a few weeks on my new account and I have yet to see it mess up once, great script!
Cyanempire
2014-12-13 03:14:51
From: dominos
I've been using this for a few weeks on my new account and I have yet to see it mess up once, great script!
any progress report?.
boscolamhk
2014-12-13 05:48:38
One more question on color detection…May I know if I should use ACA to make a new color file? I use ACA and it is saved as .aca format and how can I change it to .xml format?
bonsai
2014-12-13 06:37:16
From: boscolamhk
One more question on color detection…May I know if I should use ACA to make a new color file? I use ACA and it is saved as .aca format and how can I change it to .xml format?
The script is not using colors from ACA right now. It does the coloring itself when you choose autodetect.
There's some color files posted on a google drive, check the OP for the link.
Theron
2014-12-13 22:04:59
From: bonsai
The script is not using colors from ACA right now. It does the coloring itself when you choose autodetect.
There's some color files posted on a google drive, check the OP for the link.
where do I save the .xml color files?
edit: nevermind, I managed to find it, thank you for the awesome script.
devster789
2014-12-15 16:20:05
my simba doesnt work. it kills one then shuts down! plz reply need asap
bonsai
2014-12-15 16:40:27
From: devster789
my simba doesnt work. it kills one then shuts down! plz reply need asap
Did it print anything in the debug box? It should save a screenshot in SIMBADIR/includes/srl-6/logs
What were you fighting? You chose autodetect?
yogiman1998
2014-12-15 20:37:18
Hey, I am having trouble with this script. When I launch it, it starts looking for colors for about 5 minutes and then it gives me an error where it says failed to find npc. Then proceeds to logout out and stop the script. I was wondering if you could help me. That would be fantastic and Thanks.
Cyanempire
2014-12-15 20:41:05
From: yogiman1998
Hey, I am having trouble with this script. When I launch it, it starts looking for colors for about 5 minutes and then it gives me an error where it says failed to find npc. Then proceeds to logout out and stop the script. I was wondering if you could help me. That would be fantastic and Thanks.
What monster are you trying it on?. are you sure your graphics setup is good (simba standards)?
yogiman1998
2014-12-15 20:44:01
From: Cyanempire
What monster are you trying it on?. are you sure your graphics setup is good (simba standards)?
I am trying it on Flesh Crawlers. I setup up simba according to set up made by Cohen. Then i followed the steps that were isted on the thread and it still didnt work.
Cyanempire
2014-12-15 21:22:42
From: yogiman1998
I am trying it on Flesh Crawlers. I setup up simba according to set up made by Cohen. Then i followed the steps that were isted on the thread and it still didnt work.
Autodetect?. i tried it just now it worked.
yogiman1998
2014-12-15 22:35:41
Here is the Error that I have been receiving:
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
bonsai
2014-12-16 02:46:39
From: yogiman1998
Here is the Error that I have been receiving:
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
Are you high enough level to fight them?
yogiman1998
2014-12-16 06:02:11
From: bonsai
Are you high enough level to fight them?
I am a Combat Lvl 63, whereas they are combat Lvl 39. They are green for me.
Nottabot
2014-12-16 07:11:58
I am trying to use Bonsai Fighter at lvl 1 chickens just as a test run. I can't seem to get it to auto fight. I read that I need to have some color associated to it, but the attached google drive color's are only for higher level monsters. Please guide me
Thanks
Cyanempire
2014-12-16 07:14:04
From: Nottabot
I am trying to use Bonsai Fighter at lvl 1 chickens just as a test run. I can't seem to get it to auto fight. I read that I need to have some color associated to it, but the attached google drive color's are only for higher level monsters. Please guide me
Thanks
You press start. pick autodetect. done.
Nottabot
2014-12-16 07:19:15
Thanks!
Nottabot
2014-12-16 07:21:02
Can i run multiple instances of this script? Say for example can I level up three different characters at the same time?
Cyanempire
2014-12-16 07:44:54
Open multiple simbas?
Nottabot
2014-12-16 07:45:56
Can you do that?
Cyanempire
2014-12-16 07:51:00
Very much yes. as long as your computer can handle it.
Nottabot
2014-12-16 14:54:27
in 6 hours time I got from 1-35 strength on chickens (40 k xp) is this normal? I'm looking at the chicken coop and there are no players. It just doesn't seem to find the chickens that well. I kill 1 chicken every cpl minutes or so maybe. What am i doing wrong?
It always takes around 5-10 minutes to load and it says Testing colors. Testing 40k good=4 active=4 rejected 970
Then I just sit there looking at cows which i'm training on now. I have it set to auto-detect and i tried setting it for cows, but it still takes just as long to locate a cow and kill it. About 60 seconds on avg in between each kill. Sometime the bot will just simply run off into a corner and it'll start ******Tcolorizer.colorize: tested colors all over again.
EDIT: Now it won't work at all. My character just stands still and nothing happens. No colorizers no nothing. I got a message saying, Unable to log player in, exiting script once or twice after a reset.
Nottabot
2014-12-16 16:36:55
So now the script doesn't work for me at all. Please let me know what info I can give to you. It just keeps saying Unable to log play in, exiting script.
xSorrels
2014-12-16 18:22:04
Ive used this script to level my slayer from 50-80. Worked
GREAT.
Although, earlier today, at Gargoyles, I went to load the color file, selected my pre-detected 'Gargoyle' and started.
The script then prints,
***** Tcolorizer.load: Loaded color file [C:\Simba\Includes\bonsai\colors\[B]false[/B].xml]
Not too sure how to fix this..
Tried deleting the 'False' color file and the 'Gargoyle' color file and re-autodetecting, BUT again, it prints,
***** Tcolorizer.load: Loaded color file [C:\Simba\Includes\bonsai\colors\[B]false[/B].xml]
Again, not sure what went wrong, or how to resolve this.
Thanks in advance!
EDIT:
The update you pushed, must have fixed something.
Thanks!
Cyanempire
2014-12-16 18:36:48
From: xSorrels
Ive used this script to level my slayer from 50-80. Worked GREAT.
Although, earlier today, at Gargoyles, I went to load the color file, selected my pre-detected 'Gargoyle' and started.
The script then prints,
***** Tcolorizer.load: Loaded color file [C:\Simba\Includes\bonsai\colors\[B]false[/B].xml]
Not too sure how to fix this..
Tried deleting the 'False' color file and the 'Gargoyle' color file and re-autodetecting, BUT again, it prints,
***** Tcolorizer.load: Loaded color file [C:\Simba\Includes\bonsai\colors\[B]false[/B].xml]
Again, not sure what went wrong, or how to resolve this.
Thanks in advance!
Delete the whole gargoyle file. and set to autodetect again.
From: Nottabot
in 6 hours time I got from 1-35 strength on chickens (40 k xp) is this normal? I'm looking at the chicken coop and there are no players. It just doesn't seem to find the chickens that well. I kill 1 chicken every cpl minutes or so maybe. What am i doing wrong?
It always takes around 5-10 minutes to load and it says Testing colors. Testing 40k good=4 active=4 rejected 970
Then I just sit there looking at cows which i'm training on now. I have it set to auto-detect and i tried setting it for cows, but it still takes just as long to locate a cow and kill it. About 60 seconds on avg in between each kill. Sometime the bot will just simply run off into a corner and it'll start ******Tcolorizer.colorize: tested colors all over again.
EDIT: Now it won't work at all. My character just stands still and nothing happens. No colorizers no nothing. I got a message saying, Unable to log player in, exiting script once or twice after a reset.
Chickens are very small script might be having a hard time getting colors, or the environment might contain
similar colors to the chicken.
Double check your player/army file and srl player setup. make sure everything is in order.
bonsai
2014-12-16 18:43:33
Its not the color file.
There was playerfile update. Check your forms and make sure all the data is showing properly. If it it, I guess I need to swap some stuff in the script.
Cyanempire
2014-12-16 18:47:08
From: bonsai
Its not the color file.
There was playerfile update. Check your forms and make sure all the data is showing properly. If it it, I guess I need to swap some stuff in the script.
Everything is working fine i just tested now. no need to change anything :)
Nottabot
2014-12-16 18:59:00
well i completely uninstalled and reinstalled simba/bonasi fighter and when i open bonsai script and RUN it pops up a window in simba that says bankscreen. and a little orange text says if notself.isSearchOpen then…….[4] pointer; end"at line 2530
Error: operator "NOT" NOT COMPATIBLE WITH "RECORD [0]Pointer
Nottabot
2014-12-16 19:04:31
Cyan, feel free to pm me with some help, Ill pay RS3 gold for help
Cyanempire
2014-12-16 19:07:07
From: Nottabot
Cyan, feel free to pm me with some help, Ill pay RS3 gold for help
Just make sure everything in simba is updated. graphics settings is set
use Direct x, Double check your army file. double check srl player form when
you click play in bonsai fighter, bonsai fighter has an auto updater so
it should always give you the latest version.
xSorrels
2014-12-16 19:18:50
From: Cyanempire
Delete the whole gargoyle file. and set to autodetect again.
Someone cant read…
Tried deleting the 'False' color file and the 'Gargoyle' color file and re-autodetecting, BUT again, it prints,
***** Tcolorizer.load: Loaded color file [C:\Simba\Includes\bonsai\colors\false.xml]
LOL
Ty Bonsai.
Nottabot
2014-12-16 19:56:42
I did everything to the best of my ability, i have extensions enabled: associate.sex srl.sex and extension.sex. Could you possibly skype chat me?
After reinstalling again It won't even open the player manager screen to allow me to enter my player info. I just get more text in a new winow called " bankscreen " and in orange is highlited "if not self.isSearchOpen then "
bonsai
2014-12-16 20:41:28
I posted an update to handle the new order of fields in the playerform.
SRL is still having a bug. If your bankscreen.simba opens when you run it, change the highlighted line to have the parenthesis on the function call like this:
if not self.isSearchOpen() then
Then press ctrl-s to save it.
Nottabot
2014-12-16 20:57:05
do i need to have associate.sex enabled? because when i do i get this error
Extension Disabled - Did not compile
[Error] (14:3): Duplicate identifier 'TCharArray' at line 14
bonsai
2014-12-16 21:14:02
From: Nottabot
in 6 hours time I got from 1-35 strength on chickens (40 k xp) is this normal? I'm looking at the chicken coop and there are no players. It just doesn't seem to find the chickens that well. I kill 1 chicken every cpl minutes or so maybe. What am i doing wrong?
It always takes around 5-10 minutes to load and it says Testing colors. Testing 40k good=4 active=4 rejected 970
Then I just sit there looking at cows which i'm training on now. I have it set to auto-detect and i tried setting it for cows, but it still takes just as long to locate a cow and kill it. About 60 seconds on avg in between each kill. Sometime the bot will just simply run off into a corner and it'll start ******Tcolorizer.colorize: tested colors all over again.
EDIT: Now it won't work at all. My character just stands still and nothing happens. No colorizers no nothing. I got a message saying, Unable to log player in, exiting script once or twice after a reset.
I don't know about chickens but it's not going to work on cows. You have brown that matches the fences and white that matches all the drops. Not the place for the autocoloring.
Try lumbridge dungeon or the stronghold
Nottabot
2014-12-16 21:46:38
Thanks for the script
Nottabot
2014-12-17 01:12:11
how do i prevent my character from running into a wall in the stronghold while he attempts to kill the monsters in the other room?
is there some type of containment diameter i can set? so that the bot will stay inside a circle instead of running everywhere you don't want him to? lol
Cyanempire
2014-12-17 02:03:59
From: Nottabot
how do i prevent my character from running into a wall in the stronghold while he attempts to kill the monsters in the other room?
is there some type of containment diameter i can set? so that the bot will stay inside a circle instead of running everywhere you don't want him to? lol
look for an isolated spot or zoom in so that your screen only has that room in it..
Nottabot
2014-12-17 04:54:13
The script closes out after 15 minutes-50 minutes. Any idea what i'm doing wrong? i read the logs and looked at the screen shots. didn't see anything unique
Cyanempire
2014-12-17 04:56:08
Script terminated: due to low health.
Nottabot
2014-12-17 05:00:12
Sometimes it just randomly goes to my gear tab. any explanation?
xSorrels
2014-12-17 06:49:03
I ran overnight for the past 6 + hours.
Works completely fine for me now.
Try starting from scratch and READ! Step by step.
Ive had both of these problems before…
From: Nottabot
Sometimes it just randomly goes to my gear tab. any explanation?
From: Cyanempire
Script terminated: due to low health.
And they were fixed because I missed something in the setup or instructions.
READ.
Cyanempire
2014-12-17 07:02:12
What are you quoting me for?
j 0n4s
2014-12-17 16:39:32
I can't get it to eat. Working great otherwhise. Yes i have the food at the right button. tryed all of the things but not working.
Nottabot
2014-12-17 20:32:34
I fixed the gear tab from popping up by moving it away from the mini map.
xSorrels
2014-12-17 22:44:00
From: Cyanempire
What are you quoting me for?
Seems like you had an issue with your script terminating due to low health.
Suggested you, along with Nottabot to carefully
READ everything again, thats all.
Nottabot
2014-12-17 23:46:40
Can i somehow have my character bank to grab more food? or is that not possible?
Cyanempire
2014-12-17 23:57:00
From: xSorrels
Seems like you had an issue with your script terminating due to low health.
Suggested you, along with Nottabot to carefully READ everything again, thats all.
well you should have
READ that i didn't and was trying to help nottabot
Nottabot
2014-12-18 03:14:42
I still keep running into a wall while the character tries attacking the monsters behind the doors in the stronghold resulting in my character just staring at a wall instead of attacking the red spideres in the designated room lol
P.S.
I noticed it will sometimes kill a monster then right click attack him as he dies increasing the lag between the right click after death might fix this? I don't know
I noticed restarting the script helps this issue out for about 5 minutes. I am at SW corner fighting in stronghold against rats and zombies same floor as flesh crawlers
this is what it lookslike when i'm attacking a monster in another room I can only zoom my screen so far in.
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
what does this one mean?
Warning! You passed wrong values to a finder function: ys > ye (649,599). Swapping the values for now.
Warning! You passed a wrong ye to a finder function: 649. The client has a height of 600, thus the ye is out of bounds. Setting the value to 599 (h-1) for now.
2 hr 45 min 2 sec(Total) 2 hr 28 min 1 sec(Active) 17 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Giant spider . 690 250.86 279.67 //////////
////////// XP 690 250.86 279.67 //////////
////////// Const XP 230 83.62 93.22 //////////
Nottabot
2014-12-18 05:45:33
From: j 0n4s
I can't get it to eat. Working great otherwhise. Yes i have the food at the right button. tryed all of the things but not working.
Load up the script from the Simba folder
press play (f9)
when you choose your character to run, there is an entry that says food button (pick that) its default is (-).
3Garrett3
2014-12-18 10:16:16
From: Nottabot
Load up the script from the Simba folder
press play (f9)
when you choose your character to run, there is an entry that says food button (pick that) its default is (-).
OH GOD PLEASE STOP DOUBLE POSTING.
Just edit your posts if you have more to add. Someone will eventually get to your concerns.
Bonsai has already told you that the stronghold is not a good spot to train because there are walls. He suggested alternatives for you which include the lumbridge dungeon. I recommend you go to another area.
And no, the script does not bank for more food. You could code it in yourself if you really wanted but it would not be the most simple thing to do because this script has a million different files.
j 0n4s
2014-12-18 11:14:30
Hmm stands in orginal post that = is the defult food button. Tryed - (and some other)and still dont eat food that i have in the bag. Mabey bequce im in the stronghold? (tryed other place to dident work).
bonsai
2014-12-18 11:44:26
From: j 0n4s
Hmm stands in orginal post that = is the defult food button. Tryed - (and some other)and still dont eat food that i have in the bag. Mabey bequce im in the stronghold? (tryed other place to dident work).
I should fix thr form to have = for the default
The program doesnt care what key or slot you use but you have to move the food to a slot and make sure that key matches your form
j 0n4s
2014-12-18 12:39:34
it was simpel as chat config that maked it work. It's not so easy when u havent been on rs for some months, thanks for the help anyway :)
Nottabot
2014-12-18 13:10:25
From: 3Garrett3
OH GOD PLEASE STOP DOUBLE POSTING.
Just edit your posts if you have more to add. Someone will eventually get to your concerns.
Bonsai has already told you that the stronghold is not a good spot to train because there are walls. He suggested alternatives for you which include the lumbridge dungeon. I recommend you go to another area.
And no, the script does not bank for more food. You could code it in yourself if you really wanted but it would not be the most simple thing to do because this script has a million different files.
What are you talking about? I was helping someone out and how come other people are having no problem getting 250k xp per hour at red spiders, but I can't? It doesn't matter i just keep getting this
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: AND REPEAT
3Garrett3
2014-12-18 13:36:45
From: Nottabot
What are you talking about? I was helping someone out and how come other people are having no problem getting 250k xp per hour at red spiders, but I can't? It doesn't matter i just keep getting this
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: AND REPEAT
When I said please don't double post I meant do not post multiple times without someone else posting. It is considered spam here, and you can get in trouble for it. It's also annoying to people who are trying to read through and help you. The edit button is there for a reason.
The typical reason for that error is it isn't actually starting a fight. Are you still trying to fight in the stronghold? Because (again) it isn't recommended because there are walls and the script will attempt to fight outside of the walls, leading to thinking that it starts a fight but it didn't actually.
You should give Bonsai some feedback about what the character is doing when those errors appear. It may be an error that he doesn't know of and can't replicate, but could solve if you told him what the script is actually doing. It's important when trying to debug things like this that you give the most detail that you can.
Ie:
When I start the script, it gets stuck in a loop which says the following (Insert the debug of what is happening). I've noticed that it's hovering over monsters and not clicking, but then the text says it started a fight.
You've only given 1/2 of the required debug information to figure out why this is happening. Remember that the more detail you can write, the better (typically).
It's quite possible that your script is not detecting a fight because your colours are set up wrong. Have you made sure you followed the script setup exactly? Make sure you go through each point and follow it word for word. These are not things that you can gloss over and still do well.
Nottabot
2014-12-18 14:37:39
to my understanding you don't need to adjust anything in the colors set up. Bonsai told me to just click auto-detect. It just starts to fight a monster and after he dies it immediately click on him EVERY single time and theres a lag between the time it kills the next monster. takes me about 7 seconds after every kill for him to "probable miss, did not detect start of fight." i get that over and over again.
///////////////////////////////////////////////////////////////////////////////////////////////////
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 7 hr 42 min 40 sec(Total) 6 hr 51 min 40 sec(Active) 51 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Zombie 1,980 256.77 288.58 //////////
////////// XP 58,806 7,626.02 8,570.78 //////////
////////// Const XP 19,602 2,542.01 2,856.93 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
***** TcombatMgr.attack: Fight initiated
3Garrett3
2014-12-18 14:39:53
From: Nottabot
to my understanding you don't need to adjust anything in the colors set up. Bonsai told me to just click auto-detect.
What I mean is perhaps your RS setting is not correct which is why it isn't detecting that it is in a fight. However, you didn't reply to any of the other information I requested so it's difficult for me to tell you if that's the problem or not.
bonsai
2014-12-18 14:47:01
From: Nottabot
to my understanding you don't need to adjust anything in the colors set up. Bonsai told me to just click auto-detect. It just starts to fight a monster and after he dies it immediately click on him EVERY single time and theres a lag between the time it kills the next monster. takes me about 7 seconds after every kill for him to "probable miss, did not detect start of fight." i get that over and over again.
///////////////////////////////////////////////////////////////////////////////////////////////////
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
snip…
This is enough to work with.
While you are fighting the zombies, do you see the red target circle highlighted with the "star" debug? The double circle with the plus sign lit up yellow?
I'm assuming not.
It tries to avoid the last target by using this info. If it doesn't have it, it often clicks the same npc before he disappears. That's what you are experiencing. It normally happens a little but not enough to be a huge deal.
I posted an update so you should only lose 2.5 seconds instead of 8 if that is happening.
Nottabot
2014-12-18 20:19:25
From: bonsai
This is enough to work with.
While you are fighting the zombies, do you see the red target circle highlighted with the "star" debug? The double circle with the plus sign lit up yellow?
I'm assuming not.
It tries to avoid the last target by using this info. If it doesn't have it, it often clicks the same npc before he disappears. That's what you are experiencing. It normally happens a little but not enough to be a huge deal.
I posted an update so you should only lose 2.5 seconds instead of 8 if that is happening.
Thanks so much for the update! You're as awesome as you are timely!
After i attack a zombie they have a red circle, followed by a yellow innercircle that imeadiately gets selected as they die. The update you just posted made things dramatically different. I still get the same error, but not as often and it's much more bearable. I haven't noticed any yellow stars, just the lockbox on the top left and the letter A on the top right. I have my scroll zoomed in pretty far too because it wants to run through the other door to grab the fleshcrawlers. I'm looking for a new spot now to train so that i can zoom all the way out.
///////////////////////////////////////////////////////////////////////////////////////////////////
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
EDIT::
I just thought I'd let you know that my cursor goes to my atk/str/def xp icons after each kill, some times a little too often. It'll go up there a lot. Is this an anti ban feature? because it's a little too much lol might need to only do it every 60 seconds or so and mines doing it like every 10 seconds at least.
*****
xSorrels
2014-12-18 23:24:42
From: Cyanempire
well you should have READ that i didn't and was trying to help nottabot
I did
READ it, and didnt realize you were speaking directly to him, hence non existent quote.
Sorry.
victordono
2014-12-19 04:32:27
Doesnt seem to identify whether it starts a fight or not when i try auto detecting shadows in elf city
***** Tcolorizer.colorize: Reached our goal of 10 good colors.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
I think im just gonna add that its really buggy on the shadows in elf city :P
bonsai
2014-12-19 04:53:03
From: victordono
Doesnt seem to identify whether it starts a fight or not when i try auto detecting shadows in elf city
***** Tcolorizer.colorize: Reached our goal of 10 good colors.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
I think im just gonna add that its really buggy on the shadows in elf city :P
It's not detecting the gold lock on your combat popup.
Is the popup coming up? Is the lock showing? Mine are "unlocked" but I think this was tested both ways.
You didn't drag the popup off of the mainscreen, did you? It only looks on the mainscreen.
You can try increasing the tolerance by editing simbadir/includes/bonsai/blcombat.simba line 1010:
setDTMTol(_combatGoldLockDTM, 20);
Try 25 or 30 and see if it starts working.
victordono
2014-12-19 05:56:04
From: bonsai
It's not detecting the gold lock on your combat popup.
Is the popup coming up? Is the lock showing? Mine are "unlocked" but I think this was tested both ways.
You didn't drag the popup off of the mainscreen, did you? It only looks on the mainscreen.
You can try increasing the tolerance by editing simbadir/includes/bonsai/blcombat.simba line 1010:
setDTMTol(_combatGoldLockDTM, 20);
Try 25 or 30 and see if it starts working.
the popup im assuming is the monsters stats ( hp and weakness ) is in the corner of the screen although there is one thing though, in elf city there are the buffs also in the corner and they overlap
bonsai
2014-12-19 07:05:52
From: victordono
the popup im assuming is the monsters stats ( hp and weakness ) is in the corner of the screen although there is one thing though, in elf city there are the buffs also in the corner and they overlap
Get that combat popup somewhere visible on the mainscreen without overlap and it will probably start working a heck of a lot better.
joemejiav
2014-12-19 23:44:33
Hey man, for some reason this update broke the script for me
I tried NPC: Auto Detect/motion detect/Hellhound( hellhounds downloaded from the google link on the first post, saved under C:\Simba\Includes\bonsai\colors)
Still doesn't work
It gets stuck at (Finding NPC)
So to make it work I tried to find the an older version.
I know nothing about code or scripting but I found your pastebin.
You didn't have older versions there, so I had to get the google cached versions of your pastebins from December 2
I cross referenced the version numbers from live and cache, and copied the december 2 versions changing their version numbers so that the auto updater wouldn't mess with them.
And no update seemed to happen under the simba compiler when run.
WHOEVER
It still isn't working, it tests about 300 colors and then just throws and error on simba, and "Attempting to find npc" on the RS client
Any help would be appreciated!
I tried reinstalling and reupdating simba/ and reinstalling and reupdating your script to no avail
Thanks!
Cyanempire
2014-12-20 00:39:51
From: joemejiav
Hey man, for some reason this update broke the script for me
I tried NPC: Auto Detect/motion detect/Hellhound( hellhounds downloaded from the google link on the first post, saved under C:\Simba\Includes\bonsai\colors)
Still doesn't work
It gets stuck at (Finding NPC)
So to make it work I tried to find the an older version.
I know nothing about code or scripting but I found your pastebin.
You didn't have older versions there, so I had to get the google cached versions of your pastebins from December 2
I cross referenced the version numbers from live and cache, and copied the december 2 versions changing their version numbers so that the auto updater wouldn't mess with them.
And no update seemed to happen under the simba compiler when run.
WHOEVER
It still isn't working, it tests about 300 colors and then just throws and error on simba, and "Attempting to find npc" on the RS client
Any help would be appreciated!
I tried reinstalling and reupdating simba/ and reinstalling and reupdating your script to no avail
Thanks!
delete old color file, or if you see a color file named false delete it
then re-run and do auto detect again.
Nottabot
2014-12-20 02:55:10
I've been getting this, sometimes it's really bad though and just tests colors for like 30 rotations.
I also noticed that it will consistently target the lvl 15 spiders over the lvl 39 spiders in the stronghold lol.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** TcombatMgr.attack: Fight initiated
bonsai
2014-12-20 03:41:12
From: Nottabot
I've been getting this, sometimes it's really bad though and just tests colors for like 30 rotations.
I also noticed that it will consistently target the lvl 15 spiders over the lvl 39 spiders in the stronghold lol.
The first time you color an npc, it will find 10 colors to work with then start fighting.
While it has less than 20 colors, it should color for 5 seconds in between fights (more or less). After 20 colors it should color infrequently.
So you're not finding enough good colors. Maybe try them zoomed in a little to get more detail. If you do, move your old color file out of the way and make a new one. (simbadir/includes/bonsai/colors)
It will end up targeting both spiders; it finds anything attackable. If it's leaning towards the 15s that is what "good" colors you found so far.
NOTE: An update to SRL reverted the form changes from the other day. If you are getting errors, update SRL and the script.
Cyanempire
2014-12-20 04:54:36
Will post a progress soon. Seems flawless as of now running 2hrs+
Runs very well at fire giants. 10hour run but forgot to copy the proggy because I shut my laptop off
joemejiav
2014-12-20 10:00:24
I finally fixed it… GOSH MAN!
FEEDBACK!!!!!
YOU NEED TO MAKE SURE THAT UNDER GRAPHICS>CUSTOM
MOUSE OVER TEXT IS ON!!!!!!!!!!!!!!!!
perhaps it would be helpful if you specify this in the main post.
THanks anyways for the help
taylar
2014-12-20 11:05:36
From: uhit
Runs very well at fire giants. 10hour run but forgot to copy the proggy because I shut my laptop off
What lvl are your combat stats and was this all with one inventory of food?
From: taylar
What lvl are your combat stats and was this all with one inventory of food?
I has guthans with crap stats. Guthans lets me stay pretty much anywhere indefinitely
taylar
2014-12-20 11:48:18
I am between a rock and a hard place. Firstly the script is awesome its just that it would be optimal if it actually used my sgs special. I absolutely cannont get it to work even when assigning the key and i have tried using manual abilities and revolution. Anyone throw me a tip? If i can get it to use my sgs i'll be golden.
Edit: It uses the sgs just about when i have my "eat food" health percentage set. Is there a way to make it use it more often so health is normally always higher?
Nottabot
2014-12-21 17:33:18
Just updated, now i've gotten this, which is a new debug for me. Also, the red virtual mouse button just keeps circling around looking for a lvl 15 spider to kill and ignores the Giant level spiders. Anything I can do to fix this? I don't know if it means anytthing but everyonce in a while i kill a lvl 15 spider and he gets a red star of david around him. I don't get the yellow circle inside of the red circle as much either, but i have spent 3 days training on lvl 15 spiders lol. I feel like i should've gotten more than 1 mil xp in the past 3 days lol. other than that the script is a god send. Keep up the good work. Thanks for your time
** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (3491398)
***** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (3754570)
***** Tcolorizer.updateTrials: moving (3557189) active -> successful
***** Tcolorizer.updateTrials: moving (3227969) active -> successful
***** Tcolorizer.updateTrials: moving (3359555) active -> successful
***** Tcolorizer.updateTrials: moving (3689033) active -> successful
***** Tcolorizer.updateTrials: moving (3096126) active -> successful
***** Tcolorizer.updateTrials: moving (3161919) active -> successful
***** Tcolorizer.updateTrials: moving (2766904) active -> successful
***** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (2638145)
***** Tcolorizer.colorize: Reached our goal of 10 good colors.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (3093556)
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.updateTrials: moving (2440508) active -> successful
***** Tcolorizer.colorize: Reached our goal of 11 good colors.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (2898490)
***** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (3030075)
edit: after watching the script run for about 15 minutes, it did start killing giant spiders more often than it seemed. It just tends to go on a lvl 15 spider rant for like 5 minutes at a time or so.
Lipcot
2014-12-21 17:52:45
From: Nottabot
Just updated, now i've gotten this, which is a new debug for me. Also, the red virtual mouse button just keeps circling around looking for a lvl 15 spider to kill and ignores the Giant level spiders. Anything I can do to fix this? I don't know if it means anytthing but everyonce in a while i kill a lvl 15 spider and he gets a red star of david around him. I don't get the yellow circle inside of the red circle as much either, but i have spent 3 days training on lvl 15 spiders lol. I feel like i should've gotten more than 1 mil xp in the past 3 days lol. other than that the script is a god send. Keep up the good work. Thanks for your time
** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (3491398)
***** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (3754570)
***** Tcolorizer.updateTrials: moving (3557189) active -> successful
***** Tcolorizer.updateTrials: moving (3227969) active -> successful
***** Tcolorizer.updateTrials: moving (3359555) active -> successful
***** Tcolorizer.updateTrials: moving (3689033) active -> successful
***** Tcolorizer.updateTrials: moving (3096126) active -> successful
***** Tcolorizer.updateTrials: moving (3161919) active -> successful
***** Tcolorizer.updateTrials: moving (2766904) active -> successful
***** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (2638145)
***** Tcolorizer.colorize: Reached our goal of 10 good colors.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (3093556)
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.updateTrials: moving (2440508) active -> successful
***** Tcolorizer.colorize: Reached our goal of 11 good colors.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (2898490)
***** Tcolorizer.updatePointCount: Warning - Updating blacklisted color (3030075)
edit: after watching the script run for about 15 minutes, it did start killing giant spiders more often than it seemed. It just tends to go on a lvl 15 spider rant for like 5 minutes at a time or so.
i think thats because the script grabs colours automatically, so the first minutes it'll be slower because its grabbing them, and then when it has a lot of succesfull colours it'll start running smoothly
xxgamerxx
2014-12-21 19:16:46
So should i delete all color files since update. It works flawlessly in a previous spot due to already having colors. But for spiders, fire giants, moss giants, and others it does not detect an NPC.
Edit: the above worked. Now back to working on a looter. Awesome work on this btw bonsai.
Cyanempire
2014-12-21 19:42:08
From: xxgamerxx
So should i delete all color files since update. It works flawlessly in a previous spot due to already having colors. But for spiders, fire giants, moss giants, and others it does not detect an NPC.
Edit: the above worked. Now back to working on a looter. Awesome work on this btw bonsai.
it should work fine. maybe they are a higher level from you. thats why an attack uptext isnt showing.
xxgamerxx
2014-12-21 21:47:11
From: Cyanempire
it should work fine. maybe they are a higher level from you. thats why an attack uptext isnt showing.
Nope they are a few levels lower. Just the update was calling one of the color documents always vs creating a new one for new spots. Atleast thats what i assume since deleting all old ones solved my provlems.
Cyanempire
2014-12-21 21:54:49
Then you couldve at least tried that first before posting a problem here.
bonsai
2014-12-21 23:21:54
From: xxgamerxx
So should i delete all color files since update. It works flawlessly in a previous spot due to already having colors. But for spiders, fire giants, moss giants, and others it does not detect an NPC.
Edit: the above worked. Now back to working on a looter. Awesome work on this btw bonsai.
Thanks for the nice words and glad you got your issue sorted.
The program will always use a color file if it finds one. So even if you pick autodetect, if it finds golblins and it has a goblin file, it will use it.
Sounds like the game update may have tweaked colors enough to make your old file ineffective. Were those downloads from the google drive or files you colored up yourself?
If people are seeing a lot of thrashing when it's finding the npc; I would suggest doing as you did. Move the old color file out of the way and let it try a new one.
bonsai
2014-12-21 23:35:03
From: Nottabot
Just updated, now i've gotten this, which is a new debug for me. Also, the red virtual mouse button just keeps circling around looking for a lvl 15 spider to kill and ignores the Giant level spiders. Anything I can do to fix this? I don't know if it means anytthing but everyonce in a while i kill a lvl 15 spider and he gets a red star of david around him. I don't get the yellow circle inside of the red circle as much either, but i have spent 3 days training on lvl 15 spiders lol. I feel like i should've gotten more than 1 mil xp in the past 3 days lol. other than that the script is a god send. Keep up the good work. Thanks for your time
The star of david debugging should
always show around the npc you are fighting (the one with the red targeting circle around it). If you can see the red combat circles but
do not see the star debug on it, please report it with a screenshot.
It kind of sounds like you're saying you had been fighting the spiders before, but it recolored them on this run. The output looks like a fresh coloring job.
One way this can happen is if the uptext gets corrupted. You can look in your color folder, sometimes the npc name gets messed up and you have to fix it or delete.
Colors are stores in SIMBADIR/includes/bonsai/colors
Nottabot
2014-12-21 23:42:21
From: undorak7
i think thats because the script grabs colours automatically, so the first minutes it'll be slower because its grabbing them, and then when it has a lot of succesfull colours it'll start running smoothly
I think this might be what i'm experiencing for the most part. It tends to work better after a cpl hours of play time.
xxgamerxx
2014-12-22 07:23:30
From: bonsai
Thanks for the nice words and glad you got your issue sorted.
The program will always use a color file if it finds one. So even if you pick autodetect, if it finds golblins and it has a goblin file, it will use it.
Sounds like the game update may have tweaked colors enough to make your old file ineffective. Were those downloads from the google drive or files you colored up yourself?
If people are seeing a lot of thrashing when it's finding the npc; I would suggest doing as you did. Move the old color file out of the way and let it try a new one.
It was auto loading the true file i believe and never detected a NPC and would attack anything. These were generated based on my own spots/monsters. So i just deleted all old files, restarted and havent had an issue since. This script has gained me from 1/1/1 to 85/85/85 thus far. One quedtion i do have and cant seem to locate it is how would i increase the timer if monsters are spread. At times it'll attack one and think it missed and begin attacking another resulting in extra dmg. Pascal is new to me so starting to learn. Havent quite got the looting down, even close yet :P. No banking just looting nats, arrows, etc etc.
Nottabot
2014-12-22 15:44:19
I really wish they'd fix simba. It keeps logging my email/password in as a login ID. and leaves the password field blank. "Failing to login". Kind of annoying when your bot takes regular breaks. Mine shut off about 2 hours into my sleep.
Cyanempire
2014-12-22 18:19:04
From: Nottabot
I really wish they'd fix simba. It keeps logging my email/password in as a login ID. and leaves the password field blank. "Failing to login". Kind of annoying when your bot takes regular breaks. Mine shut off about 2 hours into my sleep.
Its not simba. its the lag you experience.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 2 hr 42 min 53 sec(Total) 2 hr 42 min 53 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// ankou 1,136 418.43 418.43 //////////
////////// XP 135,979.2 50,086.58 50,086.58 //////////
////////// Const XP 45,326.4 16,695.53 16,695.53 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
bonsai
2014-12-22 18:38:31
From: Cyanempire
Its not simba. its the lag you experience.
Me, too. I'm always getting borked on login. I need to look at that function and see how to slow it down a little.
Someone posted a fix on another thread and I didn't grab it.
Nottabot
2014-12-22 21:41:29
How come my status report looks like this and Cyanempire's adds up his total xp and says the monster name instead of true. Mine seems to be a bit different lol. Also Sometimes i'll get the status report every 2-3 minutes.
In regards to my password being entered after my login ID due to possible lag, that just doesn't make sense. At one point it entered my user name as "username*******@domain.com" (***=password). Why would lag cause my password to be entered in the middle of my login ID.
batMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 5 hr 55 min 0 sec(Total) 5 hr 21 min 0 sec(Active) 34 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// True 2,400 405.62 448.59 //////////
////////// XP 2,400 405.62 448.59 //////////
////////// Const XP 800 135.21 149.53 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** antiBan [move off client and sleep]
bonsai
2014-12-23 02:18:51
From: Nottabot
How come my status report looks like this
You didn't delete the bad color file from the other day named "true". It also looks like you chose that as the npc to fight from the menu.
Since it doesn't know how many xp a "true" is it can't do much :)
Nottabot
2014-12-23 03:32:52
I have it set for auto-detect. If I delete "true" will it mess up my xp per hour? It should make it better right?
Cyanempire
2014-12-23 03:55:58
you just delete the "true" file color. it has no effect on xp per hour. it
just fixes the progress report.
Nottabot
2014-12-23 04:31:02
Removed only the True color file and my bot stopped working. I had to remove all color files. Now, the only color file that has been created by the bot was, drum roll….."True" LOL.
bonsai
2014-12-23 05:15:33
From: Nottabot
Removed only the True color file and my bot stopped working. I had to remove all color files. Now, the only color file that has been created by the bot was, drum roll….."True" LOL.
Sounds like your SRL did not get updated.
bonsai
2014-12-24 01:04:10
From: taylar
I am between a rock and a hard place. Firstly the script is awesome its just that it would be optimal if it actually used my sgs special. I absolutely cannont get it to work even when assigning the key and i have tried using manual abilities and revolution. Anyone throw me a tip? If i can get it to use my sgs i'll be golden.
Edit: It uses the sgs just about when i have my "eat food" health percentage set. Is there a way to make it use it more often so health is normally always higher?
Sorry, missed this in the confusion. The form has "when to eat". if you set it to 80, you'll eat when you get under 80%
bonsai
2014-12-24 01:08:58
From: xxgamerxx
One quedtion i do have and cant seem to locate it is how would i increase the timer if monsters are spread. At times it'll attack one and think it missed and begin attacking another resulting in extra dmg. Pascal is new to me so starting to learn. Havent quite got the looting down, even close yet :P. No banking just looting nats, arrows, etc etc.
Grotworms :)
Sorry so late on the response… you can change SIMBADIR/includes/bonsai/blCombat.simba line 601:
until found or (tmr.getTime() > randomRange(6500,8000));
8000 is 8 seconds. Increase as you like.
AttilaBilly
2014-12-24 18:40:03

love this script thanks
Nottabot
2014-12-25 03:31:12
For somereason my character won't search for another monster to fight, he'll sit in one spot and log out after 8 minutes without pressing the mini map like it used too. Any changes in the script that would cause this?
bonsai
2014-12-25 03:51:59
From: Nottabot
For somereason my character won't search for another monster to fight, he'll sit in one spot and log out after 8 minutes without pressing the mini map like it used too. Any changes in the script that would cause this?
There's an option on the form for whether or not to move around looking for things. Is it selected?
More detailed reports would be helpful; there's not much to work with there. I don't even know which NPC you were fighting.
A screenshot is great. If the script quits out it saves a snap in SIMBADIR/includes/srl-6/logs
The script generally prints some information in the simba debug area. What was there?
I have to admit, most of my testing has just been in places where there's an endless supply of things to whack. I rely upon the users for a lot of the unusual cases.
taylar
2014-12-25 21:30:29
Is there anyway to make the script pick up certain items like charms?
Cyanempire
2014-12-25 21:47:35
From: taylar
Is there anyway to make the script pick up certain items like charms?
make a script to loot items.
joemejiav
2014-12-27 12:27:38
1-90 Attack Achieved
1-99 Strength Achieved
1-70 Defense Achieved
johnjoseph09
2014-12-29 03:09:18
Would these work for slayer tasks? IE: I keep the player at the slayer monster, would it work anywhere ?
Cyanempire
2014-12-29 03:32:39
From: johnjoseph09
Would these work for slayer tasks? IE: I keep the player at the slayer monster, would it work anywhere ?
Slayer tasks give you certain monsters to kill
auto detecting that monster would work. i dont see any reason for it not to.
nutta124
2014-12-29 16:10:00
got every melee related skills to 99 using this script.
I've never manually level my skills.
100% bottted all to 99
currently on my way to 99 range
[ATTACH=CONFIG]24683[/ATTACH]
ayzee5793
2014-12-29 16:11:27
Just got my second 99, defence with this script! Tried to get screenshot but computer messed up. Thanks bonsai!
Efurious
2014-12-30 14:31:53
99 ranged reporting in, works like a charm, thank you. Doing especially well with Charming Imp ;-)
Theron
2014-12-30 14:37:10
From: bonsai
There's an option on the form for whether or not to move around looking for things. Is it selected?
More detailed reports would be helpful; there's not much to work with there. I don't even know which NPC you were fighting.
A screenshot is great. If the script quits out it saves a snap in SIMBADIR/includes/srl-6/logs
The script generally prints some information in the simba debug area. What was there?
I have to admit, most of my testing has just been in places where there's an endless supply of things to whack. I rely upon the users for a lot of the unusual cases.
I'm a little unclear on how to setup this script to loot items, could you give me a quick example and i'm sure i could figure the rest out. I would really appreciate it. This script is exceptional by the way, very impressed.
bonsai
2014-12-30 16:39:58
From: Theron
I'm a little unclear on how to setup this script to loot items, could you give me a quick example and i'm sure i could figure the rest out. I would really appreciate it. This script is exceptional by the way, very impressed.
It doesn't have any support for picking up drops but you can use things like a charming imp to some items
Theron
2014-12-30 17:42:05
From: Cyanempire
make a script to loot items.
From: bonsai
It doesn't have any support for picking up drops but you can use things like a charming imp to some items
that's the only option?
EDIT: does anyone have working ankou colors they could attach? the one in the OP is outdated and i can't get the autodetection to work.
Does this script use Rejuvenation? I have it setup to use manual abilities and it's the only ultimate attack on my actionbar. I also use food and I have it setup to manually to pick abilities. I think I did it right, but it doesn't use it.
http://gyazo.com/80bf9b0a2875320a002e59facb86d4afhttp://gyazo.com/4376ed6f38040a04e583d725ed4c77b4
Audrius462
2015-01-01 11:14:26
What could be the problem ? Bot do nothing , just stand … In another acc , work perfect .
[ATTACH=CONFIG]24692[/ATTACH]
Now i know , My cmbt level was to low …
KeepBotting
2015-01-01 11:49:33
From: Audrius462
What could be the problem ? Bot do nothing , just stand … In another acc , work perfect .
[ATTACH=CONFIG]24692[/ATTACH]
The transparency on your interfaces is wrong, it needs to be at the lowest setting (no transparency, completely opaque)
Codeine
2015-01-02 01:48:11
Trying it out on Trolls right now.
EDIT: Seems to kill one then go back to detecting colors why is that?
Cyanempire
2015-01-02 03:59:43
From: Codeine
Trying it out on Trolls right now.
EDIT: Seems to kill one then go back to detecting colors why is that?
it has not completed getting 10 good colors yet. just wait till it does.
its normal.
xxgamerxx
2015-01-03 12:15:03
From: bonsai
Grotworms :)
Sorry so late on the response… you can change SIMBADIR/includes/bonsai/blCombat.simba line 601:
until found or (tmr.getTime() > randomRange(6500,8000));
8000 is 8 seconds. Increase as you like.
Hey no worries, I haven't been home to check myself :)
Will play around with this and see if I can get it to be more efficient for my spot selection. Again I really appreciate this script release :spot:
Snorflake
2015-01-04 00:36:35
Ok i've got an access violation in blCombat here
bonsai
2015-01-04 05:26:04
From: Snorflake
Ok i've got an access violation in blCombat here
Whoops, sorry about that!
More details would help me find the root cause. That's some old code so you hit an edge case the rest of us don't hit.
What were you fighting? Was it the first fight?
Probably too late to get any more output from the simba debug window but there may be a screenshot in SIMBADIR\includes\SRL-6\logs
The name of the color file it made may be of interest too (SIMBADIR\includes\bonsai\colors).
Snorflake
2015-01-04 06:45:09
From: bonsai
Whoops, sorry about that!
More details would help me find the root cause. That's some old code so you hit an edge case the rest of us don't hit.
What were you fighting? Was it the first fight?
Probably too late to get any more output from the simba debug window but there may be a screenshot in SIMBADIR\includes\SRL-6\logs
The name of the color file it made may be of interest too (SIMBADIR\includes\bonsai\colors).
Yes that was the first fight, the colour file had not been created.
There isnt anything usefull in the logs file either, sorry.
EDIT: Do you have skype? Im sure i could help more on there.
xxgamerxx
2015-01-04 14:53:49
I may show my noob here, or possibly just missed reading, but what is the SGS key for? And for ultimate ability support it needs to be manual = true correct?
taylar
2015-01-04 15:57:07
Just got 99 attack last night. Also 90 str and 90 def. Thanks so much
Xeroslayer
2015-01-04 21:40:00
Interesting & useful script going to have to test this out tomorrow. :spot:
KeepBotting
2015-01-04 21:50:45
Using this for the first time, works like an absolute beast but with two minor annoyances:
- When clicking, it sometimes takes a bit to run to the npc and attack. During this lapse, the script will occasionally time out and go search for another fight. This can get hairy when fighting higher-level monsters like deadly red spiders or hellhounds, as two or more will be attacking you at the same time.
- Not all of the combat detectors work. It doesn't really matter because it detects combat flawlessly, but my indicator only ever looks like
this.
Here's a bit of a proggy for you:
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 1 hr 33 min 5 sec(Total) 1 hr 33 min 5 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Deadly red spid 405 261.03 261.03 //////////
////////// XP 153,819 99,138.02 99,138.02 //////////
////////// Const XP 51,273 33,046.01 33,046.01 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Again, these are only minor hiccups that affect very little. This is an amazing script, I hope to be able to post a longer proggy in the future.
If changing the setup options is the fix to either of these, my apoligies & feel free to ignore this post - I'll figure it out eventually :)
Thanks a ton!
bonsai
2015-01-04 22:25:09
From: KeepBotting
Using this for the first time, works like an absolute beast but with two minor annoyances:
- When clicking, it sometimes takes a bit to run to the npc and attack. During this lapse, the script will occasionally time out and go search for another fight. This can get hairy when fighting higher-level monsters like deadly red spiders or hellhounds, as two or more will be attacking you at the same time.
- Not all of the combat detectors work. It doesn't really matter because it detects combat flawlessly, but my indicator only ever looks like this.
Again, these are only minor hiccups that affect very little. This is an amazing script, I hope to be able to post a longer proggy in the future.
If changing the setup options is the fix to either of these, my apoligies & feel free to ignore this post - I'll figure it out eventually :)
Thanks a ton!
To increase the fight start 'patience', you can change SIMBADIR/includes/bonsai/blCombat.simba (line 601?):
until found or (tmr.getTime() > randomRange(6500,8000));
It should probably be an option, but there's getting to be too many to manage on the simple form :)
Re: the detectors: since they changed the way the popups work a month or so back a simple gold lock detector is good enough. You should see those other two on the top row light up during combat, though. They are the health and adrenaline bar over the player. They won't light up if obscured by too much animation but they should kick in and out.
The unlit one on the the bottom is the yellow circle of someone attacking you. I need to rework that function. And the death one is just during the red flash.
As I said, all pretty worthless now except the red target circle, which is working for you there. It's helpful to avoid the last fight and that's how it locates it.
Theron
2015-01-05 01:05:53
@bonsai If I set this script to manually select abilities and I have rejuvenate as my last ability in my ability bar, will it use it when adrenaline reaches 100%?
SlipperyPickle
2015-01-08 06:09:59
This script is just the best! Not a really good proggy, but not bad considering the low levels on the account. Somehow XP doesn't get logged when fighting giant spiders.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 2 hr 30 min 31 sec(Total) 2 hr 13 min 31 sec(Active) 17 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// giant-spider 803 320.07 360.82 //////////
////////// XP 803 320.07 360.82 //////////
////////// Const XP 267.67 106.69 120.27 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
bonsai
2015-01-08 15:31:03
From: Theron
@bonsai If I set this script to manually select abilities and I have rejuvenate as my last ability in my ability bar, will it use it when adrenaline reaches 100%?
I can't see why it wouldn't. The ones it would not work on are where you need to push them, wait, then push them again.
I searched the thread but the only mention was someone implying it was not working :(
Let me know…
Edit: I just noticed your earlier post on this and it sure looks set up ok. We may need to edit simbadir/includes/bonsai/blCombat.simba and uncomment the writeln around line 457 in _doAbilites(). The SRL function getAbilityCooldown() is a little odd sometimes, maybe it returns 100 on that one instead of the 1 it returns on the others.
bonsai
2015-01-08 15:37:59
From: xxgamerxx
I may show my noob here, or possibly just missed reading, but what is the SGS key for? And for ultimate ability support it needs to be manual = true correct?
Saradomin godsword. People use that instead of food. You drag the (sword / ability) to the toolbar 10/11/12 slot and tell the script which key is assigned to that slot.
It uses that to heal before food.
TotalMassacre
2015-01-08 19:40:45
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 4 hr 18 min 24 sec(Total) 3 hr 54 min 24 sec(Active) 24 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Corpse Spider 3,639 844.97 931.49 //////////
////////// XP 90,611.1 21,039.77 23,194.1 //////////
////////// Const XP 30,203.7 7,013.26 7,731.37 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Just a trial of sorts, everything worked perfectly. Thanks a lot :)
TotalMassacre
2015-01-10 07:49:11
Another small proggy
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 8 hr 53 min 42 sec(Total) 8 hr 17 min 42 sec(Active) 36 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Corpse Spider 7,840 881.37 945.12 //////////
////////// XP 195,216 21,946.13 23,533.57 //////////
////////// Const XP 65,072 7,315.38 7,844.52 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
TotalMassacre
2015-01-11 07:18:43
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 12 hr 42 min 12 sec(Total) 11 hr 42 min 12 sec(Active) 1 hr 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Ogre 4,365 343.6 372.96 //////////
////////// XP 950,697 74,836.91 81,231.32 //////////
////////// Const XP 316,899 24,945.64 27,077.11 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
SlipperyPickle
2015-01-11 15:52:59
I wanted to use this script on hellhounds. But my combat is lower that 92. I believe the script doesn't run because you don't get a mouseover text when the combat of the monster is higher. Is there a way to solve this? Or do I have to train for higher combat first?
Thanks in advance
Suisyola
2015-01-12 14:19:23
Hey Bonsai! I've been using your script for little bit now and I'm loving it. Went 70-77 magic yesterday on my ironman.
I'm going through runes like crazy since I don't have a infinite air rune staff good enough for mid-high lvl monsters.
If you don't mind I need help modifying the script a little bit. I need to add a PressKey(49); Wait(25+Random(1200)); before the bot does a find next target -> rightclick -> attack. This will curb 99% of my rune usage. Where should I be adding this in the includes? Thanks so much for any advice.
bonsai
2015-01-12 16:56:08
From: Suisyola
Hey Bonsai! I've been using your script for little bit now and I'm loving it. Went 70-77 magic yesterday on my ironman.
I'm going through runes like crazy since I don't have a infinite air rune staff good enough for mid-high lvl monsters.
If you don't mind I need help modifying the script a little bit. I need to add a PressKey(49); Wait(25+Random(1200)); before the bot does a find next target -> rightclick -> attack. This will curb 99% of my rune usage. Where should I be adding this in the includes? Thanks so much for any advice.
Can you explain what you're trying to do in runescape terms? key 49 is a '1', correct? Are you trying to activate something with a hotkey?
To answer your question, you would want to call your function after each kill, around line 885 in simbadir\includes\bonsai\blCombat.simba
bonsai
2015-01-12 17:04:29
From: Suikerwafel
I wanted to use this script on hellhounds. But my combat is lower that 92. I believe the script doesn't run because you don't get a mouseover text when the combat of the monster is higher. Is there a way to solve this?
No, sorry, it needs the mouseover text.
Cyanempire has uploaded a decent selection of color files to the google drive, maybe something else in there is suitable.
Anyone with suggestions or color files with a lot of burn-in, please do share!
KeepBotting
2015-01-12 17:17:29
From: bonsai
No, sorry, it needs the mouseover text.
Cyanempire has uploaded a decent selection of color files to the google drive, maybe something else in there is suitable.
Anyone with suggestions or color files with a lot of burn-in, please do share!
Here's one for Giant spiders (level 3 of the Stronghold of Security). It's got 20+ hours on it.
This one is for Lesser demons (Karamja volcano), slightly less time, 15-17 hours.
@Cyanempire;
Suisyola
2015-01-12 17:27:12
Oh yeah, it seems in Revolution mode you can make the game use no runes as long as you prequeue an ability before you start combat. I'm going to prequeue one of 3 abilities before initiating combat to cut rune usage down and use down to a minimum while adding basic antiban simply by activating Thresholds while using Revolution. Oh it also doesn't matter if you prequeue an ability that is currently on cooldown when you start combat, the game won't charge you any runes so long as you simply have an ability queued before initiating combat. Going through 1k runes every 30 min on an Ironman acct is painful lol.
I also plan on changing sendKeys(combatMgr.foodKey, 250, 40); ~line 490 to use regenerate hotkey and wait. Will make filling up with food unnecessary for the mobs I'm fighting. I'm killing stuff that drains my inv of food in like 20min, so not afkable otherwise. Food is much smarter if killing easier or harder stuff. I suspect I'll end up regenerating once every 6 enemies or so.
Thanks for using a really friendly naming scheme. This script you made is literally gold.
SlipperyPickle
2015-01-13 02:46:30
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 7 hr 40 min 27 sec(Total) 6 hr 10 min 27 sec(Active) 1 hr 30 min 0 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// lesser-demon 1,622 211.36 262.7 //////////
////////// XP 1,622 211.36 262.7 //////////
////////// Const XP 540.67 70.45 87.57 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Very nice! Could have run much longer, just had to use my laptop again :P
Suisyola
2015-01-13 17:29:43
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 4 hr 36 min 58 sec(Total) 4 hr 36 min 58 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Fungal mage 1,350 292.45 292.45 //////////
////////// XP 314,685 68,169.29 68,169.29 //////////
////////// Const XP 104,895 22,723.1 22,723.1 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 2 hr 47 min 46 sec(Total) 2 hr 47 min 46 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Fungal mage 796 284.67 284.67 //////////
////////// XP 185,547.6 66,356.28 66,356.28 //////////
////////// Const XP 61,849.2 22,118.76 22,118.76 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
TotalMassacre
2015-01-15 12:29:05
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 4 hr 2 min 40 sec(Total) 4 hr 2 min 40 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Fire giant 1,035 255.9 255.9 //////////
////////// XP 418,243.5 103,409.64 103,409.64 //////////
////////// Const XP 139,414.5 34,469.88 34,469.88 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Works amazingly with Guthan's at fire giants! Only stopped it to compare the exp rates with hell hounds. This is 60-69 str.
Would be happy to upload my fire giant color file if anyone is interested. Thanks again bonsai.
Cyanempire
2015-01-16 18:21:15
I have updated the color bank
added a few common slayer tasks assignments
***************
Banshee
Basilisk
Cave Crawler
Dust devil
Ice Warrior
Lesser Demon
Mature Grotworm
Moss Giant
Vampyre
GooseG
2015-01-17 21:17:06
I've had multiple runs with over 2,000 fire giant kills, but I keep closing the script before pulling the proggy. Do they get backed up anywhere?
nero_dante
2015-01-18 05:17:46
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 15 hr 3 min 49 sec(Total) 13 hr 21 min 49 sec(Active) 1 hr 42 min 0 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
The kills didnt show in the proggy for some reason, but, oh well… Thats what I got. Very nice indeed. I was at warped cockroaches. Those pesky small guys at beginning of game :)
nero_dante
2015-01-18 05:24:55
I found a proggy from like 13hours on my one and it had the kills. which were over 2500. However, the xp/hr and xp gained were not right at all. It was saying that I was only gaining 1xp for each kill.. Is there somewhere that I am meant to place the xp that I'm getting from each kill?
bonsai
2015-01-18 06:06:55
From: nero_dante
I found a proggy from like 13hours on my one and it had the kills. which were over 2500. However, the xp/hr and xp gained were not right at all. It was saying that I was only gaining 1xp for each kill.. Is there somewhere that I am meant to place the xp that I'm getting from each kill?
It's not you, I need to look at that lookup code again. I think it's messing up NPCs with spaces in the name.
I think the info people are interested in is how many kills/hour at different NPCs so they can see what might be decent to fight.
I like to see that it runs so long although I cringe every time you guys post one :)
nero_dante
2015-01-18 07:49:03
From: bonsai
It's not you, I need to look at that lookup code again. I think it's messing up NPCs with spaces in the name.
I think the info people are interested in is how many kills/hour at different NPCs so they can see what might be decent to fight.
I like to see that it runs so long although I cringe every time you guys post one :)
Well at warped cockroaches, I think i get about 150 kills an hour. Sometimes it fails to spot some for a good minute or so. But I just pretend its taking a mini break ;)
BadIdea
2015-01-19 12:29:29
Hi Bonsai, this is a great script and it runs well for me. However, I am noticing that the script does not move the camera at all in my case. This not only makes it look like I'm clearly botting, but prevents the script from finding more monsters. Have I set something up incorrectly?
taylar
2015-01-20 11:18:40
I have officially maxed all melee stats to 99 with this script!! Now i just have to figure out a safe area that i can use range and mage for that will allow me to last long. I am going to miss having the sgs to heal me.
Cyanempire
2015-01-20 18:19:09
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 9 hr 3 min 56 sec(Total) 8 hr 46 min 56 sec(Active) 17 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// ankou 4,110 453.36 467.98 //////////
////////// XP 491,967 54,266.89 56,017.65 //////////
////////// Const XP 163,989 18,088.96 18,672.55 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
TotalMassacre
2015-01-21 06:21:04
From: taylar
I have officially maxed all melee stats to 99 with this script!! Now i just have to figure out a safe area that i can use range and mage for that will allow me to last long. I am going to miss having the sgs to heal me.
Yea, does anybody have any ideas for range/mage? I've been doing King Lathas' ogres, but hopefully there is a better option.
Sinix
2015-01-21 22:02:21
Finally reached 99 in attack, strength, and defence (as well as HP) tonight via this script.
[ATTACH=CONFIG]24848[/ATTACH]
Thank you again for such a stable script.
Question: Has anyone modified the original version to include a looting function for charms?
Cheers! :)
bonsai
2015-01-21 23:36:39
From: BadIdea
Hi Bonsai, this is a great script and it runs well for me. However, I am noticing that the script does not move the camera at all in my case. This not only makes it look like I'm clearly botting, but prevents the script from finding more monsters. Have I set something up incorrectly?
Did you choose the option in the form to "move if not finding"? If so, it should try some rotation/moving when it can't locate an NPC.
Wreckssauce
2015-01-22 12:54:11
am i doing something wrong? kinda confused
[ATTACH=CONFIG]24857[/ATTACH]
KeepBotting
2015-01-22 12:59:46
From: Wreckssauce
am i doing something wrong? kinda confused
[ATTACH=CONFIG]24857[/ATTACH]
Run the installer, let it download bonsai's includes. If you've already done that, navigate to C:\Simba\Includes\bonsai\ and verify their existence.
BadIdea
2015-01-22 12:59:46
From: bonsai
Did you choose the option in the form to "move if not finding"? If so, it should try some rotation/moving when it can't locate an NPC.
I use that option, and notice that when it cannot find an NPC it moves, and moves the camera as well. However, I was wondering if it is supposed to move the camera every once in a while even if an NPC is not found? I have watched the script perform and noticed that it does not move the camera at all, unless it cannot find an NPC, which may show up as suspicious to Jagex if one is playing for an hour straight, without moving the camera every once in a while.
Wreckssauce
2015-01-22 13:14:53
From: KeepBotting
Run the installer, let it download bonsai's includes. If you've already done that, navigate to C:\Simba\Includes\bonsai\ and verify their existence.
yup they are there but nothing in colors folder
ok i downloaded colors from google drive and the error stopped. Thanks
KeepBotting
2015-01-22 13:17:19
From: Wreckssauce
yup they are there but nothing in colors folder
Nothing in the colors folder is normal, the script will create files there as it runs.
Restart Simba and open bonsaiFighter.simba located in C:\Simba\Scripts\, it should look like this:
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
{ bonsaiFighter.simba }
{ Written by: bonsai }
{ Date Last Modified: 2014/10 }
{ }
{ Don't freak out because the script is short, press run! }
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
program bonsaiFighter;
{$DEFINE DEBUG_ON}
{$DEFINE SMART}
{$DEFINE ONSCREENGRAPHICS}
{$include_once bonsai/blCombat.simba}
{$f-}
begin
combatMgr.doMain();
end.
{_____________________________________________________________________}
{=====================================================================}
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
{ blUpdater.simba - this makes the updater happy leave it here }
Run it and see what happens.
Wreckssauce
2015-01-22 13:26:38
it's working now somehow when i put the colors files into the folder. It's killing chickens now, but at a snails pace.
KeepBotting
2015-01-22 13:28:35
From: Wreckssauce
it's working now somehow when i put the colors files into the folder. It's killing chickens now, but at a snails pace.
It'll speed up as it gathers more and more colors :) glad to hear you got it working
Theron
2015-01-24 13:29:24
From: KeepBotting
It'll speed up as it gathers more and more colors :) glad to hear you got it working
Where are you botting Fire Giants at? I heard chaos tunnels has a high ban rate, did i hear correctly? Just got back to P2P yesterday.
wowgnomes
2015-01-24 18:25:36
Can anyone reccomend a place for a lvl 50ish no defense pure to train? So far I've just been using the security stronghold place, but it isn't as fast as it could be..P2P or F2P are both fine
SlipperyPickle
2015-01-24 19:09:05
From: wowgnomes
Can anyone reccomend a place for a lvl 50ish no defense pure to train? So far I've just been using the security stronghold place, but it isn't as fast as it could be..P2P or F2P are both fine
I used this script on ankous until I was able to go to lesser demons. And now I'm using this script on deadly red spiders.
Theron
2015-01-25 00:54:05
From: wowgnomes
Can anyone reccomend a place for a lvl 50ish no defense pure to train? So far I've just been using the security stronghold place, but it isn't as fast as it could be..P2P or F2P are both fine
Having 1 defense makes training really constrictive. I would recommend the Giant Rat pit in Varrock or the Corpse Spiders in the Lumbridge Catacombs. You must complete the Blood Pact quest in order to gain access to it, but you have the option to destroy the reward lamp at the end so you do not gain the 100exp defence experience and ruin your pure. Hope this helps. Best of luck.
Wreckssauce
2015-01-25 05:06:06
great script, it doesn't attack flesh crawlers for what ever reason but i will get a progress report on here soon.
TotalMassacre
2015-01-25 08:46:15
From: Theron
Where are you botting Fire Giants at? I heard chaos tunnels has a high ban rate, did i hear correctly? Just got back to P2P yesterday.
I've done a lot of AFK chaos tunnel fire giants with Guthan's (leaving it on overnight several times as well), and you barely even see anyone there. So I can't imagine it has a "high ban rate" but that's just my experience. There's always waterfall dungeon if you think that would be safer.
bonsai
2015-01-25 10:39:55
From: TotalMassacre
I've done a lot of AFK chaos tunnel fire giants with Guthan's (leaving it on overnight several times as well), and you barely even see anyone there. So I can't imagine it has a "high ban rate" but that's just my experience. There's always waterfall dungeon if you think that would be safer.
I worry about bans. Let's be honest… this script is super ban-worthy when coloring and does little to hide itself when fighting.
But there's only been one (two?) reported ban and that was on a heavily botted account with other scripts involved.
I've run coloring stuff many times for long periods; no bans. Basic fighting XP seems low on the priority list (so far).
As far as I can tell the new script was downloaded around 200 times and ran about 8000. Cyanempire and myself are probably 2500 of those :)
TotalMassacre
2015-01-25 14:33:52
From: bonsai
I worry about bans. Let's be honest… this script is super ban-worthy when coloring and does little to hide itself when fighting.
But there's only been one (two?) reported ban and that was on a heavily botted account with other scripts involved.
I've run coloring stuff many times for long periods; no bans. Basic fighting XP seems low on the priority list (so far).
As far as I can tell the new script was downloaded around 200 times and ran about 8000. Cyanempire and myself are probably 2500 of those :)
Sure, the movements it makes when coloring probably aren't even possible by a human. And anyone can see when you have 2 monsters attacking you, yet you choose to attack a different one that's like 10 spots away, you most likely aren't human. I was just referring to his suspicion that specifically chaos tunnel fire giants are a high ban rate area. I don't have the authority to answer that, I was simply offering my personal experience. Do mods visit chaos tunnels looking for bots more than other areas? I don't know. But the fact that you have programmed the best combat script, and in over a year of operation you have 1, maybe 2 bans, that's something that I'm willing to work with. We all take a risk when choosing to run a script, but your track record is damn good. Sorry if I'm blabbering I've had a couple winter lagers today :spot: And as always, thank you for your work, because you make my runescape experience enjoyable.
Theron
2015-01-26 12:57:06
From: bonsai
I worry about bans. Let's be honest… this script is super ban-worthy when coloring and does little to hide itself when fighting.
But there's only been one (two?) reported ban and that was on a heavily botted account with other scripts involved.
I've run coloring stuff many times for long periods; no bans. Basic fighting XP seems low on the priority list (so far).
As far as I can tell the new script was downloaded around 200 times and ran about 8000. Cyanempire and myself are probably 2500 of those :)
Hey
@bonsai, loving the script. Easily obtained 800k combat experience in the past two days purely from this script. It's quick, efficient, and is absolutely experience oriented, which I love. I read on page 7 that you thought adding potions might be the next addition for this, but that was quite awhile back and I was curious if that was still something you were considering. Of course using potions can have a great impact on getting more experience faster. Thanks again for this amazing script, I am really looking forward to starting to using potions if the addition would be possible without too much work on your part and getting 75 attack to use my SGS, can you say
XP GAINZ?
Also, I just read that the SGS also can heal your prayer points, possibly a quick prayer option when you reach a certain prayer point percentage? Just a thought and I would love your opinion if this would be possible.
giavanni6
2015-01-26 18:07:10
From: bonsai
I worry about bans. Let's be honest… this script is super ban-worthy when coloring and does little to hide itself when fighting.
But there's only been one (two?) reported ban and that was on a heavily botted account with other scripts involved.
I've run coloring stuff many times for long periods; no bans. Basic fighting XP seems low on the priority list (so far).
As far as I can tell the new script was downloaded around 200 times and ran about 8000. Cyanempire and myself are probably 2500 of those :)
I also worry about the bans due to the inhuman movements it makes. However as you stated it doesn't appear that many people have been banned using this script whatsoever, this astounds me considering the obvious patterns it makes. I've been running the script on my main for about two days now, 3-5hours a session. No ban yet.
fridaynitelights
2015-01-27 06:27:48
Just wanted to get the word out. I just got banned on 2 accounts, one of which had only used this script. The script was run 10+ hours per day on both accs, and both were perms.
TotalMassacre
2015-01-27 07:45:19
From: fridaynitelights
Just wanted to get the word out. I just got banned on 2 accounts, one of which had only used this script. The script was run 10+ hours per day on both accs, and both were perms.
Can you give more details? Location you were botting, stats, account age, etc.
TotalMassacre
2015-01-27 10:13:02
Could anyone be so kind as to describe their SGS setup? I've tried on revolution and full manual. In full manual it just wont use the key whether i put it in slot 1 or at the end of my skills. In revolution mode, my key is set up correctly (-) but it seems to prioritize eating, no matter where my eat at X% setting is put.
Thank you as always bonsai, and thank you to Note for his mighty banshee post a couple months ago.
I would imagine it has to do with the procedure defaultHealthCheck, but as others have said, it would be nice to set it so it uses SGS at let's say 80% health, and then eat food at say 50% as a failsafe. This would save your food for only when you really need it, and also by using the SGS key more frequently you could leave prayer on. From the looks of it I guess that would require a new variable (healthPercentToSgsAt? :D)
EDIT: However as an experiment, I put healthPercentToEatAt at 95%, and took no food with me. This leads to using the SGS key a lot, thereby letting one leave a prayer on (I chose incredible reflexes for now), leading to a noticable improvement in xp/hour. So far I haven't gone under about 80% health, and 60% prayer or so. Naturally, put a ring of life on in case anything goes wrong.
Also, it's probably not you, but congratulations :D

EDIT 2: Okay I think this little experiment has answered my question. By setting food at 95% and having no food in inventory I was able to stay at mighty banshees for a 6 hour shift with no food. I also left incredible reflexes on and it never ran out of prayer.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 5 hr 52 min 24 sec(Total) 5 hr 52 min 24 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Mighty banshee 2,325 395.85 395.85 //////////
////////// XP 762,367.5 129,800.26 129,800.26 //////////
////////// Const XP 254,122.5 43,266.75 43,266.75 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
BadIdea
2015-01-29 16:53:54
From: fridaynitelights
Just wanted to get the word out. I just got banned on 2 accounts, one of which had only used this script. The script was run 10+ hours per day on both accs, and both were perms.
10+ hours per day is kind of reckless man. You're asking to be banned.
ckbbe
2015-01-29 17:30:36
Hmm ..it doesnt show any problems,signs in but doesnt choose world or click play now.. ?
bonsai
2015-01-29 17:31:46
From: fridaynitelights
Just wanted to get the word out. I just got banned on 2 accounts, one of which had only used this script. The script was run 10+ hours per day on both accs, and both were perms.
From: TotalMassacre
Can you give more details? Location you were botting, stats, account age, etc.
First off, sorry to hear that. I would also be interested in any more details you want to share.
From: TotalMassacre
I would imagine it has to do with the procedure defaultHealthCheck, but as others have said, it would be nice to set it so it uses SGS at let's say 80% health, and then eat food at say 50% as a failsafe. This would save your food for only when you really need it, and also by using the SGS key more frequently you could leave prayer on. From the looks of it I guess that would require a new variable (healthPercentToSgsAt? :D)
Good ideas… I'll try to remember when I put in some coding time.
I would also like to do some potion/prayer support but that's a bigger project.
Cyanempire
2015-01-29 18:24:53
With all the lag happening in Rs right now could be messing up scripts.
Theron
2015-01-29 21:36:36
From: Theron
Hey @bonsai, loving the script. Easily obtained 800k combat experience in the past two days purely from this script. It's quick, efficient, and is absolutely experience oriented, which I love. I read on page 7 that you thought adding potions might be the next addition for this, but that was quite awhile back and I was curious if that was still something you were considering. Of course using potions can have a great impact on getting more experience faster. Thanks again for this amazing script, I am really looking forward to starting to using potions if the addition would be possible without too much work on your part and getting 75 attack to use my SGS, can you say XP GAINZ?
Also, I just read that the SGS also can heal your prayer points, possibly a quick prayer option when you reach a certain prayer point percentage? Just a thought and I would love your opinion if this would be possible.
@bonsai
scar_operater
2015-01-29 23:08:02
Hey Bonsai, is it easy for you to add item support just for rare items over a certain value?
SlipperyPickle
2015-01-31 12:39:37
From: TotalMassacre
I would imagine it has to do with the procedure defaultHealthCheck, but as others have said, it would be nice to set it so it uses SGS at let's say 80% health, and then eat food at say 50% as a failsafe. This would save your food for only when you really need it, and also by using the SGS key more frequently you could leave prayer on. From the looks of it I guess that would require a new variable (healthPercentToSgsAt? :D)
You can change it yourself. If you navigate to Simba/Includes/bonsai open "blCombat.simba". Now go to line 482 to 490. Here you can change the percentage when you eat and use sgs.
if ((actionbar.getHPPercent() < 95) and
(combatMgr.sgsKey <> '') and (actionbar.getAdrenalinePercent() > 50)) then
begin
sendKeys(combatMgr.sgsKey, 250, 40);
exit;
end;
if (actionbar.getHPPercent() < 60) then
sendKeys(combatMgr.foodKey, 250, 40);
This changes it to using the SGS when health is 95% and eats when you get below 60%.
Theron
2015-01-31 22:20:39
Why don't I get experience per hour on some monsters? Sometimes it just shows kills per hour.
ex:
http://gyazo.com/7017079072abacdba1afb89e68f0caa1
giavanni6
2015-02-01 12:48:33
There's lots of different ways to loot items, it's actually pretty complex to differentiate between items as well. Use the fighter as an include to handle combat and write your own looting procedure to go with it, that's what I'm trying to do right now for my first script.
Sawyer
2015-02-01 15:32:48
Bonsai,
When I am running this script, it accurately finds the moving npcs, but never attacks any. I am unsure as to the reason for this. It will just not attack.
SlipperyPickle
2015-02-01 15:39:39
From: Sawyer
Bonsai,
When I am running this script, it accurately finds the moving npcs, but never attacks any. I am unsure as to the reason for this. It will just not attack.
Has the npc a higher combat level? Bacause thats nog supported (no mouseover text)
Sawyer
2015-02-01 15:57:41
No, it is a lower combat level.
From: SlipperyPickle
Has the npc a higher combat level? Bacause thats nog supported (no mouseover text)
nero_dante
2015-02-02 02:57:07
hey, It uses all ultimate abilities, but it barely ever uses rejuvenation, is there a reason behind this? should I tell the bot to uses sgs spec, but put rejuvenation there instead?
Sawyer
2015-02-02 20:56:41
How long does the autodetect method usually take to acquire colors? I have had it collecting colors for a while with no progress.
recs7168
2015-02-02 21:08:39
Banked 99 summoning with this at waterfiends. Almost no hiccups.
Only issue I had was that there was no distinction between available waterfiends and waterfiends already being fought by others.
Thank you!
Sawyer
2015-02-02 21:16:31
From: recs7168
Banked 99 summoning with this at waterfiends. Almost no hiccups.
Only issue I had was that there was no distinction between available waterfiends and waterfiends already being fought by others.
Thank you!
Did you use this as an include for a private script, or just add a looting function?
Theron
2015-02-02 22:39:31
From: Sawyer
Did you use this as an include for a private script, or just add a looting function?
I would assume charming imp.
Cyanempire
2015-02-03 00:29:02
Hmm encountered this recently SGS key not working? had it set on key 6.
some suggestions would be on sgs usage
1. Use it auto when 50% adrenaline is achieved
2. Use it after 100% adrenaline.
Tristana
2015-02-03 01:19:01
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 12 hr 31 min 33 sec(Total) 12 hr 31 min 33 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Fire giant 3,514 280.54 280.54 //////////
////////// XP 1,420,007.4 113,365.4 113,365.4 //////////
////////// Const XP 473,335.8 37,788.47 37,788.47 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Works flawlessly at fire giants. Thanks :)
nero_dante
2015-02-03 09:26:16
I'm gettign same thing as cyan, the SGS just doesnt use it. I have tried putting in the key to press for it, and I have also just left it to use it manually. Not sure hy it doesn't work.
Theron
2015-02-03 12:17:56
////////// Script runtime: //////////
////////// 9 hr 28 min 34 sec(Total) 9 hr 8 min 34 sec(Active) 20 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// fire-giant 2,354 248.41 257.46 //////////
////////// XP 2,354 248.41 257.46 //////////
////////// Const XP 784.67 82.8 85.82 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Nice little proggy
nero_dante
2015-02-04 04:02:57
works brilliant at ankous
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 10 hr 30 sec(Total) 9 hr 43 min 30 sec(Active) 17 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// ankou 4,485 448.12 461.18 //////////
////////// XP 536,854.5 53,640.52 55,203.33 //////////
////////// Const XP 178,951.5 17,880.17 18,401.11 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Cyanempire
2015-02-04 04:37:22
Next time you post a progress report
go advanced and use report tags so it looks good :)
From: nero_dante
hey, It uses all ultimate abilities, but it barely ever uses rejuvenation, is there a reason behind this? should I tell the bot to uses sgs spec, but put rejuvenation there instead?
It's very possible that the rejuvenation ability suffers a similar bug with guthix's blessing, the icon may look like it's always on cooldown due to the way part of it is darkened (probably top middle-leftish). This means that simba never actually thinks that rejuvenate comes off cooldown. When I was trying to use this with guthix's blessing I just tied the use of that skill to death's switftness (another ult) so that it would always try to use guthix's blessing's key first before swiftness.
Enigmatic
2015-02-04 13:26:16
Died using this script lost 6M and that was all I had don't have money to do shit now..
Happy scripting people!
EDIT:
Also lost my TokKul-Zo which requires quite some farming time at Tzhaar city to get 50k TokKul and recharge it! :D
BadIdea
2015-02-04 13:36:53
From: Enigmatic
Died using this script lost 6M and that was all I had don't have money to do shit now..
Happy scripting people!
EDIT:
Also lost my TokKul-Zo which requires quite some farming time at Tzhaar city to get 50k TokKul and recharge it! :D
This script logs you out when you reach a certain health, and eats. I'm imagining you either set something up wrong, or were at a place with aggressive monsters?
Enigmatic
2015-02-04 13:52:57
From: BadIdea
This script logs you out when you reach a certain health, and eats. I'm imagining you either set something up wrong, or were at a place with aggressive monsters?
Nope, I checked it before I left and it was fully functioning, ate as well.
Anyway maybe it was just this time, I was at waterfiends maybe it ran over to green dragons or something.
Just act with care.
Taric
2015-02-04 14:15:07
From: Enigmatic
Nope, I checked it before I left and it was fully functioning, ate as well.
Anyway maybe it was just this time, I was at waterfiends maybe it ran over to green dragons or something.
Just act with care.
Did you have a multi target spell on your action bar? If so, it probably hit one of the green dragons.
The Mayor
2015-02-04 14:18:07
Guys what should I train on with 60 att/str/def/ that doesn't require much food? P2P
Taric
2015-02-04 14:22:30
From: The Mayor
Guys what should I train on with 60 att/str/def/ that doesn't require much food? P2P
Nothing but slayer tower?
Or fire giants. Fire giants are wonderful.
Enigmatic
2015-02-04 15:03:23
From: pizzapants
Did you have a multi target spell on your action bar? If so, it probably hit one of the green dragons.
Nope no multi-hit skills that's why it's so strange, also I was not even close to the dragons.
Poor life ftw!
Not to mention Clarity Altar doesn't work so I have 5.8k Babydragon bones in my bank and I am doing it manually now slow speed ftw.
Theron
2015-02-04 15:34:17
From: The Mayor
Guys what should I train on with 60 att/str/def/ that doesn't require much food? P2P
i used moss giants at chaos tunnels until 75 attack for sgs and 70 defense for full bandos. now at fire giants.
bonsai
2015-02-04 16:28:39
From: Enigmatic
Nope, I checked it before I left and it was fully functioning, ate as well.
Anyway maybe it was just this time, I was at waterfiends maybe it ran over to green dragons or something.
Just act with care.
Sorry to hear you died!
The last time I killed myself it was because I didn't have the "logout when exiting" checkbox checked on the form. I usually leave it unchecked and start/stop the script a lot.
No one's complained about swarming for a while, but that can be a big cause.
There's always a chance of dying. It doesn't let you log out during a fight. If one fight can deplete your food and kill you off it can happen.
Don't bring anything you don't need and use a ring of life.
bonsai
2015-02-04 16:32:25
From: The Mayor
Guys what should I train on with 60 att/str/def/ that doesn't require much food? P2P
Everyone's giving you better answers than I can but take a look at the example in the OP.
You can pop out custom 'walk to bank / fight' scripts pretty fast.
The Mayor
2015-02-04 16:37:48
From: bonsai
Everyone's giving you better answers than I can but take a look at the example in the OP.
You can pop out custom 'walk to bank / fight' scripts pretty fast.
I guess Moss giants might be the way to go. I need to make a ring of life before I run it though, as it's my HC ironman and I can't die.
bonsai
2015-02-04 16:42:30
From: Sawyer
How long does the autodetect method usually take to acquire colors? I have had it collecting colors for a while with no progress.
It's pretty random and some npcs don't color well.
It wants to get 10 colors before it starts fighting. You can change that on line 25 of SIMBADIR\includes\bonsai\blNpc.simba
It continues coloring in between fights (less and less over time) until it has 50 colors. SIMBADIR\includes\bonsai\blCombat.cimba 897-912?
Enigmatic
2015-02-04 18:46:31
From: bonsai
Sorry to hear you died!
The last time I killed myself it was because I didn't have the "logout when exiting" checkbox checked on the form. I usually leave it unchecked and start/stop the script a lot.
No one's complained about swarming for a while, but that can be a big cause.
There's always a chance of dying. It doesn't let you log out during a fight. If one fight can deplete your food and kill you off it can happen.
Don't bring anything you don't need and use a ring of life.
Hehe yeah it does sometimes fight multiple enemies because of the script not detecting the last fight being active.
Anyways I had everything checked sadly couldn't see what killed me.
I got my TokKul-Zo back and recharged which is nice quite a grind tho.
Anyways I hope that this happens to nobody else but there is always a risk right.
And also there is no way the mob could have killed me off with 20% hp.
Sawyer
2015-02-04 19:33:53
From: bonsai
It's pretty random and some npcs don't color well.
It wants to get 10 colors before it starts fighting. You can change that on line 25 of SIMBADIR\includes\bonsai\blNpc.simba
It continues coloring in between fights (less and less over time) until it has 50 colors. SIMBADIR\includes\bonsai\blCombat.cimba 897-912?
Thanks Bonsai. It's an excellent script that has been giving no problems once it gets the colors.
Cyanempire
2015-02-04 20:07:31
From: The Mayor
I guess Moss giants might be the way to go. I need to make a ring of life before I run it though, as it's my HC ironman and I can't die.
Try Ankous/Mighty Banshees
nero_dante
2015-02-04 20:12:42
From: The Mayor
Guys what should I train on with 60 att/str/def/ that doesn't require much food? P2P
I would suggest the giant spiders in the security stronghold until 70 att then use sara godsword and kill ankous. ankous are about 50-60k/hr in the combat stat and then an extra like 18-25k/he in hp…. Giant spiders gave me i believe about 30-40k/hr in the combat stat. the bot doesn't recognize monsters with names so the xp/hr doesn't show.
Plus with the sara godsword you can stay there indefinitetly. I showed a proggy yesterday of i think 11hours at them, I then left it on longer and it got to i think 15 hours or so.. then i went to play legit for a bit.
nero_dante
2015-02-04 20:16:37
From: Cyanempire
Next time you post a progress report
go advanced and use report tags so it looks good :)
I don't know how to do that lol. or should i say I don;'t know what you mean.
nero_dante
2015-02-04 20:18:21
From: J_R
It's very possible that the rejuvenation ability suffers a similar bug with guthix's blessing, the icon may look like it's always on cooldown due to the way part of it is darkened (probably top middle-leftish). This means that simba never actually thinks that rejuvenate comes off cooldown. When I was trying to use this with guthix's blessing I just tied the use of that skill to death's switftness (another ult) so that it would always try to use guthix's blessing's key first before swiftness.
That may be it actually. Luckily the monsters that I'm fighting now only do very minimal damage. So when it finally gets round to using rejuvenation it heals me nicely and barely ever has to use the food :)
TransicK
2015-02-05 05:26:59
Looking forward to testing this out tonight! Will post my progress report in the morning if everything goes without issues.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 6 hr 7 min 25 sec(Total) 6 hr 7 min 25 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// goblin 3,446 562.72 562.72 //////////
////////// XP 97,177.2 15,868.63 15,868.63 //////////
////////// Const XP 32,392.4 5,289.54 5,289.54 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Script worked exceptionally well. Will post more as I go along.
Sajon
2015-02-05 19:30:24
best script iv used so far on simba very flawless at waterfends
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 50 min 37 sec(Total) 50 min 37 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// waterfiend 140 165.91 165.91 //////////
////////// XP 124,488 147,530.21 147,530.21 //////////
////////// Const XP 41,496 49,176.74 49,176.74 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Theron
2015-02-05 22:09:16
6 hour logged and when I logged back in the action bar was minimized. It couldn't use the sgs special to heal and kept killing fire Giants until I died. Maybe a check to make sure action bar is maximized? First time this has happened.
TotalMassacre
2015-02-06 10:09:59
From: Theron
6 hour logged and when I logged back in the action bar was minimized. It couldn't use the sgs special to heal and kept killing fire Giants until I died. Maybe a check to make sure action bar is maximized? First time this has happened.
I would think it's generally a good idea to lock your interfaces/action bar when you're not babysitting. Sorry for your bad luck. I haven't encountered this issue before.
theholyone
2015-02-06 19:42:16
going to try my luck with this script at poking chickens tonight =P
Tristana
2015-02-08 23:07:34
Heres a quick proggy.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 8 hr 33 min 48 sec(Total) 8 hr 33 min 48 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Fire giant 2,430 283.76 283.76 //////////
////////// XP 981,963 114,669.08 114,669.08 //////////
////////// Const XP 327,321 38,223.03 38,223.03 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
mylastregret
2015-02-09 21:05:59
Can This essentially use b2p tablets?
Cyanempire
2015-02-10 07:32:07
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 23 hr 33 min 43 sec(Total) 22 hr 42 min 43 sec(Active) 51 min 0 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// ankou 10,460 443.94 460.55 //////////
////////// XP 10,460 443.94 460.55 //////////
////////// Const XP 3,486.67 147.98 153.52 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
best prog ever?.
giavanni6
2015-02-10 16:39:51
From: mylastregret
Can This essentially use b2p tablets?
If you use the fighting portion as an include and create your own script, then yes. Or you can just modify it.
mylastregret
2015-02-10 17:00:47
ya it would be nice. I could use guthans at hell hounds.
Neva Banned
2015-02-10 23:04:14
Is there some special settings for waterfiends I have used the presets and then tried autodetect and still haven't been able to get it to work.
BenJerrySon
2015-02-10 23:39:35
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// deadly-red-spid 1,575 255.47 269.31 //////////
////////// XP 1,575 255.47 269.31 //////////
////////// Const XP 525 85.16 89.77 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Tried a few different loot procedures but I could never get them to compile. Anyone have a link to a script that has a good example, or and thread with an explanation of a basic looting procedure?
BenJerrySon
2015-02-10 23:41:22
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// deadly-red-spid 1,575 255.47 269.31 //////////
////////// XP 1,575 255.47 269.31 //////////
////////// Const XP 525 85.16 89.77 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Anyone have a link to a thread that explains looting procedures, or a script with a good example of one. I tried a few different methods but could never get it to compile :/
BenJerrySon
2015-02-10 23:43:08
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// deadly-red-spid 1,575 255.47 269.31 //////////
////////// XP 1,575 255.47 269.31 //////////
////////// Const XP 525 85.16 89.77 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Anyone have a link to a thread that explains looting procedures, or a script with a good example of one. I tried a few different methods but could never get it to compile :/
Having trouble posting replies to this thread as well, perhaps my internet connection :P
Thomas
2015-02-11 02:25:07
From: SlipperyPickle
You can change it yourself. If you navigate to Simba/Includes/bonsai open "blCombat.simba". Now go to line 482 to 490. Here you can change the percentage when you eat and use sgs.
if ((actionbar.getHPPercent() < 95) and
(combatMgr.sgsKey <> '') and (actionbar.getAdrenalinePercent() > 50)) then
begin
sendKeys(combatMgr.sgsKey, 250, 40);
exit;
end;
if (actionbar.getHPPercent() < 60) then
sendKeys(combatMgr.foodKey, 250, 40);
This changes it to using the SGS when health is 95% and eats when you get below 60%.
One can add the use of berserk ability and prayer this way.
I know how to add berserk by using the food key for that, but how would I code activering pray if enough pray points? And if pray isn't active? What is the command for that? Or how could I find that?
Thomas
2015-02-11 05:53:38
Added berserk ability :)
But Break variance seems to be broken Again, but ill have to confirm that later.
Seems that it lowers it with 1sec, so milisec multiplier is probably messed up.
*edit*
Found the fix again somewhere back on p22.
I assumed the update got pushed but suppose it wasnt.
Either way its still a solid script, got me about 60m melee xp so far on various accounts.
Always at firegiants, but might try the script elsewere.
Banshee or waterfiends perhaps :)
Sinix
2015-02-11 07:12:29
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 16 hr 33 min 22 sec(Total) 16 hr 13 min 22 sec(Active) 20 min 0 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// deadly-red-spid 6,720 405.89 414.23 //////////
////////// XP 6,720 405.89 414.23 //////////
////////// Const XP 2,240 135.3 138.08 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
BenJerrySon
2015-02-11 23:21:19
Here's a proggy for the day.
Still trying to figure out support for pickng up charms.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 5 hr 12 min 6 sec(Total) 4 hr 34 min 6 sec(Active) 38 min 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// deadly-red-spid 1,435 275.87 314.12 //////////
////////// XP 1,435 275.87 314.12 //////////
////////// Const XP 478.33 91.96 104.71 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
asianfishy
2015-02-12 02:53:58
great success with greater demons. running a shield w/ rejuvenate hotkeyed to SGS. uses food rarely and can run 24+ hours no problem. i have 80+ def and 80+ range
Thomas
2015-02-14 08:06:26
What location do others use for deadly red spiders?
None of them seem optimal?
SlipperyPickle
2015-02-14 08:25:39
From: lovebotter
What location do others use for deadly red spiders?
None of them seem optimal?
Varrock Sewers worked pretty good for me!
Efurious
2015-02-14 09:25:32
99 Magic and ranged reporting in. Worked well at shadow warriors.
destinyxx
2015-02-16 16:14:58
Awesome script I'm trying out different places for melee
BenJerrySon
2015-02-17 15:18:02
From: SlipperyPickle
Varrock Sewers worked pretty good for me!
Chaos tunnels is also good. Only problems is when it clicks the spiders a little to slow and hits the teleport pad my accident. Other then that, pretty great and high density location.
Vanish
2015-02-19 00:28:56
Very nice script I tried it, was confusing at first not going to lie but I got the hang of it very nice script!
bonsai
2015-02-19 16:26:28
From: Vanish
Very nice script I tried it, was confusing at first not going to lie but I got the hang of it very nice script!
That's great feedback. I could use some details to try to improve it for the next guy.
Were there specific things that were unclear?
Thanks!
Vanish
2015-02-19 16:32:03
From: bonsai
That's great feedback. I could use some details to try to improve it for the next guy.
Were there specific things that were unclear?
Thanks!
Nothing really specific just me being dumb and not understanding it at first… I would just make sure they understand to just go to the spot where they want it to train also, I think making it loot and bank would make it x100 times better it's already a great script… Just a suggestion :D
giavanni6
2015-02-19 19:16:57
From: Vanish
Nothing really specific just me being dumb and not understanding it at first… I would just make sure they understand to just go to the spot where they want it to train also, I think making it loot and bank would make it x100 times better it's already a great script… Just a suggestion :D
I'm pretty sure that he has no desire to add looting/banking so that people will be forced to learn how to do it themselves.
Figure out a way to create an interface for individual users to add their own itemlists to pick up, add the fighter as an include and setup a modular SPS system and you then have an AIO fighter/looter/banker.
Zuxorra
2015-02-20 17:00:23
I have a problem, it logs me in but after a while (ingame) it's stuck at Booting up and after a minute or two i get an error that says "Unable to log player in, exiting script", take notice that i'm already logged in
Hitac
2015-02-22 08:56:26
In the end of the script post you have a link that brings to some files with the name of certain monsters. I assume that is used to avoid using the auto-detect mode of the script but how can you add those files to the script? Because i want to fight corpse spiders, i downloaded the file but know i don't know where to put that. Can you help me?
SlipperyPickle
2015-02-22 09:00:25
From: srpronto
In the end of the script post you have a link that brings to some files with the name of certain monsters. I assume that is used to avoid using the auto-detect mode of the script but how can you add those files to the script? Because i want to fight corpse spiders, i downloaded the file but know i don't know where to put that. Can you help me?
Add them here:
\Simba\Includes\bonsai\colors
Hitac
2015-02-22 09:15:12
From: SlipperyPickle
Add them here:
\Simba\Includes\bonsai\colors
Thanks, Does anybody have a troll chuckers, troll shamans or troll brutes file?
Theron
2015-02-22 16:09:09
got me 99 defence over bxp, thanks Bonsai :D
SirPrize
2015-02-22 17:54:13
There any places where this doesnt run well or does it work pretty much everywhere?
KeepBotting
2015-02-22 17:55:41
From: SirPrize
There any places where this doesnt run well or does it work pretty much everywhere?
Areas where monsters are very similiar to their surroundings can present problems. Flesh crawlers would be an example of a location I've had some issues with, in such a situation the script will give up two or three times before it can compile a working color profile.
But yeah, it works everywhere.
SirPrize
2015-02-22 18:15:51
From: KeepBotting
Areas where monsters are very similiar to their surroundings can present problems. Flesh crawlers would be an example of a location I've had some issues with, in such a situation the script will give up two or three times before it can compile a working color profile.
But yeah, it works everywhere.
okay thanks :D
Sinix
2015-02-22 18:19:57
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 14 hr 28 min 14 sec(Total) 14 hr 8 min 14 sec(Active) 20 min 0 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// waterfiend 2,910 201.1 205.84 //////////
////////// XP 2,587,572 178,816.39 183,032.67 //////////
////////// Const XP 862,524 59,605.46 61,010.89 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
lachieeeeeee
2015-02-24 04:19:04
Great Script!! Thanks! Will get around to a proggy soon :P
sekirei
2015-02-26 21:17:10
Amazing script! I managed to code in a looter now just need the banker :)
I'm sorry everyone, especially to bonsai, since you're a good and experienced script writer, but after three of my accounts were banned within the last few days (which used multiple scripts, not just this one), I decided to conduct a test to see if this script is the most ban-prone at the moment.
After deleting the jagex cache, I kept creating accounts, while reducing the amount of different scripts used for every account. For the last two new accounts, I only used this script. Before the bans on those last two, the amount of time that they lasted was two days.
IP flagging was definitely not an issue, because accounts of players that are IP flagged never last for more than an hour (my lifespan was two days for the last two; for the ones before those, it was much longer).
In addition, I have never gold-farmed, not even on previous accounts, and I didn't use any other bot client besides Simba; the location my last two accounts were banned in was Lumbridge Catacombs. Breaks were used.
This could lead to two conclusions: either Lumbridge Catacombs are heavily watched, or this script is easily detectable (which does not exclude the possibility that Simba client itself might be detected). This script has problems, as of now, and these include the constant choice to click on the minimap after almost every kill, and an inability to find an npc, when those npcs are super visible, which causes the script to rotate the cam stubbornly (for a minute at least). I'll add that all of the graphics settings used were correct.
Thanks for reading. If anyone has a counter-argument to prove that I'm still doing something wrong, please use it, I would like to learn.
KeepBotting
2015-02-26 22:37:27
From: Atom
This script has problems, as of now, and these include the constant choice to click on the minimap after almost every kill, and an inability to find an npc, when those npcs are super visible, which causes the script to rotate the cam stubbornly (for a minute at least).
It doesn't do that lol, post graphics settings
From: KeepBotting
It doesn't do that lol, post graphics settings
DirectX on minimum graphics, old-school camera, max brightness, mouseovertext on, no transparency, no xp-popups, slim headers enabled, chat interface made as small as possible.
Regarding your statement, it is possible that it only does that at certain locations and monsters.
bonsai
2015-02-27 04:06:55
From: Atom
I'm sorry everyone, especially to bonsai, since you're a good and experienced script writer, but after three of my accounts were banned within the last few days (which used multiple scripts, not just this one), I decided to conduct a test to see if this script is the most ban-prone at the moment.
I'm not going to speculate on the ban issues but I can address a couple of the script issues.
When you run the script, there is an option on the form "Move if not finding". Uncheck this and you will no longer click the minimap or rotate around.
I have also experienced this issue of it not finding NPCs when they are all right there. Move your color file out of the way and try making a fresh one.
It sounds like your settings are right but a picture is worth …
sekirei
2015-02-27 13:56:47
Are you botting only on F2P worlds? F2p seems to be watched more as Jagex doesn't make any money off these accounts. Also as you said it might be the spot where you are botting as I managed to go from 90 to 99 range at Waterfiends on my main using this script. For me it works flawlessly and doesn't look to be very bot like. Thank you Bonsai :)
Notplayingrs
2015-02-27 16:23:34
From: bonsai
I'm not going to speculate on the ban issues but I can address a couple of the script issues.
When you run the script, there is an option on the form "Move if not finding". Uncheck this and you will no longer click the minimap or rotate around.
I have also experienced this issue of it not finding NPCs when they are all right there. Move your color file out of the way and try making a fresh one.
It sounds like your settings are right but a picture is worth …
Quick question, when its finding the colors, could that issue a ban since the mouse is going nuts?
Also, whats the best spot for chickens? Or should I just do it manually since the first couple levels are the easiest?
tokoolman
2015-03-05 10:21:39
i downloaded the file and copy pasted the colors but what line should i replace to target the right color of what i want to kill?
giavanni6
2015-03-06 15:55:07
Does anyone have a color profile for Abberant Spectres? Or is there a way I can manually make one? I'm trying to create an Abberant Spectre killer/looter/banker.
lachieeeeeee
2015-03-07 20:43:16
Where do I put the colour file just in the same location as the script.simba?
PheteyGee
2015-03-07 23:17:16
From: lachieeeeeee
Where do I put the colour file just in the same location as the script.simba?
I believe it is here:
C:\Simba\Includes\bonsai\colors
Also,
Does anyone have a range guide from 40 - 75? CBF finding out where to go :P
Clutch
2015-03-08 00:20:36
From: bonsai
The first time you color an npc, it will find 10 colors to work with then start fighting.
While it has less than 20 colors, it should color for 5 seconds in between fights (more or less). After 20 colors it should color infrequently.
So you're not finding enough good colors. Maybe try them zoomed in a little to get more detail. If you do, move your old color file out of the way and make a new one. (simbadir/includes/bonsai/colors)
It will end up targeting both spiders; it finds anything attackable. If it's leaning towards the 15s that is what "good" colors you found so far.
NOTE: An update to SRL reverted the form changes from the other day. If you are getting errors, update SRL and the script.
After hours of trying to figure this out, zooming in to get more detail worked a charm. I had spent 30 minutes trying to get colors on troll chuckers and only got 9 good. Zoomed in and was at 12 in about 60 seconds. Might be worth adding to the OP - very useful. Thanks!
bonsai
2015-03-08 03:58:41
From: Notplayingrs
Quick question, when its finding the colors, could that issue a ban since the mouse is going nuts?
Also, whats the best spot for chickens? Or should I just do it manually since the first couple levels are the easiest?
Could it? Should it? Yes. Does it? No.
I usually run a new character through the Blood Pact quest. Then you have weapons and access to Lumby. It doesn't take long to fight the weak ones without food.
From: tokoolman
i downloaded the file and copy pasted the colors but what line should i replace to target the right color of what i want to kill?
From: PheteyGee
C:\Simba\Includes\bonsai\colors
That's correct for copying color files. The files there will show up on the form when you run the script.
If you wanted to do coloring like other scripts, with ACA and a CTS2 color, use the
Basic Fighter.
From: OzoneClutch
After hours of trying to figure this out, zooming in to get more detail worked a charm. I had spent 30 minutes trying to get colors on troll chuckers and only got 9 good. Zoomed in and was at 12 in about 60 seconds. Might be worth adding to the OP - very useful. Thanks!
That is sweet for things without enough unique colors.
One note, your file will probably not work if you zoom back out. It's grabbing shades that wouldn't be visible.
Drench
2015-03-08 07:18:08
From: bonsai
Could it? Should it? Yes. Does it? No.
I usually run a new character through the Blood Pact quest. Then you have weapons and access to Lumby. It doesn't take long to fight the weak ones without food.
That's correct for copying color files. The files there will show up on the form when you run the script.
That is sweet for things without enough unique colors.
One note, your file will probably not work if you zoom back out. It's grabbing shades that wouldn't be visible.
hello its my first time of tryin to run the script
i keep geting
Ran out of discovered colors
bonsai
2015-03-08 08:44:53
From: Drench
hello its my first time of tryin to run the script
i keep geting
Ran out of discovered colors
I'm going to guess mouse over text is off or the target popup window?
What NPC? Picture of your setup?
Drench
2015-03-08 12:37:42
From: bonsai
I'm going to guess mouse over text is off or the target popup window?
What NPC? Picture of your setup?
NPC:corpse-spider
CAN NOT PST PICS TILL I HAVE 5 POSTS IF YOU HAVE TEAMVIWER
can you pm me and i will let you check over tv
Clutch
2015-03-08 15:00:39
From: bonsai
Could it? Should it? Yes. Does it? No.
I usually run a new character through the Blood Pact quest. Then you have weapons and access to Lumby. It doesn't take long to fight the weak ones without food.
That's correct for copying color files. The files there will show up on the form when you run the script.
If you wanted to do coloring like other scripts, with ACA and a CTS2 color, use the Basic Fighter.
That is sweet for things without enough unique colors.
One note, your file will probably not work if you zoom back out. It's grabbing shades that wouldn't be visible.
Ah, your right, I finally found a goblins spot where I am getting 15k/hr and it's not getting stuck and logging out after wandering outside of their range. Can't be ran everywhere but the places it can run it is perfect!
madmaxman3
2015-03-12 18:43:56
Does anyone have a quest route from giant spiders to edgeville bank?
ckbbe
2015-03-13 11:46:32
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** antiBan [sleep and move mouse] + [secondary]
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
It will attack all mobs in a row and due to that im taking heay damage and then i die :)
Anyway .. its seems to miss when fight is initiated :)
General_Patrick
2015-03-14 00:04:59
I have a quick question. When starting up the bot, there is an option for the "SGS Key." What exactly does SGS refer to and what does it do?
From: alkorith
I have a quick question. When starting up the bot, there is an option for the "SGS Key." What exactly does SGS refer to and what does it do?
Saradomin Godsword = SGS. The special attack of the SGS heals you for a certain percentage of your hit (might be 100%) and restores your prayer by a fourth of that.
bonsai
2015-03-14 11:07:54
From: ckbbe
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** antiBan [sleep and move mouse] + [secondary]
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
It will attack all mobs in a row and due to that im taking heay damage and then i die :)
Anyway .. its seems to miss when fight is initiated :)
I'm guessing you dont have the popups enabled or its not on the mains reen
Alway show target or something like that
General_Patrick
2015-03-14 17:24:44
Hey I am really enjoying your combat script. Here's a recent proggy. I know it is not long (ran out of food), but it is still something!
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 30 min 27 sec(Total) 30 min 27 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// moss-giant 53 104.39 104.39 //////////
////////// XP 53 104.39 104.39 //////////
////////// Const XP 17.67 34.8 34.8 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
nero_dante
2015-03-18 01:02:24
I love this script so much. It's brilliant. Here is a lovely little proggy I got running. Still running now of course.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 25 hr 53 min 37 sec(Total) 25 hr 19 min 37 sec(Active) 34 min 0 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// warped-cockroac 10,200 393.92 402.73 //////////
////////// XP 10,200 393.92 402.73 //////////
////////// Const XP 3,400 131.31 134.24 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
ckbbe
2015-03-18 15:49:00
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 4 hr 13 min 6 sec(Total) 4 hr 13 min 6 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// fire giant 904 214.29 214.29 //////////
////////// XP 365,306.4 86,595.37 86,595.37 //////////
////////// Const XP 121,768.8 28,865.12 28,865.12 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Splended!
bonsai
2015-03-18 16:20:27
From: nero_dante
I love this script so much. It's brilliant. Here is a lovely little proggy I got running. Still running now of course.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 25 hr 53 min 37 sec(Total) 25 hr 19 min 37 sec(Active) 34 min 0 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// warped-cockroac 10,200 393.92 402.73 //////////
////////// XP 10,200 393.92 402.73 //////////
////////// Const XP 3,400 131.31 134.24 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Give this man the suicide cup :)
nero_dante
2015-03-19 01:17:39
From: bonsai
Give this man the suicide cup :)
Here todays one xD …. I do this for all my skills for days on end without breaks… and still no bans. It's actually unreal how good this script is.
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////_______Bonsai_______////////////////////////////////////////
////////////////////////////////////////_______Fighter______////////////////////////////////////////
////////////////////////////////////////____________________////////////////////////////////////////
//////////________________________________________________________________________________//////////
//////////__Script runtime:_______________________________________________________________//////////
//////////______21 hr 28 min 15 sec(Total) 20 hr 54 min 14 sec(Active) 34 min 0 sec(Break)//////////
//////////________________________________________________________________________________//////////
////////////////////////////////////////________Kills_______////////////////////////////////////////
//////////_____________________________Total________Per Hour_____Hour Active______________//////////
//////////___warped-cockroac___________8,220__________382.85__________393.22______________//////////
//////////________________XP___________8,220__________382.85__________393.22______________//////////
//////////__________Const XP___________2,740__________127.62__________131.07______________//////////
//////////________________________________________________________________________________//////////
////////////////////////////////////////////////////////////////////////////////////////////////////
ckbbe
2015-03-19 12:52:13
From: ckbbe
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 4 hr 13 min 6 sec(Total) 4 hr 13 min 6 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// fire giant 904 214.29 214.29 //////////
////////// XP 365,306.4 86,595.37 86,595.37 //////////
////////// Const XP 121,768.8 28,865.12 28,865.12 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Splended!
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 6 hr 40 min 37 sec(Total) 6 hr 40 min 37 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// fire-giant 1,503 225.1 225.1 //////////
////////// XP 1,503 225.1 225.1 //////////
////////// Const XP 501 75.03 75.03 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Splended x 2 .. altho it sometimes doesnt do SGS ..
Thomas
2015-03-20 16:39:39
How do I let it look for a little more colors? And how do I make it remove bad colors more often?
Thomas
2015-03-20 16:50:34
From: bonsai
I believe I found it. Change line 179 in SIMBADIR\includes\bonsai\blBreak.simba:
breakMs := minToMsec(self.averageBreak) + randomVary(self.breakVariance * 60000);
I didn't multiply it up so it was only subtracting ms from the break time. Will add to next upload if it tests out ok.
You shouldn't push this for next update.
Also you have any plans so far on an antiban?
bonsai
2015-03-20 19:10:03
From: lovebotter
1. You shouldn't push this for next update.
2. Also you have any plans so far on an antiban?
3. How do I let it look for a little more colors? And how do I make it remove bad colors more often?
1. I hope you meant should, because I just did! Thanks for the reminder.
2. Not really, except I wanted to make the pre-targeting an option. cosmasjdz told me he thinks it makes it more bannable in some places.
The antiban is called after each kill but it is set towards very low frequency of doing anything. The functions are in SIMBADIR\bonsai\blMisc.simba if you want to edit it.
3. I was working on a tool to play with the color files but I got sidetracked. It did show me how lousy they end up being :)
You can edit the color file and remove all the data from the discovered, active, blacklist, and runty sections. That would make it pick up and retest a lot of things it had discarded in the past.
If you edit the case statement around line 897 of SIMBADIR\includes\bonsai\blCombat.simba you could make it do more coloring.
01..10: __npc.colorize(8000, 11);
^^^ This is saying, if we have 0-10 successful colors, look for more for 8 seconds (8 * 1000) or until we have 11 good colors.
ckbbe
2015-03-20 20:36:48
Script is good,but if it is ment to be press threshold abilitys then why does it goes all 1 to 9 .. i use sgs and i have and sgs special on nr 9 and it literally presses anything 1 to 8 and sometimes ,only sometimes does nr 9 .. eats my food and then presses 9 .. it doesnt rly matter if i put it to nr 9 .. still .. it should use sgs spec ASAP.
Thomas
2015-03-21 04:25:15
Can you add a small failsafe that if mouseover text matches the NPC it should fight, it engages the NPC? Currently at firegiants it sometimes tries to attack zamorak mages in another room @chaos tunnels.
nero_dante
2015-03-21 06:19:59
Just wanna give another proggy to show how much of a beast this script is :)
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 28 hr 32 min 47 sec(Total) 27 hr 58 min 47 sec(Active) 34 min 0 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// warped-cockroac 9,120 319.48 325.95 //////////
////////// XP 9,120 319.48 325.95 //////////
////////// Const XP 3,040 106.49 108.65 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
ckbbe
2015-03-21 07:08:04
From: ckbbe
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 6 hr 40 min 37 sec(Total) 6 hr 40 min 37 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// fire-giant 1,503 225.1 225.1 //////////
////////// XP 1,503 225.1 225.1 //////////
////////// Const XP 501 75.03 75.03 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Splended x 2 .. altho it sometimes doesnt do SGS ..
[ATTACH=CONFIG]25375[/ATTACH]
Well,as mentioned before,it should do sgs alot more frequently,i recovered macro over the script what soul purpouse was doing sgs.. within 10h not a single food was touched.. and as always Splended work!
bonsai
2015-03-21 07:16:51
From: ckbbe
Script is good,but if it is ment to be press threshold abilitys then why does it goes all 1 to 9 .. i use sgs and i have and sgs special on nr 9 and it literally presses anything 1 to 8 and sometimes ,only sometimes does nr 9 .. eats my food and then presses 9 .. it doesnt rly matter if i put it to nr 9 .. still .. it should use sgs spec ASAP.
The SGS should be on 10/11/12 like the food
I recommend using the automatic runescape settings (revolution?) over manual abilities. It's less bannable.
This is the code for using the SGS (in SIMBADIR\includes\bonsai\blCombat.simba):
if ((actionbar.getHPPercent() < combatMgr.healthPercentToEatAt) and
(combatMgr.sgsKey <> '') and (actionbar.getAdrenalinePercent() > 50)) then
begin
sendKeys(combatMgr.sgsKey, 250, 40);
exit;
end;
Maybe you need to up the 250 and 40 a little for lag?
Basically, if it is time to eat, and you set an SGS key, and the adrenaline is greater than 50 - it will push the key.
I don't have an SGS or a character with it, I just added some button pushing in there :)
Thomas
2015-03-21 07:30:45
This is what I use, I added berserker ability, and made all the keys fixed, so no playerform needed.
(S -> SGS Spec, B -> Berserk, H -> Rocktail)
procedure __defaultHealthCheck();
begin
if (combatMgr.healthTimer.getTime() < 6410) then exit;
if ((actionbar.getHPPercent() > 80) and (actionbar.getAdrenalinePercent() = 100)) then
begin
sendKeys('b', 250, 40);
exit;
end;
if ((actionbar.getHPPercent() < 80) and (actionbar.getAdrenalinePercent() > 50)) then
begin
sendKeys('s', 250, 40);
exit;
end;
if (actionbar.getHPPercent() < 40) then
sendKeys('h', 250, 40);
if (actionbar.getHPPercent() < 20) then
begin
writeln('***** Terminating script due to low health');
terminateScript();
end;
combatMgr.healthTimer.start();
end;
Also this '9999' doesn't make any sense?
case __npc.colorCount() of
01..10: __npc.colorize(8000, 11);
11..20: __npc.colorize(5000, 21);
21..50:
begin
case random(25) of
0..4: __npc.colorize(1500, 9999);
end;
end;
else
Shouldn't that just be 51?
I tried making a new color file after I toyed a little with the npc colorize settings and the colorize include constants (mainly the tresholds for good color/bad collor and attempts) and then I got this error;

Any idea how to resolve this? (At fire Giants in chaos tunnels as usual)
klamor
2015-03-23 00:08:19
can anyone recommend a good spot to use this script at lower levels? i'm trying to use it on the hill giants in the cave south of GE and it's not finding any colors.
meep152
2015-03-23 00:51:49
From: klamor
can anyone recommend a good spot to use this script at lower levels? i'm trying to use it on the hill giants in the cave south of GE and it's not finding any colors.
That's weird, I've tried hill giants with this script in the past and they worked fine. Maybe hill giants have a higher combat level than you? This script will not attack monsters of a higher combat level than the player.
Anyway back on topic, I found minotaurs in the Stronghold of Security to be fast exp for low level f2p training. Plus, there is almost never anyone there, so the risk of being reported is far less than in other spots such as Burthrope Troll Caves.
klamor
2015-03-23 01:59:15
From: meep152
That's weird, I've tried hill giants with this script in the past and they worked fine. Maybe hill giants have a higher combat level than you? This script will not attack monsters of a higher combat level than the player.
Anyway back on topic, I found minotaurs in the Stronghold of Security to be fast exp for low level f2p training. Plus, there is almost never anyone there, so the risk of being reported is far less than in other spots such as Burthrope Troll Caves.
i'm lvl 68 combat with 38/33/33 str/att/def. the hill giants are aggressive towards me and the script just says finding npc and never fights back. maybe i have some settings wrong?
osoad1
2015-03-23 18:58:43
Looks amazing, Thanks bonsai!
jareddlee
2015-03-25 14:21:42
I have used this script without any problems to fight armoured zombies before. However, I deleted my armoured zombies color file because it was going a little slower than usual, and now I get the following debug.
***** Tnpc.init: Starting auto detect process
***** Tnpc.motionDetect: Starting ...
***** Tnpc.init: Detected Armoured zombie
***** Tcolorizer.load: Requested file does not exist [C:\Simba\Includes\bonsai\colors\armoured-zombie.xml]
Gathering colors from motion ... pass [1] of [5]
Gathering colors from motion ... pass [2] of [5]
Gathering colors from motion ... pass [3] of [5]
Gathering colors from motion ... pass [4] of [5]
Gathering colors from motion ... pass [5] of [5]
***** Tnpc.init: Trying to identify more colors
Ran out of discovered colors
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
Ran out of discovered colors
***** TcombatMgr.attack: Fight initiated
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
I tried deleting and re-running the installer but I have the same issue. I didn't change any settings from the last time that I successfully created a color file for the armoured zombie. Any ideas?
bonsai
2015-03-26 05:16:15
From: jareddlee
I have used this script without any problems to fight armoured zombies before. However, I deleted my armoured zombies color file because it was going a little slower than usual, and now I get the following debug.
***** Tnpc.init: Starting auto detect process
***** Tnpc.motionDetect: Starting ...
***** Tnpc.init: Detected Armoured zombie
***** Tcolorizer.load: Requested file does not exist [C:\Simba\Includes\bonsai\colors\armoured-zombie.xml]
Gathering colors from motion ... pass [1] of [5]
Gathering colors from motion ... pass [2] of [5]
Gathering colors from motion ... pass [3] of [5]
Gathering colors from motion ... pass [4] of [5]
Gathering colors from motion ... pass [5] of [5]
***** Tnpc.init: Trying to identify more colors
Ran out of discovered colors
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
Ran out of discovered colors
***** TcombatMgr.attack: Fight initiated
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
***** Tcolorizer.multiBox: ERROR - NO SUCCESSFUL COLORS
I tried deleting and re-running the installer but I have the same issue. I didn't change any settings from the last time that I successfully created a color file for the armoured zombie. Any ideas?
Well, it failed to color for one reason or another.
You need to delete the bad color file it made in SIMBADIR\includes\bonsai\colors
Try to make sure they are moving around when the script kicks in. I know, it's not fully controllable :)
If needed, zoom in some to get a little more detail.
Nythirius
2015-03-26 10:12:19
I'm getting the same error. For some reason it's not even creating a color file in bonsai\colors. I'm standing right in the middle of a swarm of NPC's while they're moving around. Tried zooming all the way in and all the way out, standing right next to the npc, deleting the entire script and re-installing it… and still the same thing going on. It will detect one of the npc's I'm trying to bot, scan it, kill the one it scanned, then give the above error.
klamor
2015-03-27 00:22:45
From: Nythirius
I'm getting the same error. For some reason it's not even creating a color file in bonsai\colors.
Me as well… I can see a few different color files for different monsters that i've used the script with but none for the current monster.
Thomas
2015-03-27 08:32:54
Yes, the bot doesnt seem to create new color files. It might not even update them anymore.
bonsai
2015-03-28 00:49:22
From: lovebotter
Yes, the bot doesnt seem to create new color files. It might not even update them anymore.
It's been tracked down to an issue with the SRL library array functions.
Don't thrash around. I'll post back when a fix is known.
Thomas
2015-03-28 04:59:28
From: lovebotter
Can you add a small failsafe that if mouseover text matches the NPC it should fight, it engages the NPC? Currently at firegiants it sometimes tries to attack zamorak mages in another room @chaos tunnels.
Could you add this? I Think it currently only looks for mouseover text 'attack'
From: bonsai
It's been tracked down to an issue with the SRL library array functions.
Don't thrash around. I'll post back when a fix is known.
Allright :) I have seen someone has edited those some time ago..
bonsai
2015-03-28 15:17:21
From: lovebotter
Could you add this? I Think it currently only looks for mouseover text 'attack'
Allright :) I have seen someone has edited those some time ago..
The fighter seems to be working ok with the newest SRL update.
You can edit a color file and change the uptext.
The uptext varies, that's why I had to stick with 'Attack'. Sometimes it displays 'Attack Npcname', sometimes it's simply 'Attack'.
Thomas
2015-03-28 18:56:23
Uptext only seems to work when locating NPC's, how about a failsave for the users using rightclick, to select the option with the NPC name instead of the attack option?
Also this line:
FAILURE_THRESHOLD = 0.13; // what is bad enough (percent) to call a failure
Does a higher % mean it will be more or less likely to blacklist colors?
@bonsai
SSGT007
2015-03-30 18:40:18
From: bonsai
1. I hope you meant should, because I just did! Thanks for the reminder.
2. Not really, except I wanted to make the pre-targeting an option. cosmasjdz told me he thinks it makes it more bannable in some places.
The antiban is called after each kill but it is set towards very low frequency of doing anything. The functions are in SIMBADIR\bonsai\blMisc.simba if you want to edit it.
3. I was working on a tool to play with the color files but I got sidetracked. It did show me how lousy they end up being :)
You can edit the color file and remove all the data from the discovered, active, blacklist, and runty sections. That would make it pick up and retest a lot of things it had discarded in the past.
If you edit the case statement around line 897 of SIMBADIR\includes\bonsai\blCombat.simba you could make it do more coloring.
01..10: __npc.colorize(8000, 11);
^^^ This is saying, if we have 0-10 successful colors, look for more for 8 seconds (8 * 1000) or until we have 11 good colors.
im getting this
Error: Plugin(libtesseract2_32) has not been found
Compiling failed.
any idea how to fix it?
KeepBotting
2015-03-30 18:55:19
From: SSGT007
im getting this
Error: Plugin(libtesseract2_32) has not been found
Compiling failed.
any idea how to fix it?
Read:
https://villavu.com/forum/showthread.php?t=47714
zenicpush
2015-03-30 22:16:23
After force updating I was able to run the script, while I was at work. Got this proggy for you.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 5 hr 43 min 16 sec(Total) 5 hr 10 min 31 sec(Active) 32 min 44 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Fire giant 994 173.74 192.06 //////////
////////// XP 118,981.8 20,796.77 22,989.46 //////////
////////// Const XP 39,660.6 6,932.26 7,663.15 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Everything was working great. The only issue I ran into was, when it started to fight, it would end the fight after two hits.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
Not sure why this is happening. Another SRL bug? Just taking a wild guess, haha.
Sorry if I'm bugging you, I really don't mean to.
Thomas
2015-03-31 10:00:13
From: lovebotter
Uptext only seems to work when locating NPC's, how about a failsave for the users using rightclick, to select the option with the NPC name instead of the attack option?
Also this line:
FAILURE_THRESHOLD = 0.13; // what is bad enough (percent) to call a failure
Does a higher % mean it will be more or less likely to blacklist colors?
Also, is there a way to manually add colors to the blacklist?
@bonsai
bonsai
2015-03-31 17:45:23
From: lovebotter
Also, is there a way to manually add colors to the blacklist?
@bonsai
You can edit the color file, copy/paste one of the current lines in the blacklist and change the color. I have a half baked tool that lets you play with them… I'll work on getting you a copy. You'll love it.
It's great you're exploring the coloring but I warn you – the code design is a little substandard.
Use notepad++ or whatever and search blColorizer.simba for blacklist.append and successful.append
Those are the places it decides to move something to one list or the other.
The constant you mentioned is used once in reference to 'active' colors:
FAILURE_THRESHOLD = 0.22;
...
(attempts >= 5) and (percent < FAILURE_THRESHOLD)
So after we have made at least 5 tries we start demanding that the color has a success rate higher than 22%. (# times we found an npc / # times we tried)
Colors start in the discovered list. It fishes through there and tries some. If one of them leads to success, it moves it to active. From active it moves to sucessful, blacklist, or runty depending on what happens.
Colors never get removed from successful, blacklist, or runty.
bonsai
2015-03-31 17:52:03
From: lovebotter
Uptext only seems to work when locating NPC's, how about a failsave for the users using rightclick, to select the option with the NPC name instead of the attack option?
The clicking happens in blColorizer.simba detectObj() around line 1378. It uses the same uptext from the color file.
Thomas
2015-03-31 20:36:57
From: bonsai
You can edit the color file, copy/paste one of the current lines in the blacklist and change the color. I have a half baked tool that lets you play with them… I'll work on getting you a copy. You'll love it.
Please PM me a copy whenever you've finished it! I assume I should only edit the color number in the color file? Not the number of attempts etc?
Was hoping the failure threshold would lead to more blacklist colors, but it just means less active colors. Main reason I started exploring the colorize functions was because of the deadly red spiders in the chaos tunnels.
Thanks for the help so far!
bonsai
2015-04-01 02:03:24
From: zenicpush
After force updating I was able to run the script, while I was at work. Got this proggy for you.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 5 hr 43 min 16 sec(Total) 5 hr 10 min 31 sec(Active) 32 min 44 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Fire giant 994 173.74 192.06 //////////
////////// XP 118,981.8 20,796.77 22,989.46 //////////
////////// Const XP 39,660.6 6,932.26 7,663.15 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Everything was working great. The only issue I ran into was, when it started to fight, it would end the fight after two hits.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: Probable miss, did not detect start of fight
***** TcombatMgr.attack: Fight initiated
Not sure why this is happening. Another SRL bug? Just taking a wild guess, haha.
Sorry if I'm bugging you, I really don't mean to.
It detects the fight by looking for the gold lock on the combat popup window
Do you have the popups enabled? Is the popup and gold lock on the main screen (top left is suggested).
Nythirius
2015-04-01 03:19:21
It's working now! Sometimes, however, the bot will attack an NPC before it's finished a fight it's already currently on. This has caused up to 4 NPCs attacking my character at the same time. Other than that, I have no other input. Fantastic script! :)
Thomas
2015-04-01 09:11:38
From: bonsai
The clicking happens in blColorizer.simba detectObj() around line 1378. It uses the same uptext from the color file.
Thanks, fixed it for me!
Also if I wanted to add a 60 second timer for berserker ability I suppose I can just make it the same as the healthtimer in blCombat?
*edit*
That seemed to do the trick :) it used to activate berserk again when it was still on cooldown :)
Going to add quake and hurricane now.
SSGT007
2015-04-01 09:25:22
Error: Too many parameters found at line 12
Compiling failed.
with the corpse torso script
help @bonsai pls
klamor
2015-04-01 16:40:53
From: zenicpush
After force updating I was able to run the script, while I was at work. Got this proggy for you.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 5 hr 43 min 16 sec(Total) 5 hr 10 min 31 sec(Active) 32 min 44 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Fire giant 994 173.74 192.06 //////////
////////// XP 118,981.8 20,796.77 22,989.46 //////////
////////// Const XP 39,660.6 6,932.26 7,663.15 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
may i ask what combat level/gear you have?
Nythirius
2015-04-02 14:26:30
A suggestion: have an option to use regenerate after reaching 100% adrenaline. This would make AFKing last much longer, if not forever, at high defense levels. :)
zenicpush
2015-04-02 16:41:42
From: bonsai
Do you have the popups enabled? Is the popup and gold lock on the main screen (top left is suggested).
I certainly do, it may have been the fire giants auto aggression, from when you log into the room. The aoe skills may also be pulling in multiple enemies as well.
From: klamor
may i ask what combat level/gear you have?
Close to 100 combat level with an sgs. The sgs special provides me with enough healing to stay without food.
Thomas
2015-04-02 17:44:12
From: zenicpush
I certainly do, it may have been the fire giants auto aggression, from when you log into the room. The aoe skills may also be pulling in multiple enemies as well.
Close to 100 combat level with an sgs. The sgs special provides me with enough healing to stay without food.
I average 310 kills/hr active with 75 attack and 85strength with following strength bonuses; glory rockshell gloves and boots. I have coded the script to enable berserker and assault abilities.
Thomas
2015-04-02 17:45:44
From: Nythirius
A suggestion: have an option to use regenerate after reaching 100% adrenaline. This would make AFKing last much longer, if not forever, at high defense levels. :)
Stupid suggestion, regenerate only triggers once you go leave combat. Just use SGS. It's a waste of adrenaline.
Sorry for double post.
Either way this is my current edit to the blCombat.simba.
procedure __defaultHealthCheck();
begin
if (combatMgr.healthTimer.getTime() < 3810) then exit;
if ((actionbar.getHPPercent() > 70) and (actionbar.getAdrenalinePercent() = 100)) and (combatMgr.berserkTimer.getTime() > 57800) then
begin
sendKeys('b', 230, 40);
combatMgr.berserkTimer.start();
wait(gaussRangeInt(100,170));
exit;
end;
if ((actionbar.getHPPercent() > 70) and (actionbar.getAdrenalinePercent() > 50)) and (combatMgr.assaultTimer.getTime() > 28500) then
begin
sendKeys('a', 250, 40);
combatMgr.assaultTimer.start();
wait(gaussRangeInt(100,240));
exit;
end;
{
if ((actionbar.getHPPercent() > 70) and (actionbar.getAdrenalinePercent() > 50)) and (combatMgr.hurricaneTimer.getTime() > 18700) then
begin
sendKeys('h', 250, 40);
combatMgr.hurricaneTimer.start();
wait(gaussRangeInt(70,200));
exit;
end;
if ((actionbar.getHPPercent() > 70) and (actionbar.getAdrenalinePercent() > 50)) and (combatMgr.quakeTimer.getTime() > 19700) then
begin
sendKeys('q', 250, 40);
combatMgr.quakeTimer.start();
wait(gaussRangeInt(100,210));
exit;
end; }
if ((actionbar.getHPPercent() < 70) and (actionbar.getAdrenalinePercent() > 50)) and (combatMgr.specTimer.getTime() > 7800) then
begin
sendKeys('s', 100, 50);
combatMgr.specTimer.start();
wait(gaussRangeInt(150,1250));
exit;
end;
if (actionbar.getHPPercent() < 40) then
begin
sendKeys('m', 250, 40);
wait(gaussRangeInt(150,1250));
exit;
end;
if (actionbar.getHPPercent() < 20) then
begin
writeln('***** Terminating script due to low health');
terminateScript();
end;
combatMgr.healthTimer.start();
end;
Keys should be Obvious;
M - Monkfish
S - Spec
H - Hurricane (unused currently)
Q - Quake (also unused)
A - Assault
B - Berserk
To add this you'll also have to define the various timers at the top of the script, similar to the healthTimer (search for that as an example)
Nythirius
2015-04-02 22:53:03
From: lovebotter
Stupid suggestion, regenerate only triggers once you go leave combat. Just use SGS. It's a waste of adrenaline.
Sorry for double post.
Either way this is my current edit to the blCombat.simba.
procedure __defaultHealthCheck();
begin
if (combatMgr.healthTimer.getTime() < 3810) then exit;
if ((actionbar.getHPPercent() > 70) and (actionbar.getAdrenalinePercent() = 100)) and (combatMgr.berserkTimer.getTime() > 57800) then
begin
sendKeys('b', 230, 40);
combatMgr.berserkTimer.start();
wait(gaussRangeInt(100,170));
exit;
end;
if ((actionbar.getHPPercent() > 70) and (actionbar.getAdrenalinePercent() > 50)) and (combatMgr.assaultTimer.getTime() > 28500) then
begin
sendKeys('a', 250, 40);
combatMgr.assaultTimer.start();
wait(gaussRangeInt(100,240));
exit;
end;
{
if ((actionbar.getHPPercent() > 70) and (actionbar.getAdrenalinePercent() > 50)) and (combatMgr.hurricaneTimer.getTime() > 18700) then
begin
sendKeys('h', 250, 40);
combatMgr.hurricaneTimer.start();
wait(gaussRangeInt(70,200));
exit;
end;
if ((actionbar.getHPPercent() > 70) and (actionbar.getAdrenalinePercent() > 50)) and (combatMgr.quakeTimer.getTime() > 19700) then
begin
sendKeys('q', 250, 40);
combatMgr.quakeTimer.start();
wait(gaussRangeInt(100,210));
exit;
end; }
if ((actionbar.getHPPercent() < 70) and (actionbar.getAdrenalinePercent() > 50)) and (combatMgr.specTimer.getTime() > 7800) then
begin
sendKeys('s', 100, 50);
combatMgr.specTimer.start();
wait(gaussRangeInt(150,1250));
exit;
end;
if (actionbar.getHPPercent() < 40) then
begin
sendKeys('m', 250, 40);
wait(gaussRangeInt(150,1250));
exit;
end;
if (actionbar.getHPPercent() < 20) then
begin
writeln('***** Terminating script due to low health');
terminateScript();
end;
combatMgr.healthTimer.start();
end;
Keys should be Obvious;
M - Monkfish
S - Spec
H - Hurricane (unused currently)
Q - Quake (also unused)
A - Assault
B - Berserk
To add this you'll also have to define the various timers at the top of the script, similar to the healthTimer (search for that as an example)
It would be an
option that would let people AFK without having to return every hour to refill on food. Yes, it would stop combat, but that's fine because it would be able to run longer, letting people come back later to find greater results from botting. Keep in mind, I am merely
suggesting an idea, not forcing, or feeling entitled, for it to happen.
SGS is indeed more efficient. However, people wouldn't be able to use it if they were trying to train ranged or magic.
Further suggestion: instead of regenerate at 100% adrenaline, have it regenerate after X minutes/seconds.
Thomas
2015-04-03 09:40:54
Does anyone have a decent spot for low level mage training (50-80 mage) without sacrifice ability? That would't require constant banking?
klamor
2015-04-04 11:17:35
From: Nythirius
SGS is indeed more efficient. However, people wouldn't be able to use it if they were trying to train ranged or magic.
Further suggestion: instead of regenerate at 100% adrenaline, have it regenerate after X minutes/seconds.
why not have it detect end of combat hp and adrenaline percentage and make a decision based on that? also you will need to train on enemies that are non-aggressive for that
From: lovebotter
Does anyone have a decent spot for low level mage training (50-80 mage) without sacrifice ability? That would't require constant banking?
imo super heating is a much easier way to level mage if u can afford it
Nythirius
2015-04-04 13:45:55
Good suggestion! I'm mainly training on waterfiends which are non-aggressive because of all the charms they drop.
Thomas
2015-04-05 06:26:19
If you want generate, why not add it yourself? Same way as I added berserk;
If adren 100% (or 90/95) and hp is below 70 then (can remove the first part (adren 100) should work either way
Begin
Sendkey generatekey;
Repeat
Wait random 100-500;
untill adren 0% (or 10% because of delays
End;
I'll post a proper code later unless someone is able to do so before I can.
ckbbe
2015-04-05 10:09:19
[ATTACH=CONFIG]25505[/ATTACH]
#Smexy
Thomas
2015-04-05 12:18:46
From: ckbbe
[ATTACH=CONFIG]25505[/ATTACH]
#Smexy
What did you use to heal? Or did you use sgs?
For the regenarate, add this in the blCombat.simba
Search for defaulthealtcheck, and paste it after the healthTimer.getTime line
if actionbar.getHPPercent() < 70 then
begin
sendKeys('r', 200, 50);
repeat
wait (600);
until actionbar.getAdrenalinePercent() < 15;
wait(gaussRangeInt(100,1300));
exit;
end;
ckbbe
2015-04-05 19:20:06
From: lovebotter
What did you use to heal? Or did you use sgs?
For the regenarate, add this in the blCombat.simba
Search for defaulthealtcheck, and paste it after the healthTimer.getTime line
if actionbar.getHPPercent() < 70 then
begin
sendKeys('r', 200, 50);
repeat
wait (600);
until actionbar.getAdrenalinePercent() < 15;
wait(gaussRangeInt(100,1300));
exit;
end;
Prayer flicking :)
Regenerate isnt going to help much tho,do much incoming dmg imo.
Thomas
2015-04-05 19:38:18
From: ckbbe
Prayer flicking :)
Regenerate isnt going to help much tho,do much incoming dmg imo.
I wouldn't use it either, but some users requested it.
Perhaps you coud share your code for the prayer flicking?
ckbbe
2015-04-05 20:02:53
From: lovebotter
I wouldn't use it either, but some users requested it.
Perhaps you coud share your code for the prayer flicking?
It was just a try,didnt code it yesterday,was just using macro as a addon to the script and after 30 min i just left it there .. altho looking into that now.Eliminates the need to eat or prayer potions.
Highly "bannable"tho
ckbbe
2015-04-05 20:06:36
Double post.
Delete.
Hey, I'm using this script over at waterfiends and it seems its struggling to find another NPC after every kill. It consistently delays attacking the next NPC until up to the point I exit combat mode and THEN it immediately attacks the NPC. This really affects my XP per/hr. However, besides that this script is awesome!
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** Tcolorizer.colorize: tested 150 colors.
***** Tcolorizer.colorize: tested 200 colors.
***** Tcolorizer.colorize: tested 250 colors.
***** Tcolorizer.colorize: tested 300 colors.
***** Tcolorizer.colorize: tested 350 colors.
***** TcombatMgr.attack: Fight initiated
***** TcombatMgr.attack: End of fight detected
***** Tcolorizer.colorize: tested 50 colors.
***** Tcolorizer.colorize: tested 100 colors.
***** Tcolorizer.colorize: tested 150 colors.
***** Tcolorizer.colorize: tested 200 colors.
***** Tcolorizer.colorize: tested 250 colors.
***** Tcolorizer.colorize: tested 300 colors.
***** Tcolorizer.colorize: tested 350 colors.
***** TcombatMgr.attack: Fight initiated
Any suggestions? ckbbe how are you getting those crazy xp rates and being able to camp them for 6hrs+ without having to bank for food? Have you edited the scripted at all?
EDIT: I was able to solve it myself :p I downloaded the waterfiend.xml and changed it from 'autodetect' and set it 'waterfiends' instead. This changed my exp p/hr from 150kish to about double with gains of about 300k exp/phr!
zenicpush
2015-04-07 01:28:21
From: Kato
Any suggestions? ckbbe how are you getting those crazy xp rates and being able to camp them for 6hrs+ without having to bank for food? Have you edited the scripted at all?
EDIT: I was able to solve it myself :p I downloaded the waterfiend.xml and changed it from 'autodetect' and set it 'waterfiends' instead. This changed my exp p/hr from 150kish to about double with gains of about 300k exp/phr!
If the script had the option for an aggressive sgs special, to use it when ever it reaches 50%. You'd be able to camp forever while using the deflect magic prayer. I wouldn't mind someone posting some codes for it though..
Link to the xml?
bonsai
2015-04-07 01:33:08
From: Kato
Hey, I'm using this script over at waterfiends and it seems its struggling to find another NPC after every kill. It consistently delays attacking the next NPC until up to the point I exit combat mode and THEN it immediately attacks the NPC. This really affects my XP per/hr. However, besides that this script is awesome!
Any suggestions? ckbbe how are you getting those crazy xp rates and being able to camp them for 6hrs+ without having to bank for food? Have you edited the scripted at all?
EDIT: I was able to solve it myself :p I downloaded the waterfiend.xml and changed it from 'autodetect' and set it 'waterfiends' instead. This changed my exp p/hr from 150kish to about double with gains of about 300k exp/phr!
That all sounds normal for coloring a new NPC. It wants a healthy list of colors to work with. In between fights it tries to find more. When it has lots of colors, it doesn't spend time finding more.
Wasn't there a line on the top of the screen that said "Finding more colors"?
Thomas
2015-04-07 02:15:37
Bonsai I installed a fresh version and it seems like it doesnt move the mouse anymore to detect new colors?
bonsai
2015-04-07 02:24:08
From: zenicpush
If the script had the option for an aggressive sgs special, to use it when ever it reaches 50%. You'd be able to camp forever while using the deflect magic prayer. I wouldn't mind someone posting some codes for it though..
Link to the xml?
People have talked some about that but I thought the SGS was only supposed to work at 100%?
I've been waiting for lovebotters mods to mature so I can merge them in :)
here
From: lovebotter
Bonsai I installed a fresh version and it seems like it doesnt move the mouse anymore to detect new colors?
I haven't posted any updates in a while… not sure what it would be.
Thomas
2015-04-07 04:14:20
From: bonsai
People have talked some about that but I thought the SGS was only supposed to work at 100%?
I've been waiting for lovebotters mods to mature so I can merge them in :)
here
I haven't posted any updates in a while… not sure what it would be.
I have no clue either, first I supposed it was because I messed a little with the includes.
But didn't work after a fresh install either.
What mods do you mean? The abilities? I'll post a proper collection of the abils I added later, but I wont be needing the script anymore after about 120m combat xp gained on various accounts.
Thomas
2015-04-07 05:49:08
I'll start posting all the edits I've made to the script so far;
procedure __defaultHealthCheck();
begin
if (combatMgr.healthTimer.getTime() < 3600) then exit; //this is 6 game ticks
combatMgr.healthTimer.start();
if (actionbar.getAdrenalinePercent() = 100) and (combatMgr.berserkTimer.getTime() > 59800) and playerform has ultimate key then
begin
sendKeys('playerform berserk/ultimate key', 200, 40);
combatMgr.berserkTimer.start();
wait(gaussRangeInt(150,300));
exit;
end;
if (actionbar.getHPPercent() > playerformHeal %) and (actionbar.getAdrenalinePercent() > 50) and (combatMgr.assaultTimer.getTime() > 29800) and playerform has treshold key then
begin
sendKeys('playerform treshold (assault works best) key', 250, 40);
combatMgr.assaultTimer.start();
wait(gaussRangeInt(150,350));
exit;
end;
//perhaps allow the playerform to mention the treshold cooldown time, since they aren't all 30sec
if (actionbar.getHPPercent() < playerformHeal %) and (actionbar.getAdrenalinePercent() > 50) and form has sgs spec key then
begin
sendKeys('playerform sgs key', 140, 40);
combatMgr.specTimer.start(); //his timer isn't rly needed I suppose, just added it to prevent double specs
wait(gaussRangeInt(400,1250));
exit;
end;
if actionbar.getHPPercent() < playerformHeal % and (actionbar.getAdrenalinePercent() > 40) and form has regenerate key then
begin
sendKeys('playerform regenerate key', 200, 50);
repeat
wait (600); //I think regenerate heals hp/drains adren every tick, so repeating waits of 1 tick seems logical
until actionbar.getAdrenalinePercent() < 15; //can remove the check for > 40 if you put this at 0 i suppose, but > 40 and < 15 seems like a good start
wait(gaussRangeInt(100,1300)); //perhaps add a regenerate timer like the others, but might not be needed. Waits around 600msec, so 1 game tick, so regen lasts a little longer
exit;
end;
//perhaps allow playerform to select healing method; sgs or regenerate and they share same key, that way you have heal hp%, food hp%, healing method, healing key and food key in playerform
if (actionbar.getHPPercent() < playerformFood %) then
begin
sendKeys('playerform food key', 250, 40);
wait(gaussRangeInt(500,1200));
exit;
end;
if (actionbar.getHPPercent() < playerformLog %) then
begin
writeln('***** Terminating script due to low health');
terminateScript();
end;
end;
MOUSE_RIGHT, MOUSE_MOVE:
begin
fastClick(MOUSE_RIGHT);
if (mouseButton = MOUSE_RIGHT) then
begin
result := chooseoption.select(['Attack Fire'], 250); //change to Attack NPC name it should attack
exit;
end
opts := chooseOption.getOptions();
chooseOption.close();
for j := 0 to high(opts) do
begin
if (pos(self.uptext, opts[j].str) > 0) then
begin
menuText := opts[j].str;
break;
end;
end;
mouse(point(x,y), MOUSE_MOVE);
end;
Using both assault and berserk gained me about 15% more kills/hour.
Just add it like I suggested and see what users think about it. I have not tested the regenerate myself.
ckbbe
2015-04-07 05:57:23
From: ckbbe
[ATTACH=CONFIG]25505[/ATTACH]
#Smexy
[ATTACH=CONFIG]25518[/ATTACH]
[ATTACH=CONFIG]25519[/ATTACH]
[ATTACH=CONFIG]25520[/ATTACH]
#Smexy :)
ckbbe
2015-04-07 06:02:00
From: Kato
Hey, I'm using this script over at waterfiends and it seems its struggling to find another NPC after every kill. It consistently delays attacking the next NPC until up to the point I exit combat mode and THEN it immediately attacks the NPC. This really affects my XP per/hr. However, besides that this script is awesome!
Any suggestions? ckbbe how are you getting those crazy xp rates and being able to camp them for 6hrs+ without having to bank for food? Have you edited the scripted at all?
EDIT: I was able to solve it myself :p I downloaded the waterfiend.xml and changed it from 'autodetect' and set it 'waterfiends' instead. This changed my exp p/hr from 150kish to about double with gains of about 300k exp/phr!
Use upgraded darklight and offhand drygore rapier,dont waste inv.space for extreme or super potions,unless u have salves etc.
I use imp,4 charm placeholders and the rest is Super prayer renewal potion .. i flick prayers and zip every time its ends.. and im not maxed melee,u obv could go higher with xp rates but in the long run its more reasonable to get a bit lower xp but go longer :)
zenicpush
2015-04-07 13:36:48
From: lovebotter
Using both assault and berserk gained me about 15% more kills/hour.
Just add it like I suggested and see what users think about it. I have not tested the regenerate myself.
Have you thought about having a method to watch the adrenaline bar, to activate the sgs food key, then to press it whenever it reaches 50%?
Thomas
2015-04-07 13:39:54
From: zenicpush
Have you thought about having a method to watch the adrenaline bar, to activate the sgs food key, then to press it whenever it reaches 50%?
Why would you ever need that? Just spec when Health is low and use other usefull abils when you got enough hp?
Sure sgs spec hits 180% weapon damage or so but it wastes 50% adren doing so?!
zenicpush
2015-04-07 13:50:38
From: bonsai
People have talked some about that but I thought the SGS was only supposed to work at 100%?
I've been waiting for lovebotters mods to mature so I can merge them in :)
here
I haven't posted any updates in a while… not sure what it would be.
The sgs special uses 50% of the adrenaline bar each use, so if at 100% and the special attack is used, it drops to 50%. Then can be used immediately after to use another 50%. I'd suggest it to be used in a range of 50 - 63, rarely using the same number. To help decrease the chances of a ban.
Thanks! :o
Ckbbe's idea for prayer flickering sounds amazing. I'd ask him to go in depth on how he manages that with his macro and how to reduce the chances of bans with that as well. There are a lot of good suggestions for updates, haha. Oh, the sgs special also restores prayer points. Another reason to always use it.
From: lovebotter
Why would you ever need that? Just spec when Health is low and use other usefull abils when you got enough hp?
Sure sgs spec hits 180% weapon damage or so but it wastes 50% adren doing so?!
Like I said above, it restores prayer points. Letting you use deflect from magic, the prayer, at waterfiends. In turn letting you camp as long as you'd wish. You could use the quick prayer button, to allow the user to use piety prayers as well. Which increases your combat style ratings.
Nythirius
2015-04-07 14:18:12
Just posting to let you know I tested out the regenerate mod but it's not working. Unfortunately it doesn't do anything with the bot except disable its ability to heal with food. I'm assuming it's because the bot doesn't have a built in method to go out of combat in between fights to heal. I would try to implement this code myself but as it stands my current knowledge of scripting and computer language is like a person who knows English trying to decipher the meaning behind a piece of Greek literature. I'm sure it's more simple than it looks and maybe that will change soon. I just haven't had the motivation to learn it yet.
Thomas
2015-04-07 14:30:06
From: Nythirius
Just posting to let you know I tested out the regenerate mod but it's not working. Unfortunately it doesn't do anything with the bot except disable its ability to heal with food. I'm assuming it's because the bot doesn't have a built in method to go out of combat in between fights to heal. I would try to implement this code myself but as it stands my current knowledge of scripting and computer language is like a person who knows English trying to decipher the meaning behind a piece of Greek literature. I'm sure it's more simple than it looks and maybe that will change soon. I just haven't had the motivation to learn it yet.
It should go afk once the key activates untill the adren is below 15%.
Can you tell if it does activate the regenerate ability?
Can you tell me exactly what you have added? Because the latest code I posted was for bonsai to implement, it is not a working code at all. Most of the code in there was changed to make it clear for him how to implement it with a player form, so users can select their own keys and healing methods in the startup form!
Thomas
2015-04-07 14:31:28
From: zenicpush
The sgs special uses 50% of the adrenaline bar each use, so if at 100% and the special attack is used, it drops to 50%. Then can be used immediately after to use another 50%. I'd suggest it to be used in a range of 50 - 63, rarely using the same number. To help decrease the chances of a ban.
Thanks! :o
Ckbbe's idea for prayer flickering sounds amazing. I'd ask him to go in depth on how he manages that with his macro and how to reduce the chances of bans with that as well. There are a lot of good suggestions for updates, haha. Oh, the sgs special also restores prayer points. Another reason to always use it.
Like I said above, it restores prayer points. Letting you use deflect from magic, the prayer, at waterfiends. In turn letting you camp as long as you'd wish. You could use the quick prayer button, to allow the user to use piety prayers as well. Which increases your combat style ratings.
Just alter the code a little so it specs once adren is over 50% and remove the code for other abilities.
Nythirius
2015-04-07 19:13:25
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
{ _defaultHealthCheck() }
{ Written by: bonsai }
{ Date Last Modified: 2014/09 }
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
procedure __defaultHealthCheck();
begin
if (combatMgr.healthTimer.getTime() < 5000) then
exit;
if actionbar.getHPPercent() < 80 and (actionbar.getAdrenalinePercent() > 30) then
begin
sendKeys('r', 200, 50);
repeat
wait (600);
until actionbar.getAdrenalinePercent() < 15;
wait(gaussRangeInt(100,1300));
exit;
end;
The reason it wasn't initially working is because I had regenerate bound to R on my keybind bar. I wasn't aware that my quick heal key needed to be bound instead.
It then started working but was for some reason spamming the regenerate button and wasn't sitting through the full heal. I edited the code to my liking though and it works perfectly now. Thanks for the original coding. :)
Also added in the ice asylum ability as an emergency backup and metamorphosis for more damage and so far I'm able to completely AFK.
SSGT007
2015-04-07 22:04:40
Can I be in direct xmode you guys?
bonsai
2015-04-08 00:21:15
From: SSGT007
Can I be in direct xmode you guys?
Yes.
From: zenicpush
Link to the xml?
The link is on the OP in the description.
And I figured out how to camp indefinitely! Depending on your stats, you can stay there forever with a Blood Amulet Fury.
From: bonsai
Wasn't there a line on the top of the screen that said "Finding more colors"?
Yep. It was just hitting around 8000ish colors and that didn't seem right.
Thomas
2015-04-08 01:33:13
From: Nythirius
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
{ _defaultHealthCheck() }
{ Written by: bonsai }
{ Date Last Modified: 2014/09 }
{¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
procedure __defaultHealthCheck();
begin
if (combatMgr.healthTimer.getTime() < 5000) then
exit;
if actionbar.getHPPercent() < 80 and (actionbar.getAdrenalinePercent() > 30) then
begin
sendKeys('r', 200, 50);
repeat
wait (600);
until actionbar.getAdrenalinePercent() < 15;
wait(gaussRangeInt(100,1300));
exit;
end;
The reason it wasn't initially working is because I had regenerate bound to R on my keybind bar. I wasn't aware that my quick heal key needed to be bound instead.
It then started working but was for some reason spamming the regenerate button and wasn't sitting through the full heal. I edited the code to my liking though and it works perfectly now. Thanks for the original coding. :)
Also added in the ice asylum ability as an emergency backup and metamorphosis for more damage and so far I'm able to completely AFK.
Can you post your current code here so I can see what I did wrong?
Glad to hear it is working for you now!
PioneerPete
2015-04-08 03:26:19
going to try running this script til morning while fighting Minotaurs in dungeon below barbarian hold, will post proggy when done.
PioneerPete
2015-04-08 09:31:46
Sadly when i checked it this morning it only ran for about 50 min because the angle changed and it couldn't see the minataurs, going to try running it again today. here is the proggy, nothing impressive.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 48 min 47 sec(Total) 48 min 47 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Minotaur 280 344.38 344.38 //////////
////////// XP 8,652 10,641.45 10,641.45 //////////
////////// Const XP 2,884 3,547.15 3,547.15 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
PioneerPete
2015-04-08 09:33:32
it ran for 50 minutes before failing last night, going to try running again today. the camera angle changed and it could not see the Minotaurs.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 48 min 47 sec(Total) 48 min 47 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Minotaur 280 344.38 344.38 //////////
////////// XP 8,652 10,641.45 10,641.45 //////////
////////// Const XP 2,884 3,547.15 3,547.15 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
ckbbe
2015-04-08 15:17:52
From: ckbbe
[ATTACH=CONFIG]25518[/ATTACH]
[ATTACH=CONFIG]25519[/ATTACH]
[ATTACH=CONFIG]25520[/ATTACH]
#Smexy :)
[ATTACH=CONFIG]25534[/ATTACH]
ckbbe
2015-04-08 23:08:51
From: ckbbe
[ATTACH=CONFIG]25534[/ATTACH]
[ATTACH=CONFIG]25539[/ATTACH]
Nythirius
2015-04-09 16:13:01
From: lovebotter
Can you post your current code here so I can see what I did wrong?
Glad to hear it is working for you now!
Who knows it probably didn't originally work because of something I did wrong. :P
The post I made earlier was actually my current code. Previously I had just used what you originally posted.
Which was this:
if actionbar.getHPPercent() < 70 then
begin
sendKeys('r', 200, 50);
repeat
wait (600);
until actionbar.getAdrenalinePercent() < 15;
wait(gaussRangeInt(100,1300));
exit;
end;
ckbbe
2015-04-09 16:24:49
From: ckbbe
[ATTACH=CONFIG]25539[/ATTACH]
[ATTACH=CONFIG]25555[/ATTACH]
#Smexy
Thomas
2015-04-09 16:56:20
From: Nythirius
Who knows it probably didn't originally work because of something I did wrong. :P
The post I made earlier was actually my current code. Previously I had just used what you originally posted.
Which was this:
if actionbar.getHPPercent() < 70 then
begin
sendKeys('r', 200, 50);
repeat
wait (600);
until actionbar.getAdrenalinePercent() < 15;
wait(gaussRangeInt(100,1300));
exit;
end;
So you used pretty much the same as I posted? Suppose bonsai can add it to his script then. :)
Btw bonsai, have you considered converting the basic fighter to opengl? I have but seems like the includes are a bit premature. And cant be bothered updating weekly..
Threshold
2015-04-09 22:45:38
Really tempted to use this for 120 strength at waterfiends and to save the charms for enlightenment/bxpw.
Man, these proggies are nice!
Threshold
2015-04-10 01:03:09
EDIT: fixed it, had to move around a bit where more were nearby.
Threshold
2015-04-10 09:33:14
From: lovebotter
I'll start posting all the edits I've made to the script so far;
procedure __defaultHealthCheck();
begin
if (combatMgr.healthTimer.getTime() < 3600) then exit; //this is 6 game ticks
combatMgr.healthTimer.start();
if (actionbar.getAdrenalinePercent() = 100) and (combatMgr.berserkTimer.getTime() > 59800) and playerform has ultimate key then
begin
sendKeys('playerform berserk/ultimate key', 200, 40);
combatMgr.berserkTimer.start();
wait(gaussRangeInt(150,300));
exit;
end;
if (actionbar.getHPPercent() > playerformHeal %) and (actionbar.getAdrenalinePercent() > 50) and (combatMgr.assaultTimer.getTime() > 29800) and playerform has treshold key then
begin
sendKeys('playerform treshold (assault works best) key', 250, 40);
combatMgr.assaultTimer.start();
wait(gaussRangeInt(150,350));
exit;
end;
//perhaps allow the playerform to mention the treshold cooldown time, since they aren't all 30sec
if (actionbar.getHPPercent() < playerformHeal %) and (actionbar.getAdrenalinePercent() > 50) and form has sgs spec key then
begin
sendKeys('playerform sgs key', 140, 40);
combatMgr.specTimer.start(); //his timer isn't rly needed I suppose, just added it to prevent double specs
wait(gaussRangeInt(400,1250));
exit;
end;
if actionbar.getHPPercent() < playerformHeal % and (actionbar.getAdrenalinePercent() > 40) and form has regenerate key then
begin
sendKeys('playerform regenerate key', 200, 50);
repeat
wait (600); //I think regenerate heals hp/drains adren every tick, so repeating waits of 1 tick seems logical
until actionbar.getAdrenalinePercent() < 15; //can remove the check for > 40 if you put this at 0 i suppose, but > 40 and < 15 seems like a good start
wait(gaussRangeInt(100,1300)); //perhaps add a regenerate timer like the others, but might not be needed. Waits around 600msec, so 1 game tick, so regen lasts a little longer
exit;
end;
//perhaps allow playerform to select healing method; sgs or regenerate and they share same key, that way you have heal hp%, food hp%, healing method, healing key and food key in playerform
if (actionbar.getHPPercent() < playerformFood %) then
begin
sendKeys('playerform food key', 250, 40);
wait(gaussRangeInt(500,1200));
exit;
end;
if (actionbar.getHPPercent() < playerformLog %) then
begin
writeln('***** Terminating script due to low health');
terminateScript();
end;
end;
MOUSE_RIGHT, MOUSE_MOVE:
begin
fastClick(MOUSE_RIGHT);
if (mouseButton = MOUSE_RIGHT) then
begin
result := chooseoption.select(['Attack Fire'], 250); //change to Attack NPC name it should attack
exit;
end
opts := chooseOption.getOptions();
chooseOption.close();
for j := 0 to high(opts) do
begin
if (pos(self.uptext, opts[j].str) > 0) then
begin
menuText := opts[j].str;
break;
end;
end;
mouse(point(x,y), MOUSE_MOVE);
end;
Using both assault and berserk gained me about 15% more kills/hour.
Just add it like I suggested and see what users think about it. I have not tested the regenerate myself.
When I try to add your improvements for thresholds/ultimates it tells me "has" is an error when I try to compile.
Any ideas?
I'm assuming I might have to put some more things in the playerform but when I tried to do that it didn't work either, maybe I am doing something wrong :p
SSGT007
2015-04-10 09:56:19
From: bonsai
Yes.
I figured out right after my post but nice
Thomas
2015-04-10 10:22:36
From: Doa Envy
When I try to add your improvements for thresholds/ultimates it tells me "has" is an error when I try to compile.
Any ideas?
I'm assuming I might have to put some more things in the playerform but when I tried to do that it didn't work either, maybe I am doing something wrong :p
No, this isn't a working code. I should have pm'er it to bonsai. It was to show him what he should add and how. Users cant just copy it. I dont have time atm to post a proper working code. I might do that this weekend/next week!
Threshold
2015-04-10 11:40:20
From: lovebotter
No, this isn't a working code. I should have pm'er it to bonsai. It was to show him what he should add and how. Users cant just copy it. I dont have time atm to post a proper working code. I might do that this weekend/next week!
Ah alright :p Yeah It's crunch time for me at university now so even if I wanted to figure out some things in scripting it'll have to wait about a month.
Since I fired this up last night (and my comp ran out of battery when I was out doing something else, thus eliminating my 8hr progress report was like 3m xp at 400k~/hr at waterfiends), I feel obliged to report it still owns. The only issues were the misclicks when the monster has moved from/while you're trying to click it. It actually caused me to move into another room at the chaos tunnels :c However, I don't see a workable solution to that problem and it isn't particularly bad so it's still the best I've used.
Threshold
2015-04-10 22:21:16
From: J_R
Since I fired this up last night (and my comp ran out of battery when I was out doing something else, thus eliminating my 8hr progress report was like 3m xp at 400k~/hr at waterfiends), I feel obliged to report it still owns. The only issues were the misclicks when the monster has moved from/while you're trying to click it. It actually caused me to move into another room at the chaos tunnels :c However, I don't see a workable solution to that problem and it isn't particularly bad so it's still the best I've used.
Agreed. The only other thing I can get picky about is that it targets wfs far away from you when there are like 2-3 beside you. I had some random come in and say "nice bot" but luckily I was talking and he left.
bonsai
2015-04-11 03:58:22
From: J_R
Since I fired this up last night (and my comp ran out of battery when I was out doing something else, thus eliminating my 8hr progress report was like 3m xp at 400k~/hr at waterfiends), I feel obliged to report it still owns. The only issues were the misclicks when the monster has moved from/while you're trying to click it. It actually caused me to move into another room at the chaos tunnels :c However, I don't see a workable solution to that problem and it isn't particularly bad so it's still the best I've used.
Yeah, with left clicking that's about the best we can do. I miss by hand that way, too.
From: Doa Envy
Agreed. The only other thing I can get picky about is that it targets wfs far away from you when there are like 2-3 beside you. I had some random come in and say "nice bot" but luckily I was talking and he left.
Good reason to babysit!
It used to re-attack the npc it just killed and suffer a long delay. So the code to avoid the player box and current fight probably adds too much leeway.
I'm going to try to work in some of the mods lovebotter / others have posted. I have to gather and organize it first. Not sure my character can do the things people are talking about :)
Thomas
2015-04-11 06:24:41
From: bonsai
Yeah, with left clicking that's about the best we can do. I miss by hand that way, too.
Good reason to babysit!
It used to re-attack the npc it just killed and suffer a long delay. So the code to avoid the player box and current fight probably adds too much leeway.
I'm going to try to work in some of the mods lovebotter / others have posted. I have to gather and organize it first. Not sure my character can do the things people are talking about :)
You'll probably be able to do all the mods I suggested, besides SGS IIRC. Feel free to pm me the codes you want to add if I need to look for errors.
What could perhaps lead to a more clean code would be something like this;
While hp>heal hp (the one for sgs/regenerate) do various combat abils for better dps
else heal with sgs/regenerate.
And have a different procedure to eat food that differs from the combat abils, that automaticly eats under a certain hp. Independent of timers etc. And you call that procedure before the abils procedure. And perhaps more often in the main loops if needed.
klamor
2015-04-11 07:40:01
i thought i would take a crack at implementing those features into bl.combat, and i seem to have cleaned it up a bit, however i am getting a compiling error at line 542 in bl.combat
Error: Invalid evaluation at line 542
function TcombatMgr.attack var npc: Tnpc; waitTilDead: boolean;
i think i'm just missing some parentheses or something like that, because i haven't changed any code on this line (unless accidentally)
Thomas
2015-04-11 08:22:34
From: klamor
i thought i would take a crack at implementing those features into bl.combat, and i seem to have cleaned it up a bit, however i am getting a compiling error at line 542 in bl.combat
i think i'm just missing some parentheses or something like that, because i haven't changed any code on this line (unless accidentally)
Yes, that's most likely what happened I suppose. But once again, please note that the suggestions I have posted are only meant for bonsai.
Here should be a working code:
To use this, just replace the original procedure in the blCombat.simba file and change your action bar keys to whatever you want to use (ingame or in the code, so they both match).
This code allows both the use of regenerate and sgs spec. You have to edit one of them out by using //, it currently uses SGS, and regenerate is ruled out. (The same can be achieved by putting the code between the { and } brackets.
procedure __defaultHealthCheck();
var
berserkTimer: TTimeMarker;
assaultTimer: TTimeMarker;
begin
if (actionbar.getHPPercent() < 40) then
begin
sendKeys('m', 250, 40);
wait(gaussRangeInt(300, 1000));
exit;
end;
if (actionbar.getHPPercent() < 20) then
begin
writeln('***** Terminating script due to low health');
terminateScript();
end;
if (combatMgr.healthTimer.getTime() < 3600) then
exit;
while (actionbar.getHPPercent() > 70) do
begin
if (actionbar.getAdrenalinePercent() = 100) and (berserkTimer.getTime() > 60000) then
begin
sendKeys('b', 200, 40);
berserkTimer.start();
wait(gaussRangeInt(100, 200));
combatMgr.healthTimer.start();
exit;
end;
if (actionbar.getAdrenalinePercent() > 50) and (assaultTimer.getTime() > 30000) then
begin
sendKeys('a', 200, 40);
assaultTimer.start();
wait(gaussRangeInt(100, 200));
combatMgr.healthTimer.start();
exit;
end;
end;
while (actionbar.getHPPercent() < 70) do
begin
if (actionbar.getAdrenalinePercent() > 50) then
begin
sendKeys('s', 140, 40);
wait(gaussRangeInt(400, 1000));
combatMgr.healthTimer.start();
exit;
end;
// if (actionbar.getAdrenalinePercent() > 30) then
// begin
// sendKeys('r', 200, 50);
// repeat
// wait(600);
// until actionbar.getAdrenalinePercent() < 15;
// wait(gaussRangeInt(100, 1300));
// combatMgr.healthTimer.start();
// exit;
// end;
end;
end;
klamor
2015-04-11 11:31:29
From: lovebotter
Yes, that's most likely what happened I suppose. But once again, please note that the suggestions I have posted are only meant for bonsai.
Here should be a working code:
To use this, just replace the original procedure in the blCombat.simba file and change your action bar keys to whatever you want to use (ingame or in the code, so they both match).
This code allows both the use of regenerate and sgs spec. You have to edit one of them out by using //, it currently uses SGS, and regenerate is ruled out. (The same can be achieved by putting the code between the { and } brackets.
thanks a bunch, working beautifully now. :D
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 7 hr 6 min 23 sec(Total) 7 hr 6 min 23 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// waterfiend 3,210 451.71 451.71 //////////
////////// XP 2,854,332 401,656.44 401,656.44 //////////
////////// Const XP 951,444 133,885.48 133,885.48 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Still going
Sinix
2015-04-11 15:32:39
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 11 hr 26 min 42 sec(Total) 11 hr 12 min 13 sec(Active) 14 min 29 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Goblin 5,790 505.89 516.8 //////////
////////// XP 163,278 14,266.08 14,573.63 //////////
////////// Const XP 54,426 4,755.36 4,857.88 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
destinyxx
2015-04-11 21:49:48
Excuse me if this sounds noobish.
/*————————-From Bonsai first post—————————-
program corpseTorso;
{$DEFINE SMART}
{$include_once srl-6/srl.simba}
{$include_once bonsai/blCombat.simba}
var
ccTorso: Tnpc;
i: integer;
begin
SetupSRL();
ccTorso.init('crawling-corpse-torso', true);
for i := 0 to 5 do
begin
combatMgr.attack(ccTorso, true {wait until dead},
nil {use default foodhandler}, MOUSE_RIGHT);
sleep(5000);
end;
————————-From Bonsai first post—————————-*/
Some one correct me if im wrong. This script includes Bonsai Fighter and calls the attack function from Bonsai Fighter. So, I'm guessing that to implement a basic looter, Id have to write a script to search the screen for a specific color, right click it and if "xxstringxx" shows, pick it up.
Quick question:: What is the SRL function to search the screen for a color ?
end.
nero_dante
2015-04-12 04:38:34
http://gyazo.com/2178784ecc869e42dc78237c419c5ca1That is where you can pick a colour. or you can use the programa ACA to detect colours :)
bonsai
2015-04-12 04:50:10
From: destinyxx
Quick question:: What is the SRL function to search the screen for a color ?
end.
Variations of findcolor. Type findcol into the search box under your function list.
Search the srl-6 library for lots of examples.
nero_dante
2015-04-12 05:49:55
bonsai, are you or anyone else having a problem loading your script properly? It will open up a client, and then it will log me in, but then it won't start the script just stands there doing nothing. any reason to that? I'm fully updated and have used this bot all the time.
EDIT: nvm, it fixed itself some how lol
PioneerPete
2015-04-14 10:49:26
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 5 hr 6 sec(Total) 4 hr 35 min 51 sec(Active) 24 min 14 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Corpse Spider 3,149 629.56 684.9 //////////
////////// XP 78,410.1 15,676.15 17,053.99 //////////
////////// Const XP 26,136.7 5,225.38 5,684.66 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
used it to level up magic over night, it works fantastic, thank you :)
Polymerase
2015-04-19 12:56:24
Just looking at this script is extremely satisfying, good work! 5/5
Threshold
2015-04-21 23:15:53
How might I make this work for kalgerions? :p
Buxtons
2015-04-22 19:06:05
How are people lasting so long at Waterfiends? The 2 times I've tried I've died and lasted about an hour before running out of food.
PootisMann
2015-04-23 22:21:11
Anyone make this able to pick up charms yet?
Buxtons
2015-04-24 07:12:10
From: PootisMann
Anyone make this able to pick up charms yet?
Get a charming imp, it's only 100k dung tokens. :D
madmaxman3
2015-04-26 12:40:48
SmallP3n0r
2015-04-28 17:46:22
Works like a charm.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 9 hr 53 min 49 sec(Total) 7 hr 49 min 4 sec(Active) 2 hr 4 min 45 sec(Break)///////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// corpse-spider 5,280 533.49 675.37 //////////
////////// XP 5,280 533.49 675.37 //////////
////////// Const XP 1,760 177.83 225.12 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
bonsai
2015-04-28 21:43:13
From: madmaxman3
i am having trouble running this! http://gyazo.com/56ec308150a75e2b3423bfb6935e23b8
Sorry, maxmadman, I missed this. I assume you sorted it out?
You have some old SRL code there, choose SRL->update on your simba.
photomac54
2015-05-06 00:49:19
The script works great for me but I have a question about the red dot(mouse). It keeps looking for colors every 3rd monster and will go crazy all over the screen. Is that something to worry about it terms of being detected for botting? Also any way to add potion drinking? I could add it in myself but there is no script unless I have to dig it up from somewhere.
Mar-TINO
2015-05-06 06:45:37
I used this script in its earliest form, great to see how far it has advanced! I'm curious, could I give you my colour files for your google drive?
From: photomac54
The script works great for me but I have a question about the red dot(mouse). It keeps looking for colors every 3rd monster and will go crazy all over the screen. Is that something to worry about it terms of being detected for botting? Also any way to add potion drinking? I could add it in myself but there is no script unless I have to dig it up from somewhere.
I'm having the same result here - the mouse jumps all over. Seems kind of bannable, unless I've greatly mistaken how the new bot catching system works.
As for adding potions, the script itself is stored in an include folder, typically at "C:\Simba\Includes\bonsai".
photomac54
2015-05-08 21:46:10
From: adc
I'm having the same result here - the mouse jumps all over. Seems kind of bannable, unless I've greatly mistaken how the new bot catching system works.
As for adding potions, the script itself is stored in an include folder, typically at "C:\Simba\Includes\bonsai".
Thanks for the file location.
bonsai
2015-05-09 05:05:52
From: BottingFTW
I used this script in its earliest form, great to see how far it has advanced! I'm curious, could I give you my colour files for your google drive?
It would be great to keep them updated, thanks! I sent you a link.
From: photomac54
The script works great for me but I have a question about the red dot(mouse). It keeps looking for colors every 3rd monster and will go crazy all over the screen. Is that something to worry about it terms of being detected for botting? Also any way to add potion drinking? I could add it in myself but there is no script unless I have to dig it up from somewhere.
From: adc
I'm having the same result here - the mouse jumps all over. Seems kind of bannable, unless I've greatly mistaken how the new bot catching system works.
As for adding potions, the script itself is stored in an include folder, typically at "C:\Simba\Includes\bonsai".
For altering the script you probably want to understand and modify blCombat.simba in that folder. The past few pages of this thread have a lot of posted mods.
If you got banned for the mouse we would all be banned.
That's how it colors. It stops doing it once you have a decent supply of information.
That's one reason it's good to have that color file stash so you can have information ahead of time.
destinyxx
2015-05-09 15:07:06
I know this is a bit of a far shot and not fair, but im in a very tight situation and dont have time to implement a looter:P
Could anyone please share a simple looter implemented with bonsai's awesome script? You could just private message me:P
Thanks a lot
For some reason it stops after logging in
SmallP3n0r
2015-05-10 10:54:39
Check your graphics settings and make sure they match what's required.
Fr3akNL
2015-05-11 13:36:58
Hey working quite well! Here the colors for chickens:
here/cXNdT4JR
Thomas
2015-05-13 03:59:38
Just dropping this off here, it's my health check procedure I use in my own combat script.
Do note that you cannot just copy paste this into this script! It'll have to be changed somewhat.
procedure checkHealth();
begin
case actionbar.getHPPercent() of
0..20: terminateScript();
21..40: sendKeys('m', 200, 40);
41..70:
if (actionbar.getAdrenalinePercent() > 50) then
sendKeys('s', 200, 40);
71..100:
begin
if (berserkTimer.getTime() > 60000) and (actionbar.getAdrenalinePercent() = 100) then
begin
sendKeys('b', 200, 40);
berserkTimer.start();
exit;
end;
if (assaultTimer.getTime() > 30000) and (actionbar.getAdrenalinePercent() > 50) then
begin
sendKeys('a', 200, 40);
assaultTimer.start();
end;
end;
end;
end;
@bonsaiHope this might be usefull to you.
I'm not pm'ing this to bonsai as others might have some uses for it aswell.
bonsai
2015-05-14 01:26:59
From: lovebotter
@bonsai
Hope this might be usefull to you.
I'm not pm'ing this to bonsai as others might have some uses for it aswell.
Thanks, these are helpful to everyone. I'm still so busy IRL I haven't even thought about updating things. I check the site from my phone and that's about it.
If you guys come with a modded blCombat that supports some of these extra features I would certainly try to get it merged/posted.
@BottingFTW uploaded some new color files to the shared drive, an updated waterfiend plus gargoyle and jadinko
sombix71
2015-05-14 04:09:46
''OVERLOAD. More than 30000 matches.''
Hmm… Now that's funny.
drew3170
2015-05-14 17:16:04
Can anyone help me setup looting for noted items? Mostly from abyssal demons and dark beasts. Any help would be awesome!!!
sombix71
2015-05-14 18:46:40
From: lovebotter
Yes, that's most likely what happened I suppose. But once again, please note that the suggestions I have posted are only meant for bonsai.
Here should be a working code:
To use this, just replace the original procedure in the blCombat.simba file and change your action bar keys to whatever you want to use (ingame or in the code, so they both match).
This code allows both the use of regenerate and sgs spec. You have to edit one of them out by using //, it currently uses SGS, and regenerate is ruled out. (The same can be achieved by putting the code between the { and } brackets.
procedure __defaultHealthCheck();
var
berserkTimer: TTimeMarker;
assaultTimer: TTimeMarker;
begin
if (actionbar.getHPPercent() < 40) then
begin
sendKeys('m', 250, 40);
wait(gaussRangeInt(300, 1000));
exit;
end;
if (actionbar.getHPPercent() < 20) then
begin
writeln('***** Terminating script due to low health');
terminateScript();
end;
if (combatMgr.healthTimer.getTime() < 3600) then
exit;
while (actionbar.getHPPercent() > 70) do
begin
if (actionbar.getAdrenalinePercent() = 100) and (berserkTimer.getTime() > 60000) then
begin
sendKeys('b', 200, 40);
berserkTimer.start();
wait(gaussRangeInt(100, 200));
combatMgr.healthTimer.start();
exit;
end;
if (actionbar.getAdrenalinePercent() > 50) and (assaultTimer.getTime() > 30000) then
begin
sendKeys('a', 200, 40);
assaultTimer.start();
wait(gaussRangeInt(100, 200));
combatMgr.healthTimer.start();
exit;
end;
end;
while (actionbar.getHPPercent() < 70) do
begin
if (actionbar.getAdrenalinePercent() > 50) then
begin
sendKeys('s', 140, 40);
wait(gaussRangeInt(400, 1000));
combatMgr.healthTimer.start();
exit;
end;
// if (actionbar.getAdrenalinePercent() > 30) then
// begin
// sendKeys('r', 200, 50);
// repeat
// wait(600);
// until actionbar.getAdrenalinePercent() < 15;
// wait(gaussRangeInt(100, 1300));
// combatMgr.healthTimer.start();
// exit;
// end;
end;
end;
I tried this but the script got stuck at 'Booting up'. Mind you there were no compiling errors either.
sombix71
2015-05-14 19:12:20
From: lovebotter
Just dropping this off here, it's my health check procedure I use in my own combat script.
Do note that you cannot just copy paste this into this script! It'll have to be changed somewhat.
procedure checkHealth();
begin
case actionbar.getHPPercent() of
0..20: terminateScript();
21..40: sendKeys('m', 200, 40);
41..70:
if (actionbar.getAdrenalinePercent() > 50) then
sendKeys('s', 200, 40);
71..100:
begin
if (berserkTimer.getTime() > 60000) and (actionbar.getAdrenalinePercent() = 100) then
begin
sendKeys('b', 200, 40);
berserkTimer.start();
exit;
end;
if (assaultTimer.getTime() > 30000) and (actionbar.getAdrenalinePercent() > 50) then
begin
sendKeys('a', 200, 40);
assaultTimer.start();
end;
end;
end;
end;
@bonsai
Hope this might be usefull to you.
I'm not pm'ing this to bonsai as others might have some uses for it aswell.
Also this
''Error: Unknown declaration "berserkTimer" at line 486
Compiling failed.''
I'm relatively new to this so I'm getting confused :p
sombix71
2015-05-15 16:45:23
BUG report: The bot hops on to an another monster while there's already a monster that it is supposed to kill.
Another Bug: The bot never uses Rejuvenation even if it's off-Cooldown. However, it will perform Berserk or any other ultimates.
A small bug: The bot doesn't utilize manual abilities very well and it tends to wait a few seconds to do abilities in between.
Thomas
2015-05-16 07:16:48
Does anyone know a good melee training spot for 50-75 combat stats?
Theron
2015-05-16 19:40:03
From: lovebotter
Does anyone know a good melee training spot for 50-75 combat stats?
Hill giants, Moss giants are nice. I did Moss giants until 75 attack, then started using sgs at fire giants!! Great xp/hr.
sombix71
2015-05-16 21:42:35
From: Theron
Hill giants, Moss giants are nice. I did Moss giants until 75 attack, then started using sgs at fire giants!! Great xp/hr.
Please do tell me, how did you get Fire Giants to work? For me, it scans over 100,000 colours (!) and only 3 of them were 'deemed' viable for usage.
Also, can you get Deadly Red Spider to work? Can you please post colors?
Theron
2015-05-16 22:31:08
From: sombix71
Please do tell me, how did you get Fire Giants to work? For me, it scans over 100,000 colours (!) and only 3 of them were 'deemed' viable for usage.
Also, can you get Deadly Red Spider to work? Can you please post colors?
i used the colors that are on the OP. You need to save them in the colors file. C drive > simba > include > Bonsai > colors.
after you save the files, restart your script and they should be under your NPC options. I used Fire Giants in the chaos tunnels, I zoomed in my screen so it only saw the one room with the fire giants, versus having your screen zoomed all the way out.
sombix71
2015-05-17 00:54:54
From: Theron
i used the colors that are on the OP. You need to save them in the colors file. C drive > simba > include > Bonsai > colors.
after you save the files, restart your script and they should be under your NPC options. I used Fire Giants in the chaos tunnels, I zoomed in my screen so it only saw the one room with the fire giants, versus having your screen zoomed all the way out.
Many cheers friend!
Theron
2015-05-18 01:38:03
From: sombix71
Many cheers friend!
Hope i helped!! Goodluck!
klamor
2015-05-18 02:06:29
anyone else having issues detecting end of fight? my character just sits there while the fight circle indicator is off in nowhere land
rickhunley
2015-05-18 09:28:58
From: klamor
anyone else having issues detecting end of fight? my character just sits there while the fight circle indicator is off in nowhere land
I think it's to mimic somewhat of human behaviour. Would be a dead giveaway if you were auto clicking the next monster. Plus it could be building colours etc.
yourule97
2015-05-18 09:46:48
From: klamor
anyone else having issues detecting end of fight? my character just sits there while the fight circle indicator is off in nowhere land
I've been having problems with the bot not recognizing when the fight circle is gone. I'm sure you can try and edit the code yourself, but its a bit more difficult to actualy do. Personally, I did a primitive fix where I created my own fighting script following the example in the original post. I adjust the wait values for every slayer task I have, and I'm looking to write my own fight recognition method afterwards, but it works anyways.
rickhunley
2015-05-18 10:59:51
Sorry, noob question, how do you loot items? Thanks
rickhunley
2015-05-18 11:31:36
My character isn't eating food :(
I set food bind key to Z and 70% health, and character now at 45% health and is not eating.
The food is salmon.
Thanks
From: rickhunley
Sorry, noob question, how do you loot items? Thanks
This script won't loot items by itself, you can however incorporate it in a script of your own that loots. This is explained in the OP.
From: rickhunley
My character isn't eating food :(
I set food bind key to Z and 70% health, and character now at 45% health and is not eating.
The food is salmon.
Thanks
Was it working initially, then stopped working? or did it never work for you?
EDIT: also please avoid double posting, you can always edit your posts to add more info, ask more questions!
rickhunley
2015-05-18 19:12:08
From: fady
This script won't loot items by itself, you can however incorporate it in a script of your own that loots. This is explained in the OP.
Was it working initially, then stopped working? or did it never work for you?
EDIT: also please avoid double posting, you can always edit your posts to add more info, ask more questions!
Thanks. Sorry new to forum. Yes it's working now, had to put food in = slot :)
klamor
2015-05-19 11:34:05
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 7 hr 58 min 8 sec(Total) 7 hr 9 min 47 sec(Active) 48 min 21 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Fire giant 2,452 307.69 342.3 //////////
////////// XP 990,853.2 124,336.2 138,325.1 //////////
////////// Const XP 330,284.4 41,445.4 46,108.37 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Had a little trouble getting it to use SGS, after fiddling with bl.combat's defaulthealthcheck method and not getting anywhere i eneded up just using my mouse's macro settings to mace a macro to spam sgs
Oratic
2015-05-19 19:22:12
I am a noob and don't even know how to start this script :/
Edit:
Got this to start finally, but when I do hellhounds it logs in then doesn't do anything at all then it crashes. I have no idea what to do.
Also tried it with waterfiends just stands there and does nothing then crashes.
bonsai
2015-05-20 05:32:13
From: Oratic
I am a noob and don't even know how to start this script :/
Edit:
Got this to start finally, but when I do hellhounds it logs in then doesn't do anything at all then it crashes. I have no idea what to do.
Also tried it with waterfiends just stands there and does nothing then crashes.
When you're looking for assistance, it's important to provide as much information and evidence as you can.
If you posted a screenshot people could see if you were set up right. The text in the simba debug window probably says what is wrong, but you didn't share it with us.
"this crashed" cannot be solved.
bonsai
2015-05-20 06:01:07
A note to people interested in making modifications / looting / etc. Consider using
Basic Fighter as your base.
I said it before and I mean it. This script does almost nothing. It finds an NPC, clicks on it, and repeats. The only special thing about bonsaiFighter is the autocoloring.
I weeded out all the code that actually does something and put it into basic fighter. There's about 200 lines of forms and 200 lines of fighter. Surely people would rather play with that than 30,000 lines of non-fighting libraries?
dutchp0wner
2015-05-20 06:27:54
Thanks for the explanation, I'll try it. :)
Oratic
2015-05-20 12:16:56
From: bonsai
When you're looking for assistance, it's important to provide as much information and evidence as you can.
If you posted a screenshot people could see if you were set up right. The text in the simba debug window probably says what is wrong, but you didn't share it with us.
"this crashed" cannot be solved.
Sorry for the lack of information, I uninstalled Simba then re-installed it and everything worked great!
Oratic
2015-05-21 05:04:41
Actually Bonsai have a question for you, is there anything that I could add to the script somewhere that will close the bot warning when it tries to log back in?
It doesn't log back in a second time due to the bot warning being there.
klamor
2015-05-21 23:17:04
From: Oratic
Actually Bonsai have a question for you, is there anything that I could add to the script somewhere that will close the bot warning when it tries to log back in?
It doesn't log back in a second time due to the bot warning being there.
what bot warning? i've never seen that
Oratic
2015-05-21 23:59:35
From: klamor
what bot warning? i've never seen that
This right here it covers majority of the screen and is there EVERY time you login.
[ATTACH=CONFIG]25995[/ATTACH]
rickhunley
2015-05-22 01:22:42
@Oratic, perhaps have a look at the code and see how the script clicks the login button and select world button etc and see if that will help.
It looks like the close button is a fixed co-ordinate, so that should help.
I'm not aware of the exact scripting functions myself, but there is this forum to help and the IRC.
https://villavu.com/forum/forumdisplay.php?f=646
klamor
2015-05-22 02:04:32
From: Oratic
This right here it covers majority of the screen and is there EVERY time you login.
[ATTACH=CONFIG]25995[/ATTACH]
lmao that's interesting i've never seen that message before
bonsai
2015-05-22 03:15:45
From: klamor
lmao that's interesting i've never seen that message before
It goes away after your punishment, i had it once
I thought there might be an srl func to close it
Oratic
2015-05-22 07:32:23
From: bonsai
It goes away after your punishment, i had it once
I thought there might be an srl func to close it
It's been almost a month, some people say it goes away after a month. I will look around and see if there is a function to close it.
sombix71
2015-05-24 04:01:36
From: Oratic
This right here it covers majority of the screen and is there EVERY time you login.
[ATTACH=CONFIG]25995[/ATTACH]
Hahahaha, seriously!? I mean it's not a bad thing for us botters, but why would they allow for 3 strikes?! Hahaha. Typical Jagex.
From: bonsai
It goes away after your punishment, i had it once
I thought there might be an srl func to close it
I tried your Basic Fighter script. I posted a bug report :3
Oratic
2015-05-24 22:25:11
From: sombix71
Hahahaha, seriously!? I mean it's not a bad thing for us botters, but why would they allow for 3 strikes?! Hahaha. Typical Jagex.
I tried your Basic Fighter script. I posted a bug report :3
It sucks when you are trying to bot now because it won't be able to log back in and continue for long time.
klamor
2015-05-25 19:19:02
has anybody gotten food/sgs to work properly? i still cant manage to get either of them to work at all
Oratic
2015-05-26 00:35:21
Hey bonsai, I have a script to close the bot warning, but cannot figure out how to add it into your script. Is there a way you could add it for me then send me the script?
Oratic
2015-05-29 13:02:29
For some reason mine only run for about an hour or less then gives this most of the time.
The following bitmaps were not freed: [19, 20]
Then the next one consisted of this:
The following bitmaps were not freed: [17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 105, 106, 107, 108, 109, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 136, 137, 138, 139, 140, 141, 142, 143, 144]
Oratic
2015-06-01 01:58:51
I constantly am dieing, are you gonna update it?
bonsai
2015-06-01 04:06:02
From: Oratic
I constantly am dieing, are you gonna update it?
The lines of output you posted are normal. The real issue is probably 1-30 lines above it.
If you are having a problem, include a picture (the script leaves one in srl-6\logs folder), information on what you are fighting, what you observed, all of the output from the simba window…
No one can help unless you help yourself. "I'm dying" is hard to fix.
after logging in the script isn't doing anything? what's going on?
Sawyer
2015-06-09 18:29:00
From: AustinChurch
after logging in the script isn't doing anything? what's going on?
Are you using the correct SRL setup for botting in game? Are you using DirectX or OGL?
From: Sawyer
Are you using the correct SRL setup for botting in game? Are you using DirectX or OGL?
I'm using DirectX. My laptop was running OGL for a while but after starting playing runescape again it won't support OGL. I'm using the plug-in for DirectX. I'd like to get this working. Thanks
Do you have the action bar minimized? It's also likely that you haven't quite done the setup correctly, check this:
https://villavu.com/forum/showthread.php?t=107365 and make sure that you are not running incorrect graphics/interface settings (it might have defaulted to safe mode and you'll have to manually tell it to use directx in graphics settings). I tried running this last night and had no issues.
CandleKitty0
2015-06-10 17:05:51
2013 and this script is still going great for me! Best auto fighter/eater I've seen
Sawyer
2015-06-10 17:59:18
From: AustinChurch
I'm using DirectX. My laptop was running OGL for a while but after starting playing runescape again it won't support OGL. I'm using the plug-in for DirectX. I'd like to get this working. Thanks
Look Below, this might solve your problem.
From: J_R
Do you have the action bar minimized? It's also likely that you haven't quite done the setup correctly, check this: https://villavu.com/forum/showthread.php?t=107365 and make sure that you are not running incorrect graphics/interface settings (it might have defaulted to safe mode and you'll have to manually tell it to use directx in graphics settings). I tried running this last night and had no issues.
Matt B
2015-06-11 07:31:28
Is there a way to be able to drink prayer pots when prayer gets too low?
The script is finally working!
Oratic
2015-06-12 02:07:36
Hey man for some reason the few color files I tried just do this, wont find the npc then will look for colors then kill 1 then keep looking for colors.
srlMW
2015-06-12 02:16:29
From: Oratic
image
I think you'd enjoy using blur on your images, it adds quite a satisfactory effect.
bonsai
2015-06-12 03:23:17
From: Oratic
Hey man for some reason the few color files I tried just do this, wont find the npc then will look for colors then kill 1 then keep looking for colors.
Your graphics quality looks much better than the example in the OP. Do you have proper settings?
Did you try making your own color file from scratch?
Oratic
2015-06-12 15:11:01
From: bonsai
Your graphics quality looks much better than the example in the OP. Do you have proper settings?
Did you try making your own color file from scratch?
Yeah, everything is set to what it supposed to be.
and yeah it will kill one then keep testing and testing then wont keep that color
bonsai
2015-06-12 16:47:52
From: Oratic
Yeah, everything is set to what it supposed to be.
and yeah it will kill one then keep testing and testing then wont keep that color
Did you delete the old color file (simbadir\includes\bonsai\colors)? Your uptext is turned on?
Oratic
2015-06-12 17:33:37
From: bonsai
Did you delete the old color file (simbadir\includes\bonsai\colors)? Your uptext is turned on?
The only color files I have is the ones I downloaded from the OP.
I'm not sure on how to check that, let me go look.
Oratic
2015-06-12 18:41:06
From: bonsai
Did you delete the old color file (simbadir\includes\bonsai\colors)? Your uptext is turned on?
Could you tell me where to check that?
and also I never turned it off so shouldnt it be okay?
Edit:I even uninstalled all of Simba and stuff associated, I followed all rules and in game graphics. Can't figure out why it won't work.
Edit 2: Looked through everything and it all looks good, tried skeletons again, gonna download another color then try a different creature.
bonsai
2015-06-13 03:05:19
From: Oratic
Could you tell me where to check that?
and also I never turned it off so shouldnt it be okay?
Edit:I even uninstalled all of Simba and stuff associated, I followed all rules and in game graphics. Can't figure out why it won't work.
Edit 2: Looked through everything and it all looks good, tried skeletons again, gonna download another color then try a different creature.
The colors are stored in your SIMBA folder under includes\bonsai\colors. Delete all skeleton files and use autodetect to color them yourself.
It takes a while so be patient. Once in a while coloring fails or you took a file from someone that isn't good. You need to remove that bad file or it will keep using it.
Regarding uptext, it's one of the game options, I don't know where off hand. When you hover over things it should display a box with the NPC name or whatever.
Works so well, thanks for the script!
Bleazy
2015-06-15 04:24:53
I'm a bit stuck trying to get the script to run. I'm trying to use it to kill Al Kharid Warriors and from what I can understand I need a color file? How do I find that? Also, the smart client closes 15-20 seconds after it is opened. The script stays running and it will re-open and log in/select a world if I stop/restart it but I can not get it to stay open, any help is appreciated.
nitroxx0025
2015-06-16 20:21:59
script works fine only i cant seem to get the sgs spec working tried manuel ability and trow it in and tried the button
RS3Script
2015-06-17 01:39:57
[ATTACH=CONFIG]26163[/ATTACH]
A progress report from recently. Great Script, Cheers!
nitroxx0025
2015-06-17 09:30:38
any idea how much chance of beeing banned this got if i run it on 2 accs at the same time on the same pc
i play on both legit non have ever botted clean ip not planning in overdoing it there both 90 cb + all by hand
GetHyper
2015-06-17 10:16:08
From: nitroxx0025
any idea how much chance of beeing banned this got if i run it on 2 accs at the same time on the same pc
i play on both legit non have ever botted clean ip not planning in overdoing it there both 90 cb + all by hand
Any kind of botting brings the risk of being banned, if your not willing to lose it then don't bother.
I'm guessing there are certain bot stop areas (guessing) so think logically and also take breaks(maybe).
nitroxx0025
2015-06-17 10:51:34
From: GetHyper
Any kind of botting brings the risk of being banned, if your not willing to lose it then don't bother.
I'm guessing there are certain bot stop areas (guessing) so think logically and also take breaks(maybe).
true jeah botting in spots people almost never come and if people come i just talk to em for a while and take regular breaks
thx for the answer
TimeRiders
2015-06-17 18:58:59
The script wont eat for me
KeepBotting
2015-06-17 19:00:42
From: TimeRiders
The script wont eat for me
You'll have to provide a bit more information than that in order to receive assistance. A screenshot of your game client when this error is occurring would be a good start.
TimeRiders
2015-06-17 19:17:43
From: KeepBotting
You'll have to provide a bit more information than that in order to receive assistance. A screenshot of your game client when this error is occurring would be a good start.
No screenshot needed the script runs perfect , fights , it just wont eat i have the correct keys set up and what not no biggie though ill just eat manual :P :)
EDIT: INSTEAD OF EATING IT TRIES TO REGEN HEALTH BY PRESSING THE HP BUTTON
bonsai
2015-06-18 03:36:32
From: TimeRiders
No screenshot needed the script runs perfect , fights , it just wont eat i have the correct keys set up and what not no biggie though ill just eat manual :P :)
EDIT: INSTEAD OF EATING IT TRIES TO REGEN HEALTH BY PRESSING THE HP BUTTON
There are no correct keys, they are user assignable.
What did you enter on the form for the food key and the sgs key?
Please show us a picture so we can see the food on your actionbar on that key. The script saves one on exit in SIMBADIR\includes\srl-6\logs
bonsai
2015-06-18 03:40:56
From: Bleazy
I'm a bit stuck trying to get the script to run. I'm trying to use it to kill Al Kharid Warriors and from what I can understand I need a color file? How do I find that? Also, the smart client closes 15-20 seconds after it is opened. The script stays running and it will re-open and log in/select a world if I stop/restart it but I can not get it to stay open, any help is appreciated.
Did you get it going, Bleazy?
You don't need a color file, you can use autodetect on new things.
I don't recall smart windows closing, they always stay open. Do other scripts work? Sounds really odd.
Bleazy
2015-06-18 21:31:40
Yea I got it going, it is working great. Thanks!
Garden of Sinners
2015-06-19 19:26:44
Thanks for this. Going to post some progress reports.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 6 hr 30 min 19 sec(Total) 5 hr 54 min 56 sec(Active) 35 min 22 sec(Break)//////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Yak 2,281 350.63 385.58 //////////
////////// XP 147,124.5 22,615.35 24,869.75 //////////
////////// Const XP 49,041.5 7,538.45 8,289.92 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 3 hr 4 min 38 sec(Total) 2 hr 46 min 25 sec(Active) 18 min 13 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// yak 1,171 380.52 422.19 //////////
////////// XP 75,529.5 24,543.83 27,231.09 //////////
////////// Const XP 25,176.5 8,181.28 9,077.03 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 31 min 59 sec(Total) 31 min 59 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Banshee 153 286.92 286.92 //////////
////////// XP 8,583.3 16,096.33 16,096.33 //////////
////////// Const XP 2,861.1 5,365.44 5,365.44 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 1 hr 44 min 33 sec(Total) 1 hr 44 min 33 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// Banshee 715 410.32 410.32 //////////
////////// XP 40,111.5 23,019.21 23,019.21 //////////
////////// Const XP 13,370.5 7,673.07 7,673.07 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
sensimilla
2015-10-08 17:59:37
Hey bonsai, I've been using this script lately, is there a way for this to support prayer renewals potions in actionbar?
terrorbyte
2015-10-12 08:07:41
Progress Report 12-October-2015
Script is still working flawless AS OF DATE 12-OCTOBER-2015
I managed to level up till level 50 combat level using this script within 2 days of using it. 8-10 hours per/day
Amazing piece of scripting that also accounts for taking breaks to make it human-like.
Unfortunately I didn't copy/paste the the script progress to see how much XP I earned since I paused it multiple times.