HI all, not working me 3 scripts. Can you help me ?
1. I have this
/set %life. [ $+ [ $2 ] ] $ctime
}
in scripts.mrc in mta.join and this not working and all scripts in mta.text not working. WHY ?
2. I have this
if ($mta.kills($1,$3) == 10) mta.say $1 No,no koles o imieniu $mta.name($1,$3) uwalil juz 10 frajerow !
if ($mta.kills($1,$3) == 20) mta.say $1 No,no koles o imieniu $mta.name($1,$3) uwalil juz 20 frajerow, uwazajcie na niego !
if ($mta.kills($1,$3) == 30) mta.say $1 No,no koles o imieniu $mta.name($1,$3) uwalil juz 30 frajerow, oj oj naginajcie od niego !
}
in mta.kill and this not working , why ?
3. I have this
alias checkpings {
set %temp.i 0
while ( %temp.i < 26 ) {
set %temp.ping $mta.ping(1, %temp.i)
if ( ( %temp.ping > 1000 ) || ( %temp.ping < 0 ) ) { halt }
if ( %temp.ping != $null ) {
inc %loop. [ $+ [ %temp.i ] ] 1
if ( %loop. [ $+ [ %temp.i ] ] > 12 ) {
set %loop. [ $+ [ %temp.i ] ] 1
}
set %ping. [ $+ [ %temp.i ] $+ . $+ [ %loop. [ $+ [ %temp.i ] ] ] ] %temp.ping
if ( %ping. [ $+ [ %temp.i ] $+ . $+ ] 12 != $null ) {
set %temp.j 1
set %temp.average 0
while ( %temp.j <= 12 ) {
inc %temp.average %ping. [ $+ [ %temp.i ] $+ . $+ [ %temp.j ] ]
inc %temp.j 1
}
set %temp.average $calc( %temp.average / 12 )
set %average. [ $+ [ %temp.i ] ] %temp.average
if ( %temp.average >= %max ) {
/mta.say 1 Kicking $mta.name(1, %temp.i) for having average ping over %max
/mta.kick 1 %temp.i
}
}
}
inc %temp.i 1
}
unset %temp.*
}
alias mta.start {
timerping 0 10 checkpings
}
alias mta.join {
unset %ping. [ $+ [ $2 ] $+ ] *
set %loop. [ $+ [ $2 ] ] 0
}
in scripts.mrc and this not working. I don't know where i must giv this: /set %max 300 , but i want this have all in scripts.mrc.
CAN YOU HELP ME ??