mIRC Home    About    Download    Register    News    Help

Print Thread
#153293 14/07/06 01:04 AM
Joined: Jul 2006
Posts: 19
B
Pikka bird
OP Offline
Pikka bird
B
Joined: Jul 2006
Posts: 19
I remember like 4 years ago (before MTS) there was a way to change the username displays before the text they input... with raws or such.. for example..

Instead of:
<@benifactor> this is the users text
<otheruser> this is the other users text

I could make it display:

(@blaankeer) with the () instead of the <> also making the colors customizable.
(+benifactor) ect...
(werd) ecttt....

...

I remember doing this without mts and it being fairly easy but I tried using raw 001 and echo -a $1 ( $+ $nick $+ ) $2- but that didn't seem to work any help would be appreciated.. thanks


For everything else, there's MasterCard.
#153294 14/07/06 01:47 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
There are many scripts that can do this for you. I use PnP 4.22, and it does exactly what you are describing.

You can have different formats for the backets and nicks:

(Nick)
(Nick)

etc.

-genius_at_work

#153295 14/07/06 03:22 AM
Joined: Jul 2006
Posts: 19
B
Pikka bird
OP Offline
Pikka bird
B
Joined: Jul 2006
Posts: 19
I Think I figured it out for the most part...

Code:
 on ^*:TEXT:*:#: echo $chan $timestamp ( $+ $nick $+ ) $2- | halt  


That gives me close to what I want however now the usermodes don't show next to the name.. Is this an easy fix I am overlooking in the help file?


For everything else, there's MasterCard.
#153296 14/07/06 03:32 AM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
change $2- to $1-, why do you have it set as $2-? just wondering


-Kurdish_Assass1n
#153297 14/07/06 03:38 AM
Joined: Jul 2006
Posts: 19
B
Pikka bird
OP Offline
Pikka bird
B
Joined: Jul 2006
Posts: 19
I just fixed that... It was looking pretty funny when the peoples sentences were missing the first words. huh, weird.


For everything else, there's MasterCard.
#153298 14/07/06 04:01 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
$nick($chan,$nick).pnick - returns nick with prefix.

-genius_at_work

#153299 14/07/06 04:45 AM
Joined: Jul 2006
Posts: 19
B
Pikka bird
OP Offline
Pikka bird
B
Joined: Jul 2006
Posts: 19
thanks for the help


For everything else, there's MasterCard.
#153300 15/07/06 11:43 PM
Joined: Jul 2006
Posts: 19
B
Pikka bird
OP Offline
Pikka bird
B
Joined: Jul 2006
Posts: 19
I wanted to do the same as above but with querys as well so I tried this code:
Code:
 on *:input:*:?: {
  if (!$istok(/ $readini($mircini,text,commandchar),$left($1,1),32)) || ($ctrlenter) {
    .msg $nick $1- 
echo $a $timestamp ( $+ $me $+ ) $1- | halt } }  


and...
Code:
  on ^*:TEXT:*:?: { echo $q  $timestamp ( $+ $nick $+ ) $1- | haltdef } 


and it seems to not work at all... what am I doing wrong?


For everything else, there's MasterCard.
#153301 16/07/06 03:25 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
$q is not a valid identifier. Try using $nick instead.

-genius_at_work

#153302 16/07/06 05:38 AM
Joined: Jul 2006
Posts: 19
B
Pikka bird
OP Offline
Pikka bird
B
Joined: Jul 2006
Posts: 19
yes, I meant to take that out... I tried using echo $query that didn't work either i tried it with just echo hoping that it would work seeing that it is in an on text:?: but that didn't work.. im stumped.


For everything else, there's MasterCard.
#153303 05/08/06 08:46 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Try $active


Link Copied to Clipboard