command lock

By DragonFlare on Jul 26, 2008

this script when applied to your bots scripts will lock them until you type the unlock command

after you put the script i wrote below into your remotes before all of your scrripts then you need to put this after every On :text:blahblah:#:{ command

E.g
on :Text:op:#:{
if (%lock == on) {
.notice $nick Commands Are Currently Locked Contact A Channel Operator To Get Them Unlocked. | halt }
mode $chan +o $2-
}

on the snipplet below replace clock and culock with your choice of the lock and unlock commands

clock = the lock trigger
and
culock = the unlock trigger
replace them with whatever you want

feel free to edit both the .msg $chan messages

also the clock and culock commands will only be usable if you are a
channel operator

on *:load:{
  echo 12 -a You Have Just Loaded DragonFlare's Lock Script
  echo 12 -a A DragonFlare's Network Production 
  echo -a 14,1 ?????????????????????. My Server Is /server irc.oxsh.net:6665
}
on @*:text:*:#:{ 
  if ($nick isop #) { 
    if ($strip($1) == !Clock) {
      set %lock on 
      .msg $chan Commands are now locked.Please contact a channel operator to have them unlocked.
    }
    elseif ($strip($1) == !CUlock) {
      unset %lock 
      .msg $chan Commands are now Unlocked..  
    }
  }
}

Comments

Sign in to comment.
Spanky   -  Aug 03, 2008

i like it.

 Respond  
StaticX__   -  Jul 30, 2008

very simple and nice remote ;)

 Respond  
DragonFlare   -  Jul 29, 2008

thanks napa and its updated

 Respond  
napa182   -  Jul 26, 2008

well maybe add this to an on load event

echo 12 -a You Have Just Loaded DragonFlare\'s Lock Script
echo 12 -a A DragonFlare\'s Network Production 
echo -a 14,1 ?????????????????????. My Server Is /server irc.oxsh.net:6665

like

on *:load:{
  echo 12 -a You Have Just Loaded DragonFlare\'s Lock Script
  echo 12 -a A DragonFlare\'s Network Production 
  echo -a 14,1 ?????????????????????. My Server Is /server irc.oxsh.net:6665
}

cuz other wize it serves no point to have it there =/ and why post a script that dont work test ur stuff before you post.

on @*:text:*:#:{ 
  if ($nick isop #) { 
    if ($strip($1) == !Clock) {
      set %lock on 
      .msg $chan Commands are now locked.Please contact a channel operator to have them unlocked.
    }
    elseif ($strip($1) == !CUlock) {
      unset %lock 
      .msg $chan Commands are now Unlocked..  
    }
  }
}
 Respond  
Cheiron   -  Jul 26, 2008

chanserv has a lock down facility for servers using it. it is called mlock (mode lock)

must be owner i think (gone senile here with work today ^^) to use /cs mlock (mode required) i cant remember offhand if you need mlock on/off also before use.

maybe look into that and how it works DragonFlare. have a good old read up and then design your snippet around it so that way you know it all works correctly.

i re-itterate. this mlock is for servers with chanserv (and not been disabled also by IRCops) unreal32 server is one such server i know the mlock works with.

 Respond  
Eugenio   -  Jul 26, 2008

roflmfao
sorry mate
FAIL

 Respond  
F*U*R*B*Y*   -  Jul 26, 2008

Rofl

!CUlock will turn it on and off, rofl Fail

not gonna help, you\'ve been told by Typo too many times......

 Respond  
DragonFlare   -  Jul 26, 2008

i tried your script an my bot went awole ty Typo

 Respond  
DragonFlare   -  Jul 26, 2008

Eugenio

i sent you a pm

and ill work on this trigger so typo will quit reposting

 Respond  
Eugenio   -  Jul 26, 2008

I have to agree with typo, your event is fugly, Im strugling to understand why you coded this way, you need to put your events under one and dont make a new one everytime.
The first Event uses ! so when you type !CUock that will trigger lol I know typo said it but I noticed it aswell.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.