mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Join/Part text #110894
11/02/05 02:05 PM
11/02/05 02:05 PM
Joined: Feb 2005
Posts: 344
Nunspeet, the Netherlands
B
Bullseye Offline OP
Fjord artisan
Bullseye  Offline OP
Fjord artisan
B

Joined: Feb 2005
Posts: 344
Nunspeet, the Netherlands
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 ??

Re: Join/Part text #110895
11/02/05 02:12 PM
11/02/05 02:12 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

Joined: Aug 2003
Posts: 1,831
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]
}

Re: Join/Part text #110896
11/02/05 02:27 PM
11/02/05 02:27 PM
Joined: Feb 2005
Posts: 344
Nunspeet, the Netherlands
B
Bullseye Offline OP
Fjord artisan
Bullseye  Offline OP
Fjord artisan
B

Joined: Feb 2005
Posts: 344
Nunspeet, the Netherlands
Somehow your script isn't working Iori.
I have no idea why not.

Re: Join/Part text #110897
11/02/05 02:31 PM
11/02/05 02:31 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

Joined: Aug 2003
Posts: 1,831
Are you using the latest version of mIRC (v6.16)?

Re: Join/Part text #110898
11/02/05 02:44 PM
11/02/05 02:44 PM
Joined: Feb 2005
Posts: 344
Nunspeet, the Netherlands
B
Bullseye Offline OP
Fjord artisan
Bullseye  Offline OP
Fjord artisan
B

Joined: Feb 2005
Posts: 344
Nunspeet, the Netherlands
yes i am

Re: Join/Part text #110899
11/02/05 02:52 PM
11/02/05 02:52 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

Joined: Aug 2003
Posts: 1,831
Then it should be working fine. Make sure the formatting is the same as in my post (the lines, spacing etc).

Re: Join/Part text #110900
11/02/05 03:01 PM
11/02/05 03:01 PM
Joined: Feb 2005
Posts: 344
Nunspeet, the Netherlands
B
Bullseye Offline OP
Fjord artisan
Bullseye  Offline OP
Fjord artisan
B

Joined: Feb 2005
Posts: 344
Nunspeet, the Netherlands
I forgot to copy someting smirk
It works fine thank you
haltdef does that mean halt default?

Re: Join/Part text #110901
11/02/05 03:03 PM
11/02/05 03:03 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

Joined: Aug 2003
Posts: 1,831
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

Re: Join/Part text #110902
11/02/05 04:01 PM
11/02/05 04:01 PM
Joined: Feb 2005
Posts: 344
Nunspeet, the Netherlands
B
Bullseye Offline OP
Fjord artisan
Bullseye  Offline OP
Fjord artisan
B

Joined: Feb 2005
Posts: 344
Nunspeet, the Netherlands
howcome it doesn't work when i remove a space or leave it as 1 line ?

Re: Join/Part text #110903
11/02/05 04:16 PM
11/02/05 04:16 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

Joined: Aug 2003
Posts: 1,831
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

Re: Join/Part text #110904
11/02/05 05:06 PM
11/02/05 05:06 PM
Joined: Feb 2005
Posts: 8
D
deepee Offline
Nutrimatic drinks dispenser
deepee  Offline
Nutrimatic drinks dispenser
D

Joined: Feb 2005
Posts: 8
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.

Last edited by deepee; 11/02/05 05:21 PM.
Re: Join/Part text #110905
11/02/05 05:20 PM
11/02/05 05:20 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

Joined: Aug 2003
Posts: 1,831
See above Q: grin
Quote:
Are you using the latest version of mIRC (v6.16)?

Re: Join/Part text #110906
11/02/05 05:22 PM
11/02/05 05:22 PM
Joined: Feb 2005
Posts: 8
D
deepee Offline
Nutrimatic drinks dispenser
deepee  Offline
Nutrimatic drinks dispenser
D

Joined: Feb 2005
Posts: 8
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.

Last edited by deepee; 11/02/05 06:12 PM.
Re: Join/Part text #110907
11/02/05 09:25 PM
11/02/05 09:25 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

Joined: Aug 2003
Posts: 1,831
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.

Re: Join/Part text #110908
13/02/05 08:45 PM
13/02/05 08:45 PM
Joined: Feb 2005
Posts: 8
D
deepee Offline
Nutrimatic drinks dispenser
deepee  Offline
Nutrimatic drinks dispenser
D

Joined: Feb 2005
Posts: 8
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)

Last edited by deepee; 13/02/05 08:46 PM.
Re: Join/Part text #110909
14/02/05 07:39 AM
14/02/05 07:39 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

Joined: Aug 2003
Posts: 1,831
Well, using $address() requires that the users address be in IAL. Probably best to stick with $address for this. wink

Re: Join/Part text #110910
14/02/05 04:24 PM
14/02/05 04:24 PM
Joined: Feb 2005
Posts: 8
D
deepee Offline
Nutrimatic drinks dispenser
deepee  Offline
Nutrimatic drinks dispenser
D

Joined: Feb 2005
Posts: 8
Oh, didn't know $address was usable without the (). Thanks.

Seems to work now, woot!

Re: Join/Part text #110911
14/02/05 08:35 PM
14/02/05 08:35 PM
Joined: Feb 2005
Posts: 8
D
deepee Offline
Nutrimatic drinks dispenser
deepee  Offline
Nutrimatic drinks dispenser
D

Joined: Feb 2005
Posts: 8
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".

Re: Join/Part text #110912
15/02/05 07:48 AM
15/02/05 07:48 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

Joined: Aug 2003
Posts: 1,831
Well, 'on mode' only triggers for channel modes (+/-mntietc) not for user modes.
Have a look at 'on rawmode'

Re: Join/Part text #110913
15/02/05 12:48 PM
15/02/05 12:48 PM
Joined: Feb 2005
Posts: 8
D
deepee Offline
Nutrimatic drinks dispenser
deepee  Offline
Nutrimatic drinks dispenser
D

Joined: Feb 2005
Posts: 8
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.

Last edited by deepee; 15/02/05 12:52 PM.
Page 1 of 2 1 2