mIRC Homepage
Posted By: Bullseye Join/Part text - 11/02/05 02:05 PM
I'm would like to have the text on joins and part to be in my own language.
In my case that is dutch.
I did something like this:
on !*:JOIN:#: {
echo # 9 $timestamp * $nick Is4 # 9binnen gekomen.
}

That works.
Then i added this:
on !*:PART:#: {
echo # 8 $timestamp * $nick Heeft4 # 8verlaten.
}
Somehow the original text: <nick> has left <room> is also theretogether whit the line I added.
At last I added this:
ON !*:NICK: {
echo # 15 $timestamp $nick Heet Nu $newnick
}
This somehow only shows up on the status screen and the original text <nick> is now known as <newnick> is stil on the channel.
Howcome the first (join text) is working but the others don't.
I thought if the first is working the others should work on the same way.
I guess this shows how new I am .... crazy
I learn something new every day.
Will somebody learn me this ??
Posted By: Iori Re: Join/Part text - 11/02/05 02:12 PM
Two things, the ^ and the haltdef to prevent the default display.
Code:
on !*[color:blue]^[/color]:join:#:{
  echo # 9 $timestamp * $nick Is4 # 9binnen gekomen.
  [color:blue]haltdef[/color]
}
on !*[color:blue]^[/color]:part:#:{
  echo # 8 $timestamp * $nick Heeft4 # 8verlaten.
  [color:blue]haltdef[/color]
}
on !*[color:blue]^[/color]:nick:{
  var %i = 1
  while $comchan($newnick,%i) {
    echo $v1 15 $timestamp $nick Heet Nu $newnick
    inc %i
  }
  [color:blue]haltdef[/color]
}
on !*[color:blue]^[/color]:quit:{
  var %i = 1
  while $comchan($nick,%i) {
    echo $v1 15 $timestamp $nick &lt;Message for quitting&gt;
    inc %i
  }
  [color:blue]haltdef[/color]
}
Posted By: Bullseye Re: Join/Part text - 11/02/05 02:27 PM
Somehow your script isn't working Iori.
I have no idea why not.
Posted By: Iori Re: Join/Part text - 11/02/05 02:31 PM
Are you using the latest version of mIRC (v6.16)?
Posted By: Bullseye Re: Join/Part text - 11/02/05 02:44 PM
yes i am
Posted By: Iori Re: Join/Part text - 11/02/05 02:52 PM
Then it should be working fine. Make sure the formatting is the same as in my post (the lines, spacing etc).
Posted By: Bullseye Re: Join/Part text - 11/02/05 03:01 PM
I forgot to copy someting smirk
It works fine thank you
haltdef does that mean halt default?
Posted By: Iori Re: Join/Part text - 11/02/05 03:03 PM
No probs smile Yep, thats exactly what it means laugh

You can find info on it in the help file by typing /help Halting default text
Posted By: Bullseye Re: Join/Part text - 11/02/05 04:01 PM
howcome it doesn't work when i remove a space or leave it as 1 line ?
Posted By: Iori Re: Join/Part text - 11/02/05 04:16 PM
Well, as for spacing, that's the way the mIRC script parser works, correct spacing is important smile

It will work as one line, you just need to use | to seperate the multiple commands, like I pointed out in your other post
Code:
on !*^:quit:var %i = 1 | while $comchan($nick,%i) { echo $v1 15 $timestamp $nick &lt;Message for quitting&gt; | inc %i } | haltdef
Posted By: deepee Re: Join/Part text - 11/02/05 05:06 PM
Here your script still shows the messages in the statuswindow and not in the channel. What to do? smile
Code:
on !*^:nick:{
  var %i = 1
  while $comchan($newnick,%i) {
    echo $v1 15 $timestamp $nick Heet Nu $newnick
    inc %i
  }
  haltdef
}
on !*^:quit:{
  var %i = 1
  while $comchan($nick,%i) {
    echo $v1 15 $timestamp $nick &lt;Message for quitting&gt;
    inc %i
  }
  haltdef
}

I mean these scripts.
Posted By: Iori Re: Join/Part text - 11/02/05 05:20 PM
See above Q: grin
Quote:
Are you using the latest version of mIRC (v6.16)?
Posted By: deepee Re: Join/Part text - 11/02/05 05:22 PM
Quote:
See above Q: grin
Quote:
Are you using the latest version of mIRC (v6.16)?
Hmm, turns out I'm still using 6.12.

Kthx. =)

/edit
Oh, hmm, still something to ask: the quit-message that someone uses, how can I spawn it using a variable? (like $nick for the nick)

/edit2: how can I still catch the user's [email]user@host[/email] address when using it in that quit-script? It just shows blank while there should be the same as joining.
Posted By: Iori Re: Join/Part text - 11/02/05 09:25 PM
The two parts in red, arrange as you like smile
Code:
on !*^:quit:{
  var %i = 1
  while $comchan($nick,%i) {
    echo $v1 15 $timestamp $nick [color:red]( $+ $address $+ )[/color] &lt;Message for quitting&gt; [color:red]( $+ $1-)[/color]
    inc %i
  }
  haltdef
}

Same thing goes for the others as far as addresses.
Parts might have a $1- message as well.
Posted By: deepee Re: Join/Part text - 13/02/05 08:45 PM
Weird, with bitlbee I get the correct quit message, which is like this: 02-13|21:41:31 <-- duron_ (*!faxxxxxx@skynet.xx) Quit (Leaving...).

But on quakenet I have a problem, the address won't show up. Ie. 02-13|21:41:16 <-- Muis| () Quit (Ping timeout)

Code:
echo $v1 $timestamp 00&lt;10-- 14 $+ $nick 8(15 $+ $address($nick,0) $+ 8)14 Quit ( $+ $1-)
That's the code I use. Anyone got the answer to this mystery?

/edit: how weird, I just checked the same channel on quakenet and it shows this: 02-13|21:45:26 <-- wipeke` (*!fjord@dDxxxxxxD.access.telenet.xx) Quit (Signed off)
Posted By: Iori Re: Join/Part text - 14/02/05 07:39 AM
Well, using $address() requires that the users address be in IAL. Probably best to stick with $address for this. wink
Posted By: deepee Re: Join/Part text - 14/02/05 04:24 PM
Oh, didn't know $address was usable without the (). Thanks.

Seems to work now, woot!
Posted By: deepee Re: Join/Part text - 14/02/05 08:35 PM
Now I'm changing all chan messages to custom ones, but still things like 02-14|21:24:37 * root sets mode: +v _drydope are plain standard, and I really want to change that.

Atm I have this:
Code:
on *:mode:#:{
  echo # $timestamp $nick changed $chan mode to $1-
  haltdef
}
It just doesn't change anything, and I actually don't really know why. I have to say I've just discovered "mirc scripting".
Posted By: Iori Re: Join/Part text - 15/02/05 07:48 AM
Well, 'on mode' only triggers for channel modes (+/-mntietc) not for user modes.
Have a look at 'on rawmode'
Posted By: deepee Re: Join/Part text - 15/02/05 12:48 PM
Thanks, that worked.

But now I'm stuck with another problem:
Code:
on *:rawmode:#:{
  echo # $timestamp 15-10--9 $nick sets mode:10 $1-
  haltdef
}
It shows my custom message but also the original message. I thought it would disappear when using haltdef?

/edit: nevermind, I changed the accesslevel from * to *^ and now it doesn't show the original message.
Posted By: deepee Re: Join/Part text - 15/02/05 01:22 PM
Code:
on !*^:ACTION:*:#:{
  echo # $timestamp 15-10-- 6 $+ $nick $1-
  haltdef
}
The manual says: "you can't check this yourself", and it's true, I only see others' actions customized, mine are still standard. Is there another action like ON ACTION that includes my own actions?
Posted By: Mentality Re: Join/Part text - 15/02/05 01:29 PM
/help ON INPUT. Example:

on *:input:#:{
if ($1 == /me) {
echo -a You just did an action
halt
}
}


Regards,
Posted By: FiberOPtics Re: Join/Part text - 15/02/05 01:40 PM
Imo the easiest and fullproof way is to make custom aliases for /me and /describe vs. an event that is triggered on anything you put in.

alias me !.me $$1- | echo -tc action $active * $me $1-
alias describe !.describe $$1- | echo -tc action $1 * $me $2-
Posted By: deepee Re: Join/Part text - 15/02/05 01:41 PM
It doesn't do anything I'm afraid.

/edit: @mentality

/edit2: right, solution 2 works just fine, thanks. smile
© mIRC Discussion Forums