Top

Away script v1.5


mIRC Code
+ 2 likes
Please Register to submit score.
Bookmark and Share
Average Score  8.6 (of 5 scores)
Date Added  Jan 23, 2009
Last Updated  Aug 28, 2009
Tags  44  away  irc  jonesy  jonesy44  mirc  script 

Introduction

Realised i didn't have one, so i made one.

Version 1.5
Command is /aw [awaymsg] to open the dialog. any additions or bugs? post.

Screenshot


image (not mandatory, but looks nicer)

Save the image to your mircdirectory [//run $mircdir]

Grab the Code

menu * {
  Away Manager:aw
}
alias aw { dialog $iif($dialog(xaway),-v,-m)) xaway xaway | if ($1 && !$away) { did -ra xaway 301 $1- } | halt }
dialog xaway {
  size -1 -1 443 75
  option pixels
  title Away $+([,$iif($away,Away for $duration($awaytime),Online),])
 
  icon 1, 0 35 443 40, bottom.png, noborder actual
 
  button "Online", 101, 10 43 100 25
  button "Away", 102, 115 43 100 25
  button "Close", 103, 333 43 100 25
  button "Set new message styles", 104, 10 43 205 25
  button ">>", 105, 300 43 30 25
 
  text "Away message", 201, 10 12 80 20
  text "Away msg style", 202, 10 83 80 20
  text "Message method", 203, 10 105 80 30
  text "Return msg style", 204, 10 178 85 20
 
  edit $awaymsg, 301, 93 10 340 20, autohs
  edit %away.msgstyle, 302, 93 81 340 20, autohs
  radio "/say", 303, 93 103 50 20, group
  radio "/me", 304, 93 123 50 20
  edit %away.rmsgstyle, 305, 93 175 340 20, autohs
  radio "Active channel each server", 306, 150 103 150 20, group
  radio "All channels each server", 307, 150 123 150 20
 
  check "Notice users who say my name", 308, 10 150 170 20
  check "| one time response", 309, 179 150 110 20, left
 
  text Bold: [b] $+ $crlf $+ Underline: [u] $+ $crlf $+ Color: [k] $+ $crlf $+ Awaymsg: [m] $+ $crlf $+ (return) Awaytime: [t], 1001, 298 103 130 70, right
}
on *:dialog:xaway:init:*: { away.u | .timeraway 0 1 away.u | did -c $dname $iif(%away.msgsetting == me,304,303) | did -h $dname 104 | did -f $dname 301 | did -c $dname $iif(%away.serversetting == 1,306,307)
  if (%away.notice) { did -c $dname 308 }
  else { did -b $dname 309 }
  if (%away.notice.once) { did -c $dname 309 }
}
on *:dialog:xaway:close:*: { .timeraway* off }
on *:dialog:xaway:edit:*: {
  if ($did == 302 || $did == 305) { 
    if ($did(302) != %away.msgstyle || $did(305) != %away.rmsgstyle) { did -v $dname 104 | did -h $dname 101,102 }
    else { did -h $dname 104 | did -v $dname 101,102 }
  }
}
on *:dialog:xaway:sclick:*: {
  if ($did == 101) {
    did -b $dname 101,102
    var %x = 1
    while (%x <= $scon(0)) {
      scid $scon(%x)
      $+(away,%away.msgsetting) $replace(%away.rmsgstyle,[b],,[u],,[k],,[m],$iif($awaymsg,$v1,n/a),[t],$duration($awaytime))
      away
      inc %x
    }
    .remove away.temp
  }
  elseif ($did == 102) { 
    did -b $dname 101,102
    var %x = 1
    while (%x <= $scon(0)) {
      scid $scon(%x)
      $+(away,%away.msgsetting) $replace(%away.msgstyle,[b],,[u],,[k],,[m],$iif($did(301),$v1,n/a))
      away $iif($did(301),$v1,n/a)
      inc %x
    }
  }
  if ($did == 103) { dialog -x $dname | .timeraway* off | halt }
  elseif ($did == 104) { set %away.msgstyle $did(302) | set %away.rmsgstyle $did(305) | did -h $dname 104 | did -v $dname 101,102 }
  elseif ($did == 105) { 
    if ($did(105) == >>) { dialog -s $dname -1 -1 443 200  | did -ra $dname 105 << }
    else { dialog -s $dname -1 -1 443 75 | did -ra $dname 105 >> }
  }
  elseif ($did == 303) { set %away.msgsetting say }
  elseif ($did == 304) { set %away.msgsetting me }
  elseif ($did == 306) { set %away.serversetting 1 }
  elseif ($did == 307) { set %away.serversetting 2 }
  elseif ($did == 308) { 
    if (!$did(308).state) { did -b $dname 309 | set %away.notice 0 }
    else { did -e $dname 309 | set %away.notice 1 }
  }
  elseif ($did == 309) {
    if ($did(309).state) { set %away.notice.once 1 }
    else { set %away.notice.once 0 }
  }
  away.u
}
alias away.u {
  did $iif(!$away,-b,-e) xaway 101
  did $iif($away,-b,-e) xaway 102,301
  dialog -t xaway Away $+([,$iif($away,Away for $duration($awaytime),Online),])
}
alias awayme { $iif(%away.serversetting == 2,ame,describe $active) $1- }
alias awaysay { $iif(%away.serversetting == 2,amsg,msg $active) $1- }
on *:text:*:#: {
  if ($me isin $1- && %away.notice && $away) {
    if (%away.notice.once) {
      if (!$read(away.temp,s,$nick)) { notice $nick I am currently away. Reason: $qt($awaymsg) $+ . I have been away for $duration($awaytime) (one time response) | write away.temp $nick $+([,$time,]) $1- }
      halt
    }
    else { notice $nick I am currently away. Reason: $qt($awaymsg) $+ . I have been away for $duration($awaytime) | write away.temp $nick $+([,$time,]) $1- }
  }
}
on *:connect: { 
  scid $scon(1)
  var %a = $awaymsg
  if ($away) { scid -r | away $iif(%a,$v1,n/a) }
}
 

Comments

  (37)  RSS
Aucun50
Comments: 548
 
mIRC Snippet:  Away script v1.5
Posted on Jan 23, 2009 10:15 pm
Thats a fat away script, looks good tho
Blitzjager
Comments: 194
 
mIRC Snippet:  Away script v1.5
Posted on Jan 23, 2009 10:39 pm
Could you add an echo option and maybe something to toggle ame/amsg to just me/msg?

If I hit the close button I get spammed with * /did: invalid parameters (line 61, Away). And it didn't message chans with +c even though I had no colours in the message.
PunkTuReD
Comments: 458
 
mIRC Snippet:  Away script v1.5
Posted on Jan 23, 2009 10:55 pm
what about an on text
for a one time response when someone says your nick
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 12:22 pm
Aucun50: i tried to limit the lines & character count as much as possible, so it might look a bit compressed :)

Blitzjager: do you mean so it only messages to the active channel, or each active channel on each server?
I will also have to check what line 61 is.

PunkTuReD: sure i'll add it in the next 40-50 mins :)
PunkTuReD
Comments: 458
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 12:27 pm
7/10 for the update :-)
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 12:53 pm
Nearly done, just adding the option do the dialog :]
Blitzjager
Comments: 194
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 12:57 pm
Lots of people are on multiple servers so I guess all active channels would be nice.
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 12:58 pm
ok.. i don't see the point, but if that's what you want..?
irchainscriptz
Comments: 125
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 1:04 pm
dam didnt thing people wanted huge ass away dialogs as that :O Dont get me wrong its good and all but most ppl I thought liked simple aways....hmmmmmmI've been proven wrong :O nice jonesy44
Blitzjager
Comments: 194
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 1:34 pm
You don't have to :P
I just thought that you might be on a channel where you don't want people to always know when you leave and come back.
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 3:55 pm
Updated, i think to accomodate everyone?

#1: Now can msg only active channels or all channels
#2: responds to your name, once only or always
#3: smaller dialog for normal use, expanded view for options.

Anything else?
Spanky
Comments: 233
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 4:47 pm
right click menu ;P
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 4:52 pm
Updated so it works with NNS/Omega/Invision etc.
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 4:54 pm
Updated with right click menu on request :)
Aucun50
Comments: 548
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 5:02 pm
/me gives.... 1/10 but it does have a menu so 8/10 :)
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 5:20 pm
lol, the 1/10 lost me a bit sorry :(
Spanky
Comments: 233
 
mIRC Snippet:  Away script v1.5
Posted on Jan 24, 2009 6:01 pm
/me coughs works good dont forget for the nns users
Code:
 menu * {
  Away Manager:a
}
alias a { dialog $iif($dialog(xaway),-v,-m)) xaway xaway }

should be
Code:
 menu * {
  Away Manager:am
}
alias am { dialog $iif($dialog(xaway),-v,-m)) xaway xaway }


;P
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jan 25, 2009 9:22 am
Updated with the NNS bug fix.
Updated with an on connect, if you're set to away. it wil auto set away on the new server.
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jan 25, 2009 9:25 am
Updated fix to stop setting back on one server without setting back on otheers :)
Updated with optional away message entry into the /away command
Updated when you press return in the dialog it sets away
Aucun50
Comments: 548
 
mIRC Snippet:  Away script v1.5
Posted on Jan 25, 2009 9:35 am
/me changes rating to 9/10 for updates that rox
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jan 25, 2009 10:16 am
ty :]
xXLifelessxLoren__x
Comments: 47
 
mIRC Snippet:  Away script v1.5
Posted on Mar 27, 2009 11:46 am
* /dialog: 'xaway' no such table (line 6, script44)

eh? .-.
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Mar 27, 2009 11:52 am
It works fine for me.. :/
xXLifelessxLoren__x
Comments: 47
 
mIRC Snippet:  Away script v1.5
Posted on Mar 27, 2009 12:16 pm
Maybez I just fail
/me goes to have Q.Q time
lol
MaxEvans
Comments: 89
 
mIRC Snippet:  Away script v1.5
Posted on Mar 27, 2009 1:17 pm
I love this next to the one I was using. Only thing is, can you add an option to change the nick to Yournick[AFK]?
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Mar 27, 2009 3:24 pm
xXLifelessxLoren__x: what server/channel? I might be able to help you there. it may be a conflict with another script.

MaxEvans: I'm sure i could, just when i get a chance. I usually hate that so i didn't add it :L
AzzA
Comments: 4
 
mIRC Snippet:  Away script v1.5
Posted on Mar 28, 2009 4:50 am
hmm when i try to click away manager i get:
* /dialog: 'xaway' error loading icon 'appdata/bottom.png' (line 6, script2.ini)

i put the image and named it correctly and all that :S
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Mar 28, 2009 12:30 pm
That's my fault, sorry. The images is in a different directory on my computer.

Either;
1: remove the "appdata/" part on line 6 so line 6 should show;
Code:
icon 1, 0 35 443 40, bottom.png, noborder actual

2: copy&paste the entire update

Sorry abuot that.
Hellogoodbye
Comments: 3
 
mIRC Snippet:  Away script v1.5
Posted on Mar 28, 2009 1:58 pm
All im getting is :

Code:
* /dialog: 'xaway' error loading icon 'bottom.png' (line 6, script59.ini)


And i don't want to play with it, my IRC skills aren't quite here yet
MaxEvans
Comments: 89
 
mIRC Snippet:  Away script v1.5
Posted on Mar 28, 2009 4:26 pm
That's easy to fix, just save the image he has up in the introduction. That's what I did.

Right below where it says "image (not mandatory, but looks nicer)" below the line, right click, click save as. Save as bottom.png in the mIRC directory.
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Mar 28, 2009 4:54 pm
What MaxEvans said. Alternatively, you could comment out the line (ignore that line, so the image doens't show) by prefixing a ";" at the beginning of the line
Etalyx
Comments: 7
 
mIRC Snippet:  Away script v1.5
Posted on Jul 1, 2009 2:54 am
Looks nifty but each time I press "Away" after entering my message, the button dims and then lights back up. The "online" button remains grayed, indicating that I never actually go away. No mssg in the room, either. Any help?
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jul 1, 2009 7:47 am
Hmm are you recieving any errors? Check your status window. This script has been known to be buggy unfortunately because of the nature of different servers giving different results. If you can tell me any errors etc or any extra info i should be able to help you fix it.
Etalyx
Comments: 7
 
mIRC Snippet:  Away script v1.5
Posted on Jul 1, 2009 2:59 pm
Well I tried it again today and now it is something different altogether. What was wrong before was I was not entering a message style. Now that I have, however, the buttons gray as they should and the status informs me when I am marked as away and online, however my away message is not displayed in the channels I am in. I copied your text in the screenshots verbatim. There are no errors in the status window O.o
Thanks for the prompt reply.
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jul 1, 2009 5:45 pm
No worries, what server are you on? I'll come chat to you there instead?
sk68
Comments: 61
 
mIRC Snippet:  Away script v1.5
Posted on Jul 30, 2009 10:11 am
Quote:
* /dialog: 'xaway' error loading icon 'bottom.png' (line 5, away.mrc)


any help? =[
jonesy44
Comments: 1,853
 
mIRC Snippet:  Away script v1.5
Posted on Jul 30, 2009 10:25 am
Comment out line 5 with a ";" :)

Commenting Options

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

  
Bottom