Jump to content

PyNN

Scripter I
  • Posts

    9
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by PyNN

  1. 2 hours ago, nmba said:
    public void chopOak() throws InterruptedException {
            Area treeOakArea = new Area(3186,3238,3207,3253);

    Since this is a constant value it would be better to initialize this as a member of the class instead of inside of the function, since this is re-initializing the area every time the function is called which isn't needed, not a huge deal here since this is a simple script but generally should not be done.

     

    2 hours ago, nmba said:
    sleep(random(1800,2500));
                new ConditionalSleep(random(5000,7000)) {

    Explv also has a really nice sleeping class in his scripting 101 thread that you can use to avoid these big conditional sleep blocks and clean up your code

     

    2 hours ago, nmba said:
    getBank().open();
                getBank().depositAll("Logs");
                getBank().close();

    Each of these return booleans which you can check to make sure the action was successful, most functions in the osbot api are also like this

    • Like 1
  2. I'm not really sure some of these things are correct not gonna lie.

     

    Quote

    1. Don't use any loops (for, while, etc) - all looping should be in the main osbot loop in the main class

    Maybe behavior related loops should be here, and for search related loops you could use filters/find to help eliminate looping, but I've never ran into any problems using loops in scripts. Not sure this is the best rule to have since they can definitely find their places in scripts and work

     

    Quote

    2. Use if/then, not case statements

    Switch/case are generally more efficient that if/then, they do have their place and you should know when to use them and not to overuse them.

    1 hour ago, BigCahunaBurger said:

    7. One script for one task, use a manager for multiple tasks

    Probably good for beginner scripters (depending on how you're defining a task), but it's definitely possible to write multipurpose scripts fairly easily once you become more experienced.

     

    Maybe some other people can share their thoughts too though, this is just my perspective.

    • Like 2
  3. PyNN's Dark Wizards (V1.0)

    Free-to-play combat/money making script. Kills Dark Wizards south of Varrock and loots runes.

     

    Features

    • Loots runes
    • Ignores runes outside of the wizards area to prevent being lured away
    • Walks back on death
    • Start from anywhere
    • Multiple Options for food
    • Banks runes when restocking food

     

    Screenshots

    This script has not been tested extensively as of now. Feel free to post your own progress pictures and I will add them, or come back soon

    dwss1.png

    dwss2.png

     

    Recommended Setup/Instructions

    Melee Gear recommended

    Script may be started from anywhere, Varrock East bank or Lumbridge Recommended

     

     

     

     

    DarkWizards.jar

    • Like 2
  4. PyNN's Al-Kharid Warriors

    Features (Current Version V1.0.1)

    • Attacks Warriors in Al-Kharid Palace
    • Walks back on death, collecting 10GP from Goblins for the Gate
    • Equips Weapons and Armour on death
    • Start from anywhere

     

    Planned Features

    • Switch attack styles every 5/10 levels

    Screenshots

    akwss1.png

    akwss2.png

     

    Known Problems

    • Sometimes gets stuck walking to Goblins or to the Warriors (Should be fixed)

     

    This is a relatively old script that I had and just refactored a bit for release so report any bugs in this thread

    Will update based on demand

     

     

    AlkharidWarriors.jar

  5. 54 minutes ago, Coolst0rybr0 said:

    Oh ye 100% as much as i'm enjoying the prices being this low for buying purposes i'm kinda sad for the game to see what it will become in a year-2 if prices do continue to drop. I'm expecting another price drop once this new cave update happens as rev's is completely dead and another prime sub inbound in a month? Games gonna hit an all time low if jagex don't get onto it now.

    Shouldn't the rev caves update cause gold to rise? At least that's what I was expecting as it's the largest gold farm in the game and should be made a lot less profitable. Maybe I'm mistaken though

  6. Personal recommendation for the frontend would definitely be Reactjs. While I've never used angular so I can't give a fair comparison, React is fairly easy to work with and will let you develop frontend applications easily. From the little angular code I've looked at, angular seems a lot more cluttered and less modular when working with it (though this could be wrong, it was my first impression).

    For backend, you could use django or flask if you want to stick with python, or try learning typescript and using node.js; Typescript being effectively javascript that allows for typing (All javascript code will work in typescript, but not vice versa).

    • Like 1
×
×
  • Create New...