Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //DEFINES
- $exp = explode($content, " ");
- $explodeString = explode($content, " ");
- $Ex1 = lower(at($explodeString, 1));
- $Ex2 = at($explodeString, 2);
- $Ex3 = at($explodeString, 3);
- $exNum = 1;
- $OrigJob = $job;
- $eChk = lower(at($explodeString, $exNum));
- $timeon = 1;
- if(mem("timeon")) {$timeon=mem("timeon");}
- def Sub($start,$end) {
- $content = substr($content,$start,$end);
- return $content;
- }
- def AutoMsg($so,$jb,$sa) {
- if($jb) {$job = $jb;}
- else {$job = "OS";}
- if($so) {$source = $so;}
- else {$source = $source + "_SYSOP";} // replace sysop if you want it to say something else. Prints as YOURNAME SYSOP.
- if($sa) {$say = $sa;}
- else {$say = "announces";}
- }
- //Remove AutoMsg if you want it to read as you saying it without the SYSOP or w/e.
- //ADMINISTRATIVE COMMANDS
- if($source == "YOURAINAME") //only the name in this line can use script
- {
- //copy from here
- if(at($exp, 1) == "-YOURCOMMAND") { // single argument command. Notice there is no SUB or +$content$+
- $content = "YOUR MESSAGE";
- AutoMsg();
- }
- //to here to make more commands
- //quick chat protocols
- if(at($exp, 1) == "-supermatter") { // this is a multi-argument command. Notice the +$content+. You would use it like -supermatter 10
- Sub(11);
- $content = "CRITICAL ALERT: Supermatter Crystalline Hyperstructure Integrity currently at: " + $content + " - Please exercise caution.";
- AutoMsg();
- }
- // paste additional commands above here
- }// do not remove.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement