mIRC Home    About    Download    Register    News    Help

Print Thread
#41176 11/08/03 09:29 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
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?

#41177 11/08/03 09:44 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
on 1:WALLOPS:*warning*:/echo $nick issued warning at $time
/help on WALLOPS
Adapt from the help files example..

#41178 11/08/03 10:04 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
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

#41179 11/08/03 10:06 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
$remove($theme(wallops,$nick,$1-),$)
Maybe?

#41180 11/08/03 10:32 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
then i would remove code that shows me WHO and WHAT about is talking

#41181 11/08/03 10:37 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
No it wouldn't, look..
Code:
on 1:TEXT:*:#: {
  var %message = $1-
  msg $chan $remove(%message,$)
}

[16:34] <Guest62918> $test
[16:34] <@Synthet|c> test

#41182 11/08/03 10:57 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
There is no $theme() identifier that I know of.

I have this in my script:
Code:
ON ^*:WALLOPS:*: {
  echo $colour(wallops) -ta [color:blue]&lt;WallOps@ $+ $nick $+ &gt; $1-[/color]
  haltdef
}
The blue bit is what I changed from my script to match the look you wanted.

#41183 11/08/03 10:59 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
great thanx alot BOTH for help !!!!!!!!!!!!

#41184 11/08/03 10:59 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I know there isn't, I thought the original poster had that as their own identifier.

#41185 11/08/03 11:01 PM
Joined: Jul 2003
Posts: 132
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jul 2003
Posts: 132
additional Q, what is at $colour(wallops) -ta <--- this -ta ??

#41186 11/08/03 11:03 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
$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.

#41187 12/08/03 12:38 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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)


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard