mIRC Homepage
Posted By: Mlupu Edit: Now talking in #channel - 17/06/07 02:04 PM
Hy.
I want to edit this: * Now talking in #channel . This message appear when you JOIN a channel. I want translate in my language that text.
Exemple:
(english) * Now talking in $chan
(my language) * Acum vorbesti in $chan

In debug @raw is not appear to be an raw mode. Can you help me?
Thanks!
Posted By: SladeKraven Re: Edit: Now talking in #channel - 17/06/07 02:09 PM
Code:
On ^*:Join:#: { 
  if ($nick == $me) { echo 3 $chan * Acum vorbesti in $chan | haltdef }
}
Posted By: sparta Re: Edit: Now talking in #channel - 17/06/07 02:15 PM
you can also use a raw event:
Code:
raw  353:*: {
  clear $3
  haltdef | echo $3 $chr(3) $+ $color(join) $+ * Acum vorbesti in $3
}
Posted By: Mlupu Re: Edit: Now talking in #channel - 17/06/07 02:18 PM
Thanks smile
Posted By: SladeKraven Re: Edit: Now talking in #channel - 17/06/07 02:19 PM
Probably not the best way about doing that, I'm forever using the /names command. If you type /names <#channel> on a channel you aren't on you're gonna get:

-
#channel * Acum vorbesti in #channel
#channel End of /NAMES list.
-
Posted By: sparta Re: Edit: Now talking in #channel - 17/06/07 02:27 PM
You can use many diffrent raw events.. 366 would be one, End of /NAMES list. arent anything you use to often wink or you can use 324 or any other raw that are triggered with a join event, or set a %var, then unset it 2 secconds after you joined. if (%join == 1) many diffrent ways to do it smile
Posted By: SladeKraven Re: Edit: Now talking in #channel - 17/06/07 02:37 PM
Or just use On Join.
Posted By: RoCk Re: Edit: Now talking in #channel - 17/06/07 02:48 PM
[09:46] * Now talking in #chan
HERE JOIN event
[09:46] * Topic is 'test'
[09:46] * Set by RoCk on Sun Jun 17 09:44:55
HERE raw 353
HERE raw 366

Using the join event is the obvious choice. Not to mention that the info message to be replaced is triggered by the join event, not any numeric raw message.

on *:JOIN:#: {
if ($nick == $me) echo -a HERE raw JOIN
}
raw 353:*: {
echo -a HERE raw 353
}
raw 366:*: {
echo -a HERE raw 366
}
Posted By: vexed2 Re: Edit: Now talking in #channel - 17/06/07 02:52 PM
You don't half make life difficult for yourself and other people sometimes whistle
Why go into using raws and setting vars, then unsetting them, when the simple on join event is there?
Posted By: Mlupu Re: Edit: Now talking in #channel - 17/06/07 03:32 PM
I don't want to make the situation more difficult.
The first code is simple, the one slade gave to me.
Posted By: vexed2 Re: Edit: Now talking in #channel - 17/06/07 03:40 PM
Exactly smile
Posted By: schaefer31 Re: Edit: Now talking in #channel - 17/06/07 07:57 PM
You can use the 'me' prefix to simplify it a bit.

Code:
On me:^*:Join:#: { 
  echo 3 $chan * Acum vorbesti in $chan | haltdef 
}
© mIRC Discussion Forums