mIRC Home    About    Download    Register    News    Help

Print Thread
#147704 22/04/06 08:35 PM
Joined: Apr 2006
Posts: 8
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2006
Posts: 8
Okay what i basically want to do is make a simple script so that when someone does like....

Jman says: !hammer mistermage2

itll say

Jman takes a hammer and slams into the face of mistermage2

how would i do that? like so far i have...

on *text:!hammer*:#chan:{
/msg #chan $nick takes a hammer and hits him
}

thats all i have frown so yes any help would be appreciated =)

#147705 22/04/06 08:47 PM
Joined: Apr 2005
Posts: 1,009
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
on *:text:!hammer*:#:{
.msg # $nick takes a hammer and slams into the face of $2
}


Last edited by raZOR; 22/04/06 08:52 PM.

IceCapped
#147706 22/04/06 08:56 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
A bit more 'secure' version.

It will notify $nick if the target is not on the channel.
It will also not execute if no target is given.

Code:
on *:TEXT:!hammer &:#:{
  if ($2 !ison $chan) .notice $nick $2 is not on $chan
  else msg $chan $nick takes a hammer and slams into the face of $2
}

#147707 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
Thank you both it helped me alot =)


Link Copied to Clipboard