Jump to content

evert123

Members
  • Posts

    14
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

1639 profile views

evert123's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. Thank you very much for the detailed explanation. I will definitely start learning more about the basics of Java, but for now I don't have much time and I use this script as a puzzle that I'm aloud to play with whenever I made some real progress with my thesis. I know this is not really efficient on my side and even less efficient on the communities side, but ill try to make up for it in the future.
  2. Hello people of OSBot, I have a short question, if I set a variable in the private final part of the script like this: private final Position sellPoint = new Position (3209, 3216, 2); And later change this, in this case, change it to position (2222, 2222, 2) for example, in a private boolean statement or private void. 1. Will this be possible because of the private part? 2. Will it be changed back to the original (3209, 3216, 2) at any point? Hope to hear from you, and if you feel like it please leave a explanation so I can learn more from it.
  3. Thx everybody I realize now that I did some stupid stuff. I never requested the players name, so I was working with a Player (Object??) and not a string, so it didn't make sense to me that it could be a string. @Apaec Really useful will definitely look at it, but for now it kinda feels like a spoiler so I first try to make it myself and then get back when I get frustrated :P
  4. I don't really know what you mean.. Yes, I already have some code like this, only get last trade request and getPlayername. Yes very very little but i know python, I looked at the API but I think this is mostly caused by my lack of Java knowledge. I can just save it as a string? Because when i set an Position or Area I have to use the Entity? Like: Position momsKitchen = new Position (2222, 2222, 2) So I was expecting something with Player xxx = new Player. I will try string person2 = ("evert123")
  5. Hello, I'm trying to set a player name so I can trade him later on. But I can not figure out how to set this name, what I have now is: Player person2 = new Player ("Evert123"); This is not working at all
  6. Thx! For showing me which directions to explorer.
  7. Hello guys, I'm working on a selling script, my player stands at Lumby bank and is selling Varrock teleports. Now I got stuck at how to know if someone is trading my player and how to prevent trading someone after selling them runes. I was thinking something like this: Get first line in chatbox If contains trade requests get name trade player My problems are: 1. I have very little knowledge of Java, working with lists is kinda new for me (do have some Python exp) 2. I don't know how the chat API of OSBot will return the messages (Will it only return trade message if i put public off? Will it return every message? Is the first message at the top or at the bottom of this list) If someone knows anything on this subject I would really appreciate some explanation on the topics.
  8. Thank you very much, nice response time to I will try a different method and do some figuring out myself
  9. Hello guys, I read Apaec's guide: "A beginners guide to writing OSbot scripts" and got excited to use enum with switch. So I'm exploring this method but get weird results, I will try to explain as clearly as I can. What (I think) my script is supposed to be doing right now: Check if within the area If not walk to sellpoint, send message "walking back" Check if more than 1 law rune in inventory If true send message "test" What is happening when the script is run: When my player is in the area it spams "walkinig back" but is not walking back When my player is NOT in the area it walks back and is not spamming "walking back" private final Area lumbyBank = new Area(3207, 3217, 3210, 3220); Position sellPoint = new Position (3208, 3217, 2); private enum State { WALK, TRADE, EXIT } private State getState() { if (!lumbyBank.contains(myPosition())) return State.WALK; if (getInventory().getItem("Law rune").getAmount() >= 1) return State.TRADE; return State.EXIT; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case WALK: getWalking().walk(sellPoint); log("walk back"); break; case TRADE: log("test"); break; case EXIT: stop(); break; } return random(200, 300); }
  10. Noob question here. For example my smithing script is out of bars, now i want it to quit and not just crash What kind of commands can I use to exit my script?
  11. Great guide, Only it doesn't say what to do if you find the problem at step 2. Unable to access jar file I use JDK java version "1.8.0_144". Please help, im lost ---- edit ----- I didn't place the bat file in my download folder (where my osbot file is located). And i was not stuck any more, thx for 99% great guide!
  12. Hello Mother of Dragons, Script name : khal tutorial island - trial length: 6h I just came back to OSbot and would like to try your tutorial island solver script! Im planning on creating loads of accounts so I like to do some testing before buying it from you. 6 hours should be more then plenty and it would be great of you can do this for me. - Are you ging to give feedback on the script? Yes of course
×
×
  • Create New...