Jump to content

Ace Barbarian Slayer


Ace99

Recommended Posts

 

AceBarbSlayer.png.c8b175d0899ec2ed462eefbc76a61397.png

Hello everyone!

Thank you for taking the time to look at my script.  This is my first script and my goals were to get my feet wet and get into the scene.  I have about three weeks of Java experience and the same amount with the API, 

I wanted to make something unique that:

  • Is not all to common to bot
  • Can be used F2P and P2P
  • Involved API basics
    • Movement
    • Banking functions
    • Interacting with NPCs
    • Interacting with inventory 
    • GUI with options
    • Paint with updating variables

This script is pretty basic and will simply navigate between Edgeville bank and the Barbarian Village,  filling inv with selected food at the bank and killing barbarians/eating food as needed.

GUI.JPG.a0ad2ca1e9f0b5c40c3abf33ffb3d4f7.JPG

Biggest difficulties:

  • Player would attack NPC out of the area and then loops between clicking back into area and back to the NPC
  • Pausing the GUI while options are selected!!!
  • Correct conditional sleeps while banking/banking code

Things to improve as my experience increase:

  • Use widgets to make sure combat style matches what is selected in GUI
  • More attractive/interactive Paint layout
  • Add a selection to GUI to fight the weaker Barbarians around the strong hold or the harder ones in the hall
  • Use of potions

screenshot_07_04_2020-10_39_08.png.eab1720c12c21bdef30f2c4a491053c7.png

All in all this was fun to make and ended up being useful to level up a low level accounts, or even a pures, combat stats.

All constructive criticism is welcome.

Big thanks to @Explv for the Scripting 101 tutorial.  Wouldn't have been here without it!

Updates:

  • New name/icon/paint
  • More variables of food
  • Supports range exp tracker

 

BarbarianSlayerBSN.jpg

Paint edit.jpg

Edited by Ace99
Added updates
  • Like 3
Link to comment
Share on other sites

  • 2 months later...

Currently Experiencing a problem where the bot will open but instantly terminate

--INFO][Bot #1][09/19 10:09:05 AM]: Loaded 3 built-in random solvers!
[INFO][Bot #1][09/19 10:09:05 AM]: Waiting for input.
[INFO][Bot #1][09/19 10:09:11 AM]: Main method variable food = Trout
[INFO][Bot #1][09/19 10:09:11 AM]: Main method variable skill = DEFENSE
[INFO][Bot #1][09/19 10:09:11 AM]: Time to kill
[ERROR][Bot #1][09/19 10:09:11 AM]: Error in script onStart(): BSN Barbarian Killer
java.lang.NullPointerException
    at org.osbot.rs07.api.util.ExperienceTracker.start(re:153)
    at Main.onStart(o:264)
    at org.osbot.rs07.event.ScriptExecutor.IiiIIiiIiiii(hn:50)
    at org.osbot.rs07.event.ScriptExecutor.start(hn:177)
    at org.osbot.lpT1.IiiIIiiIiiii(wv:222)
    at org.osbot.lPt7.IiiIIiiIiiii(xu:256)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
[INFO][Bot #1][09/19 10:09:11 AM]: Terminating script BSN Barbarian Killer...
[INFO][Bot #1][09/19 10:09:11 AM]: Script BSN Barbarian Killer has exited!

Link to comment
Share on other sites

On 9/19/2019 at 12:23 PM, NikWitDaNike said:

Currently Experiencing a problem where the bot will open but instantly terminate

Hey man,

I just got back up and running after a long moving process, and just saw you message.  Let me see if I can find a solution and get back to you!

 

Update:

It appears it doesn't like the DEFENSE variable selected because I spelled it wrong. I was able to mimic your error by selecting the defense option which apparently is spelled with a "c" not an "s".  I will get this updated.  In the mean time you can select the attack style to get defence exp and just select attack or strength in the bot and it wont throw an error (exp just wont track).  

Thanks for the comment!

Edited by BSN007
Updated info
Link to comment
Share on other sites

23 hours ago, JAWZ15 said:

tried it and caught a ban, first and only time getting caught and its a perma ban

Dang, how long did you run it? Kinda ironic you asked about it on Wednesday then you get hit lol!

I went from 1-30 attack, 1-40 strength using it an hour a day.  Then auto clicked 55-75 magic in 4 hour session straight after.  Still using that account to make a new script now. 

Link to comment
Share on other sites

On 10/1/2019 at 5:18 PM, Prolax said:

Would be nice if you add a safespot for range. Between the chairs.

Would make for a nice addition, I can work it in the coming weeks if I find the time. Working on my next project is taking a lot of my attention.

 

I found standing inbetween the rocks by the Stronghold entrance (south side of the entrance) let me range 2 or 3 different npcs and only once in a while one would path behind to hit me. Went from 25ish - 40 range doing that., using cheap arrows and just let them disappear.

Link to comment
Share on other sites

19 hours ago, JAWZ15 said:

I went from 30-40 attack and 30-35 str with it

 

Well I am sorry to hear that.  Nothing can be 100% bullet proof here. 

If you would please answer the following just our of curiosity:

  1. Any quests completed?
  2. Any non-combat skills leveled?
  3. Account ever have membership either bond or paid?
  4. How long since account was made?
Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...