RaidAway 2.2

By Raid on Aug 02, 2005

Copy and make a new txt file inside your mIRC folder. Then load the script into the remote section. Commands: right click in channel or /a /b /re /log /msgs |||||

Change My name after nick to yours or take out if not needed.

Credits to tank59 on the auto away. http://hawkee.com/snippet.php?snippet_id=1189

Menu channel {
  RaidAway 
  .Set Raid Away:a
  .Set Raid Back:b
  .Auto Away Return:re
  .Log:log
}
On *:OPEN:?:*: {
  if ($away) {
    close -m $nick
    msg $nick -RaidAway- My Pm system is offline. Your Msg has been logged.
    echo -a $nick sent a pm
    write Msgs.txt $fulldate ( $Nick ) - $1-
  }
}
on *:CONNECT: {
  echo -s -RaidAway- Activated.
  timeridle 0 2400 idler
}
on *:DISCONNECT: {
  echo -as -RaidAway- Deacivated.
  timers off
}
on *:INVITE:*: {
  if ($away == $true) {
    notice $nick I am away, leave me alone if this is not important.
  }
}
Alias msgs {
  var %x 1
  while ($Read(Msgs.txt,%x)) {
    echo $v1
    inc %x
  }
}
Alias log {
  run $scriptdirMsgs.txt 
}
Alias a {
  if ($away == $false) {
    amsg -RaidAway- Now Activated: Query Logger Activated - Reason: ( $?="Give a reason" ) |  away Set away at $time $chr(91) $+ $! $+ $chr(93)  | timerRaidAway 0 2400 amsg  -RaidAway- Activated: Query Logger Activated - Reason: $duration( $awaymsg )
    nick R[a]id
  }
}
Alias b {
  if ($away == $true) {
    amsg -RaidAway- Now Deactivated: Query Logger Deactivated - Reason: ( $awaymsg ) Time AWaY: $duration($awaytime) |  away | log | timerRaidAway off
    nick Raid  
  }
}
Alias idler {
  if ($away == $false) && ($idle >= 600) {
    set %awaygone $ctime    
    amsg -RaidAway- Now Activated: Query Logger Activated - Reason: Auto Idle at $asctime(h:nn:sstt)   
    away Reason: Auto Idle at $asctime(h:nn:sstt) 
    nick R[a]id
  }
  elseif ($away == $true) {
    halt 
  }
}
Alias re {
  if ($away == $true) {
    amsg -RaidAway- Now Deactivated: Query Logger Deactivated - Reason: Auto Idler I was gone: $replace($duration($calc($ctime - %awaygone)),wks,w,wk,w,days,d,day,d,hrs,h,hr,h,mins,m,min,m,secs,s,sec,s) 
    nick Raid 
    away | log
    unset %awaygone
  }
}

Comments

Sign in to comment.
Raid   -  Jul 31, 2006

I made the log text a little smaller.

 Respond  
Noutrious   -  Jul 31, 2006

On :OPEN:?:: {
if ($away) {
close -m $nick
msg $nick -RaidAway- My Pm system is offline. Your Msg has been logged.
echo -a $nick sent a pm
write Msgs.txt On $fulldate [ $Nick ] Sent You A Message Saying $1-
}
}
better would be
On :OPEN:?:: {
if ($away) {
msg $nick -RaidAway- My Pm system is offline. Your Msg has been logged.
close -m $nick
echo -a $nick sent a pm
write msgs.txt $1- ( $+ $fulldate / $nick $+ )
}
}

 Respond  
Raid   -  Jul 31, 2006

New update Made it a lot better.

 Respond  
Raid   -  Nov 17, 2005

I added a feature so if you are away and someone /notice you it will notice back saying you are away.

 Respond  
Raid   -  Nov 11, 2005

Added some new features to it. It works great with this Query Control By SeiferAlmasy I changed it a bit to make it fit the script:
.
.
dialog qc {
title \"Query Control\"
size -1 -1 140 51
option dbu
edit \"\", 3, 4 10 132 10, read
text \"From:\", 5, 4 24 14 8
edit \"\", 7, 20 22 116 10, read
button \"Accept\", 1, 5 34 37 12, flat
button \"Decline\", 2, 44 34 37 12, flat
box \"Query Control\", 4, 1 1 138 49
}
on :dialog:qc:sclick:1:{
/window -w %qnick
/msg %qnick -Query Accepted- You may talk now. -Query Accepted-
/dialog -x qc
/window -a %qnick
/unset %qnick
}
on
:dialog:qc:sclick:2:{
close -m %qnick
/msg %qnick -Query Declined- Go away you are not worth my time. -Query Declined-
/dialog -x qc
unset %qnick
}

On *:OPEN:?: {
if (!$away) {
if ($dialog(qc)) {
close -m $nick
}

else { 
  /set %qnick $nick 
  /window -h %qnick 
  /msg %qnick  -Please Wait- I am thinking if you are worth my time. -Please Wait- 
  /dialog -m qc qc 
  did -a qc 7 %qnick 
  did -a qc 3 $1- 
} 

}
}

 Respond  
Raid   -  Sep 28, 2005

Ok i havent had problems but i did change it. thanks

 Respond  
xDaeMoN   -  Sep 28, 2005

The On Text event is the one working, but not the On Open event.

 Respond  
Raid   -  Sep 28, 2005

It works fine for me.

 Respond  
xDaeMoN   -  Sep 28, 2005

Your On Open event will not work is it does not have the matched text part.

The format is-> On :OPEN:?:: {

See /help on open

 Respond  
Raid   -  Sep 28, 2005

Update 9-28-05

 Respond  
Raid   -  Aug 06, 2005

Where are you putting it and remember that it stops before this (Below is the logger )

and then the nest part goes to remotes.

 Respond  
Raid   -  Aug 05, 2005

well to set the away if you put this in >popups>channel---> so it looks like this
Away System
.set away:/amsg 1514,151,1415,1 -- -- [J.A.C.K.A.L AWAY SYSTEM
.set back:/amsg 1514,151,1415,1 -- -- [J.A.C.K.A.L AWAY SYSTEM
then all you have to do is right click in the channel and it should list away system in the little popup. just click away or back.

 Respond  
Gatedialer   -  Aug 05, 2005

how do you set the away?

 Respond  
Raid   -  Aug 03, 2005

heres another version that has different colors put in popups under channel or Aliases.

/amsg 1,14--15,14--1,14--15 [1S15ha1d15o1w 1S15c1Ri15p1T] [1A15wA1Y 1S15y1sT15E1m 1A15c1t15iv1e15]0 $me 1i15s n1ow15 aW1A15Y 0 ( $?=\"Give a reason\" ) 1Q15u1er15y S1y15st1em 1Se15t 1T15o 1B15lo1c15k 1Mo15de. 1Q15ue1r15y 1L15o1gg15e1r 15Ac1t15iv1ate15d. 15 [1S15ha1d15o1w 1S15c1Ri15p1T] [1A15wA1Y 1S15y1sT15E1m 1A15c1t15iv1e15] | /nick {Sh[A]do[W][A][Y]} | /msg nickserv identify fisher | /away Set away at $time { $+ $! $+ }|

/amsg 1,14--15,14--1,14--15 [1S15ha1d15o1w 1S15c1Ri15p1T] [1A15wA1Y 1S15y1sT15E1m 15D1ea15C1t15iV1A15te1d]0 $me 1i15s n1o15w 1B15AC1K. 15Qu1e15r1y 15Lo1gg15e1r 15N1ow15 1Of15f1l15in1e15. Qu1e15r1y 15S1ys15t1e15m Se1t 15T1o 15N1or15mal1 Mo15d15e.[1S15ha1d15o1w 1S15c1Ri15p1T] [1A15wA1Y 1S15y1sT15E1m 15D1ea15C1t15iV1A15te1d]15,14--15,14--1,14--14 | /away | /nick {Shadow} | /msg nickserv identify fisher | /msgs

 Respond  
Raid   -  Aug 03, 2005

o this is for popups section not remotes. the logger is only thing that goes in the remotes. This script also makes good f keys

/f1 /amsg 1514,151,1415,1 -- -- [J.A.C.K.A.L AWAY SYSTEM ACTIVATED] $me is now AWAY ( $?=\"Give a reason\" ) Away Query logger activated. Type /ms send $me (your msg) and i will get back to you when i return. [J.A.C.K.A.L AWAY SYSTEM ACTIVATED] 1514,151,1415,1 | /nick (YOUR AWAY NICK) | /msg nickserv identify (YOURPASS) | /away Set away at $time { $+ $! $+ }

 Respond  
Corne   -  Aug 03, 2005

well ... I think all of them. /msg , /nick, /amsg, /away . Its not wrong if you put \'/\' before a command in a remote file but it looks better.

 Respond  
Raid   -  Aug 03, 2005

which \"/\" should i delete?

 Respond  
Corne   -  Aug 03, 2005

Remove the last 2 }} and you can get rid of \'/\' too so it would look nicer.

 Respond  
Raid   -  Aug 03, 2005

I wen looking for the Query blocker i use w/ this and found it http://www.hawkee.com/snippet.php?snippet_id=1014 it allows you to block all in comming pm yet the logger keeps tract of what they say.

 Respond  
DeathRyder082   -  Aug 03, 2005

oh thats what /amsg means, ty

 Respond  
Raid   -  Aug 03, 2005

o and /amsg sends it to all channels you have open. others can be /msg $active -- /ame (/me all channels that are open) -- /me

 Respond  
Raid   -  Aug 02, 2005

k the logger was made more me so i didnt post it. It was made by LordBaby at irc.scrollrack.com he made it in a min. or two. I am still a HUGE noob at scripting and dont quite understand every thing so i made this in popup section alt+p under channel. I thought that it made it function great and also is simple to use. I had went through many away systems that would mess my mirc up some how. The passwords is there because i had switched nicks and grouped the away nick with an other nick so when i change {RAiD} to {R{A}iD} i need to identify to {R{A}iD}, and when i change back i need to identify to {RAiD}. Im too lazy to regroup. if you dont need the password leave it out.

 Respond  
anthalus   -  Aug 02, 2005

Where is the query logger? I would assume that you would assign an @window to it or at least another form of actual logging. Other than that, nice script.

 Respond  
DeathRyder082   -  Aug 02, 2005

it also may be that i\'m missing something***

 Respond  
DeathRyder082   -  Aug 02, 2005

uh why do you need a password? also i don\'t quiet understand the /amsg and you should put

menu channel {

on the top so it works, it also may just be missing something lolz ;/

 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.