Jump to content

Pandemic's Scripting Series: Part I - Setup and Basic Logic [UPDATED FOR OSBOT 2]


Pandemic

Recommended Posts

You shouldn't haven't introduced enums so quickly, since that's pretty complex for a beginner scripter. Back in the ol' day when I was a beginner this was my basic skeleton:

 
//Constants
 
private boolean toWhatever() {
//code
return false;
}
 
private int whatever() {
// code
return 2000;
}
 
private int loop() {
if (toWhatever())
   whatever();
return Random().NextInt(50)+10;
}
 

Otherwise nice structure throughout the thread, I actually learned something new tongue.png

Edited by oTroll
Link to comment
Share on other sites

Allright Pandemic, awesome tutorial. I am not new to coding, as I have created a fairly complex YouTube bot through Visual Basic that took me about 4 months. That being said, I jumped right into Java a while back and lost a lot of the touch I used to have. Looking over this, I like what you did here.

 

I just simply would like to see more diversity in the code. For example, what we can and can't change, and less structured since afterall, scripts can differ so greatly. I suppose what I am trying to say is can you show us what we can add and take away with this script, and diversify the tutorial a bit? Can you also show us more with creating an accurate paint (especially a draggable one, that seems to be the new thing).

 

Looking through what you did here, I feel as if we would have to create a powermining script. How do we add banking? The same way we added that it mines the rocks? But what about finding the nearest location, drawing the points for it to walk (or randomizing them inbetween), etc.? There are just so many unanswered points here, and I almost feel as if I have to create a script where it powermines or powerchops because that's all I would be capable of doing.

Edited by ping pong
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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