|
Joined: Jul 2003
Posts: 129
Vogon poet
|
OP
Vogon poet
Joined: Jul 2003
Posts: 129 |
hi again !
okay i have this code for wallops:
ON ^1:WALLOPS:*: { .echo -s $timestamps $theme(wallops,$nick,$1-) | halt }
but when i get server wallops msg's it looks like this:
(23:20) [email]WallOps@nickname:[/email] $ text
so if you noticed sign "$" , how to remove it so i dont ruin the code?
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
on 1:WALLOPS:*warning*:/echo $nick issued warning at $time /help on WALLOPS Adapt from the help files example..
|
|
|
|
Joined: Jul 2003
Posts: 129
Vogon poet
|
OP
Vogon poet
Joined: Jul 2003
Posts: 129 |
that does not help me with the code, it only shows warning when someone say something, it does not shows code that displays WHAT do they say AND how to get ridd of $ infront of TEXT
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
$remove($theme(wallops,$nick,$1-),$) Maybe?
|
|
|
|
Joined: Jul 2003
Posts: 129
Vogon poet
|
OP
Vogon poet
Joined: Jul 2003
Posts: 129 |
then i would remove code that shows me WHO and WHAT about is talking
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
No it wouldn't, look..
on 1:TEXT:*:#: {
var %message = $1-
msg $chan $remove(%message,$)
}
[16:34] <Guest62918> $test [16:34] <@Synthet|c> test
|
|
|
|
Joined: Dec 2002
Posts: 2,958
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,958 |
There is no $theme() identifier that I know of. I have this in my script: ON ^*:WALLOPS:*: {
echo $colour(wallops) -ta [color:blue]<WallOps@ $+ $nick $+ > $1-[/color]
haltdef
} The blue bit is what I changed from my script to match the look you wanted.
|
|
|
|
Joined: Jul 2003
Posts: 129
Vogon poet
|
OP
Vogon poet
Joined: Jul 2003
Posts: 129 |
great thanx alot BOTH for help !!!!!!!!!!!!
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
I know there isn't, I thought the original poster had that as their own identifier.
|
|
|
|
Joined: Jul 2003
Posts: 129
Vogon poet
|
OP
Vogon poet
Joined: Jul 2003
Posts: 129 |
additional Q, what is at $colour(wallops) -ta <--- this -ta ??
|
|
|
|
Joined: Dec 2002
Posts: 2,958
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,958 |
$colour() represents the colour choice in the mIRC colour dialogue. When you change colours there the scripted events change with it so you don't need to edit colour codes all the time.
-ta is called a 'switch' and the letters mean t: Timestamp and a: Active Window.
|
|
|
|
Joined: Dec 2002
Posts: 1,253
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,253 |
More precisely, echo -t means: use the default timestampfmt and prefix the echo'd line with a timestamp if and only if timestamping events is turned on globally, or if timestamping is turned on for the named window. As with most /echo switches, they are usually used to follow the settings found in options. (-bflrt)
|
|
|
|
|