Niels Posted August 24, 2005 Share Posted August 24, 2005 Have's somone a spree script? Link to comment
Slothman Posted August 25, 2005 Share Posted August 25, 2005 you will have to elaborate on your question. Link to comment
andeh Posted August 25, 2005 Share Posted August 25, 2005 i know what he means, but its very simple to make he should be able to make one for himself. Link to comment
Gamefreek Posted August 25, 2005 Share Posted August 25, 2005 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. Link to comment
Harry Posted August 25, 2005 Share Posted August 25, 2005 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! Link to comment
Niels Posted August 25, 2005 Author Share Posted August 25, 2005 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. Link to comment
Niels Posted August 25, 2005 Author Share Posted August 25, 2005 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... Link to comment
MrJax Posted August 25, 2005 Share Posted August 25, 2005 if ($mta.name($1,$3) != Unknown) && ($2 != $3) { ..is why Link to comment
Guest Posted August 26, 2005 Share Posted August 26, 2005 if ($mta.name($1,$3) != Unknown) && ($2 != $3) { ..is why right on , people need to know some scripting before bugging others. Link to comment
Niels Posted August 27, 2005 Author Share Posted August 27, 2005 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 Link to comment
XvN Posted August 27, 2005 Share Posted August 27, 2005 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 . Link to comment
Niels Posted August 27, 2005 Author Share Posted August 27, 2005 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 } Link to comment
[XII]Fexsi0n Posted August 27, 2005 Share Posted August 27, 2005 Lawl? At first you ask for a "spree script", then someone gives you one and you start saying you don't need it and just want a fixed one? Link to comment
Niels Posted August 27, 2005 Author Share Posted August 27, 2005 No i dont ask it, i found it in a great script and it isnt work... Link to comment
MrJax Posted August 27, 2005 Share Posted August 27, 2005 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 } } Link to comment
andeh Posted August 27, 2005 Share Posted August 27, 2005 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 Link to comment
Niels Posted August 27, 2005 Author Share Posted August 27, 2005 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)))) { Link to comment
Recommended Posts