Advertisement
westor

1st OR 2nd for Kendy v2.2

Aug 23rd, 2020 (edited)
2,255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.49 KB | None | 0 0
  1. ON *:TEXT:*:#: {
  2.   tokenize 32 $strip($1-)
  3.  
  4.   if (!$istok($1-,or,32)) || ($wildtok($1-,* or *,0,32) > 1) { return }
  5.  
  6.   var %p = $findtok($1-,or,1,32)
  7.   var %1 = $remove($gettok($1-,1- $+ $calc(%p -1),32),$chr(63))
  8.   var %2 = $remove($gettok($1-,$calc(%p +1) $+ -,32),$chr(63))
  9.  
  10.   if (%p == $null) && (%1 == $null) && (%2 == $null) { return }
  11.  
  12.   .ignore -cu6 $nick
  13.  
  14.   var %r = $rand(1,2)
  15.  
  16.   if (%r == 1) { msg $chan ( $+ $nick $+ ): %1 }
  17.   if (%r == 2) { msg $chan ( $+ $nick $+ ): %2 }
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement