Jump to content

Sebastian

Members
  • Posts

    283
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Sebastian

  1. Question: If i have 2 laptops and i break 1 laptop.. does that mean that the pizza next door has been delivered?
  2. Do you have to give it a name or something?
  3. Thanks for your reply. For some reason it worked after i posted this thread.. I didn't change anything in the onStart() tbh.
  4. Hey everyone. I'm trying to use different classes for different quests. This is because i'm trying to make myself a questing script. What do i do wrong? I have 2 classes. The first is ofcourse the main class, second class is "SheepShearer". This is my code: package core; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import quests.SheepShearer; import java.awt.*; @ScriptManifest(author = "Sebastian", info = "Quest like you've never quested before!", name = "JSQuester", version = 0, logo = "") public class Main extends Script { @[member='Override'] public void onStart() { log("Started"); } private enum State { SHEEPSHEARER, WAIT, QUESTTWO }; private State getState() { if (myPlayer().isAnimating()) return State.SHEEPSHEARER; return State.WAIT; } @[member='Override'] public int onLoop() throws InterruptedException { switch (getState()) { case SHEEPSHEARER: new SheepShearer(this); break; case QUESTTWO: break; case WAIT: break; } return random(200, 300); } @[member='Override'] public void onExit() { log("Stopped script.."); } @[member='Override'] public void onPaint(Graphics2D g) { } } package quests; import org.osbot.rs07.script.Script; public class SheepShearer { public SheepShearer(Script Quest_SheepShearer) throws InterruptedException { Quest_SheepShearer.log("test"); } } I can't get it to log the "test". What am i doing wrong? EDIT: Nevermind, for some reason it works now... [INFO][Bot #2][09/09 08:55:15 PM]: Started script : JSQuester [INFO][Bot #2][09/09 08:55:15 PM]: test [INFO][Bot #2][09/09 08:55:16 PM]: test [INFO][Bot #2][09/09 08:55:16 PM]: test [INFO][Bot #2][09/09 08:55:16 PM]: test [INFO][Bot #2][09/09 08:55:16 PM]: test [INFO][Bot #2][09/09 08:55:17 PM]: test [INFO][Bot #2][09/09 08:55:17 PM]: test [INFO][Bot #2][09/09 08:55:17 PM]: test [INFO][Bot #2][09/09 08:55:17 PM]: test
  5. I can give you like 700 (worth around 300k coins i think) yew logs that i just botted. It's not much but anything better then nothing. Sad to see your account banned.. If you're interested, pm me. It's free.
  6. 42. Life is too precious to end. Think about it. You're living, you're real. You exsist. If life is shit find something to work to; Get a meaning to your own life. Also, look around you, think about what you're seeing. Enjoy the little things in life such as a nice view. No suicide dude, enjoy your life while you still can. #deep. My purpose of life: Live everyday like it's your last. Enjoy it. If there's a problem i find a way to solve it. "What do you desire? What makes you itch? What sort of a situation would you like? Let’s suppose, I do this often in vocational guidance of students, they come to me and say, well, "we’re getting out of college and we have the faintest idea what we want to do". So I always ask the question, "what would you like to do if money were no object? How would you really enjoy spending your life?" Well, it’s so amazing as a result of our kind of educational system, crowds of students say well, we’d like to be painters, we’d like to be poets, we’d like to be writers, but as everybody knows you can’t earn any money that way. Or another person says well, I’d like to live an out-of-doors life and ride horses. I said you want to teach in a riding school? Let’s go through with it. What do you want to do? When we finally got down to something, which the individual says he really wants to do, I will say to him, you do that and forget the money, because, if you say that getting the money is the most important thing, you will spend your life completely wasting your time. You’ll be doing things you don’t like doing in order to go on living, that is to go on doing things you don’t like doing, which is stupid. Better to have a short life that is full of what you like doing than a long life spent in a miserable way. And after all, if you do really like what you’re doing, it doesn’t matter what it is, you can eventually turn it – you could eventually become a master of it. It’s the only way to become a master of something, to be really with it. And then you’ll be able to get a good fee for whatever it is. So don’t worry too much. That’s everybody is – somebody is interested in everything, anything you can be interested in, you will find others will. But it’s absolutely stupid to spend your time doing things you don’t like, in order to go on spending things you don’t like, doing things you don’t like and to teach our children to follow in the same track. See what we are doing, is we’re bringing up children and educating to live the same sort of lifes we are living. In order that they may justify themselves and find satisfaction in life by bringing up their children to bring up their children to do the same thing, so it’s all retch, and no vomit it never gets there. And so, therefore, it’s so important to consider this question: What do I desire?" - Alan Watts
  7. Idk why this dude is whining tbh? It's just 1 day lol..
  8. Sebastian

    Bye

    Sad to see you leaving.. But school is more important. Good luck! (Thanks for all the scripting help in the past. It really made me where i am today).
  9. Idea is good.. but i agree with @@Jamez
  10. Nah, not wasting your time. He probably scared the shit out of him when you talked with him about marriage. Give it some time, he will turn around. But... he's defenitly not ready to marry lol.. I guess this guy just wants to take it easy. #relationshipadvice. Dude, you need to see a psychologist for this. It's not worth to keep yourself away from girls. If i were you, go find a girl when you're ready, tell her that you have commitment issues and she will drag you with her bro. Don't waste your life having commitment issues.. Girls are probably the best thing the world has given us lol.
  11. Hey there, Last year @Maldesto tried to setup a private server but because there were issues it has never been online again. I like the idea so..
  12. I'm going to add more cases to this antiban. It may lower the ban rate then. Or do you think that switching cases isn't a good method for antiban? I will read that topic later as i am tired now.
  13. You the man! It worked. Can you explain this so i can learn from it?
  14. Ahh, so if i choose the antiban between 1 and 2 it will activate case 1 or 2? Trying this out.
  15. Hey guys, So i have the following problem and i can't see whats the problem. I have created 2 ints: public int randomNumber = random(1, 19); public int activateAntiban = 0; So the randomNumber is a number between 1 and 19. In the code below you can see when whenever i'm under attack, my activateAntiban will count to the randomNumber. So, i expect that when the activateAntiban number is the same as the randomNumber, it will activate the antiBan(); But it doesn't. This is my code: public void antiBan() throws InterruptedException { switch (randomNumber) { case 1: getTabs().open(Tab.SKILLS); sleep(100 + random(300, 700)); getSkills().hoverSkill(Skill.STRENGTH); sleep(100 + random(3000, 4000)); getMouse().moveRandomly(); status = "[ANTIBAN] Checking stats.."; randomNumber = random(randomNumber); log("New random number is: " + randomNumber); break; case 2: sleep(random(600,700)); status = "[ANTIBAN] Sleeping for a bit.."; randomNumber = random(1, 19); log("New random number is: " + randomNumber); break; } log("something is working.."); sleep(random(700, 1800)); getTabs().open(Tab.SKILLS); } In the onLoop(): if (myPlayer().isUnderAttack()) { log("Antiban count: " + randomNumber + ", " + activateAntiban); activateAntiban++; } if(randomNumber == activateAntiban){ antiBan(); log("antiban is running."); } This is my logger: [INFO][Bot #1][09/07 02:34:59 AM]: Antiban count: 14, 13 [INFO][Bot #1][09/07 02:34:59 AM]: something is working.. [INFO][Bot #1][09/07 02:35:01 AM]: antiban is running. [INFO][Bot #1][09/07 02:35:04 AM]: Antiban count: 14, 14 [INFO][Bot #1][09/07 02:35:11 AM]: Antiban count: 14, 15 [INFO][Bot #1][09/07 02:35:18 AM]: Antiban count: 14, 16 [INFO][Bot #1][09/07 02:35:28 AM]: Antiban count: 14, 17 The first 14 is the randomNumber int and the second one is the activateAntiban int. As you can see it activates something, but not my switch cases. It could be me being realllllly stoned or i am actually close to get the antiban working.. either way, i clueless at the moment lol. also, this is not my full antiban. Adding more cases when it works. Hope you all can help me. Sebastian.
  16. I'm back! Almost have 1 script up and running. #Letsgo

  17. Do you have the latest version of Java?
  18. Thanks for the replies. Feeling a little bit dumb seeing this.. still kinda noob to the osbot scripting tho..
  19. I fixed it. Thanks for all the replies. It really got me to the point where i am now. This is how i fixed it: First i made a public boolean in the main class: public boolean powerChop = false; Then in the GUI class i made an actionlistener: powerChop.addActionListener(e -> m.powerChop = powerChop.isSelected()); Then i changed the onloop Drop case with if/else statement: case DROP: if(powerChop == true) { inventory.dropAllExcept(1357, 1359); log("Case dropping."); } break; Now i can finally go on with banking options!
×
×
  • Create New...