mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 20
P
popsy Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Jan 2004
Posts: 20
Whenever someone announces that they are listening to music, the bot starts dancing laugh

However the trigger part is a little difficult, as the only thing that's shared by all the diff. mp3 scripts, are the format showing the lenght of the song being played. E. g. 4:37

How can imake this into a texttrigger? *:** of course wont vork, as it will react everytime someone writes :, and i don't even think i can use : as a trigger, as it's already a part of the code?


Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
On ^$*:action:/\d\x3A\d\d/:#:describe # dances

This script filters the text through a regular expression where \d matches a single digit and \x3A matches colons whose hexademical ASCII value is 3A.

Joined: Jan 2004
Posts: 20
P
popsy Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Jan 2004
Posts: 20
ok, got it working when i changed action to text.

Can i make multiple triggers for this one function, or do i just make the number of remote files i need?

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
You can put multiple events in the same remote file but keep the events that match :*: at the end of the file.

Joined: Jan 2004
Posts: 20
P
popsy Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Jan 2004
Posts: 20
Okay, thanks alot smile


Link Copied to Clipboard