- Joined
- May 4, 2017
- Messages
- 18
- Thread Author
- #1
I'm trying to write a bot that prints "Hello, World!" in the console of Intellij.
First of all in the "public class TutorialBot extends LoopingScript" line, there is a line going through the word "LoopingScript" and when i hover above this i get the following message:
'com.runemate.game.api.script.framework.LoopingScript' is deprecated'
When running this code runemate spectre does start, but when I navigate in preferences to the directory of this bot and refresh the bot list, the bot won't show up. However in the console I do get a notice: Your bot list has been refreshed.
I appreciate all suggestions.
Code Used:
package com.legitcurry.bots.tutorial_bot;
import com.runemate.game.api.script.framework.LoopingScript;
/**
* Created by Ahmad on 12-May-17.
*/
public class TutorialBot extends LoopingScript {
private String output;
@Override
public void onLoop() {
setOutput("Hello, World!");
System.out.println(getOutput());
setLoopDelay(1000);
}
public void setOutput(String string){
output = string;
}
public String getOutput(){
return output;
}
}
First of all in the "public class TutorialBot extends LoopingScript" line, there is a line going through the word "LoopingScript" and when i hover above this i get the following message:
'com.runemate.game.api.script.framework.LoopingScript' is deprecated'
When running this code runemate spectre does start, but when I navigate in preferences to the directory of this bot and refresh the bot list, the bot won't show up. However in the console I do get a notice: Your bot list has been refreshed.
I appreciate all suggestions.
- RuneMate Version: 2.30.1
- Affected Games: n/a
Code Used:
package com.legitcurry.bots.tutorial_bot;
import com.runemate.game.api.script.framework.LoopingScript;
/**
* Created by Ahmad on 12-May-17.
*/
public class TutorialBot extends LoopingScript {
private String output;
@Override
public void onLoop() {
setOutput("Hello, World!");
System.out.println(getOutput());
setLoopDelay(1000);
}
public void setOutput(String string){
output = string;
}
public String getOutput(){
return output;
}
}