Jump to content

script request


Hedning

Recommended Posts

here's a good one: :P

on *:SIGNAL:mta.command:{
 if ($3 == !kill) {
   var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)
   if (%a == -1) mta.msg $1 $2 Absent Name/ID
   elseif ($mta.health($1,%a) > 0) {
     var %b = $mta.health($1,%a)
     while (%b > 0) {
       mta.slap $1 %a
       %b = %b - 20
     }
   }
 }
}

or if you want something simple:

on *:SIGNAL:mta.command:{
 elseif ($3 == !kill) {
   var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)
   if (%a == -1) mta.msg $1 $2 Error - Absent ID
   else .timer 5 0 mta.slap $1 %a
 }
}

but it could be a little bit more spammy then the prev one

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...