Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <?php
  2. $bot = new CPbot();
  3. $serverid = "ID of server you want the bot to connect to";
  4. $roomid = "ID of room you want the bot to connect to";
  5. $bot->connect($serverid);
  6. $bot->join($roomid);
  7. class Cpbot{
  8. $rawPack = readRawPacket();
  9. private $id = "Penguin to follow's ID";
  10. public $username = "Bot name here";
  11. private $password = "Bot password here";
  12. if ($username){
  13. echo "Username correct";
  14. }
  15. else{
  16. echo "Username is incorrect";
  17. }
  18. if ($password){
  19. echo "Logged into penguin";
  20. }
  21. if ($bot->connect($serverid)){
  22. echo "Connected to server";
  23. }
  24. else{
  25. echo "A fatal error occured";
  26. }
  27. if ($bot->join($roomid)){
  28. echo "Connected to room";
  29. }
  30. else{
  31. echo "Couldn't connect to room";
  32. }
  33. $x = stribet($rawPack, “xt%sp%$roomid%$id%”, “%”);
  34. $y = stribet($rawPack, “xt%sp%$roomid%$id%$x%”, “%”);
  35. goto($x, $y);
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement