Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question eagles13 tut

Joined
May 27, 2016
Messages
745
You did it when it showed the LoopingBot part?It should have put a import... in the top

ya thats what i did

i get errrs now

JavaScript:
package com.chris121.bots.testbot;

import com.runemate.game.api.script.framework.LoopingBot;

/**
* Created by Chris on 14/02/2017.
*/
public class testbot extends LoopingBot {
    @Override
    public void onstart (String... args) {
        System.out.printlin("This is a bot and it sucks");
    }
}

Error:(8, 8) java: com.chris121.bots.testbot.testbot is not abstract and does not override abstract method onLoop() in com.runemate.game.api.script.framework.LoopingBot
 
Go check out new bots and give helpful feedback.
Joined
Jan 31, 2016
Messages
5,413
JavaScript:
package com.chris121.bots.testbot;
 
import com.runemate.game.api.script.framework.LoopingBot;
 
/**
* Created by Chris on 14/02/2017.
*/
public class testbot extends LoopingBot {
    @Override
    public void onstart (String... args) {
        System.out.printlin("This is a bot and it sucks");
    }

@Override
public void onLoop(){

}
}
 
onLoop is where the bot code to do stuff is placed.
 
Joined
May 27, 2016
Messages
745
JavaScript:
package com.chris121.bots.testbot;

import com.runemate.game.api.script.framework.LoopingBot;

/**
* Created by Chris on 14/02/2017.
*/
public class testbot extends LoopingBot {
    @Override
    public void onstart (String... args) {
        System.out.printlin("This is a bot and it sucks");
    }

@Override
public void onLoop(){

}
}
 
onLoop is where the bot code to do stuff is placed.

still gives error

JavaScript:
package com.chris121.bots.testbot;

import com.runemate.game.api.script.framework.LoopingBot;

/**
* Created by Chris on 14/02/2017.
*/
public class testbot extends LoopingBot {
    @Override
    public void onstart (String... args) {
        System.out.printlin("This is a bot and it sucks");
    }

@Override
public void onLoop() {

}
}
 
Go check out new bots and give helpful feedback.
Joined
Jan 31, 2016
Messages
5,413
still gives error

JavaScript:
package com.chris121.bots.testbot;

import com.runemate.game.api.script.framework.LoopingBot;

/**
* Created by Chris on 14/02/2017.
*/
public class testbot extends LoopingBot {
    @Override
    public void onstart (String... args) {
        System.out.printlin("This is a bot and it sucks");
    }

@Override
public void onLoop() {

}
}
onStart not onstart
 
Joined
May 27, 2016
Messages
745
@chris121 Maybe you should look up the basics of Java first.

thught i was doing the basics :D
 
onStart not onstart


now says:


Error:(11, 19) java: cannot find symbol
symbol: method printlin(java.lang.String)
location: variable out of type java.io.PrintStream


JavaScript:
package com.chris121.bots.testbot;

import com.runemate.game.api.script.framework.LoopingBot;

/**
* Created by Chris on 14/02/2017.
*/
public class testbot extends LoopingBot {
    @Override
    public void onStart (String... args) {
        System.out.printlin("This is a bot and it sucks");
    }

@Override
public void onLoop() {

}
}
 
Go check out new bots and give helpful feedback.
Joined
Jan 31, 2016
Messages
5,413
thught i was doing the basics :D
 



now says:


Error:(11, 19) java: cannot find symbol
symbol: method printlin(java.lang.String)
location: variable out of type java.io.PrintStream


JavaScript:
package com.chris121.bots.testbot;

import com.runemate.game.api.script.framework.LoopingBot;

/**
* Created by Chris on 14/02/2017.
*/
public class testbot extends LoopingBot {
    @Override
    public void onStart (String... args) {
        System.out.printlin("This is a bot and it sucks");
    }

@Override
public void onLoop() {

}
}
Did you fix printlin to println
 
Joined
May 27, 2016
Messages
745
Well developer mode has oen so cool.

i get this message though is it bad?

Feb 14, 2017 3:31:07 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
[Debug] RuneMate Version: 2.4.18
[Debug] Java Version: 8u121 x64 (Oracle Corporation)
[Debug] Operating System: Windows 10 x64
 
Top