Jump to content

Jammer

Members
  • Posts

    318
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by Jammer

  1. 1 hour ago, heervangrijsburg said:

    Hi, I'm trying to make the script that it changes from axe´s when he gets to a certain level. For this I use the switch statement, but in any case i get the error message "Constant expression required". can someone pls tell me what I´m doing wrong?

    
    int Woodcuttinglevel = skills.getDynamic(Skill.WOODCUTTING);
                switch (true) {
                    case (Woodcuttinglevel >= 5):
                        break;
                    case (Woodcuttinglevel >= 10):
                        break;
                    case (Woodcuttinglevel >= 20):
                        break;
                    case (Woodcuttinglevel >= 30):
                        break;
                    case (Woodcuttinglevel >= 40):
                        break;
                    default:
                        break;

     

    You shouldn't be using switch statements for condition checking. Use else if statements instead.

    String suitableAxe;

    if(woodcuttingLevel < 5) {

    suitableAxe = "Iron axe";

    else if(woodcuttingLevel < 10) {

    suitableAxe = "Steel axe";

    }

    and so on.

     

    Switch statements are useful in certain situations but not here. Read this: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/switch.html

    • Like 1
  2. On 6/5/2018 at 12:03 PM, dude1122 said:

    What food/setup are you using for Wintertodt?

    I’ve reached 99 now. I used bass all the time. The food choice depends on your hp level and also how much ”warm clothes” you have. I’d recommend not being too cheap about it cause bad food just slows everything down.

  3. gTOYHwr.png?1

    Made some various gains. I'm getting closer to 99 firemaking which has been a goal for some time now.

    I also want to point out that these pictures are a couple of days old. That way I can show the stats without having to blur anything out.

  4. For the past month I've lost motivation more and more for scripting and botting as a whole. I feel like I'm stuck doing the same things all over again and not progressing in terms of my programming. I have a couple of ideas of things related to botting I would like to make but I feel like I don't have the skillset required to execute them at the moment. Instead I will be focusing on other Java related things.

    I've had a really great time here and this is what got me into programming which I'm grateful for. The members of this community are awesome and I want to especially thank @Explv and @Apaec for always helping out with scripting related questions. I doubt I will quit forever so until I'm back, bye.

    //Jammer

    • Like 2
    • Sad 1
  5. 1 minute ago, Sean Jamieson said:

    Quick update on this.

    I haven’t heard back from Jagex regarding this yet on either account. Do they absolutely reply to you regarding an acceptance or deny? 

    I tried the whole recover account trick but met no success on that front. 

    If they deny it they will contact you via mail.

  6. Just be careful, people might figure it out and repeat the word and your account will be saying the same shit all over again.

    You can try to add some failsafes such as a cooldown timer or maybe never saying the same word more than twice in a row.

  7. 8 hours ago, Explv said:

    That's not how you define a constructor, the constructor should have the same name as the class.

    It's not:

    
    public init(Script script) {
    
    }

     

    It's:

    
    public another(Script script) {
    
    }

    right, forgot to say that.

  8. You should probably read up on some OOP principles as Alek said but I'll post a solution.

    public another init(Script script){
    		this.script = script;
    		return this;
    	}

    Change this into a constructor by removing the return type "another".

    another a = new another(this);

    pass an instance of your class that extends Script.

    • Like 1
×
×
  • Create New...