Easycore 31 Posted November 18, 2015 Hi, I have seen this scripts https://github.com/happyme9/AthenaScripts/blob/master/pvp_ladder.txt And I was wondering if it was possible to add the function of discounting "kill points" to die. Besides that if possible refresh the ranking when die. Regards ~ Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted November 19, 2015 this is the 4th script that I saw someone using txt style pvp ladder 1st terces, 2nd goddameit, 3rd mine, 4th masao the problem with txt style ladder is it uses an algorithm to move the array index so its quite hard to alter the calculation that already has a fixed formula with it like you request that wants to add die ranking, to move the index, that would be impossible (if you are already using it) its better to use SQL ladder script, where it can still perform fast with million of rows if the specific key is indexed well Quote Share this post Link to post Share on other sites
0 Easycore 31 Posted November 19, 2015 (edited) @AnnieRuru Thank you for the explanation. Really I needed a ladder in which trigger a announce "player's now rank XX" or something when player take a rank between 1 to 10. So, I searched a lot of scripts and this has that function of trigger something when player rank up ~ Edited November 19, 2015 by Easycore Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted November 19, 2015 (edited) @@Easycore Hello bro. I'm using annie script. //===== eAthena Script ======================================================= //= PVP ladder script with dota announcement ( SQL only ) //===== By: ================================================================== //= ~AnnieRuru~ //===== Current Version: ===================================================== //= 2.9 //===== Compatible With: ===================================================== //= eAthena SQL 14279, with MySQL 5.1 //===== Description: ========================================================= //= PVP ladder store in SQL table //= plus anti-sit-killer feature //===== Topic ================================================================ //= http://www.eathena.ws/board/index.php?showtopic=177918 //===== Additional Comments: ================================================= //= still don't have modify value option, will be done ... in next year ... //============================================================================ Edited November 19, 2015 by mrlongshen 1 Easycore reacted to this Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted November 19, 2015 (edited) I'm quite sure SQL also can do it OnPCLoginEvent: query_sql "select charid from ladder order by kill limit "+ .ranksize, .@charid; for ( .@i = 0; .@i < .ranksize; .@i++ ) if ( getcharid(0) == .@charid[.@i] ) @pvprank = .@i +1; end; OnPCKillEvent: .... query_sql "select charid from ladder order by kill limit "+ .ranksize, .@charid; for ( .@i = 0; .@i < .ranksize; .@i++ ) if ( getcharid(0) == .@charid[.@i] ) .@tmprank = .@i +1; if ( .@tmprank > .@pvprank ) announce strcharinfo(0) +" has gain to rank no."+ .@tmprank, bc_all; edit : paleface ... members are very good in digging out my old scripts ... http://herc.ws/board/topic/7014-who-has-annierurus-pvp-ladder-with-announcement-files-and-sql-queries/?p=42630 Edited November 19, 2015 by AnnieRuru 1 Easycore reacted to this Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted November 19, 2015 @@AnnieRuru Because your script will become legacy. eathena to hercules. wew. 3 generation ro, but all still using your script .Muahahaha Quote Share this post Link to post Share on other sites
0 Easycore 31 Posted November 20, 2015 @@AnnieRuru Hi again, I tried add this: query_sql "select char_id from pvpladder order by kills limit "+ .showtotal, .@charid; for ( .@i = 0; .@i < .showtotal; .@i++ ) if ( getcharid(0) == .@charid[.@i] ) .@tmprank = .@i +1; if ( .@tmprank > .@pvprank ) announce strcharinfo(0) +" has gain to rank no."+ .@tmprank, bc_all; In your PvP Ladder script, but the player with most kills is always "Rank 2", and player with less kills is always "Rank 1". Sorry but I am very ignorant in this area. Quote Share this post Link to post Share on other sites
Hi,
I have seen this scripts https://github.com/happyme9/AthenaScripts/blob/master/pvp_ladder.txt
Share this post
Link to post
Share on other sites