adiqdaru Posted September 6, 2013 Posted September 6, 2013 sir , could i requests the script "pvp ladder" just for job novice or shura ??but i already had pvp ladder for universe job ? is it possible when i use double pvp ladder ? Thanks in advance Quote
LatSo Posted September 7, 2013 Posted September 7, 2013 (edited) brasilis,232,322,5 script Novice Ladder 897,{ query_sql "SELECT `char`.`name`,CAST(`value` AS UNSIGNED) " + "FROM global_reg_value " + "LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id " + "WHERE global_reg_value.`str`='pknov' " + "ORDER BY CAST(`value` AS UNSIGNED) DESC LIMIT 8",.@aid$,.@var; mes "[Novice Ladder]"; for (set .@i,0; .@i<getarraysize(.@aid$); set .@i,.@i+1) { mes (.@i+1) +". ^0000FF"+ .@aid$[.@i] +"^000000 ["+ .@var[.@i] +"]"; } close; OnPCKillEvent: if ( BaseClass == Job_Novice ) { set pknov,pknov+1; end; } end; } test it first. Edited September 7, 2013 by LatSo Quote
adiqdaru Posted September 7, 2013 Author Posted September 7, 2013 it doesn't appear anything sir ..is it any error there ? Quote
LatSo Posted September 7, 2013 Posted September 7, 2013 is there any error shown in the map server? Quote
adiqdaru Posted September 7, 2013 Author Posted September 7, 2013 im sorry sir i can't check it , because my server has already online and my Putty was disconnect.when i tried to re-connect the 'Putty' and use 'screen' , and login into map server , the notice 'make listen blinded ....' is appear ,there are other ways to check the error sir ? Quote
LatSo Posted September 7, 2013 Posted September 7, 2013 check it in your test server. im not on my pc, cant test it on my own. Quote
Patskie Posted September 7, 2013 Posted September 7, 2013 it doesn't appear anything sir .. is it any error there ? Try doing this : brasilis,232,322,5<TAB>script<TAB>Novice Ladder<TAB>897,{ Quote
adiqdaru Posted September 8, 2013 Author Posted September 8, 2013 Thanks for Latso for the script , actually your script is works but there is a little typo in my own Thanks for Patskie for the correcting mmm last my request sir .. how can i set the 'OnPcKillEvent' is just work in map "mymap" for example ? Quote
Patskie Posted September 8, 2013 Posted September 8, 2013 Change mymap to your desired map. OnPCKillEvent: if ( strcharinfo(3) == "mymap" ) { // do something } Quote
adiqdaru Posted September 8, 2013 Author Posted September 8, 2013 thanks for all your responses sir ..it works fine at all Quote
Question
adiqdaru
sir , could i requests the script "pvp ladder" just for job novice or shura ??
but i already had pvp ladder for universe job ? is it possible when i use double pvp ladder ?
Thanks in advance
9 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.