Advertisement
severen1999

Landail !landlewd Quote Script

Aug 27th, 2018
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.34 KB | None | 0 0
  1. ;QUOTE FILE FOR !lanlewd quote function
  2.  
  3. ;any spam protecting
  4. ;NEEDS UPDATING WITH SIMPLER SYNTAX
  5. ;
  6.  
  7. #fcheck on
  8. alias -l fcheck {
  9.   if ($regex($1,/(quote|qotd|qsearch)$/Si)) {
  10.     if ($prop = add) set -z $+(%,$regml(1),$site,$network) %fMins
  11.     else return $+(%,$regml(1),$site,$network)
  12.   }
  13. }
  14. #fcheck end
  15.  
  16.  
  17. alias -l up return $+($upper($left($1,1)),$mid($1,2))
  18. ;$ulevel = 10
  19. on *:text:*:#landail: {
  20.   var %file lanlewd.txt, %x $lines(%file), %y $read(%file, n, $2), %rx $r(1,$lines(%file)), %ry $read(%file, n, %rx)
  21.   if (!%x && $regex($1,/^!q(del|uote|otd|search|lines|open)$/Si)) { msg # There does not appear to be any quotes added yet. | halt }
  22.  
  23.   ;-----------------------------------------------------;
  24.   ;------------------ADDING QUOTES----------------------;
  25.   ;-----------------------------------------------------;
  26.  
  27.   if ($1 = !LanLewd) {
  28.     if ($2 && $2 !isnum) { msg # Syntax: $1 [1 - %x $+ ] | halt }
  29.     if ($2 && !%y || $2 < 0) { msg # BibleThump $chr(160) Quote $chr(160) $+ $2 Does not exist. You can select 1 to %x | halt }
  30.     if ($ulevel < 4) {
  31.       if ($($fcheck($right($1, -1)),2)) { msg # $nick You must wait $duration($v1) before you can use that again. | halt }
  32.     }
  33.  
  34.     $fcheck($right($1, -1)).add
  35.  
  36.     if (!$2) { msg # Quote %rx $lower(-) %ry | halt }
  37.     ;IF ALL CHECKS PASS this is syntax used to send random quote from master lanlewd txt file
  38.     msg # Quote $chr(160) $+ $2 - %y
  39.   }  
  40.  
  41.   ;---------------------------------------------------------------------------------------------------------------------------------------------
  42.   if ($1 = !TotalLanLewd) { msg # We have $chr(160) $+ %x quotes collected of LanLewd moments so far. Why are we missing so many? Remember to use that !qadd }
  43. }
  44.  
  45. ;MORE SPAM CHECK
  46. if ($1 = !fcheck && $regex($2,/^o(|n|ff)$/Si) && $nick isin %owner) {
  47.   if (!%fMins) { msg # You have first to set the duration of fTime. | msg # Syntax: !fTime [mins] | halt }
  48.   $iif($regml(1) = n,en,dis) $+ able #fcheck
  49.   msg # Floodcheck has been $iif($v1 = $v2,en,dis) $+ abled.
  50. }
  51.  
  52. ;MORE POWER FOR USERS IN THE %OWNER VARIABLE TO MAKE SEVBOT LEAVE CHANNEL IF MALFUNCTIONING
  53. if ($1 == !shutupbot || $1 == !shutup || $1 == !damnit || $1 == !sevplease || $1 == !OMG || $1 == !wtf) {
  54.   if ($nick isin %owner) {
  55.     /part # | halt
  56.   }
  57.   else msg # Sorry $nick your power isn't over 9000! | halt
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement