Register for your free account! | Forgot your password?

You last visited: Today at 05:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Ranks Script Help

Discussion on Ranks Script Help within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2016
Posts: 3
Received Thanks: 0
Ranks Script Help

Hello friends
Is there a ready script ranks as the picture

How can I add the name of the union or association where it says

Thank you

shaiyapvpserver is offline  
Old 09/19/2016, 17:32   #2
 
elite*gold: 0
Join Date: Apr 2015
Posts: 70
Received Thanks: 46
In this database: PS_GameData
You have to looking for dbo.Guild if i'm not wrong
Tell me if it is the answer you expected
[ADM]_Dephisio is offline  
Old 09/19/2016, 19:18   #3
 
elite*gold: 0
Join Date: Jul 2016
Posts: 3
Received Thanks: 0
$faction=0;
if((isset($_GET['class'])) && (!empty($_GET['class']))) {
// si la classe est choisie
$job=$_GET['class'];
if($job == 6) {
$job=0;
echo "<center><table border=\"1\" width=\"620\">";
echo "<tr><th colspan=\"4\"><center>Işık İttifakı - Cengaver İnfaz Listesi</th></tr>";
echo "<tr><th><center>Sıra</center></th><th><center>İsmi </center></th><th><center>Seviye</center></th><th><center>İnfaz</center></th><th><center>GUILD</center></th></tr>";
$selecteverything=$conn->prepare('SELECT TOP 30 c.CharName, c.K1, c.Del, c.UserUID, c.Level, d.Status, e.Country FROM PS_GameData.dbo.Chars AS c
JOIN PS_UserData.dbo.Users_Master AS d ON c.UserUID=d.UserUID
JOIN PS_GameData.dbo.UserMaxGrow AS e ON c.UserUID=e.UserUID
WHERE c.Del=0 AND d.Status=0 AND e.Country=:country AND c.Job=:job ORDER BY c.K1 DESC, c.K2 ASC, c.CharName ASC');
if($selecteverything == false) {
echo "Error in preparing the select query.<br />";
die(FormatErrors($conn->errorInfo()));
} else {
$selecteverything->bindParam(':country', $faction, PDO::PARAM_INT);
$selecteverything->bindParam(':job', $job, PDO::PARAM_INT);
if($selecteverything->execute() == false) {
echo "Error while executing query to select the ranked chars.<br />";
die(FormatErrors($selecteverything->errorInfo()));
} else {
$begin=1;
for ($i=1; $char=$selecteverything->fetch(PDO::FETCH_ASSOC); $i++) {
if($i >= $begin) {
echo "<tr><td style=\"color:white\" bgcolor=\"black\"><center>".$i."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['CharName']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['Level']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['K1']."</center></td><td style=\"color:white\" bgcolor=\"black\">Guild Name</center></td></tr>";
}
}
}
}
}




where code will be written
Thank you
shaiyapvpserver is offline  
Old 09/19/2016, 20:31   #4
 
elite*gold: 0
Join Date: Apr 2015
Posts: 70
Received Thanks: 46
I don't understand what you're looking for,explain precisely pls
[ADM]_Dephisio is offline  
Old 09/20/2016, 01:37   #5
 
[DEV]Arkham's Avatar
 
elite*gold: 0
Join Date: Jun 2016
Posts: 47
Received Thanks: 26
Quote:
Originally Posted by shaiyapvpserver View Post




where code will be written
Thank you
Can you Send all scripts ?
Or try to use it

enter it on to $faction=0; and replace it
PHP Code:
echo "<tr><td style=\"color:white\" bgcolor=\"black\"><center>".$i."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['CharName']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['Level']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['K1']."</center></td><td style=\"color:white\" bgcolor=\"black\">Guild Name</center></td></tr>"
TO:

PHP Code:
echo "<tr><td style=\"color:white\" bgcolor=\"black\"><center>".$i."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['CharName']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['Level']."</center></td><td style=\"color:white\" bgcolor=\"black\"><center>".$char['K1']."</center></td><td style=\"color:white\" bgcolor=\"black\">".$guild."</center></td></tr>"
[DEV]Arkham is offline  
Old 09/20/2016, 14:23   #6
 
elite*gold: 0
Join Date: Jul 2016
Posts: 3
Received Thanks: 0


All codes here i cant add guild thank u for helping
shaiyapvpserver is offline  
Old 09/20/2016, 20:50   #7
 
[DEV]Arkham's Avatar
 
elite*gold: 0
Join Date: Jun 2016
Posts: 47
Received Thanks: 26
Quote:
Originally Posted by shaiyapvpserver View Post


All codes here i cant add guild thank u for helping
Done!


Please test it before to use on your server ^_^
[DEV]Arkham is offline  
Reply


Similar Threads Similar Threads
Need help with SS ranks.
03/05/2014 - Elsword - 3 Replies
Good night, guys. Anyone can help me with SS or SSS(o_O) rank in dungeons. I use ELX, but its didnt work(show 600combo, but in dungeons stats its ~100), im Rune Slayer (elsword). Please, if you can, pm me or post it here. Thanks you, im new here :P
PVP ranks PHP script problem
08/28/2012 - Shaiya Private Server - 2 Replies
Hello ,i use xampp 1.7.3 ,db from Svinselladen and when i try to put the PVP ranks.php script on my site it gives this error Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\scripts\pvp\pvp.php on line 13 So i checked the the line 13 and looks like this $pvp = 4; Idk i replaced user db and password.If someone know how to fix
NEW ranks
05/18/2011 - General Gaming Discussion - 5 Replies
DuckLoad.com · Easy Streaming DuckLoad.com · Easy Streaming http://www.virustotal.com/file-scan/...90a-130555 7431 YouTube - Xtreme AutoStage 3.4 Happy hacking
question about skill ranks and class ranks
01/10/2010 - Cabal Online - 0 Replies
take look. my sword rank is apprentice and i have 40/41 skill points and i cant get to next rank, it requires class rank 4. is there any way to get next sword rank without getting required class rank ?



All times are GMT +2. The time now is 05:54.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.