mIRC Home    About    Download    Register    News    Help

Print Thread
#147759 23/04/06 08:00 PM
Joined: Apr 2006
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2006
Posts: 8
well i was wanting to make a HitList, all i want is to make one that says like...

on *:text:!hit*:#:{
if ($nick isop $chan) {
.msg # $nick has placed $2 on the hitlist.
}
}
but im not sure how to actually go on about making it, like have it write to a .txt to save all the hits...
then like...
when an op says !hitlist itll say in chan like...

######HitList#######
#1. Person1
#2. Person2
##################

or somthing like that... anyone know?

Last edited by MisterMage; 23/04/06 08:01 PM.
#147760 23/04/06 08:42 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
/help /write

/help $read
or
/help /play


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#147761 23/04/06 09:40 PM
Joined: Apr 2006
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2006
Posts: 8
this is what i have so far....

on *:TEXT:!place*:#:{
if ($nick isop $chan) {
.msg # $nick has placed $2 on the hitlist for $3.
/write c:\hitlist.txt $nick has placed $2 for $3. $date
}
}
on *:TEXT:!hitlist*:#:{
/play c:\hitlist.txt
}

and what it does is place them on the list but i cannot play the file, i get this error...
* /play: cannot play to this window (line 54, script.ini)

#147762 23/04/06 10:21 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
You forgot the target where to send the messages in your /play



Code:
 play $chan c:\hitlist.txt 


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#147763 23/04/06 10:30 PM
Joined: Apr 2006
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2006
Posts: 8
ah it works now, but how do i make it so that halfops and ops can use it...

if ($nick isop $chan)

what would it be for halfops?

#147764 23/04/06 11:39 PM
Joined: Apr 2006
Posts: 3
R
Self-satisified door
Offline
Self-satisified door
R
Joined: Apr 2006
Posts: 3
if ($nick ishop $chan)


Link Copied to Clipboard