mIRC Home    About    Download    Register    News    Help

Print Thread
I need help with this away script #102284 07/11/04 01:52 AM
Joined: Sep 2004
Posts: 17
_
_Patrik_ Offline OP
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2004
Posts: 17
Hello

This away-snippet is supposed to change my nick (Patrik) to my away-nick (Pataway) after 1200 seconds of idling and when I get back to my keyboard and types something in the channel then the script should automatically change my nick back to Patrik, but the script Im currently using doesnt work that way, in fact it doesnt work at all! the script shall also set an away-message when my script changes my nick to awaynick(Pataway) and when I get back remove the away-message automatically..I hope this makes any sence..heh
Heres the snippet that didnt work:

on *:connect:.timeridlenick 0 500 changenick

alias changenick {
if ($idle > 1200 && $me != Pataway) { ; if idletime is more than 1200s AND you're not away
nick Pataway
away 4[12AFK4]3 Im currently not here $+ $chr(91) $time $+ $chr(93) 12G41M1T1+1 timezone
}
else { ; if idletime is under 1200s AND you are away
nick Patrik
away
}
}

I would be very happy if someone could help me ot with this, plz test the script you post just to be sure that its working.

Regards/Pat


*!*@help.me.if.you.can
Re: I need help with this away script #102285 07/11/04 02:33 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on *:input:#:{ 
  if ($me == Pataway) { changenick }
  .timeridlenick 1 1200 changenick 
}
alias changenick { 
  if ($idle > 1200) && ($me != Pataway) {   
    nick Pataway 
    away 4[12AFK4]3 Im currently not here $+ $chr(91) $time $+ $chr(93) 12G41M1T1+1 timezone 
  } 
  else { 
    nick Patrik 
    away 
  } 
}


New username: hixxy
Re: I need help with this away script #102286 07/11/04 08:16 AM
Joined: Sep 2004
Posts: 17
_
_Patrik_ Offline OP
Pikka bird
OP Offline
Pikka bird
_
Joined: Sep 2004
Posts: 17
It did not work as expected :-(

My awaynick is Pataway and my regular nick is Patrik
plz can u fix it?


*!*@help.me.if.you.can