Jump to content

Doflamingo

Trade With Caution
  • Posts

    18
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Doflamingo

  1. 6 minutes ago, Alek said:

    As a Java god you should write your own client using JavaFX (of course the non-existent version that doesn't inherit Swing).

    You are a nobody, keep hating, I haven't been programming for more than a year and I'm not only smarter, but better than all of you sad saps who dream of making bots that can kill zulrah, or pk on their own. That to me which is easy. Why don't I write my own javaFX client ? Because that's a waste of opportunity cost, I'm making more money doing other things, thanks.

  2. 3 minutes ago, Alek said:

    HeyImJamie answered your question, you can read/write inside of the local OSBot folder. Look up "Script" in the API for the directory method.

    Thank you, I will certainly look and figure that out. Appreciate the assistance on this one guys, won't lie.

    • Like 1
  3. 11 hours ago, Alek said:

    You're pretty pretentious considering that you don't know the fundamentals of inheritance as discussed in your client suggestion here. To answer your specific question, when a script is started the client automatically sets input to disabled. As a scripter you can only check if the input is enabled or disabled, from there you can perhaps stop the script and give a warning message. The client does not allow scripters to override any user settings. 

    I don't know inheritance LMAO, what's a pillar of programming? Jesus retards, no wonder why you guys don't produce shit, you just talk shit on forums, on my first day I am more capable of more scripts than you can make in your entire life. and Jamie is an idiot. Jamie doesn't even know what a selection statement is, just a wanna be coder who thinks they know how to code because they learned 3 primitive types. 

     

    Let's play The Who can code game

    private SmartOne doflamingoObject;

    private DumbOne heyImJamieObject;

    public static <E extends Smart> boolean isSmart(E o1) { return true; }

     

    public static void main(String[] args) { // Bet you still haven't learned how to use command-line arguments lol

            // object instantiation ignored

           isSmart(doflamingoObject); // returns true

          isSmart(heyImJamieObject); // compiler error, Jamie is not of the smart type

    }

     

  4. 5 hours ago, Alek said:

    Java is a high level language, it doesn't take much to be proficient at it. Your script gets executed, therefore how else would you use the client to read and write files without code caving or function hooking?
     

    I'm asking if you can save data, your response isn't helping it's just another question.

  5. 3 minutes ago, HeyImJamie said:

    Insane Java programmer but can't read a fucking API? :???:

    And you buy scripts, while I make them. Reading an API has nothing to do with Java, you can read all the API, but it won't mean you can build the program. Plus, you don't even need to use those dialogue classes, you can simply say type (space) /** Which is more fucken efficient dumbasses */ , and btw, no1 solved this question yet, and you are a nobody.

     

    Loser.

    • Like 1
  6. 2 minutes ago, Visty said:

    Why not make it keep pressing space until your "Specific dialog" appears by detecting the widget, and interact with the option you are looking for? You don't have to make a pos for the mouse to click on. Since the API has an option do that for you in a dialog.

    Also, upon starting the script, it should automatically disable user input in the client.

    That's the result of not playing RS since 2007 for real haha, back when we had to click our dialogue. Yeah to-be honest, I am going to use a key press method for space-bar, and stick to position specified clicks.

  7. 6 minutes ago, Visty said:

    Can I ask why you are trying to achieve that, if you don't mind?

    First off, because I'm an insane java programmer, and it's my first day here using this API, this is all "new" to me. I'm writing a tutorial island script, and I want it to click through dialogue..

     

    Now like I said, I am very good with solving problems, and making literally anything, (Seriously you are all in for big treats...)

    I already have a solution which is use the overloaded click() method. An overloaded method simply means that a method has a different signature, but the same name. 

    Anyways, when you don't have the position method specified, and you simply want to do this algorithm -> (move mouse to dialogue position, click x amount of times until dialogue is finished)

    You can't do that algorithm with the standard click(boolean rightClick) method... Because, if the user moves his mouse over the client, it will click where the mouse is, ignoring the dialogue and the pattern of clicks which are meant to be executed... 

     

    I'm assuming that my already alternative solution may be the best, if not only solution so far, until someone corrects me, we will go with that.

  8. Just to be clear here, are you talking about using java and writing files to save data while the scripts aren't running? Because I'm trying to have my code be able to save points, it's an easy way to determine progress points/load past data. But if it's not possible, I'll simply accept it and do what's best until then... I'm sure there must be sort of way, any java programmers out here? 

  9. I need this for the source-code, thank you for telling me that, but I want to be able to run my script, and during the execution/run-time of the script, have that disabled automatically, so that the user doesn't even have a choice. Like I said, if no-one knows how, or it's not possible, it's not big deal because I can specify the location of the mouse in the overloaded click() method. But if someone knows how please tell me.

  10. 37 minutes ago, transmission said:

    he doesnt want his actual mouse interfering with the script ( i believe that is what he is asking )

     

    meaning he still wants to be able to control it and do other tasks while the script is running (maybe)

     

    i just confused myself.

    gf

    Exactly, I want to be able to move my mouse over the game without it interfering with the script. I want to cancel external control, and the only way to resume it would be to cancel the script completely.

     

    But honestly, if my only option is to use the click method that requires position parameters, that's fine, but it would also be reasonable to cancel external control.

  11. Hello, I am trying to disable my external mouse from the script I am writing. For example, I know I can simply make methods to click at a specific Position, but I want to write the code so that it simply calls the click method without the position arguments, all the while being able to hover my mouse over the client.

     

    For example, say you set your mouse position to the dialogue continue area, you don't need to set your mouse there once it's there, and if you have dialogues to click through, you wouldn't need to call the set position method, you'd simply call the click() method.

    The problem is, the external mouse interferes and takes precedence. So instead of the mouse clicking at the specified position, it will click where you moved your external mouse to. Simply put, I want to disable the external mouse from interfering with the script. For now I've been using the mouse object, but is there a way to disable external mouse during script? If so, please let me know, thank you.

  12. I tried making a gui, but got a ClassNotFoundException, so I'm assuming that OSBot just isn't compatible with the library. I think you guys should give it a try, because the GUI's to be made are much more various and rich with javaFX. 

  13. I'm going to spoon feed you, but teach you.

     

    g.drawString("My Name: " + myName, 11, 280); // This is your code

     

     

    g.drawString("My Name: " + myPlayer().getName(), 11, 280); // This is my code

     

    myPlayer() is a call to a method that returns an object of the Player type. It's method signature looks like public Player myPlayer() { return thisObject; } 

    You now have a reference to your player object, which contains methods and variables.

    Using dot notation, you call a method defined in the Player class. 

    getName() is a call to a String returning method in the Player class.. public String getName() { return nameVariable; } 

     

    To experiment with the methods, go to the osbot api, and find the Player class, and check out the methods you can use. You can then call those methods like this -> myPlayer().methodName()

    ** Note methods may or may not require parameters.

     

    Anyways this was more than enough help, please give me a thanks if you found this helpful! - Doflamingo

  14. Hello, 

     

    I am Doflamingo, a javaSE programmer, with quite a bit of java experience under my belt. Swing and AWT is dead, and as a GUI programmer, I want to use my knowledge with the javaFX library here on OSBot's client. It would make osBot applications much more rich, and clean. JavaFX is a package used for creating RIA's, and I and many others would seriously love to be able to make GUI's using the latest java-libraries. IDE's like netbeans now come pre-installed with the javaFX library. It would make bot-scripters, and bot-users much more happy if OSBot implemented the javaFX libs as well!

    - Doflamingo

×
×
  • Create New...