import java.util.Map;
import com.speljohan.rsbot.script.Script;
public class ChatSpammer extends Script {
String spam = "";
public String getName() {
return "Chat Spammer";
}
public String getAuthor() {
return "The Bru Crew";
}
public String getScriptCategory() {
return "The Bru Crew/Spammers";
}
public String getScriptDescription() {
return "<html>\n" + "<head></head>\n" + "<body>\n" + "<center>"
+ "<h2>" + getName() + "</h2>" + "</center>\n"
+ "<b>Author:</b> " + getAuthor() + "<br />"
+ "<b>Version:</b> " + getVersion()
+ "<br>Spam Away<br>"
+ "Text To Send<br>"
+ "<form>Text:<input type=\"text\" name=\"text\" value=\"\"> "
+ "</body>\n" + "</html>";
}
public boolean onStart(Map<String, String> args) {
try {
spam = args.get("text");
} catch (NumberFormatException e) {
log("To use this script you need to give as argument the text you wish to send.");
return false;
}
return true;
}
public int loop() {
sendText(spam ,true);
return(random(500,3000));
}
}