Jump to content

Spree Script


Niels

Recommended Posts

Posted
you will have to elaborate on your question.

I believe he is talking about the script that tells how many people a person has killed before he died and/or how long he has lived.

Posted
Have's somone a spree script?

Yes, it's easy. Build one yourself, you know how you should after all there tens of thousands of questions. If you dont, you might wanna hope someone has some some time to bother with your anoyying behavoius again...

And no, you cant ask me every hour for this as well on irc.... just dont!

Posted

I have one but it's not working i got 14 spree and i type /kill and he doenst save it as top. I post it as i'am on home.

Posted

on *:SIGNAL:mta.kill: {
 if ($mta.mode($1) == Deathmatch) {

   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))
       mta.msg $1 $3 Your Top spree is now $readini(spree.ini,current,$mta.name($1,$3)) $+ !
     }
   } 
   !writeini -n spree.ini current $mta.name($1,$2) 0 
 }

He isn't counting the top spree. If i got 13 spree and i type /kill he dont set the spree as top... :roll:

Posted
if ($mta.name($1,$3) != Unknown) && ($2 != $3) {

..is why

right on , people need to know some scripting before bugging others.

Posted

if ($mta.name($1,$3) != Unknown) {

!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))

mta.msg $1 $3 Your Top spree is now $readini(spree.ini,current,$mta.name($1,$3)) $+ !

}

!writeini -n spree.ini current $mta.name($1,$2) 0

}

Is too not working ;)

Posted

alias Currentsprees !return $readini(sprees.ini,=,$mta.name($1,$2))
alias Greatestspree !return $readini(sprees.ini,-,$mta.name($1,$2))

on *:SIGNAL:mta.kill: {
if !$findtok(41 43 44 100 254 255,$4,1,32) & $mta.name($1,$2) != $mta.name($1,$3) {
	!writeini "sprees.ini" = $mta.name($1,$3) $calc($Currentsprees($1,$3))+1
if $Greatestspree($1,$2) !<= $Currentsprees($1,$2) {
         mta.msg $1 $2 New spree: $Currentsprees($1,$2) 
	!writeini "sprees.ini" - $mta.name($1,$2) $Currentsprees($1,$2) }
else mta.msg $1 $2 Current spree: $Currentsprees($1,$2) - Greatest: $Greatestspree($1,$2)
	!writeini "sprees.ini" = $mta.name($1,$2) 0 } }

Try that, it should work (but untested).. enjoy 8).

Posted

I dont need other script, can somone fix this: (He dont count the top spree)

if ($mta.name($1,$3) != Unknown) { 
!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)) 
mta.msg $1 $3 Your Top spree is now $readini(spree.ini,current,$mta.name($1,$3)) $+ ! 
} 
!writeini -n spree.ini current $mta.name($1,$2) 0 
}

Posted
alias bla.spree !return $iif($readini(bla.ini,spree,$mta.name($1,$2)) != $null,$v1,0)
alias bla.topspree !return $iif($readini(bla.ini,topspree,$mta.name($1,$2)) != $null,$v1,0)
on *:SIGNAL:mta.command:{
 var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)
 if ($3 == !spree) {
   if (%a == -1) mta.say $1 $mta.name($1,$2) $+ , Invalid ID
   else mta.say $1 $mta.name($1,%a) - Spree: $bla.spree($1,%a) - Top: $bla.topspree($1,%a)
 }
}
on *:SIGNAL:mta.kill:{
 !writeini bla.ini spree $mta.name($1,$2) 0
 if ($2 != $3 && $mta.name($1,$3) != Unknown) {
   !writeini bla.ini spree $mta.name($1,$3) $calc($bla.spree($1,$3) + 1)
   if ($bla.spree($1,$3) > $bla.topspree($1,$3)) !writeini bla.ini topspree $v1
 }
}

Posted
alias bla.spree !return $iif($readini(bla.ini,spree,$mta.name($1,$2)) != $null,$v1,0)
alias bla.topspree !return $iif($readini(bla.ini,topspree,$mta.name($1,$2)) != $null,$v1,0)
on *:SIGNAL:mta.command:{
 var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)
 if ($3 == !spree) {
   if (%a == -1) mta.say $1 $mta.name($1,$2) $+ , Invalid ID
   else mta.say $1 $mta.name($1,%a) - Spree: $bla.spree($1,%a) - Top: $bla.topspree($1,%a)
 }
}
on *:SIGNAL:mta.kill:{
 !writeini bla.ini spree $mta.name($1,$2) 0
 if ($2 != $3 && $mta.name($1,$3) != Unknown) {
   !writeini bla.ini spree $mta.name($1,$3) $calc($bla.spree($1,$3) + 1)
   if ($bla.spree($1,$3) > $bla.topspree($1,$3)) !writeini bla.ini topspree $v1
 }
}

nice and tidy :wink:

Posted

Found the error STUPID!

Forgot to calc:

if ($calc($readini(spree.ini,current,$mta.name($1,$3))) >= $calc($readini(spree.ini,top,$mta.name($1,$3)))) {

  • Recently Browsing   0 members

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