Jump to content

Welcome to DreamBot

VIP Enhancement

Want to upgrade your DreamBot experience? Consider signing up for VIP!
VIP allows you to run as many accounts as you want, view the forums ad-free, receive 10% off all script purchases, and so much more!
Visit the store to learn about all of these great features!

Upgrade to VIP Now
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java 8 installed
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox

DreamBot is the only Deadman Mode supported bot on the market!

Download the DreamBot client today!





ThatGuyLo

Is This Script Layout Going To Work?

Recommended Posts

Hello, I am making my first script. I'm not a total scrub at scripting, and am a programming student in college now. 

I just wrote a layout for the script I want to make, and want to make sure that it will work as intended (given I fill in the functions with the correct instructions).

 

I attached a small .txt file if you dont mind looking at it :)

Here is the intended use:

Go to my desired location (im leaving this unnamed) to loot runes.

Once the bot has looted enough runes (as specified) it will go to bank them, and return. 

if it dies, it will simply return to the location

The slight catch is that there are enemies there and the bot has to get tolerance first by being in the area in a safespot for x amount of time

 

 

That's pretty much the jist of it. Rather Simple.

 

Thanks so much in advance!

RuneLooterLayout.txt

Share this post


Link to post
Share on other sites

Would be better off using States rather than a ton of nested if statements. (search the forums for basic script videos).

You're also missing the declaration for the class as well as the script manifest.

Share this post


Link to post
Share on other sites
1 hour ago, NovaGTX said:

Would be better off using States rather than a ton of nested if statements. (search the forums for basic script videos).

You're also missing the declaration for the class as well as the script manifest.

Yeah, I want to use states in my next rendition. I was just using this approach for my first attempt at a working script. 

 

And yeah, it wasn't meant to be actual code, just an outline. 

Was just checking to see if it will work properly, but I'm almost done writing it now, so hopefully I'll be able to see soon :)

Share this post


Link to post
Share on other sites
1 hour ago, tweakin said:

Careful... Yeeter may grab that script, tweak it for 5 minutes, and then use it as his own.

 

 

Just kidding @yeeter01 ;)

This script is much higher quality than anything I've released in a bit so ya never know~  

 

On another note since tweak out here calling me out 🙃.  The logic behind the script should work but like Nova suggested I would look into states or nodes.  Even better if you want to go hard in the paint trees with @Articron's framework. https://github.com/articron/Tree-script

 

Any Q's hmu!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.


×
×
  • Create New...