Away script including PM Blocker

By vinetio on Aug 21, 2007

I was making an away script from which I hoped that people would stop PMming but they still PMmed me so I included a PM-Blocker and it works good for me!

Usage: /setmode

will be your away reason and will be what kind of away you are and it will be included into your nickname. So for example: /setmode Scripting :w DND BSY would do this: /me is goin Scripting :w, DND and BSY modus: 3ON and then my nickname would turn into: Vinetio`DND`BSY and PMs are now automaticly blocked! /offmode turns this off And the handy thing is, you can turn the NO-PM mode On/Off by using /nopms or /pmon :D Have fun! ```mirc menu nicklist,channel,status { PM Blocker .Turn On { pmon } .Turn Off { nopms } } on *:LOAD: { /set %amode 4OFF /set %nopms 4OFF /echo -a Away Script By Vinetio Is Now Loaded! Have fun! } alias offmode { if (%amode == 3ON) { /ame is back from %nrr1 %nrr2 $+ , %nrr3 and %nrr4 modus: 4OFF /set %amode 4OFF /nick Vinetio /unset %nrr1 /unset %nrr2 /unset %nrr3 /unset %nrr4 /pmon } else { /echo -a Error: Mode is already off } } on *:text:*:?: { if (%nopms == 3ON) { /msg $nick No-PM mode is: 3ON I am NOT accepting PM's! /close -m $nick } } alias setmode { if (%amode == 4OFF) { /ame is going $$1 $2 $+ , $3 en $4 modus: 3ON /set %nrr1 $$1 /set %nrr2 $2 /set %nrr3 $3 /set %nrr4 $4 /set %amode 3ON /nick Vinetio` $+ $3 $+ ` $+ $4 /nopms } else { /echo -a Error: Mode is already on } } alias nopms { if (%nopms == 4OFF) { /set %nopms 3ON /ame No-PM mode is now 3ON } else { /echo -a No-PM mode is already 3ON } } alias pmon { if (%nopms == 3ON) { /set %nopms 4OFF /ame No-PM mode is now 4OFF I'm accepting PM's again } else { /echo -a No-PM mode is already 4OFF } } ```

Comments

Sign in to comment.
guest598594   -  Aug 21, 2007

add this menu, it\'ll be even easier

menu nicklist,channel,status {
  PM Blocker
  .Turn On { pmon }
  .Turn Off { nopms }
}

that way when you click turn on, it does /pmon for you and when you click turn off, it does nopms, because ppl might forget the aliases, and not wanna go searching through the script to find out what it was

 Respond  
vinetio   -  Aug 21, 2007

Edited it :\")
Thanks!

 Respond  
guest598594   -  Aug 21, 2007
on *:load:{
  set %amode 4OFF
  set %nopms 4OFF
  echo -a Away Script By Vinetio Is Now Loaded! Have fun!
}

sorry

if u need help /help on load

 Respond  
guest598594   -  Aug 21, 2007

IMPORTANT: The first time you use the script you\'ll have to use /startup to set the nessicary variables!

then replace alias startup with this

on *:load:{
  set %amode 4OFF
  set %nopms 4OFF
}

/echo -a Away Script By Vinetio Is Now Loaded! Have fun!

 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.