Skip to content

Instantly share code, notes, and snippets.

@Karunamon
Last active December 26, 2015 14:29
Show Gist options
  • Save Karunamon/7165878 to your computer and use it in GitHub Desktop.
Save Karunamon/7165878 to your computer and use it in GitHub Desktop.
RP Safety Script for mIRC
;INSTRUCTIONS - Save as a file in your mIRC directory, and run //load -rs (the filename)
;follow on screen instructions
on *:LOAD: {
echo -a 9,1RP Safety v0.01 by Necoco/TKWare Loaded.
echo -a 9,1Please make sure you specify the channel you wish to rp in with /rpset (channel).
/set %rpsafetyon 0
}
alias rpset {
/set %rpchan $1-
echo -a 9,1 RP channel set to %rpchan
echo -a 9,1 /rpon to enable safety, /rpoff to disable.
}
alias rpon {
/set %rpsafetyon 1
echo -a 9,1 RP safety enabled. Emotes are now locked to %rpchan
}
alias rpoff {
/set %rpsafetyon 0
echo -a 9,1 RP safety disabled.
}
alias me {
if ((%rpsafetyon == 1) && ($chan != %rpchan)) {
echo -a 9,1Emote safety is enabled and you're not talking on %rpchan $+ . Message discarded.
}
else /action $1-
}
;on *:INPUT:*: {
; if (($1 == /me) && (%rpsafetyon == 1) && ($chan != %rpchan)) {
; # haltdef
; }
;}
on *:UNLOAD: {
echo -a 9,1 Unloading RP safety script. Have a very deviant day!
/unset %rpsafetyon
/unset %rpchan
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment