Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Sell OSRS Gold
c#2Bot

[Video/Text Tutorials] From java basics to writing simple scripts [Eclipse]

Recommended Posts

Just now, swagg said:

There's definitely some useful information that can help beginners, but you make some misstakes like stated earlier. If you want to improve you'll have to accept constructive feedback and improve on that, especially if you're goal is to learn people how to code.

do you seriously believe his feedback is constructive? i accept and invest time rectifying errors that are from my side, i go through every single comment that was given positively and constructively and implemented, i do this because i BELIEVE THIS IS A "COMMUNITY" which he stated that he doesnt in more than one occasion, he believes and states that tribot exist to sell his products.

Share this post


Link to post
Share on other sites
Array
1 minute ago, c#2Bot said:

do you seriously believe his feedback is constructive? i accept and invest time rectifying errors that are from my side, i go through every single comment that was given positively and constructively and implemented, i do this because i BELIEVE THIS IS A "COMMUNITY" which he stated that he doesnt in more than one occasion, he believes and states that tribot exist to sell his products.

Who he is isn't relevant, he's giving you feedback on improvement areas. You should appreciate that he's taking his time to help you and the people reading this tutorial improve.

Share this post


Link to post
Share on other sites
Just now, swagg said:

Who he is isn't relevant, he's giving you feedback on improvement areas. You should appreciate that he's taking his time to help you and the people reading this tutorial improve.

Ill appreciate whenever feedback is given with the gesture to show that the effort is acknowledged, where mistakes are made they are pointed out in a MODERN fashion, this is 2016, not THIS TUTORIAL IS WRONG I URGE YOU NOT TO FOLLOW, plus if i dont get respect i dont return it, dont think that the scripter status or premium one provides you the respect and recognition, no, not with me, its the way you deliver, the way you treat and how you act is what triggers a positive reaction or blocking reaction,

Share this post


Link to post
Share on other sites
4 minutes ago, c#2Bot said:

Ill appreciate whenever feedback is given with the gesture to show that the effort is acknowledged, where mistakes are made they are pointed out in a MODERN fashion, this is 2016, not THIS TUTORIAL IS WRONG I URGE YOU NOT TO FOLLOW, plus if i dont get respect i dont return it, dont think that the scripter status or premium one provides you the respect and recognition, no, not with me, its the way you deliver, the way you treat and how you act is what triggers a positive reaction or blocking reaction,

Why even care what he says, just take his feedback and fix it, no need to be a child about it. Deluxes gave you constructive feedback in a more friendly manner and you didn't accept his advice either, you have to understand that all coders, including you, can improve. Not doing so, and spreading incorrect knowledge is negative. If you're aiming to become a scripter or a better programmer, you'll fail if you continue to refuse advice. That's how we learn.

Share this post


Link to post
Share on other sites
4 minutes ago, swagg said:

Why even care what he says, just take his feedback and fix it, no need to be a child about it. Deluxes gave you constructive feedback in a more friendly manner and you didn't accept his advice either, you have to understand that all coders, including you, can improve. Not doing so, and spreading incorrect knowledge is negative. If you're aiming to become a scripter or a better programmer, you'll fail if you continue to refuse advice. That's how we learn.

who says i refused the feedback, please dont refer to me as a child, i am a grown man, i accept their feedback and ill make amendments,, you can follow my application and see how far i have invested time and effort to put each and every remark into confederation and implementation, just because i didnt make changes instantly here doesnt mean i refused anything, what i do not accept is disrespect, as far as their feedback i aid numerous TIMES that i appreciate it and even THANKED for it. feel free to follow my github so you know i am not just throwing chit chats here i actually put effort to make amendments.

Edited by c#2Bot

Share this post


Link to post
Share on other sites

@Assume

Regarding the recent critiques, ill reply and amend accordingly if it is required:

1.1 Wrong. An object is a class.

As i said earlier, never said a class is an object, i stated that a class is a "template" where objects can be stored.

1.2 Wrong. A Constructor is not an instance method. A constructor simply allows the constructing of an object. 

This makes no sense what so ever, a constructor simply allow constructing, is this even an argument? it is just like saying a boolean simply returns true or false. However to add to your knowledge i will list a few resources that supports my point in the tutorial.

http://www.javatpoint.com/constructor

http://www.homeandlearn.co.uk/java/class_constructor.html

http://www.programmingsimplified.com/java/tutorial/java-constructor-tutorial

http://www.studytonight.com/java/constructor-in-java.php

And there are many more, but to your deluded mind, everybody is wrong, and you are the only one right, maybe you invented the language?

2.2 Wrong. There are many more than 3 types of variables. You wrote as if you were writing about scope. You are correct the 3 scopes are local, instances, and static. But those are not types of variables.

My dear friend i really think you should consider rereading and refreshing your mind. I will give you a starting point:

First try to distinguish BETWEEN "DATA TYPES" & "VARIABLE TYPES", data types holds the primitive and non primitives subtopics under it, and variable types are 3 just like i stated. Here add to your knowledge PLEASE:

http://www.javatpoint.com/variable-datatype

http://www.tutorialspoint.com/java/java_variable_types.htm

http://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html

http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html

4.1 Wrong. You do not have 4 Cow objects. You have four string objects.

not even gonna bother about this.

5.1 Wrong. Enums are not constant and final by default. The data stored in an enum is only constant and final if you so define the variables as constant and final. Also, constant an final are synonyms. There is no const or constant keyword in Java. Only final.

Really assume? where did you get this from? i suggest you reevaluate. Stop trying to make me look wrong and think a little bit, your making an idiot of yourself.

17eb83df8f.png

 

The only thing you had  valid point in is the redundant null checks, as for the banking item i think you can figure out yourself why i was using 10, wont be that difficult for you, i will make changes to the filters sections and review some other based on your remarks, thanks a lot.

Share this post


Link to post
Share on other sites
5 hours ago, c#2Bot said:

@Assume

Regarding the recent critiques, ill reply and amend accordingly if it is required:

1.1 Wrong. An object is a class.

As i said earlier, never said a class is an object, i stated that a class is a "template" where objects can be stored.

1.2 Wrong. A Constructor is not an instance method. A constructor simply allows the constructing of an object. 

This makes no sense what so ever, a constructor simply allow constructing, is this even an argument? it is just like saying a boolean simply returns true or false. However to add to your knowledge i will list a few resources that supports my point in the tutorial.

http://www.javatpoint.com/constructor

http://www.homeandlearn.co.uk/java/class_constructor.html

http://www.programmingsimplified.com/java/tutorial/java-constructor-tutorial

http://www.studytonight.com/java/constructor-in-java.php

And there are many more, but to your deluded mind, everybody is wrong, and you are the only one right, maybe you invented the language?

2.2 Wrong. There are many more than 3 types of variables. You wrote as if you were writing about scope. You are correct the 3 scopes are local, instances, and static. But those are not types of variables.

My dear friend i really think you should consider rereading and refreshing your mind. I will give you a starting point:

First try to distinguish BETWEEN "DATA TYPES" & "VARIABLE TYPES", data types holds the primitive and non primitives subtopics under it, and variable types are 3 just like i stated. Here add to your knowledge PLEASE:

http://www.javatpoint.com/variable-datatype

http://www.tutorialspoint.com/java/java_variable_types.htm

http://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html

http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html

4.1 Wrong. You do not have 4 Cow objects. You have four string objects.

not even gonna bother about this.

5.1 Wrong. Enums are not constant and final by default. The data stored in an enum is only constant and final if you so define the variables as constant and final. Also, constant an final are synonyms. There is no const or constant keyword in Java. Only final.

Really assume? where did you get this from? i suggest you reevaluate. Stop trying to make me look wrong and think a little bit, your making an idiot of yourself.

17eb83df8f.png

 

The only thing you had  valid point in is the redundant null checks, as for the banking item i think you can figure out yourself why i was using 10, wont be that difficult for you, i will make changes to the filters sections and review some other based on your remarks, thanks a lot.

1.1 I know you didn't say it, which is why it's wrong.

1.2 A boolean does not return true or false. That would be a false statement. A boolean is simply true or false at all time. A constructor simply allows for the constructing of an Object. And no, it is not an instance method.

2.2 We used different terminology. You are correct.

4.1 I don't know why you won't bother with this. You are blatantly stating something that is wrong. You constructed an array of String objects, not Cow objects.

5.1 Yes, an Enum by itself cannot be set to any other value, but the values in an enum can be changed at any time. You stated they store constant information, which is false.

Share this post


Link to post
Share on other sites
2 minutes ago, Assume said:

1.1 I know you didn't say it, which is why it's wrong.

1.2 A boolean does not return true or false. That would be a false statement. A boolean is simply true or false at all time. A constructor simply allows for the constructing of an Object. And no, it is not an instance method.

2.2 We used different terminology. You are correct.

4.1 I don't know why you won't bother with this. You are blatantly stating something that is wrong. You constructed an array of String objects, not Cow objects.

5.1 Yes, an Enum by itself cannot be set to any other value, but the values in an enum can be changed at any time. You stated they store constant information, which is false.

If this is the case, then you don't recognize a final as a constant, you can literally change the value of a final anytime you want.. when you call something a constant, you literally mean that that value cannot be "accessed and changed" through out your project however can be "accessed and read.  I think you can manage to understand what i am trying to illustrate.

I urge you to drop the ego thing, and the pointing fingers this and that is wrong. You may be more informative and aware of the api yes, which is something i can attain with little time. As far the language is concerned i know i am capable, java is very similar to c# in terms of syntax, only difference is libraries and tool sets.

I suggest you try and change your ways with me, think long term, because i am not going anywhere. I came here to be a part of tribot, and i have the right to be just like you do.

Share this post


Link to post
Share on other sites
41 minutes ago, c#2Bot said:

If this is the case, then you don't recognize a final as a constant, you can literally change the value of a final anytime you want.. when you call something a constant, you literally mean that that value cannot be "accessed and changed" through out your project however can be "accessed and read.  I think you can manage to understand what i am trying to illustrate.

I urge you to drop the ego thing, and the pointing fingers this and that is wrong. You may be more informative and aware of the api yes, which is something i can attain with little time. As far the language is concerned i know i am capable, java is very similar to c# in terms of syntax, only difference is libraries and tool sets.

I suggest you try and change your ways with me, think long term, because i am not going anywhere. I came here to be a part of tribot, and i have the right to be just like you do.

A final is a constant. Java does not have the keyword Constant (well it does as const, but it does nothing). Anything in an enum can be accessed and changed. The enum itself can only be accessed, not changed. 

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.
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.


  • Similar Content

    • By briareos2285
      Just got a new Windows 10 Home x64 Laptop. Going through my usual install method and finding that I cant get looking glass to work. I have followed a few "old" guides, because I cant find any that are more recent. I am installing Java SE Development Kit 8u251, I am choosing the x86 version since the only OSbuddy cross platform .jar  file is 32bit. Its worked fine in the past. I then open Osbuddy, and then Open Tribot. I leave it on the default Tribot Version of 10.24.1. I select the java version for Tribot to use to be the JDK and not the jre. I changed the Heap Size to 1024 MB and login. I minimize Osbuddy, then I click New Client(Looking Glass). The Screen goes to black and says " Waiting for a Runescape client.... currently waiting for a valid client. List of detected java applications below." and there is nothing Below. I also tried a backup method that used to work as well, which was to instead click New Client (Osbuddy) and then manually select the Osbuddy .jar file which would open up Osbuddy and Create a Looking Glass Tab that mirrored Osbuddy. This no longer happens either. Ive also deleted the Hooks and Caches using Naton's Java Executable. I have also defined the correct Paths in my Computers Environment Variables.
      Im at a loss for what to do. Any help greatly appreciated
    • By idkfa
      Hello my knowledgeable friends,
      Ive botted about 3 accounts to max combat and ran small gold farms but lately I really interested in learning how to script myself so I can give back to the awesome community and start goldfarming on a professional level. That being said ive got some questions.Little background check, im a total noob when in comes to programming languages.
      - ive read that learning Java is a must. But what I don't understand is do I need to learn everything about java or just parts that are relevant to scripting for Tribot. Do I have to take a course or to do a deep dive like enlisting in an education  or is learning Java just for Tribot enough?
      - If a book is preferable, do you have any recognmendations?
      - after being proficiant in Java ive read I still need to learn how to script for Tribot specifically. Is this a long process?
      - I know this is a difficult question to answer but how long do you guys recon this process will take in hours learning Java and scripting for Tribot? Ive got about 2/3 hours to spare a day and about 5/7 on weekends
      - Also is there a discord with like minded people out there looking to learn java/tribot and also one for goldfarmer (not gonna ask for methods lol)
       
      Sorry for the long and nooby questions. Hope you guys can point me in the right direction. 
      Any constructive comments are greatly appriciated.
      Cheers,
      IDKFA
    • By Fluffee
      Fluffee's Server Setup 3.0
      As some of you may know, I released an automated server setup script a little over a year ago. Albeit that script worked well, I was never fully satisfied with it, as I found it to be kind of messy to use. As a result, I rewrote the script, and restructured it, to add more, and stronger support for the different versions of Debian, the different versions of CentOS and the different versions of Ubuntu. However, with so many different Operating Systems being supported, and many different server providers having different setups, it's hard for me to test every possible scenario on my own. Which is why I've been privately handing this script out, and am now publicly looking for help.

      What does the script do?
      Similar to my previous setup script, this script changes the SSH port and creates a new user for connecting and using the server and disables root SSH connections; it installs the latest version of TightVNC Server (1.3.10) and sets that up with the desired port and password. It installs JDK 102 (32 or 64 bit depending on the OS), and installs TRiBot and OSBuddy and sets up the appropriate .jar file associations.
      What operating systems does it support?
      - CentOS (6.x and 7.x) (32 and 64 bit)
      - Debian (7.x and 8.x) (32 and 64 bit)
      - Ubuntu (12.x, 14.x and 16.x) (32 and 64 bit)
      Does it work?
      As far as I know, yes it does in fact work, and it works well if I might add. However, given that I can't test every possible setup, there is the potential for differences and issues
      How do I run the script?
      Login as root to a fresh VPS/dedi running one of the supported operating systems. From there run the commands listed below and follow the onscreen instructions. For those who would like to see the script's code, it can be found on my bitbucket here. The commands to run are as follows:
      wget --no-check-cert https://bitbucket.org/teamfluffee/fluffees-server-setup/raw/add-shared-functions/fluffees-server-setup.sh && chmod +x fluffees-server-setup.sh && bash fluffees-server-setup.sh -v Version History
       
    • By voidk5
      Hey guys, I'm facing some problems with my Debian 8 VPS, currently I'm not able to install Java 8, I was using this as reference https://tecadmin.net/install-java-8-on-debian/ but as it says "IMPORTANT: Java 8 is no longer available to download publically. You can use below link to install Java 11."  Java 8 can't be downloaded anymore, so I tried to use Java 11, but TRiBot doesn't work with it. 
      Anyone can have with this? 
      I'll give more info if required.
       
       
    • By Medieval
      Hello, firstly i'd like to say that running a bot on mac is 1000x more difficult than running a bot on a windows. I've downloaded Tribot and have jdk-11.0.1.
      I keep getting an error which I've linked below. Please help as I've been trying to run a bot on this macbook forever. It seems impossible.
      Thanks,
      Medieval 

    • By TonyBotFarm
      Hi.
      Im here because I cant found solution for my problem.
      When I run Tribot in my VPS, The Tribot client closes after the first 3 minutes. My VPS have OS Ubuntu 14.04
      I was instal Java 8. Oracle, JDK & JRE
    • By syhler
      I'm trying to add a JSON library by adding every java file from https://github.com/stleary/JSON-java to my project. But it keeps giving me the error
      java.lang.NoClassDefFoundError: scripts/JSONObject Which makes sense because it fails to load the JSONObject. But why?
       Error Loading Local Script: JSONObject! I have tried to make a package inside the scripts package called "org.json" without any luck, I have also tried to put the files directly into scripts package.(Check picture for reference)

      I don't think the run method has anything to do with it, but it looks like this
      @Override public void run() { println("Hey Test"); JSONObject json = null; try { json = JsonParser.readJsonFromUrl("url"); } catch (IOException e) { e.printStackTrace(); } assert json != null; println(json.toString()); } JsonParser.readJsonFromUrl Comes from a class which is taken from StackOverflow - https://stackoverflow.com/questions/4308554/simplest-way-to-read-json-from-a-url-in-java- 
      And looks something like that
      public class JsonParser{ private static String readAll(Reader rd) throws IOException { StringBuilder sb = new StringBuilder(); int cp; while ((cp = rd.read()) != -1) { sb.append((char) cp); } return sb.toString(); } public static JSONObject readJsonFromUrl(String url) throws IOException, JSONException { InputStream is = new URL(url).openStream(); try { BufferedReader rd = new BufferedReader(new InputStreamReader(is, Charset.forName("UTF-8"))); String jsonText = readAll(rd); JSONObject json = new JSONObject(jsonText); return json; } finally { is.close(); } } } Yes, I do have VIP (at least for 2 days) and I'm using IntelliJ Idea. To set my project up I have used the guide from here.
      Thank you for your time  
       
    • By NeuroGenix
      Post rewritten after rewritting and updating the code multiple times.
      So I decided to give writing my own GE API a go and this is what I've come up with so far, using Exchange#offer(name, price, quantity, buy) will do the following:
      If the GE is closed, it will open it and continue making the offer. If the price is set to -1 then it will use the buttons to increase or decrease the price, depending on whether it is a buy or sell offer, until it is at a price that will buy/sell instantly. Otherwise it will use the custom input button to set the price. It will set the quantity using the 1/10/100/1000 buttons. I plan on updating this to randomise between using them and the custom input method shortly. Edit* I hadn't even remembered implementing this until I saw it do it whilst testing the method, and it was beautiful, but if it goes over the buy quantity accidently, in the example I saw it was clicking +100 and clicked it again too fast so instead of stopping before its target of 875 it got to 900, it will then use the custom amount interface to input 875, beautiful. It will prioritise buy offers over sell offers so that if there isn't an empty slot available, or any items to collect, then it will cancel a sell offer, collect it and continue now it has a free slot. If there isn't a free slot available and we are trying to sell something it will return true, this is so that in my scripts it will remove the item from a toSell HashMap and put it back into the bank to sell later because it has bought the items it needs to continue botting. If it is instead trying to buy something and there are no empty slots or sell offers to cancel then it will wait for something to buy and continue once it can collect something and therefore has an empty slot. Update* It will now search for the item 1-3 words at a time checking the first 9 results each time and will choose the item as soon as it is visible as a human would. I might update this so that it randomises more, sometimes entering the whole first word of an items name straight away, because I sometimes do that, most of the time though I enter as few characters as I need to, I think, thoughts? Let me know what you think, the code is probably disgusting to look at for some of you but for others just starting out like me it could be a valuable learning tool, for how not to code All feedback and constructive criticism appreciated.
      Exchange Class
      GEInterfaces Class
      GEConditions Class
      InfoHelper Class
      Thank you to everyone that has read this far, it is appreciated
      Rewritten, if you have read again, even more appreciation!
    • By RedClifford
      Hey guys first time posting on TriBot but I am really struggling to get it to run on my Mac. It wants to run but it always encounters the same error which is it says Exception in thread "AWT-EventQue-1"java.lang.unsatisfiedlinkerror:Cant load library: / Usersxxxxxxx/Library/application support/tribot/dependancies/libtogl.so . I know that anyone with minor knowledge of computers could fix this problem in seconds, but I don't have the slightest clue as to how to fix this. All i am trying to do is run TriBot with a private proxy for RS3. If anyone can help me resolve this issue comment on here or leave another way I can contact you I'd really appreciate it. Willing to pay $10 to anyone that can help me. Thank you. 

    • By Jooq
      Over the past couple of weeks I've been having clients "randomly" freezing after running out of Memory..
      Current set-up:
      Running 10 - 15 clients @ 356 MB. Only 1 account per client (no tabs). Not using Looking Glass. Running the same script on all accounts (Auto Fisher Pro) Operating system is Windows Server 2012 Using < 50% of CPU & RAM The freeze is seemingly random and usually only happens on 1 or 2 of the clients. Doesn't seem to be task based as it's happened in multiple scenarios. 

      Any ideas / suggestions on how to fix?
  • Our picks

    • Over the past few months, I’ve been working diligently on a new project - TRiBot X. Everything has been written from the ground up, with all of the best practices of software engineering. Every aspect of TRiBot has been re-imagined to support three main goals: flexibility, useability, and reliability.
        • Like
      • 49 replies
    • Come give us feedback on the next version of TRiBot!
        • Thanks
        • Like
      • 86 replies
    • TRiBot is looking to improve a lot of its customer relationship management, customer on boarding process, customer experience, design elements, community engagement and pretty much everything else you can imagine when it comes to marketing.

      Our goal: To ensure that the marketing done TRULY reflects the experience and does not shine an inaccurate light on what TRiBot is lacking in.

      So I ask, what do you love about TRiBot and what do you hate about TRiBot? What does O S Bot, Rune M8, PowR Bot and Dre amBot do better? (yes I purposely didn't spell it right 😂).

      Love, 

      RileyZ
        • Like
      • 25 replies
    • Over the last three weeks, I've been working on upgrading our server infrastructure. It's finally ready and is now live!

      Why?

      Increased reliability - less server errors


      Increased availability - less downtime


      Increased security - keeping us and you secure


      Increased capacity - ability to serve you better


      Increased speed - less waiting for things to load


      Faster development - server and service updates will come faster


      What are the changes?

      Move from a single AWS EC2 instance to AWS ECS (Elastic Container Service)


      Distributed computing


      Load balancing


      Git management of server files and filesystem


      Redis caching


      How?

      AWS ECS (with 10 EC2 instances)


      AWS ElastiCache (Redis)


      AWS Load Balancing


      AWS EFS (Elastic file system)


      Please bare with us as I continue to tune the server for maximum performance. Slow loading speeds may occur temporarily. I thank everyone for their patience.

      Please post on this thread if you experience any issues other than slow loading times.
        • Like
      • 51 replies
    • This release will:

      Fix prayers and world hopper API (Thanks @JoeDezzy1 and @erickho123)


      Improve banking API (Thanks @Encoded)


      Adds methods for returning and using Java Lists, rather than arrays


      Slightly randomizes some hardcoded behaviour


      Removes sleeps from waitConditions; the efficiency saving potential is negligible in these use-cases, therefore cleaner code is preferable


      Other back-end improvements





      Note: If you are using LG, please restart both the RS client and TRiBot.
        • Sad
        • Haha
        • Thanks
        • Like
      • 90 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...