Guest User

Untitled

a guest
Jul 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. import java.util.Map;
  2.  
  3. import org.rsbot.bot.Bot;
  4. import org.rsbot.event.events.ServerMessageEvent;
  5. import org.rsbot.event.listeners.PaintListener;
  6. import org.rsbot.event.listeners.ServerMessageListener;
  7. import org.rsbot.script.Script;
  8. import org.rsbot.script.ScriptManifest;
  9. import org.rsbot.script.Skills;
  10. import org.rsbot.script.wrappers.RSInterface;
  11. import org.rsbot.script.wrappers.RSObject;
  12. import org.rsbot.script.wrappers.RSTile;
  13.  
  14.  
  15.  
  16. @ScriptManifest(authors = { "Spart" }, category = "Other", name = "BackTalker", version = 3.4, description = "<html><head>Ur mom</head></html>")
  17. public class BackTalker extends Script {
  18.  
  19.  
  20. public String getAuthor() {
  21. return "Spart";
  22. }
  23.  
  24. public String getName() {
  25. return "BackTalker";
  26. }
  27.  
  28. public String getScriptCategory() {
  29. return "Other";
  30. }
  31.  
  32.  
  33.  
  34. public double getVersion() {
  35. return 1.00;
  36. }
  37. public int loop() {
  38. if(getLastMessage().contains("Hi")||getLastMessage().contains("Sup")||getLastMessage().contains("Hello") ||getLastMessage().contains("Meow")) {
  39. wait(random(500, 550)); // Don't respond immediately, instead wait few seconds
  40. sendText("/How's it going?", true); // Press the keys and end with pressing enter
  41. }
  42. return 300;
  43. }
  44. }
  45.  
  46. if(getLastMessage().contains("Fine")||getLastMessage().contains("Good") {
  47. wait(random(500, 50, 51)); // Don't respond immediately, instead wait few seconds
  48. sendText("/then stfu nigguh!", true); // Press the keys and end with pressing enter
  49. }
  50. return 300;
  51. }
  52.  
  53. }
Add Comment
Please, Sign In to add comment