Top

Away System


mIRC Code
+ 1 likes
Please Register to submit score.
Bookmark and Share
Average Score  6.5 (of 2 scores)
Date Added  Nov 01, 2008
Last Updated  Nov 03, 2008
Tags  away  dialog  script  system 

Description

;Away System
/timescript to run
/back to mark you as back
open the dialog and set a away nick then a back nick...
then you put in a reason and ciclk away \/

Grab the Code

;;;;;;;;;;;;;;;;;;;;;;;;;;;
;                         ;
;       Away System       ;
;        By Dj 801        ;
;                         ;
;   irc.wubnet.org:6667   ;
;        #dj801           ;
;                         ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
dialog away {
  title "Away System"
  size -1 -1 120 76
  option dbu
  box "Away Nick", 1, 1 1 57 34
  edit "", 2, 4 12 50 9, autohs
  button "Set as Away Nick", 3, 5 23 50 9, flat
  box "Back Nick", 4, 62 1 57 34
  edit "", 5, 65 12 50 9
  button "Set as Back Nick", 6, 65 23 50 9, flat
  box "Reason", 7, 1 36 118 21
  edit "", 8, 4 45 111 9, autohs
  button "Away", 9, 2 58 55 17, flat
  button "Back", 10, 64 58 55 17, flat
}
Menu * {
  Away System:/awayscript
}
alias awayscript { 
  dialog -md away away 
}
alias back {
  set %areason $did(8).text
  ame Is now Away - Reason $chr(2) $+ %areason
  nick %anick 
}
on *:DIALOG:away:sclick:*:{
  if ($did == 3) { 
    set %anick $did(2).text 
  }
  if ($did == 6) { 
    set %bnick $did(5).text 
  }
  if ($did == 9) { 
    set %away yes
    set %areason $did(8).text
    /ame Is now Away - Reason $chr(2) $+ %areason 
    /nick %anick 
  }
  if ($did == 10) { 
    set %away no
    /nick %bnick
    /ame Is now Back - Reason $chr(2) $+ %areason
    unset %areason
  }
}
on *:DIALOG:away:init:0:{
  did -a $dname 2 %anick
  did -a $dname 5 %bnick
}
on *:NOTICE:*:?:{
  if (%away == yes) {
    .notice $nick Sorry $nick $+ , I am Away
  }
}
on *:TEXT:*:?: {
  if (%away == yes) {
    msg $nick Sorry $nick $+ , I am Away
  }
}

Comments

  (11)  RSS
napa182
Comments: 1,688
 
mIRC Snippet:  Away System
Posted on Nov 1, 2008 1:18 am
hmm maybe make it a one time response or risk being flooded off. no need to set a var for being away as well as no need to set a var for an away message. also add error checks to it.
3/10

you also need to start adding an intro on set up as hawkee has told you a few times before.
Dj_801
Comments: 65
 
mIRC Snippet:  Away System
Posted on Nov 1, 2008 1:24 am
>.>
Relurk_
Comments: 11
 
mIRC Snippet:  Away System
Posted on Nov 2, 2008 7:51 pm
omg
Relurk_
Comments: 11
 
mIRC Snippet:  Away System
Posted on Nov 2, 2008 7:54 pm
I'am is either I'm or I am....there is no I'am
Dj_801
Comments: 65
 
mIRC Snippet:  Away System
Posted on Nov 2, 2008 11:45 pm
??? lolwut?
Jamiie
Comments: 167
 
mIRC Snippet:  Away System
Posted on Nov 3, 2008 1:08 pm
What Relurk_ is saying is on these events..


Code:

on *:NOTICE:*:?:{
  if (%away == yes) {
    .notice $nick Sorry $nick $+ , I'am Away
  }
}
on *:TEXT:*:?: {
  if (%away == yes) {
    msg $nick Sorry $nick $+ , I'am Away
  }
}


Where it says I'am should be either I am or I'm.

Just a spelling correction.
Relurk_
Comments: 11
 
mIRC Snippet:  Away System
Posted on Nov 3, 2008 4:50 pm
lol thanks jamiie
Dj_801
Comments: 65
 
mIRC Snippet:  Away System
Posted on Nov 3, 2008 5:14 pm
oh oops :/
Dj_801
Comments: 65
 
mIRC Snippet:  Away System
Posted on Nov 3, 2008 5:14 pm
*fixed*
Abtehi
Comments: 53
 
mIRC Snippet:  Away System
Posted on Nov 4, 2008 4:08 am
Can you make it silence where it doesnt annoy the channel[s]? give the user the message "Im not taking any messages at this time but I have received your message."

Add a PAGER to where it says "Your Page Have Been Received But I Will Get Back With You Soon."
Dj_801
Comments: 65
 
mIRC Snippet:  Away System
Posted on Nov 4, 2008 4:59 pm
yeah 1 sec

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  

Bottom