Jump to content

!spree and !hp


catman

Recommended Posts

Posted

on *:SIGNAL:mta.command:{
 var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)
 if (%a == -1) mta.say $1 Error: ID not present
 elseif ($3 == !spree) mta.say $1 $mta.name($1,%a) > Spree: $mta.spree($1,%a)
 elseif ($3 == !hp) mta.say $1 $mta.name($1,%a) > Health: $mta.health($1,%a) $+ %
}
on *:SIGNAL:mta.kill:{
 !remini data.ini spree $mta.name($1,$2)
 if ($mta.name($1,$3) != Unknown && $2 != $3) !writeini data.ini spree $mta.name($1,$3) $calc($readini(data.ini,spree,$mta.name($1,$3)) + 1)
}
alias mta.spree !return $iif($readini(data.ini,spree,$mta.name($1,$2)),$readini(data.ini,spree,$mta.name($1,$2)),0)

* Jax warns Oli not to say a word! :D

Posted

Hey dude,

here is a very good !hp script:

var %a = $iif($4 != $null,$iif($ini($mta.dir $+ $1.ini,ID $+ $4),$4,$mta.getid($1,$4)),$2) 
if ($3 == !hp) { 
  if (%a != -1) mta.say $1 $mta.name($1,%a) $+ 's health is $mta.health($1,%a) 
  else mta.msg $1 $2 Error - Invalid ID
  }

Put it under on *:SIGNAL:mta.command:{

Posted

No, insert it in the script you're currently running, under the mta.command signal, as he said

Posted
Do i put these into a notepad document and run them?

u sound like a dude called stewie a hacker and he seems to have disappared maybe he was too embarrased to be here . but dude if u dont know how to run a script or copy paste it than as tlr randy said i give up too .

but to help u copy paste in a doc txt or any text file of any kind and than rename it to blablafile.mrc and how to rename it dont ask me cause i dont know how to explain . and than load that script using mirc or if u have some script running open that script up in notepad and copy paste the code where it need to go and where it needs to go can be seen in jax script just find that part and paste it under there and paste only just under the command or wherever it need to go and after the {

later and if this doesnt help sorry i cant help no more.

Posted

Why don't u just use the grs.... blue is coming, if u now wanna learn scripting ur to late, in blue there are no scripts..... just give up now. If you wanted to learn scripting u should've start a long ( well not soo long ) ago.

Posted

blue IS coming and by the looks of it,

its taking its sweet time :P so theres plenty of time to learn how to script!

catman- check the pm i sent u k ;)

  • 1 month later...
Posted

Can anyone do this like the UVA server's !Spree script so that it shows your current and your best spree and when you type !topspree it comes up with the best in the server currently, thanks,

Peace Out,

Silent.

Posted
on *:SIGNAL:mta.command:{
 var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)
 if ($3 == !spree) mta.say $1 $mta.name($1,%a) > Spree: $iif($readini(spree.ini,current,$mta.name($1,%a)),$readini(spree.ini,current,$mta.name($1,%a)),0) - Top: $iif($readini(spree.ini,top,$mta.name($1,%a)),$readini(spree.ini,top,$mta.name($1,%a)),0)
 elseif ($3 == !topspree) {
   var %a = 0,%b,%c,%d,%e
   while (%a < $mta.maxplayers($1)) {
     if ($mta.name($1,%a) != Unknown && $readini(spree.ini,top,$mta.name($1,%a)) > 0) {
       %b = $readini(spree.ini,top,$mta.name($1,%a))
       if (%b > $iif($readini(spree.ini,top,%c),$readini(spree.ini,top,%c),0)) %c = $mta.name($1,%a)
       elseif (%b > $iif($readini(spree.ini,top,%d),$readini(spree.ini,top,%d),0)) %d = $mta.name($1,%a)
       elseif (%b > $iif($readini(spree.ini,top,%e),$readini(spree.ini,top,%e),0)) %e = $mta.name($1,%a)
     }
     !inc %a
   }
   if (%c) {
     mta.say $1 Top Kill Sprees:
     mta.say $1 1st > %c with $readini(spree.ini,top,%c) kills
     if (%d) mta.say $1 2nd > %d with $readini(spree.ini,top,%d) kills
     if (%e) mta.say $1 3rd > %e with $readini(spree.ini,top,%e) kills
   }
   else mta.say $1 No one in the server has a kill spree!
 }
}
on *:SIGNAL:mta.kill:{
 if ($mta.name($1,$3) != Unknown && $2 != $3) {
   !writeini -n spree.ini current $mta.name($1,$3) $calc($readini(spree.ini,current,$mta.name($1,$3)) + 1)
   if ($readini(spree.ini,current,$mta.name($1,$3)) > $readini(spree.ini,top,$mta.name($1,$3))) !writeini spree.ini top $mta.name($1,$3) $readini(spree.ini,current,$mta.name($1,$3))
 }
 !writeini -n spree.ini current $mta.name($1,$2) 0
}

  • Recently Browsing   0 members

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