viewing paste Arena | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
-       script  Arena#PCKill    -1,{
 
OnNPCKillEvent:
getmapxy(@map$,@x,@y,0);
if(killedrid == 1038 ) goto MvP;
if(killedrid == 1039 ) goto MvP;
if(killedrid == 1046 ) goto MvP;
if(killedrid == 1059 ) goto MvP;
if(killedrid == 1086 ) goto MvP;
if(killedrid == 1087 ) goto MvP;
if(killedrid == 1112 ) goto MvP;
if(killedrid == 1115 ) goto MvP;
if(killedrid == 1147 ) goto MvP;
if(killedrid == 1150 ) goto MvP;
if(killedrid == 1157 ) goto MvP;
if(killedrid == 1159 ) goto MvP;
if(killedrid == 1190 ) goto MvP;
if(killedrid == 1251 ) goto MvP;
if(killedrid == 1252 ) goto MvP;
if(killedrid == 1272 ) goto MvP;
if(killedrid == 1312 ) goto MvP;
if(killedrid == 1373 ) goto MvP;
if(killedrid == 1399 ) goto MvP;
if(killedrid == 1418 ) goto MvP;
if(killedrid == 1492 ) goto MvP;
if(killedrid == 1502 ) goto MvP;
if(killedrid == 1511 ) goto MvP;
if(killedrid == 1583 ) goto MvP;
if(killedrid == 1623 ) goto MvP;
if(killedrid == 1630 ) goto MvP;
if(killedrid == 1685 ) goto MvP;
if(killedrid == 1688 ) goto MvP;
if(killedrid == 1708 ) goto MvP;
if(killedrid == 1719 ) goto MvP;
if(killedrid == 1734 ) goto MvP;
if(killedrid == 1751 ) goto MvP;
if(killedrid == 1768 ) goto MvP;
if(killedrid == 1779 ) goto MvP;
if(killedrid == 1785 ) goto MvP;
if(killedrid == 1832 ) goto MvP;
if(killedrid == 1871 ) goto MvP;
if(killedrid == 1874 ) goto MvP;
if(killedrid == 1885 ) goto MvP;
if(killedrid == 1917 ) goto MvP;
if(killedrid == 1980 ) goto MvP;
if(killedrid == 2022 ) goto MvP;
if(killedrid == 2068 ) goto MvP;
 
MvP:
set @CID,getcharid(0);
set @name$,"";
set @points,0;
query_sql "SELECT `pontos_mvp` FROM `rank_mvp` WHERE `char_id`="+@CID+"",@points;
query_sql "SELECT `char_name` FROM `rank_mvp` WHERE `char_id`="+@CID+"",@name$;
if ( @name$ == "" ) { query_sql "INSERT INTO `rank_mvp` (`char_id`,`char_name`,`pontos_mvp`) VALUES ("+@CID+",'"+strcharinfo(0)+"',1)",@esc$; end; }
query_sql "UPDATE `rank_mvp` SET `pontos_mvp` = `pontos_mvp` + 1 WHERE `char_id`="+@CID+"",@esc$;
set @points,@points+1;
}
 
 
morocc,169,85,3 script  Ranking MVP::rp 857,{
query_sql "SELECT char_name, pontos_mvp FROM rank_mvp ORDER BY pontos_mvp DESC LIMIT 10",@char_name$,@pontos_mvp;
dispbottom "Pos.  Nome:  Matou: ";
for(set @i,0;@i<=9;set @i,@i+1) {
dispbottom "["+(@i+1)+"] Nome: ["+@char_name$[@i]+"] [MVPs: "+@pontos_mvp[@i]+"]";
}
 
OnInit:
waitingroom "[ Ranking MVP ]",0;
}
Viewed 358 times, submitted by rogeriorsz.