Blue Jem Posted March 10, 2014 Posted March 10, 2014 (edited) how can set the pvp ladder in one map example : 1. pvp is florian map 2.npc show the top 5 pvp ladder in florian 3. autoregister to pvp ladder http://www.eathena.ws/board/-Ultimate-Pvp-Ladder--t177818.html this i dont know how to set 1 map only Edited March 10, 2014 by Blue Jem Quote
tinko Posted March 10, 2014 Posted March 10, 2014 http://www.eathena.ws/board/index.php?showtopic=237765 here have one with dota sound ^^ but you can remove it i think Quote
Blue Jem Posted March 10, 2014 Author Posted March 10, 2014 (edited) i mean sir same to PVP ladder recard the dead and killed and show the top 5 pvp ladder in the town Edited March 10, 2014 by Blue Jem Quote
sandbox Posted March 11, 2014 Posted March 11, 2014 florian,123,123,5 script Florian PvP Ladder 837,{ query_sql "SELECT `char`.char_id,`char`.`name`,global_reg_value.`value` FROM global_reg_value LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id WHERE global_reg_value.str='fpvppts' ORDER BY CAST(`global_reg_value`.`value` AS UNSIGNED) DESC LIMIT 20", .@lad_id, .@lame$, .@lount; mes "^0000FFRank^000000) ^AA0000Name^000000 - ^008800Kills^000000:^FF8C00Deaths^000000"; for( set .@x,0; .@x<=5; set .@x,.@x+1 ) { query_sql (" SELECT `value` FROM `global_reg_value` WHERE `str`='fdpvppts' AND `char_id`='"+.@lad_id[.@x]+"' ",.@death); mes "^0000FF"+(.@x+1)+"^000000) ^AA0000"+.@lame$[.@x]+"^000000 - ^008800"+.@lount[.@x]+"^000000:^FF8C00"+.@death+"^000000"; } close; } - script FlorianPvP -1,{ OnPCKillEvent: if(strcharinfo(3) == "florian") set fpvppts,fpvppts+1; end; OnPCDieEvent: if(strcharinfo(3) == "florian") set fdpvppts,fdpvppts+1; end; } Quote
Blue Jem Posted March 11, 2014 Author Posted March 11, 2014 how ) thank you master and can i request 1 more can reset the PVP ladder ) Quote
sandbox Posted March 11, 2014 Posted March 11, 2014 - script AutoLadderReset -1,{ OnSun2358: query_sql("DELETE FROM `global_reg_value` WHERE `str`='fpvppts'"); query_sql("DELETE FROM `global_reg_value` WHERE `str`='fdpvppts'"); announce "PvP Ladder has been reset! ",bc_all,0xFFF8DC; end; } It would reset the ladder every Sunday 11:58PM, though I am not sure it would work properly because the players need to reconnect, I think Quote
sandbox Posted March 11, 2014 Posted March 11, 2014 - script AutoLadderReset -1,{ OnSun2358: query_sql("DELETE FROM `global_reg_value` WHERE `str`='fpvppts'"); query_sql("DELETE FROM `global_reg_value` WHERE `str`='fdpvppts'"); announce "PvP Ladder has been reset! ",bc_all,0xFFF8DC; end; OnWhisperGlobal: if(getgmlevel() > 40){ query_sql("DELETE FROM `global_reg_value` WHERE `str`='fpvppts'"); query_sql("DELETE FROM `global_reg_value` WHERE `str`='fdpvppts'"); announce "The PvP Ladder has been reset by a GM! ",bc_all,0xFFF8DC; } end; } reset via whisper/pm AutoLadderReset Quote
Question
Blue Jem
how can set the pvp ladder in one map
example :
1. pvp is florian map
2.npc show the top 5 pvp ladder in florian
3. autoregister to pvp ladder
http://www.eathena.ws/board/-Ultimate-Pvp-Ladder--t177818.html
this i dont know how to set 1 map only
Edited by Blue Jem9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.