Combat leveling script
Melee/Range/Magic
99s reported:
Features:
- 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
Requirements:
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.
Installing:
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
EOC Abilities:
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.
In-game setup:
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.
Example setup:
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
You can 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.
Simba 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.
Known bugs / issues:
- 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.
Improvements to be made:
- CTS2 color mode
- Form. Needs tabs. Human style breaking needs to be put in.
- Many others...
IMPORTANT NOTE:
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.
Progress reported:
Code:
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// 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 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Credits:
@
Camel - StarPaint debug
@
Cyanempire - Testing, User assistance, color files
@
Clarity - Jsons, web lookup for XP
Color files:
Installer: