viewing paste @pvp_rank bindatcmd | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13
-       script  atcmd   -1,{
 
OnInit:
        bindatcmd "pvp_rank",strnpcinfo(3)+"::OnAtcommand";
 
OnAtcommand:
        SET $@LIMIT, 10;
        query_sql "SELECT `name`, `matou`, `morreu` FROM `char` ORDER BY `matou` DESC LIMIT 10",@nome$,@kills,@mortes;
        FOR (SET .@A,0; .@A < $@LIMIT; SET .@A, .@A + 1)
        dispbottom  (.@A+1)+"º - "+@nome$[.@A]+" - "+@kills[.@A]+" - "+@mortes[.@A];
}
Viewed 682 times, submitted by Envolvents.