Jump to content
  • 0

guild ranking error


VladimirCastro

Question


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  


//===== eAthena Script ======================================= 

//= Amatsu Guides

//===== By: ================================================== 

// Rahul Dev

// Thanks to Myzter

//===== Current Version: ===================================== 

//= 1.0

//===== Compatible With: ===================================== 

//= eAthena/ rAthena SVN

//===== Description: ========================================= 

//= Castle Ranking

//===== Additional Comments: ================================= 

//= 1.0 

//============================================================

prontera,139,175,5 script Guild Ranking 415,{

// Configurations

.@max_ranking = 10; // Max Rankings to display. 

// Do not touch

for (set .@x,0; .@x < .@max_ranking; set .@x,.@x + 1) {

if (.@x) mes "- - - - - - - - - - - - - - -";

mes "# ^ff0000" + (.@x + 1) + "^000000: ^0000ff" + ( (.GuildName$[.@x])? .GuildName$[.@x]:"None" ) + "^000000";

mes " - Master: ^0000ff" + ( (.GuildMaster$[.@x])? .GuildMaster$[.@x]:"None" ) + "^000000";

mes " - Territories: ^ff0000" + .NumCastles[.@x] + "^000000";

mes " - Members: ^ff0000" + .NumMembers[.@x] + "^000000";

}

close;

OnAgitEnd:

OnAgitEnd2:

OnInit:

set .Cnt, query_sql("SELECT (SELECT count(c.castle_id) FROM guild_castle c WHERE c.guild_id = g.guild_id) castles, CONCAT(g.name, ' (LV. ',g.guild_lv,')') guild, count(g.char_id) members, g.master FROM guild g LEFT JOIN guild_member m ON g.guild_id = m.guild_id GROUP BY g.guild_id HAVING castles > 0 ORDER BY castles DESC, guild_lv DESC, members DESC", .NumCastles,.GuildName$,.NumMembers,.GuildMaster$);

waitingroom "Top 10 Guild",0;

end;

}

post-3084-0-18739800-1437515717_thumb.jpg

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

// Configurations
set .@max_ranking, 10; // Max Rankings to display.  

And you should look what Emistry just said.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...