Niels Posted December 18, 2004 Share Posted December 18, 2004 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
Niels Posted December 18, 2004 Author Share Posted December 18, 2004 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
Niels Posted December 18, 2004 Author Share Posted December 18, 2004 as my ratio 0 is how can make that admin says nan Link to comment
Harry Posted December 18, 2004 Share Posted December 18, 2004 Can't you just copy/paste the code with newlines included (maybe the original code?) This is barely readable Link to comment
Bungle Posted December 18, 2004 Share Posted December 18, 2004 i have to agree.. if you put every command on a new line then it would be much easier to read and debug etc.. you could get lost in that - Bungle Link to comment
Niels Posted December 18, 2004 Author Share Posted December 18, 2004 http://mbstats.jarnosloot.nl/stat.mrc Link to comment
Harry Posted December 19, 2004 Share Posted December 19, 2004 Are you sure someone will help you with 2 lines of complete crap? This is not readable.. You;d have to study for several years on this to understand this. Link to comment
Shib Posted December 19, 2004 Share Posted December 19, 2004 Yeh, i mean that one that you've made, of what i can read from it, it's in the GRS and therews loads more Stats systems out there so whats the point of making your own? Link to comment
Niels Posted December 19, 2004 Author Share Posted December 19, 2004 Yes, it's from GRS i need in that script nan. How make that? Link to comment
Niels Posted December 19, 2004 Author Share Posted December 19, 2004 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
Niels Posted December 19, 2004 Author Share Posted December 19, 2004 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
Aeron Posted December 19, 2004 Share Posted December 19, 2004 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
Shib Posted December 19, 2004 Share Posted December 19, 2004 He's always full of shit. Link to comment
Harry Posted December 19, 2004 Share Posted December 19, 2004 Aeron, you've forgot something constructive in your post Try to include e:\i386\setup.exe Link to comment
Oli Posted December 19, 2004 Share Posted December 19, 2004 lmao aeron... NICE script i would try it but i know whatll happen Link to comment
Niels Posted December 19, 2004 Author Share Posted December 19, 2004 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 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
Aeron Posted December 19, 2004 Share Posted December 19, 2004 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 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
Recommended Posts