LatSo Posted July 9, 2013 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 296 Reputation: 2 Joined: 04/11/13 Last Seen: December 22, 2020 Share Posted July 9, 2013 (edited) Hi I have a problem here brasilis,232,322,5 script Class S na Halimaw 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`='class_s' " + "ORDER BY CAST(`value` AS UNSIGNED) DESC LIMIT 20",.@aid$,.@var; mes "[Class-S na Halimaw]"; for (set .@i,0; .@i<8; set .@i,.@i+1) { mes (.@i+1) +". ^0000FF"+ .@aid$[.@i] +"^000000 ["+ .@var[.@i] +"]"; close; } end; } The ladder is just showing 1 player, it should show at least 8 but I dont how to do it. I tried but fail please help. Edited July 9, 2013 by LatSo Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 10, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 10, 2013 for (set .@i,0; .@i<8; set .@i,.@i+1) { mes (.@i+1) +". ^0000FF"+ .@aid$[.@i] +"^000000 ["+ .@var[.@i] +"]"; - close; } + close; your script close the window and put an end on for loop after one iteration 1 Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 9, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 9, 2013 it should show at least 8 but I dont how to do it. you have more than 8 players with a value? I don't see anything wrong in this script Quote Link to comment Share on other sites More sharing options...
LatSo Posted July 10, 2013 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 296 Reputation: 2 Joined: 04/11/13 Last Seen: December 22, 2020 Author Share Posted July 10, 2013 It only show 1 player on the ladder instead of showing only the top 8 it should show at least 8 but I dont how to do it. you have more than 8 players with a value? I don't see anything wrong in this script any1 help? Quote Link to comment Share on other sites More sharing options...
LatSo Posted July 12, 2013 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 296 Reputation: 2 Joined: 04/11/13 Last Seen: December 22, 2020 Author Share Posted July 12, 2013 about that, already fixed that the other day sorry if i did not update the status of this. anyways thanks Sir capuche how to do this script, Before you can warp into map x, you need to be included in the ladder? Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 12, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 12, 2013 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`='class_s' " + "ORDER BY CAST(`value` AS UNSIGNED) DESC LIMIT 20",.@aid$,.@var; .@name$ = strcharinfo(0); for (set .@i,0; .@i<8; set .@i,.@i+1) if ( .@aid$[.@i] == .@name$ ) break;// is in the top 8 ladder if ( .@i == 8 ) { mes "you need to be include in the ladder"; close; } warp "prontera",0,0; Quote Link to comment Share on other sites More sharing options...
LatSo Posted July 12, 2013 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 296 Reputation: 2 Joined: 04/11/13 Last Seen: December 22, 2020 Author Share Posted July 12, 2013 So that code will warp a player to prontera? I tried but it did not work Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 12, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 12, 2013 So that code will warp a player to prontera? - .@name$ = strcharinfo(0); + set .@name$, strcharinfo(0); it will warp a top 8 in prontera change this if you don't use rathena Quote Link to comment Share on other sites More sharing options...
Question
LatSo
Hi I have a problem here
The ladder is just showing 1 player, it should show at least 8 but I dont how to do it. I tried but fail
please help.
Edited by LatSoLink to comment
Share on other sites
7 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.