mIRC Home    About    Download    Register    News    Help

Print Thread
#146224 01/04/06 07:21 PM
Joined: Mar 2006
Posts: 19
A
adamb53 Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Mar 2006
Posts: 19
i was wondering how to make it so when some1 i have as lvl 10 types

!add event blah blah it will add the event so everytime some1 says !events it will show the event he added plus the others.

and !del event blah blah so it will delete the event he needs to and only that event

#146225 01/04/06 08:51 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 on 10:text:!add event &*:*:{
.write events.txt $3-
}
on 10:text:!del event &*:*:{
.write -ds $+ $3- events.txt
}
on *:text:!events:*:{
.play $nick events.txt
}
 

#146226 01/04/06 10:34 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
I would change the '&*' to '?*' on the first two events as I don't believe those would work.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#146227 02/04/06 12:14 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
In this case, due to the * following, there's realistically no difference. The & takes a word, as the ? takes a single character. If the * didn't follow the & (or ?) then it would make a difference as the ? would only accept the first character entered, as the & would allow for multiple characters.

#146228 02/04/06 11:00 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
I know what the '&' does wink. But unfortunately, the '&*' does not work. You might want to try it. smile


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!

Link Copied to Clipboard