mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
I'm looking for a script which shows my text as the same as the ones from the others people. I've got a example, my name is DJ-SjOlOw, and you'll see that the script i've got used for other people doesn't do the same with my name. Also "christian" has mode ~ in the channel but doesn't show it, it shows a @, also he doesn't show at the & users them &. They also show @. If you'll need the script which does this, please ask and I'll post it. (Otherwhise you can't edit it because you don't have the script). Example:







Also I'm looking for a script which show's the nicklist colors as:

~'s = Purple
&'s = Pink
@'s = Darkgrey (Colorpick 15)
%'s = Lightgrey
+'s = White


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
You'll need to provide (a link to) the script or else there's most likely nothing we can do for you.

Have you also looked at the settings (dialog) of your script, since there's a good change it has options to do what you want it to do.

Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Mmh, I'm not very good in english, but are you asking for the script? If not, allwel I will just copy it.
I know that the script only shows the colored timestamps at other people, because there's no $me somewhere and I only need a script which addeds me too. Script (it's for ACTION events and TEXT events, also the ACTION needs to show me colored too):

Code:
on ^*:ACTION:*:#:{
  if ($nick isowner #) { echo -t # * 6-0-6=0>14~6 $+ $nick $+  $1- | HALT }
  if ($nick isop #) { echo -t # * 6-0-6=0>14@6 $+ $nick $+  $1- | HALT }
  if ($nick isvo #) { echo -t # * 6-0-6=0>14+6 $+ $nick $+  $1- | HALT }
  if ($nick isreg #) { echo -t # * 6-0-6=0>6 $+ $nick $+  $1- | HALT }
  if ($nick !ison #) { echo -t # * 6-0-6=0(6 $+ $nick $+  $1- | HALT }
  if ($nick ishop #) { echo -t # * 6-0-6=0>14%6 $+ $nick $+  $1- | HALT }
}
on ^*:TEXT:*:#:{
  if ($nick isowner #) { echo # 6,1<00 $+ $time $+ 6> 14-6=0(14~6 $+ $nick $+ 0)6=0- $1- | HALT }
  if ($nick isop #) { echo # 6,1<00 $+ $time $+ 6> 14-6=0(14@6 $+ $nick $+ 0)6=0- $1- | HALT }
  if ($nick isvo #) { echo # 6,1<00 $+ $time $+ 6> 14-6=0(14+6 $+ $nick $+ 0)6=0- $1- | HALT }
  if ($nick isreg #) { echo # 6,1<00 $+ $time $+ 6> 14-6=0(6 $+ $nick $+ 0)6=0- $1- | HALT }
  if ($nick !ison #) { echo # 6,1<00 $+ $time $+ 6> 14-6=0(14%6 $+ $nick $+ 0)6=0- $1- | HALT }
}


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Does the script have any on INPUT events? (instead of on ACTION and on TEXT). On INPUT events are what you need for your *own* text. If there's no such script, then it should be quite easy to make.

EDIT:

Oh, and regarding the colours in the nicklist, take a look at the Address Book (Alt+B). Nick Colors > Add > select colour > Method: Listbox > check "Channel modes:" > add channel mode (e.g. @). > Ok

Last edited by 5618; 27/12/08 09:33 PM.
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
At the look of it the script using on text, and that input missing.. smile so you need to create your own input alias if you don't want to download a addon that giving this function to you.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
It doesn't have INPUT events. But maybe, should this be right? (Before I'm gonna load it and something goes wrong):

Code:
on ^*:INPUT:*:{
  if ($me isowner #) { echo # 6,1<00 $+ $time $+ 6> 14-6=0(14~6 $+ $me $+ 0)6=0- $1- | HALT }
  if ($me isop #) { echo # 6,1<00 $+ $time $+ 6> 14-6=0(14@6 $+ $me $+ 0)6=0- $1- | HALT }
  if ($me isvo #) { echo # 6,1<00 $+ $time $+ 6> 14-6=0(14+6 $+ $me $+ 0)6=0- $1- | HALT }
  if ($me isreg #) { echo # 6,1<00 $+ $time $+ 6> 14-6=0(6 $+ $me $+ 0)6=0- $1- | HALT }
  if ($me !ison #) { echo # 6,1<00 $+ $time $+ 6> 14-6=0(14%6 $+ $me $+ 0)6=0- $1- | HALT }
}


But if I'll do that, it still won't show the ~ or & when I have those two. And I don't know if my message will be received because it echo's. And if it does message, I think it will show up but then twice, my script version and mIRC timestamps version himself?

And if I would add "msg $chan $1-" or what ever I'm sure it will show up twice.


Nicklist colors:
Thanks! Works smile. I used that before, only I thought it only would work with adding nicks & hosts, never knew it does also on modes too.

Last edited by DuXxXieJ; 27/12/08 09:41 PM.

Squee whenever a squee squee's. Squee whenever a squee does not squee.
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
[EDIT: Sorry, forgot the section for /me actions.]

Try this:
Code:
on *:INPUT:#:{
  if ($1 == /me) {
    .describe # $2-
    if ($nick(#,$me,q))    { echo -at * 6-0-6=0>14~06 $+ $me $+  $2- }
    elseif ($nick(#,$me,a) { echo -at * 6-0-6=0>14&13 $+ $me $+  $2- }
    elseif ($me isop #)    { echo -at * 6-0-6=0>14@14 $+ $me $+  $2- }
    elseif ($me ishop #)   { echo -at * 6-0-6=0>14%14 $+ $me $+  $2- }
    elseif ($me isvoice #) { echo -at * 6-0-6=0>14+15 $+ $me $+  $2- }
    elseif ($me isreg #)   { echo -at * 6-0-6=0>00 $+ $me $+  $2- }
    haltdef
  }
  elseif ($left($1,1) != /) {
    .msg # $1-
    if ($nick(#,$me,q))    { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14~06 $+ $me $+ 0)6=0- $1- }
    elseif ($nick(#,$me,a) { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14&13 $+ $me $+ 0)6=0- $1- }
    elseif ($me isop #)    { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14@14 $+ $me $+ 0)6=0- $1- }
    elseif ($me ishop #)   { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14%14 $+ $me $+ 0)6=0- $1- }
    elseif ($me isvoice #) { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14+15 $+ $me $+ 0)6=0- $1- }
    elseif ($me isreg #)   { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(00 $+ $me $+ 0)6=0- $1- }
    haltdef
  }
}

I don't know what colour you want for the added halfop status (+h/%)...

Last edited by 5618; 27/12/08 10:39 PM.
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Trying to catch /me is a bad idea, because the user could simply use //me, or !!me (where ! are the command delimiter), it's better to override the alias by using alias me { } but be careful with this smile


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Mm I don't get that frown


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Originally Posted By: DuXxXieJ
Mm I don't get that frown

Don't get what?

Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
[EDIT!] Didn't saw your reply
(Reply: About the thing Wims says that the /me is a bad idea (and then his whole line...))



Ooh, I tested yours. But at the /me it shows:

* /elseif: invalid format (line 5, TestINPUT)
<12:57:32> * @DJ-SjOlOw test


So it showed up normal. Without my colours, and my inputted text:

* /elseif: invalid format (line 15, TestINPUT)
<12:57:50> <@DJ-SjOlOw> test

Last edited by DuXxXieJ; 28/12/08 12:02 PM.

Squee whenever a squee squee's. Squee whenever a squee does not squee.
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
[EDIT: I just noticed I have another big error in my script, working on it... :P ]

Forgot 2 parentheses indeed.

Code:
on *:INPUT:#:{
  if ($1 == /me) {
    .describe # $2-
    if ($nick(#,$me,q))     { echo -at * 6-0-6=0>14~06 $+ $me $+  $2- }
    elseif ($nick(#,$me,a)) { echo -at * 6-0-6=0>14&13 $+ $me $+  $2- }
    elseif ($me isop #)     { echo -at * 6-0-6=0>14@14 $+ $me $+  $2- }
    elseif ($me ishop #)    { echo -at * 6-0-6=0>14%14 $+ $me $+  $2- }
    elseif ($me isvoice #)  { echo -at * 6-0-6=0>14+15 $+ $me $+  $2- }
    elseif ($me isreg #)    { echo -at * 6-0-6=0>00 $+ $me $+  $2- }
    haltdef
  }
  elseif ($left($1,1) != /) {
    .msg # $1-
    if ($nick(#,$me,q))     { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14~06 $+ $me $+ 0)6=0- $1- }
    elseif ($nick(#,$me,a)) { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14&13 $+ $me $+ 0)6=0- $1- }
    elseif ($me isop #)     { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14@14 $+ $me $+ 0)6=0- $1- }
    elseif ($me ishop #)    { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14%14 $+ $me $+ 0)6=0- $1- }
    elseif ($me isvoice #)  { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14+15 $+ $me $+ 0)6=0- $1- }
    elseif ($me isreg #)    { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(00 $+ $me $+ 0)6=0- $1- }
    haltdef
  }
}

Last edited by 5618; 28/12/08 12:27 PM.
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Yay! That works, thanks alot! But still got one problem (sorry), at the on TEXT events for other people, I still don't know how to make the ~ and & up. (Script is somewhere at my second/third reply this thread)

[EDIT] Sorry! It DOES work, only it shows my @ as an & :|
<13:28:27> -=(&DJ-SjOlOw)=- xD

But I've got a @.


Last edited by DuXxXieJ; 28/12/08 12:31 PM.

Squee whenever a squee squee's. Squee whenever a squee does not squee.
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I guess he means you should make your own alias for me.
Code:
alias me {
  haltdef
  echo -mt Action: $1-
 .describe $chan Action: $1- 
}

on ^*:action:*:*: {
  haltdef
  echo -amt Action: $1-
}

but this one need to be edited, i left out the nick.. $me = you $nick == other persons nick, you maybe also want to add the color for action to it, and make it send the info to the right channel with $chan or $active. If you do a /ame alias, then you need to loop true all channels you are on, then echo the text from the action to them.

;------ edit

found this url for you: Click

Last edited by sparta; 28/12/08 12:33 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Mm but everything works fine, only it doesn't show the ~ or & when sombody has it.


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Code:
on ^*:ACTION:*:#:{
  if ($nick(#,$nick,q))                { echo -t # * 6-0-6=0>14~06 $+ $nick $+  $1- }
  elseif (& isin $nick(#,$nick).pnick) { echo -t # * 6-0-6=0>14&13 $+ $nick $+  $1- }
  elseif ($nick isop #)                { echo -t # * 6-0-6=0>14@14 $+ $nick $+  $1- }
  elseif ($nick ishop #)               { echo -t # * 6-0-6=0>14%14 $+ $nick $+  $1- }
  elseif ($nick isvoice #)             { echo -t # * 6-0-6=0>14+15 $+ $nick $+  $1- }
  elseif ($nick isreg #)               { echo -t # * 6-0-6=0>6 $+ $nick $+  $1- }
  elseif ($nick !ison #)               { echo -t # * 6-0-6=0(6 $+ $nick $+  $1- }
  haltdef
}
on ^*:TEXT:*:#:{
  if ($nick(#,$nick,q))                { echo -t # 6,1<00 $+ $time $+ 6> 14-6=0(14~06 $+ $nick $+ 0)6=0- $1- }
  elseif (& isin $nick(#,$nick).pnick) { echo -t # 6,1<00 $+ $time $+ 6> 14-6=0(14&13 $+ $nick $+ 0)6=0- $1- }
  elseif ($nick isop #)                { echo -t # 6,1<00 $+ $time $+ 6> 14-6=0(14@14 $+ $nick $+ 0)6=0- $1- }
  elseif ($nick ishop #)               { echo -t # 6,1<00 $+ $time $+ 6> 14-6=0(14%14 $+ $nick $+ 0)6=0- $1- }
  elseif ($nick isvoice #)             { echo -t # 6,1<00 $+ $time $+ 6> 14-6=0(14+15 $+ $nick $+ 0)6=0- $1- }
  elseif ($nick isreg #)               { echo -t # 6,1<00 $+ $time $+ 6> 14-6=0(6 $+ $nick $+ 0)6=0- $1- }
  elseif ($nick !ison #)               { echo -t # 6,1<00 $+ $time $+ 6> 14-6=0(6 $+ $nick $+ 0)6=0- $1- }
  haltdef
}
on *:INPUT:#:{
  if ($1 == /me) {
    .describe # $2-
    if ($nick(#,$me,q))                { echo -at * 6-0-6=0>14~06 $+ $me $+  $2- }
    elseif (& isin $nick(#,$me).pnick) { echo -at * 6-0-6=0>14&13 $+ $me $+  $2- }
    elseif ($me isop #)                { echo -at * 6-0-6=0>14@14 $+ $me $+  $2- }
    elseif ($me ishop #)               { echo -at * 6-0-6=0>14%14 $+ $me $+  $2- }
    elseif ($me isvoice #)             { echo -at * 6-0-6=0>14+15 $+ $me $+  $2- }
    elseif ($me isreg #)               { echo -at * 6-0-6=0>00 $+ $me $+  $2- }
    haltdef
  }
  elseif ($left($1,1) != /) {
    .msg # $1-
    if ($nick(#,$me,q))                { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14~06 $+ $me $+ 0)6=0- $1- }
    elseif (& isin $nick(#,$me).pnick) { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14&13 $+ $me $+ 0)6=0- $1- }
    elseif ($me isop #)                { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14@14 $+ $me $+ 0)6=0- $1- }
    elseif ($me ishop #)               { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14%14 $+ $me $+ 0)6=0- $1- }
    elseif ($me isvoice #)             { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(14+15 $+ $me $+ 0)6=0- $1- }
    elseif ($me isreg #)               { echo -at 6,1<00 $+ $time $+ 6> 14-6=0(00 $+ $me $+ 0)6=0- $1- }
    haltdef
  }
}

Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Thanks! Works fine, shows my @ as a @, and not a &, the ~ and the & I don't know yet, (users are currently pinging out, so I'll see it in a minute).





Squee whenever a squee squee's. Squee whenever a squee does not squee.
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Mm, when I wanna added one for /ame, do I need to use $comchan or something? Because I've got at a quit script:

ON ^*:QUIT:{
var %x = $comchan($nick,0)


Could this be right?:

Code:
on *:INPUT:#:{
  if ($1 == /ame) {
    .ame $2-
    if ($nick(#,$me,q))                { echo $comchan($me,0) 6,1<00 $+ $time $+ 6> * 6-0-6=0>14~06 $+ $me $+  $2- }
    elseif (& isin $nick(#,$me).pnick) { echo $comchan($me,0)  6,1<00 $+ $time $+ 6> * 6-0-6=0>14&13 $+ $me $+  $2- }
    elseif ($me isop #)                { echo $comchan($me,0)  6,1<00 $+ $time $+ 6> * 6-0-6=0>14@06 $+ $me $+  $2- }
    elseif ($me ishop #)               { echo $comchan($me,0)  6,1<00 $+ $time $+ 6> * 6-0-6=0>14%13 $+ $me $+  $2- }
    elseif ($me isvoice #)             { echo $comchan($me,0)  6,1<00 $+ $time $+ 6> * 6-0-6=0>14+06 $+ $me $+  $2- }
    elseif ($me isreg #)               { echo $comchan($me,0)  6,1<00 $+ $time $+ 6> * 6-0-6=0>00 $+ $me $+  $2- }
    haltdef
  }
}


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
something like this, untested tho.
Code:
alias ame { 
  var %a = 1
  while ($chan(%a)) { 
      .describe $chan(%a) $1-
      echo -mt $chan(%a) $1-
    } 
  inc %a 
}


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jan 2007
Posts: 280
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
:| This one gives a floods a act in just one channel and then it makes me disconnecting the server for flooding ¬¬.
Made myself acting 100 lines in 2 seconds :x


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Page 1 of 2 1 2

Link Copied to Clipboard