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
hi i hope this is correct so i can then move on and add a manifest

Code:
package com.chris121.bots.testbot;

/**
* 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");
}
 
Joined
May 27, 2016
Messages
745
@override is the name of the Java AI who needs to be notified when you want to have something done :lul:

well I did my manifest and I click run and It then reverts me back to what I am talking about if I am doing it right

Error:(10, 8) java class, interface or enum expected

Error:(12,9) Java: class, interface, or enum expected

JavaScript:
package com.chris121.bots.testbot;

/**
* 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");
        }
 
Joined
Sep 22, 2015
Messages
1,610
@chris121 you have this wrong "public void onstart )string... args) {" make it to:

"public void onstart (String... args) {", in java to declare a String it has to be started by a capital letter
 
And you are trying to add on start not in your class, just somewhere else, try to put it in the brackets below public class blablabla, as there is the place where your logic and methods go
 
Joined
May 27, 2016
Messages
745
@chris121 you have this wrong "public void onstart )string... args) {" make it to:

"public void onstart (String... args) {", in java to declare a String it has to be started by a capital letter
 
And you are trying to add on start not in your class, just somewhere else, try to put it in the brackets below public class blablabla, as there is the place where your logic and methods go

done still gettign errors
 
Joined
May 27, 2016
Messages
745
@chris121 you have this wrong "public void onstart )string... args) {" make it to:

"public void onstart (String... args) {", in java to declare a String it has to be started by a capital letter
 
And you are trying to add on start not in your class, just somewhere else, try to put it in the brackets below public class blablabla, as there is the place where your logic and methods go

manifest

JavaScript:
<manifest>
    <main-class>com.chris121.bots.testbot.testbot</main-class>
    <name>Test bot</name>
    <description>This is a test bot.</description>
    <version>0.0.1</version>
    <compatibility>
        <game-type>RS3</game-type>
    </compatibility>

    <categories>
        <category>Mining</category>

    </categories>

</manifest>



JavaScript:
package com.chris121.bots.testbot;

/**
* 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");
        }
 
Joined
Sep 22, 2015
Messages
1,610
JavaScript:
package com.chris121.bots.testbot;
/**
* Created by Chris on 14/02/2017.
*/
public class testbot extends LoopingBot{
// here goes the logic, you should put onstart here, and the main logic that you want to do a script, so copy that code form below, and paste it here
}
@override
public void onstart (String... args) {
    System.out.printlin("This is a bot and it sucks");
        }

@chris121
 
Joined
May 27, 2016
Messages
745
JavaScript:
package com.chris121.bots.testbot;
/**
* Created by Chris on 14/02/2017.
*/
public class testbot extends LoopingBot{
// here goes the logic, you should put onstart here, and the main logic that you want to do a script, so copy that code form below, and paste it here
}
@override
public void onstart (String... args) {
    System.out.printlin("This is a bot and it sucks");
        }

@chris121


JavaScript:
package com.chris121.bots.testbot;

/**
* 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");
    }
}
 
Go check out new bots and give helpful feedback.
Joined
Jan 31, 2016
Messages
5,413
JavaScript:
package com.chris121.bots.testbot;
/**
* Created by Chris on 14/02/2017.
*/
public class testbot extends LoopingBot{
// here goes the logic, you should put onstart here, and the main logic that you want to do a script, so copy that code form below, and paste it here
}
@override
public void onstart (String... args) {
    System.out.printlin("This is a bot and it sucks");
        }

@chris121
Awww. I thought we were gonna troll:p
Are you serious about learning @chris121 ?
 
Joined
May 27, 2016
Messages
745
Well, I have been known to teamview people :D

im not sure why i get error lul

2icbnk8.png
 
Go check out new bots and give helpful feedback.
Joined
Jan 31, 2016
Messages
5,413
im not sure why i get error lul

2icbnk8.png
Cuz you didn't import that class. Click Alt and Enter when that is underlined and it should import it for you :D
Also, your @override, should be @Override.
Also, it's println, not printlin...
 
Joined
May 27, 2016
Messages
745
Cuz you didn't import that class. Click Alt and Enter when that is underlined and it should import it for you :D
Also, your @override, should be @Override.
Also, it's println, not printlin...

hi i did now @Override and alt + enter on loopingbot part and it doesnt give me option to import anything

meh i think i done it now not sur elooking strange

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");
    }
}
 
Top