Pwnisher3's Away System

By pwnisher3 on Dec 23, 2008

ok this is not my first away script. i have pretty much combined my away script, nick notifier, and added a few more add-ons.

**FEATURES***

marks you as away and back

Changes Your Nick to /nick $me $+ [AFK]

Notifies you if anybody says your name. it also tel you what they said and what channel they said it in.

A editable away message

if you notice anything about the script as in a bug. please tell me

i will probably update and add more add-ons to it if i get the time.

just paste into remotes. all the commands and stuff is right click> away> whatever

ENJOY!!!

dialog ASO {
  title "Away Options"
  size -1 -1 120 55
  option dbu
  button "Set Options", 1, 2 2 116 10
  box "Away Nick Options", 2, 2 12 116 21
  edit "[AFK]", 3, 6 20 108 10, read
  box "Away Message", 4, 2 32 116 21
  edit "", 5, 6 40 108 10
}
on *:dialog:aso:sclick:1:{
  if (did == 1) {
    if (!$did(3) set %ano  ) 
  }
  else {
    set %ano $did(3)
  }
  if (did == 1) {
    if (!$did(5) set %awaymsg  ) 
  }
  else {
    set %awaymsg $did(5)
  }
}
#nick_notify on
on *:TEXT:$($+(*,$me,*)):*:{ notice $me $nick has said you name on # $nick has said $1- $+ 
  notice $nick I am [AFK] (for Reason: %awayreasom $+ ) i will get back to you asap.
} 
#nick_notify end 
menu * { 
  Away 
  .Set $me away: set %nick $me | set %Awayreason $$?="Enter Away Reason" | amsg ( $+ %awaymsg $+ ) (for Reason: %awayreason $+ ) | nick $me $+ [AFK] | away %awayreason | set %awaytime $ctime 
  .Set $me Back: amsg (Is Now Back From: %awayReason $+ ) (I Was Gone For: $duration($calc($ctime - %awaytime) $+ ) | nick %nick | away
  .Turn Nick Notify $iif($group(#nick_notify).status == on,Off,On) : $iif($group(#nick_notify).status == on,.dis,.en) $+ able #nick_notify
  .Away Options: dialog -m aso aso 
} 

Comments

Sign in to comment.
Scakk   -  Dec 24, 2008

The variables will always get set as you seem to have no idea how to write if statements. Please read /help before posting more broken snippets.

 Respond  
pwnisher3   -  Dec 24, 2008

it can't b you. and it has to be your nick with the [AFK] added.

 Respond  
Aucun50   -  Dec 23, 2008

Everything was nice till i tried the notice nick part, it didn't do anything when i said the name and there's no error msgs.

 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.