Advertisement
Guest User

Untitled

a guest
May 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. //DEFINES
  2. $exp = explode($content, " ");
  3. $explodeString = explode($content, " ");
  4. $Ex1 = lower(at($explodeString, 1));
  5. $Ex2 = at($explodeString, 2);
  6. $Ex3 = at($explodeString, 3);
  7. $exNum = 1;
  8. $OrigJob = $job;
  9. $eChk = lower(at($explodeString, $exNum));
  10.  
  11. $timeon = 1;
  12. if(mem("timeon")) {$timeon=mem("timeon");}
  13.  
  14.  
  15. def Sub($start,$end) {
  16. $content = substr($content,$start,$end);
  17. return $content;
  18. }
  19. def AutoMsg($so,$jb,$sa) {
  20. if($jb) {$job = $jb;}
  21. else {$job = "OS";}
  22. if($so) {$source = $so;}
  23. else {$source = $source + "_SYSOP";} // replace sysop if you want it to say something else. Prints as YOURNAME SYSOP.
  24. if($sa) {$say = $sa;}
  25. else {$say = "announces";}
  26. }
  27. //Remove AutoMsg if you want it to read as you saying it without the SYSOP or w/e.
  28. //ADMINISTRATIVE COMMANDS
  29. if($source == "YOURAINAME") //only the name in this line can use script
  30. {
  31. //copy from here
  32. if(at($exp, 1) == "-YOURCOMMAND") { // single argument command. Notice there is no SUB or +$content$+
  33. $content = "YOUR MESSAGE";
  34. AutoMsg();
  35. }
  36. //to here to make more commands
  37.  
  38. //quick chat protocols
  39. if(at($exp, 1) == "-supermatter") { // this is a multi-argument command. Notice the +$content+. You would use it like -supermatter 10
  40. Sub(11);
  41. $content = "CRITICAL ALERT: Supermatter Crystalline Hyperstructure Integrity currently at: " + $content + " - Please exercise caution.";
  42. AutoMsg();
  43. }
  44. // paste additional commands above here
  45. }// do not remove.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement