Jump to content

PwneRL33T

Members
  • Posts

    173
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by PwneRL33T

  1. this is my loop

     

    http://pastebin.com/JcAAhMb7

     

    and this is what happens

     

    d73520520bf3f22dda0b3e50e0a9edd1.gif

     

    i i just don't know what to do now I'm completely stuck..

     

    "go learn basic java" they say, 

    trust me iv'e learnt it and studied it over and over, but no basic java tuts show me about paths for a runescape bot :L

     

    pathwalking method

     

    public void walkPath(Position[] path)
       throws InterruptedException
     {
       for (Position p : path) {
         if ((myPosition().distance(p) <= 16) && 
           (myPosition().distance(p) >= 3))
         {
           boolean success;
           do
           {
             success = walkTile(p);
           } while (!success);
         }
       }
     }
     
     public boolean walkTile(Position p)
       throws InterruptedException
     {
       if (myPosition().distance(p) > 13)
       {
         Position pos = new Position(
           (p.getX() + myPosition().getX()) / 2 + 
           MethodProvider.random(-3, 3), (p.getY() + myPosition().getY()) / 2 + 
           MethodProvider.random(-3, 3), myPosition()
           .getZ());
         walkTile(pos);
       }
       for (int i = 0; i < 2; i++)
       {
    mouse.click(new MiniMapTileDestination(bot, p), false);
       }
       mouse.click(new MiniMapTileDestination(bot, p), false);
       int fail = 0;
       while ((myPosition().distance(p) > 2) && (fail < 10))
       {
         MethodProvider.sleep(500L);
         if (!myPlayer().isMoving()) {
           fail++;
         }
       }
       return fail != 10;
     } 
    
  2. Mate, you really need to learn Java. You've been making countless posts asking to be spoonfed while ignoring the fact that YOU CANNOT SCRIPT WITHOUT JAVA KNOWLEDGE.

    Also, that code is incorrect and doesn't make a path what so ever. I suggest you look into constructors and what they are.

    I'm not asking to be spoonfed, I asked you to put it in a way that a beginner java scripter would understand, I didn't ask for the code for pathing, I simply asked you to put it an easier way, I'm not at your level of coding I can't understand what you are saying.

  3. Iterate over every position in the path to find the closest one to your current position. Once you have that either begin incrementing through the array again from the closest position (if ascending through the path, decrement if descending) checking each position to see whether or not it is within a "walking distance" threshold you set (normally 12-15). If the position is within your threshold, simply store the index and continue checking along the array, storing indexes for positions within the threshold as you go along. Once you reach either the end of the array or a position outside of the threshold return the position at the last stored index.

    Remember that you should account for what happens if no positions were found within your threshold.

    Sorry I don't understand what you mean, something I could more understand would be like, get all your positions making sure they are within clickable distance (usually 10-12 tiles) and the do blah blah, sorry I don't understand when you state, I already have all my positions but just how to make them actually work for the script I am unsure.

    private final Area BANK_PATH = new Area(new Position[] {
    new Position(3240, 3302, 0),
    new Position(3236, 3307, 0),
    new Position(3225, 3321, 0),
    new Position(3212, 3333, 0),
    new Position(3204, 3349, 0),
    new Position(3201, 3367, 0),
    new Position(3187, 3378, 0),
    new Position(3176, 3391, 0),
    new Position(3170, 3407, 0),
    new Position(3172, 3424, 0)
    });
     
    private final Area PICK_PATH = new Area(new Position[] {
    new Position(3172, 3424, 0),
    new Position(3170, 3407, 0),
    new Position(3176, 3391, 0),
    new Position(3187, 3378, 0),
    new Position(3201, 3367, 0),
    new Position(3204, 3349, 0),
    new Position(3212, 3333, 0),
    new Position(3225, 3321, 0),
    new Position(3236, 3307, 0),
    new Position(3240, 3302, 0)
    });
    
  4. hey guys, ive finally finished my main project and have started another one... but this one requires a fair distance from the bank... so i was wondering how do i go about making a path? as its to far to just have main area and then the bank area, ive got all the coords down for the path.. but dont know how to implement it to walk to bank when invo full and walk back to main area when not full..

  5. my SDN scripts fail to load with the error of..

     

    [ERROR][08/26 02:31:45 AM]: Failed to download SDN script list from server!

     

    i know this is not due to my end.. as per i am posting this thread,, iv'e tried everything restart client, restart come, restart modem ect dont know what else to do..

  6. why all this fighting facep.gif

     

    notriouspp: isnt stupid hes part of the api team.

     

    op: You need to know java to script. What you said earlier i dont need to know java is completely stupid. We scripters arent here to spoon feed you. You ask a question and we help as much as we can.

     

    And for you question: Make an instance of your gui, and in the onstart make it visible. Within your gui make public getter methods so you could grab your variables easier.

     

    you obv didnt read other posts by me, saying i didnt mean how that sounded....

     

    but thankyou... thats whta i was asking for...not for spoonfeed

     

    "Make an instance of your gui, and in the onstart make it visible. Within your gui make public getter methods so you could grab your variables easier."

     

    would that have been sooo hard guys???

  7. Because for one, you need to have a basic understand of Java to write scripts... Do you think your using a special "OSRS Script Writting Language"? No. You are using Java.

     

    Because this a question area, not "Please spoonfood all the code I need, so I don't have to learn anything".

     

     

    Even take one step back further, creating a GUI have NOTHING to do with OSRS, that is a built in library in Java (Swing), so yes you need to know Java to create a GUI, which is what we all have said.

     

    then you are stupider than you look, iv'e said about 4 times now i have made the GUI but i dont know how to implement it into my already existent script

  8. Dude you just made my fucking day! Thank you!

     

    Would you mind if I used this as my signature?

     

    you are all obviously taking this the wrong way.... probably just me putting it the wrong way... i know OSRS is all about java but what im trying to say is about 99% of the stuff people teach me i wont even use for a OSRS script... which is why i request help from a OSRS script writing forum.... i just dont understand why they have a "Questions" section if all people post on here are jst going to get ignorant people saying... "go learn java" basic java is not hard... and i know mainly osrs scripting is pretty basic... but for fuck sake... im not asking anyone to write me a full script just for some pointers on how to do something... and yes somtimes i ask for the code for something is because i know its so simple for some yet i just cant get it

  9. wut

     

    because the java tutors dont teach me about anything to do with OSRS i do know the basics of java so i don't know why people keep telling me... there's just some parts that i have never used or never even heard of before...

     

    like GUI for example.. i have seen it many times, i know how to make one, but have no clue what so ever on how to implement it or get it working in an already existent script

  10. Like I need post count, what does that achieve? Try to answer that please.

     

    If you think I'm trolling, there is less hope for you than I originally thought.

     

    not trolling as a main... but just posting on all of my requests for help just for the hell of it

  11. I already told you... Learn Java, this is basic Java stuff. If you don't understand how to do this, stop, and study the basics of Java, because no one here is going to spoonfeed you like you keep begging for us to do.

     

    "if your just going to post random trolling just stop trying to boost your post count wink.png"

     

    facep.gif

     

  12. In your script thread you need to make a new instance of the gui. 

     

    ed. Gui gui = new Gui();

     

    then you need to find a way that you like to connect the gui and script thread to get the options. For example in your gui, you can make a method

     

    public String getTreeName()

    and then after the uses selects a tree to chop, you use that method to get the tree name. 

     

    This is just an example, but you can figure it out if you mess with it. happy.png

     

    sorry, im really bad at this... 

     

    GUI gui = new GUI();
    public String getLocation() {
     
    }
    

     

    thats the code i have now used, the main thing i really want to do is get the GUI to popup on start, due to eclipse would not let me run it to test it do i dont even know what it looks like :P

    You should learn how to make a basic GUI without a GUI maker, you're going to run into problems later if you don't have a basic understanding of how they work.

     

    i do know how to make a gui... i didnt use a gui maker, i watched a tutorial on youtube that someone linked in another GUI question in tutorials section i think.. but i just dont know how to implement it and make everything work on the script side

  13. I've had this happen to me twice, They delete it

     

    its not deleted but its inaccessible i made a new account with diff email but same display name and it worked,, but tried to make anothing one with different display and same email and said account already using this email 

  14. hey guys, i was wondering if anyone could explain to me for the use of a GUI? i have the GUI coded but i have it in a separate class from my main script....

     

    how can i make it so the GUI pops up on start of script?

     

    how can i make the select able options i have on the script execute different sections of the code?

     

    how can i make the Start Script button execute the selected option?

     

    thanks to anyone that can provide me with this option....

     

    if your just going to post random trolling just stop trying to boost your post count ;)

  15. Nope, I think it's permanently deleted. I tried to recover afterwards but apparently my email somehow got registered to a completely new account. I don't really care that much though since I quit playing a long time ago.

     

    yeh true... i cant make a new account though but everytime i reset the password it just says its invalid

  16. ok so one of ym money accounts got a moderate ban, not fussed....

     

    but one that i had been botting on a very long time as is the whole account have been removed all together...

     

    i came back to the computer trying to log into the account with it saying invalid user/pass

     

    went to login myself and gave me same error....

     

    therefor i assumed id been hacked... simple due to i had full security so i recovered the account changed pass and... then went to login... again invalid username or pass... also when i got sent the email about changing my password it said...

     

    749728be11d8ae23b7ddd8924dea32d5.png

     

    does Character Name Unavailable mean the account was completely terminated or what? i have never heard of jagex doing that nor ever herd of anyone with the same issue......

  17. same

    private int[] NEST_ID = {5070,5071,5072,5073,5074,5075};if(inventory.contains(NEST_ID)){ inventory.getItem(NEST_ID).interact("Search");  //sleep}
    or
    Item nest = script.inventory.getItem(new Filter<Item>() {        @Override        public boolean match(Item item) {            return item.getName().equalsIgnoreCase("Bird's Nest")&& item.getActions()[0].equalsIgnoreCase("Search");        }    });                if(nest != null){            nest.interact("Search");            //sleep        }
    there's lots of ways of doing this, but ID's should work well for what you want

    Ah thanks a lot :)

  18. if(inventory.contains("Bird's Nest")){
    
     inventory.getItem("Bird's Nest").interact("Search");
      //sleep
    
    }
    

     

    this actually doesnt work... just figured out the nest after its been searched is still called Bird nest... how can i go about using IDs?

     

    private int[] NEST_ID = {5070,5071,5072,5073,5074,5075};

     

    i have the in but just dont know how to implement it

×
×
  • Create New...