Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Guild ranking script

Elite Diviner
Joined
Dec 23, 2008
Messages
425
Reaction score
15
Guild ranking script made by me for Ragezone..
Say thanks if you want more releases by me..

This script shows a table of the top guilds in the server by level,
In addition it shows the guild leader.
@Enjoy

PHP:
<?php
//This script made by TheUnreal. Released for Ragezone. -->Say thanks!
//Connect the database
$connect = mssql_connect("localhost","sa","PASSWORD");
//Set the number of guilds to show below
$num = "5";
?>
<h1>Guild ranking - Top <?php echo $num;?> guilds</h1><hr /><br />
<?php
//Created by TheUnreal
echo '<div align="center"><table width="100%" border="1" bgcolor="#EEEEEE" style="text-align:center;">';
			echo '<td width="5%" bgcolor="#FFFFFF"><b>Rank';
			echo '<td width="25%" bgcolor="#FFFFFF"><b>Name';
			echo '<td width="25%" bgcolor="#FFFFFF"><b>Level';
			echo '<td width="25%" bbgcolor="#FFFFFF"><b>Leader';
			echo'</tr>';
			$rank=1;
mssql_select_db("CHARACTER_01_DBF");
			$getguilds = mssql_query('SELECT TOP '.$num.' * FROM GUILD_TBL ORDER BY m_nLevel DESC');
			while ($consulta = mssql_fetch_assoc($getguilds)) {
	$guildid = $consulta['m_idGuild'];
	$getleader = mssql_query('SELECT m_idPlayer FROM GUILD_MEMBER_TBL WHERE m_idGuild = "'.$guildid.'" AND m_nMemberLv = "0"');
	while ($leaderid = mssql_fetch_assoc($getleader)) {
	$uid = $leaderid['m_idPlayer'];
	}
	$getname = mssql_query('SELECT m_szName FROM CHARACTER_TBL WHERE m_idPlayer = "'.$uid.'"');
	while ($leadername = mssql_fetch_assoc($getname)) {
	$leader = $leadername['m_szName'];
	}
			echo '<tr><td  bgcolor="#FFF0F0">'.$rank.'</td>';
			echo '<td  bgcolor="#FFF0F0"><a href="?page=viewguild&guild='.$consulta['m_szGuild'].'">'.$consulta['m_szGuild'].'</a></td>';
			echo '<td  bgcolor="#FFF0F0">'.$consulta['m_nLevel'].'</td>';
			echo '<td  bgcolor="#FFF0F0">'.$leader.'</td></tr>';
			$rank++;
			}
//Ragezone 
?>
</table>
 
Last edited:
Newbie Spellweaver
Joined
Jun 29, 2010
Messages
29
Reaction score
1
Is this for v15? cause I get this error in mysql
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '<'.
Msg 195, Level 15, State 7, Line 5
'the' is not a recognized SET option.
Msg 126, Level 15, State 1, Line 20
Invalid pseudocolumn "$consulta".
Msg 126, Level 15, State 1, Line 23
Invalid pseudocolumn "$leaderid".
Msg 126, Level 15, State 1, Line 27
Invalid pseudocolumn "$leadername".
help pls :S?
 
Elite Diviner
Joined
Dec 23, 2008
Messages
425
Reaction score
15
Is this for v15? cause I get this error in mysql
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '<'.
Msg 195, Level 15, State 7, Line 5
'the' is not a recognized SET option.
Msg 126, Level 15, State 1, Line 20
Invalid pseudocolumn "$consulta".
Msg 126, Level 15, State 1, Line 23
Invalid pseudocolumn "$leaderid".
Msg 126, Level 15, State 1, Line 27
Invalid pseudocolumn "$leadername".
help pls :S?

WTF you tried to run it on SQL MANAGER? lol.. You have to put it in .php file........................

No offense but sort your layout out. Ever heard of indenting?
Hm atleast I release something instead of say whats wrong?
 
Skilled Illusionist
Joined
Dec 26, 2010
Messages
390
Reaction score
157
Nice Bump... The OP should of atleast added the 2nd feature which is showing the guild stats which was a link in the guild name. I might add that later and release it <.<.
 
Last edited:
Experienced Elementalist
Joined
Jan 18, 2011
Messages
246
Reaction score
4
nice release..
but the layouting, its :scared:
 
Experienced Elementalist
Joined
Oct 9, 2008
Messages
204
Reaction score
36
anth0ny STFU, its better if someone shares rather than starting to flame,
@tagalog pinoy ka nga naman, yan lang ang mgagawa mo, tanga, umalis ka dito

Good Job Unreal, Keep it up!
 
Experienced Elementalist
Joined
Jan 18, 2011
Messages
246
Reaction score
4
anth0ny STFU, its better if someone shares rather than starting to flame,
@tagalog pinoy ka nga naman, yan lang ang mgagawa mo, tanga, umalis ka dito

Good Job Unreal, Keep it up!
lol.
i'm not flaming. as i have said "NICE RELEASE", is that flame? I'm just saying my perspective on this release. so STFU and GTFO!
@tagalog ikaw lang ata ung nagsimula ng flame. di ako tanga. :<:

---------- Post added at 12:06 AM ---------- Previous post was at 12:04 AM ----------

anth0ny989 keep inmind that this release is pretty old, so yeh, the layout could look wierd... just edit it if you dont like it -.-

oh, i'm thinking about it :):
but nahh, i'm lazy :thumbdown:
 
Back
Top