mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2007
Posts: 4
N
nalfein Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: May 2007
Posts: 4
im customizing the way all the messages and events look on my mirc, and everything works pretty well except now the quit message shows in the status window and not on the channel(s) the user was on before he left. any ideas how to solve this?

Joined: May 2007
Posts: 4
N
nalfein Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: May 2007
Posts: 4
sry, im new to this all and didnt realise there were more pages in this forum, found the answer blush

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
try use "echo -a" .. i guess you use echo -s now? smile -a = active window.. -s = status window


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: May 2007
Posts: 4
N
nalfein Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: May 2007
Posts: 4
i had only -t after the echo no -s. i used the code horstl posted on a topic in page two right now, and that seems to work fine

Joined: Jan 2007
Posts: 22
D
Ameglian cow
Offline
Ameglian cow
D
Joined: Jan 2007
Posts: 22
At first, make ON JOIN event, that reacts on users who are joining channels, that you are sitting in, and create some db (database) that would carry information about niks, and their joined channels, that you are too. Make event when YOU are joining channel (read all people who are sitting in channel) and add them yo your db.
After this all... Create event, that would catch quit message, replace it as you want, and echo it with loop, to those channels, in whitch that person was sitting...
Job done...

PS: Havent tried jet, so maybe there is other way to do this. whistle


Deele /SCRIPTWORKS/

LV | ENG | RU
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
no need for a data base or anything like that, i use this:
Code:
on ^*:QUIT:{
  if ($nick == $me) { goto end }
  set %quitmessage $1-
  if Ping timeout isin %quitmessage { set %quitmessage Ping timeout }
  if Connection reset by peer isin %quitmessage { set %quitmessage Connection reset by peer }
  set %quitchan $chan
  %quit.1 = 1 
  if (quit: isin %quitmessage) set %quitmessage $+ $remove(%quitmessage,quit:,...)
  :quits
  if ($nick ison $chan(%quit.1)) { 
    set %quit.echo $chan(%quit.1) 
    themequit
    inc %quit.1
    goto quits 
  }
  elseif ($chan(%quit.1) != $null) { inc %quit.1
  goto quits }
  halt
  else { goto naiquit }
  :naiquit
  halt
  :end
}

then i just use a small script that echo the text i want smile i know it can be coded bether, but as long as it does the job i dont see any need to remake it wink


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: May 2007
Posts: 4
N
nalfein Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: May 2007
Posts: 4
ok, ty all for your replies. any of you know a good website with tutorials or tools for these kinds of scripts?

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
www.mircscripts.org .. a good site to start look on..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Mar 2006
Posts: 395
T
Pan-dimensional mouse
Offline
Pan-dimensional mouse
T
Joined: Mar 2006
Posts: 395


[02:16] * Titanic has quit IRC (Excess Flood)

Link Copied to Clipboard