mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#69216 25/01/04 06:33 AM
Joined: Jan 2004
Posts: 8
M
muk Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2004
Posts: 8
I know there is a way to do this, because I've seen it before, but I have no idea how to do it.

My goal is to change the default

<nick>

to look like

nick:

or something cooler.

an example of how it would look in the chat

[02:13] mrwiggles: lol
[02:13] muk: but its the same as every other lil jon beat
[02:13] [w]ami: Yeah
[02:13] [w]ami: Lil Jon's beats are gettin' repetitive

and also the timestamp, I forget how to write it out to change it to equal like

Monday, Jan 24 2004 9:00PM

Thanks again

Keigan

#69217 25/01/04 06:45 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
i'm not aware of a mirc option to change the <nick> to nick: other than using an on text event and then echoing to the chanel as for the timestamp should be something like this
[dddd-mmm-dd-hh:nn tt]
[Sunday-Jan-25-12:43 am]

#69218 25/01/04 01:55 PM
Joined: Dec 2003
Posts: 219
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2003
Posts: 219
something like this?

on ^*:text:*:#:{
/echo $chan $chr(91) $+ $asctime $+ $chr(93) $nick $+ : $1-
/haltdef
}

same with on notice.

You'll have to script your hightlights since the msg isn't parsed anymore by mIRC.


#69219 25/01/04 02:09 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Quote:
You'll have to script your hightlights since the msg isn't parsed anymore by mIRC
That's what the -l switch for echo does.

A very simple example which applies highlight/beep|flash/strip/etc ...
Code:
on ^*:text:*:*:echo -mbflirt $iif(#,#,$nick) $nick $+ : $1- | haltdef


#69220 25/01/04 02:11 PM
Joined: Dec 2003
Posts: 219
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2003
Posts: 219
Didn't read the help file, thanks! laugh

#69221 25/01/04 02:16 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Quote:
Didn't read the help file, thanks!
Maybe you should wink It's a very useful resource.

#69222 25/01/04 08:41 PM
Joined: Jan 2004
Posts: 8
M
muk Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2004
Posts: 8
Where would I put this:

Code:
on ^*:text:*:#:{
/echo $chan $chr(91) $+ $asctime $+ $chr(93) $nick $+ : $1-
/haltdef
}


I am 90% sure I've seen it on a script like iRCN or something a few years ago.

I thought it would look alot cooler than <nick>.

I shuppose if read throug the help it may help me, but I don't understand the coding very well, is there a place that can help learn what each means?

Thanks

Keigan

#69223 26/01/04 06:31 AM
Joined: Jan 2004
Posts: 5
K
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
K
Joined: Jan 2004
Posts: 5
As much as I would love to use this information, I have no idea how frown

I tried putting the line of text in the mirc.ini file at the top, and bottom but that didnt work. (I figured it was worth a try... thats how UT ini files work) Then I also put it under "[events]" where I think it might need to go, but im not sure how to activate it and make it execute.

Then I read through the help file (in mIRC Help>Contents) and just got more confused... I just dont understand. Im still not sure if that line would go into a .ini file, or if its a setting that would need to be set in the mIRC options window.

Any help is greatly apreciated. I feel im on the right track, then again I might be wwwaaaayyyyyy off. Thanks!

-Walter
we87@hotmail.com

#69224 26/01/04 02:36 PM
Joined: Dec 2003
Posts: 219
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2003
Posts: 219
Put these lines in the "remote" section (alt + R)

#69225 26/01/04 06:33 PM
Joined: Jan 2004
Posts: 8
M
muk Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2004
Posts: 8
Thanks,

I got it working like so at the moment:

Marissa``: hey oni :}
oni: hey ;]
[x]: FLUKE

But there is still a small problem.

My typing is still <muk>. Is there a way to get rid of that?

Thanks again,

Keigan

#69226 26/01/04 08:54 PM
Joined: Dec 2003
Posts: 219
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2003
Posts: 219
Replacing your own text:

on *:input:#:{
/if ($left($1-, 1) != $chr(47)) {
.msg $chan $1-
/echo -mbflir $chan $chr(91) $+ $asctime $+ $chr(93) $me $+ : $1-
/haltdef
}
}

Replace $asctime with $asctime(dddd $+ $chr(44) mmm dd yyyy hh:nnTT) for a formatted timestamp as yours.

Last edited by fxmakers; 26/01/04 08:59 PM.
#69227 27/01/04 04:37 AM
Joined: Jan 2004
Posts: 8
M
muk Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2004
Posts: 8
Great

Works perfect, but of course I found one or two more things I'd like to change.

My set up looks like this:

Tuesday 12:35 AM de12f: yo
Tuesday 12:35 AM de12f: does anyone have room to host the stats page?
Tuesday 12:35 AM Kardi: i could if i wanted to

But this stuff looks like this:

Tuesday 12:32 AM * e-god sets mode: -b *!*bizy2703@*.dsl.chcgil.ameritech.net
Tuesday 12:33 AM * Joins: fecbsy
Tuesday 12:34 AM * Quits: fecbsy (Remote host closed the connection)

How can i get the jons, parts, quits, and actions to bold like the rest.

Thanks again,

Keigan

#69228 27/01/04 06:39 AM
Joined: Jan 2004
Posts: 5
K
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
K
Joined: Jan 2004
Posts: 5
Well I researched in the help file, and tested and after lots of trial and error.... I got it to work. But just like Muk, I too have some problems still smile

My commands look like this:

on ^*:text:*:*:echo -mbflirt $iif(#,#,$nick) $chr(5467) $+ $nick $+ $chr(5469) $+ $chr(160) $1- | haltdef

on *:input:#:/echo -mbflir $chr(5467) $+ $me $+ $chr(93) $+ $chr(160) $1- | haltdef

Which does exactly what I wanted, change <nick> to [nick]. But two things I have found wrong. #1 is my text in a PM window is still <nick> and I cant fix that... when I do I get to see my text as [nick] but I cant see the other persons message at all.... And I found when Im in a normal chat window and I type /list it actually says in the room /list instead of giving me a list of channels on that server. So Ive done something wrong... Can anybody see where I went wrong?

Thanks In Advance!

-Walter
we87@hotmail.com
(BTW: Getting [nick] was very tricky... if I was trying to do something like A nick A I would have been better smile hehe)

EDIT: HAHA!!!! My text doesnt even show up in the channel!!!!! I just launched two mIRC windows and the one with the script doesnt even show up... oh no

Last edited by Knowledge; 27/01/04 06:47 AM.
#69229 27/01/04 10:43 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
on *:input:?:if ($left($1,1) != /) { echo -mbflir $chr(91) $+ $me $+ $chr(93) $+ $chr(160) $1- | .msg $active $1- | halt }
on *:input:#:if ($left($1,1) != /) { echo -mbflir $chr(91) $+ $me $+ $chr(93) $+ $chr(160) $1- | .msg $chan $1- | halt }
on ^*:text:*:*:echo -mbflirt $iif(#,#,$nick) $chr(91) $+ $nick $+ $chr(93) $+ $chr(160) $1- | halt }

? is for message window
# is for channels
* is all of them
you might need to tweak the echo on the message window it lost the timestamp on mine, i didnt look into why, since it was there in the channel window, aslo replaced the $chr(5467) with $chr(91) which is the same thing., your halt(def) stops the input being processed so thats why it wasnt going to channel, I tried using /SAY but even .SAY still echoed the old way it was said, so i used .msg that sends it to nick ($active) or $chan with no local echo..

#69230 27/01/04 12:14 PM
Joined: Dec 2003
Posts: 219
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2003
Posts: 219
Hi!
You want to replace all the default actions.
I recommend you reading some /help about:
ON JOIN, ON PART, ON QUIT, ON KICK, ON NICK, ON MODE and /haltdef.

Here's an e.g. for the ON JOIN event:

on ^*:JOIN:#:{
/echo -mbflir $chan $asctime(dddd $+ $chr(44) mmm dd yyyy hh:nnTT) $+ : $nick has joined $chan
/haltdef
}

Remote is similar for on part/quit/nick/kick etc...

Hope this will help!
chris

#69231 27/01/04 10:15 PM
Joined: Jan 2004
Posts: 5
K
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
K
Joined: Jan 2004
Posts: 5
Thank You DaveC!!!!

So far, that seems to work perfectly. Thank you very much for helping me out. As for the timestamp, I dont do that anyway so it all works out for the best smile

Right now, all I see is Blonde, Brunette, Redhead... But im gonna read up and figure out what all that stuff means hehe

Thanks Again
-Walter
we87@hotmail.com

#69232 28/01/04 03:06 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Just a little shorter code and only one input event... :[/b])
Code:
on *:input:*:{
  if /* !iswm $$1 &amp;&amp; (# || $query($target)) {
    echo -ati $[,$me,] ) $1-
    .msg $ifmatch $1-
    haltdef
  }
}
on ^*:text:*:*:echo -mbflirt $iif(#,#,$nick) $+([,$nick,] ) $1- | halt }

#69233 23/04/04 11:20 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Code:
on ^*:text:*:*:echo -mbflirt [color:red]$iif(#,#,$nick)[/color] $nick $+ : $1- | haltdef


Hey smile just a quick question here.. what does $iif(#,#,$nick) do? I mean, i know the $iif identif. but i dont get what it does it that particular script.

Someone please? laugh

Thanks,
Zyzzy.


"All we are saying is give peace a chance" -- John Lennon
#69234 24/04/04 11:28 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
"what does $iif(#,#,$nick) do"

echo -mbflirt $iif(#,#,$nick) $nick $+ : $1-

/echo [[/b]color] [-cdeghiNtsaqlbfnmr] [[/b]color name] [#channel|[=]nick] <text>

echo -mbflirt is the command and switches.

$iif(#,#,$nick) the target (where to echo)

$nick $+ : $1- the text to echo.

In this case the $iif() determines the target for the echo. If target of the message was "#beginner" then the "#" will equate to "#beginner" and the result is "echo -mbflirt #beginner", else it will be $null and so "echo -mbflirt $nick would be the result.

Clear as mud? laugh

#69235 24/04/04 11:31 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Time to fix some obvious mistakes in that. :tongue:
Code:
on *:input:*:{
  if /* !iswm $$1 &amp;&amp; (# || $query($target)) {
    echo -ati $+([,$me,]) $1-
    .msg $ifmatch $1-
    haltdef
  }
}
on ^*:text:*:*:echo -mbflirt $iif(#,#,$nick) $+([,$nick,]) $1- | halt }

Page 1 of 2 1 2

Link Copied to Clipboard