Advertisement
OrFeAsGr

Reload All Loaded Scripts 2

Jan 8th, 2017
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.28 KB | None | 0 0
  1. alias reload_all {
  2.   var %x = 1
  3.   var %y = $script(0)
  4.   while (%x <= %y) {
  5.     load -rs $shortfn($script(%x))
  6.     .timer 1 $calc(%x + 1) msg $1 * Loaded Script $+(',$script(%x),')
  7.     inc %x
  8.   }
  9. }
  10.  
  11.  
  12. ON *:TEXT:!reload*:#: {
  13.   if ($nick == Pirate) {
  14.     reload_all $chan
  15.   }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement