Register for your free account! | Forgot your password?

You last visited: Today at 15:14

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

Advertisement



web script : top25 GRB

Discussion on web script : top25 GRB within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
bulgaria's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 69
Received Thanks: 152
web script : top25 GRB

Hi guys , dont like to speek more that case in need of that.
Just use copy/paste !



PHP Code:
<?php
$server 
'127.0.0.1';
$dbuser 'Shaiya';
$dbpass 'Shaiya123';
$count=1;


$conn mssql_connect($server$dbuser$dbpass)
  or die(
"Couldn't connect to SQL Server on $myServer");
  
$query "SELECT top 25* FROM PS_GameData.dbo.Guilds ORDER BY GuildPoint desc";

$result mssql_query($query);

echo 
"<html><head><STYLE TYPE=\"text/css\">
<!--
td { background:url(image.png) no-repeat; }
td.i0{ background-position: 0 0; width: 28px; height: 16px; } 
td.i1{ background-position: 0 -26px; width: 28px; height: 16px; } 
td.i2{ background-position: 0 -52px; width: 28px; height: 16px; } 
td.i3{ background-position: 0 -78px; width: 29px; height: 16px; } 
td.i4{ background-position: 0 -104px; width: 29px; height: 15px; } 
td.i5{ background-position: 0 -129px; width: 28px; height: 18px; } 
td.i6{ background-position: 0 -157px; width: 30px; height: 17px; } 
td.i7{ background-position: 0 -184px; width: 29px; height: 17px; } 
td.i8{ background-position: 0 -211px; width: 28px; height: 16px; } 
td.i9{ background-position: 0 -237px; width: 28px; height: 18px; } 
td.i10{ background-position: 0 -265px; width: 29px; height: 18px; } 
td.i11{ background-position: 0 -293px; width: 29px; height: 24px; } 
td.i12{ background-position: 0 -327px; width: 29px; height: 18px; } 
td.i13{ background-position: 0 -355px; width: 29px; height: 18px; } 
td.i14{ background-position: 0 -383px; width: 29px; height: 18px; } 
td.i15{ background-position: 0 -411px; width: 29px; height: 18px; } 
td.i16{ background-position: 0 -439px; width: 29px; height: 18px; } 
td.i17{ background-position: 0 -467px; width: 24px; height: 24px; } 
td.i18{ background-position: 0 -501px; width: 24px; height: 24px; } 
td.i19{ background-position: 0 -535px; width: 24px; height: 24px; } 
td.i20{ background-position: 0 -569px; width: 24px; height: 24px; } 
td.i21{ background-position: 0 -603px; width: 24px; height: 24px; } 
td.i22{ background-position: 0 -637px; width: 24px; height: 24px; } 
</STYLE>
<title>GRB top25</title></head>"
;
echo 
"<body><center>
      <table cellspacing=10 cellpadding=0 border=0 bgcolor=\"black\">
      <td style=\"color:#FC9700\" bgcolor=\"black\">Rank</td>
      <td style=\"color:#FC9700\" bgcolor=\"black\">Guild Name</td>
      <td style=\"color:#FC9700\" bgcolor=\"black\">GRB Point</td>
      <td style=\"color:#FC9700\" bgcolor=\"black\">Faction"
;
      

while(
$row mssql_fetch_array($result))
{    
  if(
$row[6] === 1)
    
$fact"UOF";
  else 
$fact"AOL"
  echo 
"<tr style=\"color:white\">";
  echo 
"<td> $count</td><td>"$row[2]  ."</td><td>"$row[8] ."</td><td>  $fact</td><td>";
  echo 
"</tr>";
  
$count++;
}
echo 
"</table>";
echo 
"</html>";

mssql_close($conn);
?>


Hope that script will be helpfull !
[GM]Joker
bulgaria is offline  
Thanks
4 Users
Old 07/15/2011, 23:16   #2
 
Bаne's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,334
Received Thanks: 1,777
server = '127.0.0.1';
$dbuser = 'Shaiya';
$dbpass = 'Shaiya123';
$count=1;

That will need to be relapsed with your server info...lol
Bаne is offline  
Thanks
5 Users
Old 07/16/2011, 00:04   #3
 
bulgaria's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 69
Received Thanks: 152
sure

$server = '127.0.0.1';
$dbuser = 'Shaiya';
$dbpass = 'Shaiya123';

only
bulgaria is offline  
Old 07/16/2011, 03:23   #4
 
sondo81's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 400
Received Thanks: 643
um, what is that which is a nice request I want to f*** you or you just want to attract the newcomers to post their ip?


sry for that meaning.
sondo81 is offline  
Old 07/16/2011, 03:34   #5
 
Bаne's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,334
Received Thanks: 1,777
Quote:
Originally Posted by sondo81 View Post
um, what is that which is a nice request I want to f*** you or you just want to attract the newcomers to post their ip?


sry for that meaning.
You missed the entire point, that's a PhP script, the player has to replace there DB information with the top part for it to work, then they load it into a web server...They never have to publicy post there IP.
Bаne is offline  
Thanks
2 Users
Old 07/16/2011, 03:52   #6
 
sondo81's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 400
Received Thanks: 643
I've already noticed that this is a php script but I know him to ask the user here ... I've used it is not ***** but still does not work ... and I see no real use in this script except raise questions
sondo81 is offline  
Old 07/16/2011, 03:59   #7
 
Bаne's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,334
Received Thanks: 1,777
Quote:
Originally Posted by sondo81 View Post
I've already noticed that this is a php script but I know him to ask the user here ... I've used it is not ***** but still does not work ... and I see no real use in this script except raise questions
He never asked for anything, and it's just a harmless script, I checked it..
Bаne is offline  
Thanks
3 Users
Old 07/16/2011, 04:07   #8
 
sondo81's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 400
Received Thanks: 643
ok super mega boss to see only the last one to post the mod here cares brimgt jump to my heart.

in deutsch : alein zu sehen das es hier endlich einen mod gibt der auch aufpasst lässt mein herz höher schlagen!
sondo81 is offline  
Old 07/16/2011, 07:21   #9
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
Err, I wrote this for someone who requested on skype. It's a bit different to yours o.O

MSSQL function based:
PHP Code:
<?php
//Connection configuration
$Host '127.0.0.1';
$User 'Shaiya';
$Password 'Shaiya123';
$conn mssql_connect($Host,$User,$Password);

//Do not edit below this line unless you know what you're doing
$Rank=$Light=$Fury=1;
$Faction = array (0=>'Alliance',1=>'Fury');
$result mssql_query("SELECT TOP 25* FROM PS_GameData.dbo.Guilds WHERE Del=0 ORDER BY GuildPoint DESC");

echo 
"<table border=1>";
echo 
"<tr><th>Rank</th>
        <th>Guild Name</th>
        <th>Members</th>
        <th>Leader</th>
        <th>Faction</th>
        <th>Faction Rank</th>
        <th>Points</th></tr>"
;

while(
$row mssql_fetch_array($result))
{
  echo 
"<tr>";
  echo 
"<td>".$Rank."</td>";
  echo 
"<td>".$row['GuildName']."</td>";
  echo 
"<td>".$row['TotalCount']."</td>";
  echo 
"<td>".$row['MasterName']."</td>";
if(
$row['Country']==0){
  echo 
"<td>".$Faction[$row['Country']]. "</td>";
  echo 
"<td>".$Light."</td>";
}else{
  echo 
"<td>".$Faction[$row['Country']]. "</td>";
  echo 
"<td>".$Fury."</td>";
}
  echo 
"<td>".$row['GuildPoint']."</td>";
  echo 
"</tr>";
switch(
$row['Country']){
case 
0$Light++;break;
case 
1$Fury++;break;
}
  
$Rank++;
}
echo 
"</table>";
?>
ODBC Function based:
PHP Code:
<?php
//Connection configuration
$Host '127.0.0.1';
$User 'Shaiya';
$Password 'Shaiya123';
$conn odbc_connect("Driver={SQL Server};Server=$Host"$User$Password);

//Do not edit below this line unless you know what you're doing
$Rank=$Light=$Fury=1;
$Faction = array (0=>'Alliance',1=>'Fury');
$result odbc_exec($conn,"SELECT TOP 25* FROM PS_GameData.dbo.Guilds WHERE Del=0 ORDER BY GuildPoint DESC");

echo 
"<table border=1>";
echo 
"<tr><th>Rank</th>
        <th>Guild Name</th>
        <th>Members</th>
        <th>Leader</th>
        <th>Faction</th>
        <th>Faction Rank</th>
        <th>Points</th></tr>"
;

while(
$row odbc_fetch_array($result))
{
  echo 
"<tr>";
  echo 
"<td>".$Rank."</td>";
  echo 
"<td>".$row['GuildName']."</td>";
  echo 
"<td>".$row['TotalCount']."</td>";
  echo 
"<td>".$row['MasterName']."</td>";
if(
$row['Country']==0){
  echo 
"<td>".$Faction[$row['Country']]. "</td>";
  echo 
"<td>".$Light."</td>";
}else{
  echo 
"<td>".$Faction[$row['Country']]. "</td>";
  echo 
"<td>".$Fury."</td>";
}
  echo 
"<td>".$row['GuildPoint']."</td>";
  echo 
"</tr>";
switch(
$row['Country']){
case 
0$Light++;break;
case 
1$Fury++;break;
}
  
$Rank++;
}
echo 
"</table>";
?>
RebeccaBlack is offline  
Thanks
10 Users
Old 07/17/2011, 07:47   #10
 
elite*gold: 0
Join Date: Aug 2010
Posts: 241
Received Thanks: 255
In your script on the die statement for mssql_connect, There is no $myServer variable.
zargon05 is offline  
Reply


Similar Threads Similar Threads
L2Walker script: Solo rebuff/restock/return script
08/08/2012 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 63 Replies
Hello! I've been reading alot and not really contributing so i'll start off here with a very well working script im using to bot my SK outside ivory tower in oren. I've tried to structure the code so it easily can be modified for another level of character, town, and hunting spot. The script is made for CT2 Retail, mainly to get advantage of the newbie buffs (which now lasts all the way until level 62) Change log: Update 2008-09-01 Version 1.14 -Download
[suche] d2nt level rush script 1-25 / follow script
06/23/2010 - Diablo 2 Programming - 5 Replies
moin erstmal sry falls es da doch schon was passendes zu gab - hab schonmal gesucht aber nur alte sachen gefunden oder eben antworten in richtung "geht so schnell dafür braucht man keinen bot" ^^ mein problem besteht darin dass ich für lvl 1 bis 20 immer x stunden brauche - trist geht ja noch halberwegs aber mit tombruns such ich mich immer dusselig ^^ - bzw cows sind noch schlimmer (dafür geht das cow-script für d2nt ausm bluebird zumindest halberwegs) die frage ist jetz die - giebt...



All times are GMT +1. The time now is 15:15.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.