-
re: [Release] MFS Team Web 0.5 Update 4
Detox : open _mods/rankings.php , replace the code with this:
Code:
<?
/*
MFS Team Web 0.5
by Diablo
http://famous-scripters.net/
*/
?>
<?php
global $server;
?>
<table width='460' align='center'>
<tr><td align='center' class='menu_titles'><?php echo($server);?> :: Character Rankings</td></tr>
<tr><td> </td></tr>
<tr><td align='center'>
<a href='?page=guilds'>Guild Rankings</a>
<a href='?page=killers'>Killer Rankings</a>
<table width='400' align='center' class='maintable'>
<thead>
<tr>
<td align='center'>#</td>
<td align='center'>Name</td>
<td align='center'>Class</td>
<td align='center'>Level</td>
<td align='center'>Resets</td>
<td align='center'>GR</td>
<td align='center'>Map</td>
<td align='center'>Status</td>
</tr>
</thead>
<?php
$lines = '50'; // How much players to display per page
if(!isset($_GET['pages']))
{
$limit='0';
}
else
{
$page = secure($_GET['pages']);
$pages = $page - 1;
$limit = $lines * $pages;
}
$query = mssql_query("Select TOP $lines Name,class,clevel,resets,mapnumber,AccountID,GrResets From Character where Name not in (Select TOP $limit name from Character order by resets desc,clevel desc) order by resets desc,clevel desc");
for($i=0;$i < mssql_num_rows($query);++$i)
{
$row = mssql_fetch_row($query);
$rank = $i+1+$limit;
$queryonline = mssql_query("Select * from MEMB_STAT where memb___id='$row[5]' and connectstat='1'");
$online = mssql_num_rows($queryonline);
if($online >= 1)
{
$queryname = mssql_query("Select GameIDC from AccountCharacter where id='$row[5]'");
$name = mssql_fetch_row($queryname);
}
if($name[0] == $row[0]) { $status = "<font color='green'>Online</font>"; }
else{ $status = "<font color='#ff0000'>Offline</font>"; }
if ($row[1] == 0) { $class = "Dark Wizard"; }
if ($row[1] == 1) { $class = "Soul Master"; }
if ($row[1] == 2) { $class = "Grand Master"; }
if ($row[1] == 16) { $class = "Dark Knight"; }
if ($row[1] == 17) { $class = "Blade Knight"; }
if ($row[1] == 18) { $class = "Blade Master"; }
if ($row[1] == 32) { $class = "Elf"; }
if ($row[1] == 33) { $class = "Muse Elf"; }
if ($row[1] == 34) { $class = "High Elf"; }
if ($row[1] == 48) { $class = "Magic Gladiator"; }
if ($row[1] == 50) { $class = "Duel Master"; }
if ($row[1] == 64) { $class = "Dark Lord"; }
if ($row[1] == 65) { $class = "Lord Emperor"; }
if ($row[1] == 66) { $class = "Lord Emperor"; }
if ($row[1] == 80) { $class = "Summoner"; }
if ($row[1] == 81) { $class = "Bloody Summoner"; }
if ($row[1] == 82) { $class = "Dimmension Master"; }
if ($row[1] == 96) { $class = "Rage Fighter"; }
if ($row[1] == 98) { $class = "Fist Master"; }
if ($row[4] == 0) { $map = '<b>Lorencia</b>';}
if ($row[4] == 1) { $map = '<b>Dungeon</b>';}
if ($row[4] == 2) { $map = '<b>Devias</b>';}
if ($row[4] == 3) { $map = '<b>Noria</b>';}
if ($row[4] == 4) { $map = '<b>Lost Tower</b>';}
if ($row[4] == 6) { $map = '<b>Arena</b>';}
if ($row[4] == 7) { $map = '<b>Atlans';}
if ($row[4] == 8) { $map = '<b>Tarkan</b>';}
if ($row[4] == 9) { $map = '<b>Devil Square</b>';}
if ($row[4] == 10) { $map = '<b>Icarus</b>';}
if ($row[4] == 11) { $map = '<b>Blood Castle I</b>';}
if ($row[4] == 12) { $map = '<b>Blood Castle II</b>';}
if ($row[4] == 13) { $map = '<b>Blood Castle III</b>';}
if ($row[4] == 14) { $map = '<b>Blood Castle IV</b>';}
if ($row[4] == 15) { $map = '<b>Blood Castle V</b>';}
if ($row[4] == 16) { $map = '<b>Blood Castle VI</b>';}
if ($row[4] == 17) { $map = '<b>Blood Castle VII</b>';}
if ($row[4] == 18) { $map = '<b>Chaos Castle I</b>';}
if ($row[4] == 19) { $map = '<b>Chaos Castle II</b>';}
if ($row[4] == 20) { $map = '<b>Chaos Castle III</b>';}
if ($row[4] == 21) { $map = '<b>Chaos Castle IV</b>';}
if ($row[4] == 22) { $map = '<b>Chaos Castle V</b>';}
if ($row[4] == 23) { $map = '<b>Chaos Castle VI</b>';}
if ($row[4] == 24) { $map = '<b>Kalima I</b>';}
if ($row[4] == 25) { $map = '<b>Kalima II</b>';}
if ($row[4] == 26) { $map = '<b>Kalima III</b>';}
if ($row[4] == 27) { $map = '<b>Kalima IV</b>';}
if ($row[4] == 28) { $map = '<b>Kalima V</b>';}
if ($row[4] == 29) { $map = '<b>Kalima VI</b>';}
if ($row[4] == 30) { $map = '<b>Valley Of Loren</b>';}
if ($row[4] == 31) { $map = '<b>Lands Of Trial</b>';}
if ($row[4] == 32) { $map = '<b>Devil Square</b>';}
if ($row[4] == 33) { $map = '<b>Aida</b>';}
if ($row[4] == 34) { $map = '<b>CryWolf</b>';}
if ($row[4] == 36) { $map = '<b>Kalima VII</b>';}
if ($row[4] == 37) { $map = '<b>Kantru</b>';}
if ($row[4] == 38) { $map = '<b>Kantru Ruins</b>';}
if ($row[4] == 39) { $map = '<b>Kantru Tower</b>';}
if ($row[4] == 40) { $map = '<b>Silent Map</b>';}
if ($row[4] == 41) { $map = '<b>Barrakas</b>';}
if ($row[4] == 42) { $map = '<b>Refuge</b>';}
if ($row[4] == 45) { $map = '<b>Illusion Temple I</b>';}
if ($row[4] == 46) { $map = '<b>Illusion Temple II</b>';}
if ($row[4] == 47) { $map = '<b>Illusion Temple III</b>';}
if ($row[4] == 48) { $map = '<b>Illusion Temple IV</b>';}
if ($row[4] == 49) { $map = '<b>Illusion Temple V</b>';}
if ($row[4] == 50) { $map = '<b>Illusion Temple VI</b>';}
if ($row[4] == 51) { $map = '<b>Elbeland</b>';}
if ($row[4] == 52) { $map = '<b>Blood Castle VIII</b>';}
if ($row[4] == 53) { $map = '<b>Chaos Castle VII</b>';}
if ($row[4] == 56) { $map = '<b>Swamp Of Calmness</b>';}
if ($row[4] == 57) { $map = '<b>Raklion</b>';}
if ($row[4] == 58) { $map = '<b>Raklion II</b>';}
if ($row[4] == 62) { $map = '<b>Santa Town</b>';}
if ($row[4] == 63) { $map = '<b>Vulcan</b>';}
if ($row[4] == 64) { $map = '<b>Duel Arena</b>';}
if ($row[4] == 70) { $map = '<b>EmpireGuardian</b>';}
if ($row[4] == 71) { $map = '<b>EmpireGuardian</b>';}
if ($row[4] == 72) { $map = '<b>EmpireGuardian</b>';}
if ($row[4] == 79) { $map = '<b>Loren Market</b>';}
if ($row[4] == 80) { $map = '<b>Kalrutan</b>';}
echo"
<tr>
<td align='center'>$rank</td>
<td align='center'>$row[0]</td>
<td align='center'>$class</td>
<td align='center'>$row[2]</td>
<td align='center'><font color='#f99455'>$row[3]</font></td>
<td align='center'><font color='red'>$row[6]</font></td>
<td align='center'>$map</td>
<td align='center'>$status</td>
</tr>
";
}
?>
</table>
</td></tr>
</table>
<?php
if(!isset($_GET['pages'])) { $page = '1'; }
$result1 = 1+$limit;
$result2 = $result1+$lines-1;
$count = mssql_query("Select count(*) From Character");
$resultyeah = mssql_result($count, 0, 0);
$next = $page + 1;
$prev = $page - 1;
if($resultyeah > $result2) { $nextpage = " <a href='index.php?page=rankings&pages=$next' title='Next Page'>-> </a> "; }
if($page >= "2") { $prevpage = "<a href=index.php?page=rankings&pages=$prev title='Previous Page'><- </a> "; }
echo"
<table width='500' border='0' align='center' cellpadding='0' cellspacing='0' class='mem'><thead>
<td title='Currently see Page: $page'>$prevpage [$page || <b>$result1-$result2</b>] <span class='text-information'>$nextpage</span></td></thead></table>
";
?>
Enjoy
-
re: [Release] MFS Team Web 0.5 Update 4
how about me ? u will not answer my problem?
and where i can find this? $grand_res_resets
-
re: [Release] MFS Team Web 0.5 Update 4
I have that problem with Admin Panel too, but i have made another one. + more functions [add credits, add vote, vip list, warned, etc.]
I know only the problem with Vote Reward:
1. Open the htdocs/vote/config.php
2. Add this:
Code:
<?php
/*
@Coneccion con sql [MuServer];
*/
@mssql_connect('192.168.1.2','sa','aeonnetwork')
or die('error');
@mssql_select_db('MuOnline')
or die('error');
/*
@Configurar links ;
*/
$links = array(
/**
* @ Nombre
* @ Creditos a dar
* @ Link de Votacion
* @ Visible true/false
*/
array("TOP-1", 80, "htt://linktop1", true),
array("TOP-2", 20, "htt://linktop2", true),
array("TOP-3", 25, "htt://linktop3", true),
array("TOP-4", 25, "htt://linktop4", true)
);
/*
@Configurar Tiempo 12 = hours/ 60= minutes /60 =seconds ;
*/
$lastVoteDate = time()+(12*60*60);
?>
3. Edit only:
Code:
TOP-1, TOP-2, TOP-3, TOP-4 - With your top name
80, 20, 25, 25 - Credits per vote
htt://linktop1, htt://linktop2, htt://linktop3, htt://linktop4 - [COLOR="red"]Link to your vote site
And you cand add more top links like this:
array("TOP-5", 80, "htt://linktop5", true),
But the last line must not have a ( , ) at the end. PS: take a look in that code that i post!
EDIT for diablo71:
Rankings works fine, thanks again!
- Another problem:
On website:
http://i42.tinypic.com/2zqflm8.png
On server:
http://i43.tinypic.com/2ponxc5.png
P.S: Both pictures are taken at the same time.
-
re: [Release] MFS Team Web 0.5 Update 4
Detox share your modifications for admin panel
About the Connectstat , open MuOnline>Tables>MEMB_STAT>Return all rows, see is there Connectstat 1 and how many are connected
-
re: [Release] MFS Team Web 0.5 Update 4
Can someone make that 3 pictures what is in Bulgarian language translate to English?
-
1 Attachment(s)
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
diablo71
Detox share your modifications for admin panel
About the Connectstat , open MuOnline>Tables>MEMB_STAT>Return all rows, see is there Connectstat 1 and how many are connected
Yes i know that, but on the Server is 1 online and on the Website is 11 online ? [P.S: And when the server is Offline, on the website it's showing that are players online..]
I must do all time: Go to editor and dissconnect all players.
Then on website shows 0 players and when players are online connect stats remains stuck on website again.
I add the adminpanel before i fix this problem.
Edit for: destroed
Quote:
Originally Posted by
destroed
Can someone make that 3 pictures what is in Bulgarian language translate to English?
- Download the attachement and put the pics on htdocs/_img
http://i40.tinypic.com/kale8k.png
http://i42.tinypic.com/350q5jb.png
http://i39.tinypic.com/2liu7ar.png
-
re: [Release] MFS Team Web 0.5 Update 4
I found when shows this bug with online. After do instalation stuff - localhost/install.php, before this everything works fine, diablo must fix instalation..
Edit for Detox. Can you make this picture the same texts but in english? 1st picture mean Downloads, it`s right, 2nd Register - New Account is good to, but 3rd is Start Play not webshop, can you make?
Edit: Detox, can you make when pick mouse on that picture it`s lighter, like in old pictures? 3 pictures are darker, next 3 is lighter and when you got mouse on that pictures, they glow...
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
destroed
I found when shows this bug with online. After do instalation stuff - localhost/install.php, before this everything works fine, diablo must fix instalation..
Edit for Detox. Can you make this picture the same texts but in english? 1st picture mean Downloads, it`s right, 2nd Register - New Account is good to, but 3rd is Start Play not webshop, can you make?
Yes i will make it, but now i go to school and i come back in 2 hours.
You also can edit the links for pictures in index.php:
Code:
<td width="171" height="119"><a href="?page=download" target="_self"><img src="_img/01.png"
<td width="171"><a href="?page=register" target="_self"><img src="_img/02.png"
<td width="171"><a href="?page=webshop" target="_self"><img src="_img/03.png"
Edit: It's all pictures the same when you put mouse on it it's no change. P.S: If when you put mouse on pics they will change, you must restart your apache/pc or to download the attachment and put all pictures on htdocs/_img .
-
re: [Release] MFS Team Web 0.5 Update 4
Detox, I set this pictures, no need change text, need just add darker pictures and lighter pictures with glow...
Diablo, will you fix Online problem my server is offline, but it even then show that players is online...
-
re: [Release] MFS Team Web 0.5 Update 4
diablo please post Update 5 files :D thank you
-
re: [Release] MFS Team Web 0.5 Update 4
fixed Trade Online Time Normal + VIP module
if you find other problems report so to be fixed
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
Detox
I have that problem with Admin Panel too, but i have made another one. + more functions [add credits, add vote, vip list, warned, etc.]
I know only the problem with Vote Reward:
1. Open the htdocs/vote/config.php
2. Add this:
Code:
<?php
/*
@Coneccion con sql [MuServer];
*/
@mssql_connect('192.168.1.2','sa','aeonnetwork')
or die('error');
@mssql_select_db('MuOnline')
or die('error');
/*
@Configurar links ;
*/
$links = array(
/**
* @ Nombre
* @ Creditos a dar
* @ Link de Votacion
* @ Visible true/false
*/
array("TOP-1", 80, "htt://linktop1", true),
array("TOP-2", 20, "htt://linktop2", true),
array("TOP-3", 25, "htt://linktop3", true),
array("TOP-4", 25, "htt://linktop4", true)
);
/*
@Configurar Tiempo 12 = hours/ 60= minutes /60 =seconds ;
*/
$lastVoteDate = time()+(12*60*60);
?>
3. Edit only:
Code:
TOP-1, TOP-2, TOP-3, TOP-4 - With your top name
80, 20, 25, 25 - Credits per vote
htt://linktop1, htt://linktop2, htt://linktop3, htt://linktop4 - [COLOR="red"]Link to your vote site
And you cand add more top links like this:
array("TOP-5", 80, "htt://linktop5", true),
But the last line must not have a ( , ) at the end. PS: take a look in that code that i post!
EDIT for diablo71:
Rankings works fine, thanks again!
- Another problem:
On website:
http://i42.tinypic.com/2zqflm8.png
On server:
http://i43.tinypic.com/2ponxc5.png
P.S: Both pictures are taken at the same time.
thxxxx.!
-
re: [Release] MFS Team Web 0.5 Update 4
No idea how I could fix that online bug ?
-
re: [Release] MFS Team Web 0.5 Update 4
this problem is from the old versions database (97 versions), problem is fixed
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
diablo71
this problem is from the old versions database (97 versions), problem is fixed
where is fixed ?
-
re: [Release] MFS Team Web 0.5 Update 4
the website works perfect from 99b versions to season 6, so if you had problems with Online Status or Trade Time, use database from new season like season 1,2 or 6 dont matter
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
diablo71
the website works perfect from 99b versions to season 6, so if you had problems with Online Status or Trade Time, use database from new season like season 1,2 or 6 dont matter
I have already a server with accounts on, how do i change the database ?:)
And a Season I, II..etc. database works on 97d ? :)
-
re: [Release] MFS Team Web 0.5 Update 4
Detox, can you give ur mu website addres?
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
destroed
Detox, can you give ur mu website addres?
It's on my Profile @ Contact Info..
-
re: [Release] MFS Team Web 0.5 Update 4
Detox share the admin cp modification
-
re: [Release] MFS Team Web 0.5 Update 4
-
re: [Release] MFS Team Web 0.5 Update 4
Strongest: The player with more stats points
Top character is normal, so everything is normal
-
1 Attachment(s)
re: [Release] MFS Team Web 0.5 Update 4
Here is it! Excuse the delay i was away from home..
I not found the solution to fix the online bug and is very worse, because all players remain connected on the server and i must disconnect all of them all the time from MuEditor..and i don't know how I am right now: This :/: or :grr: !
-
re: [Release] MFS Team Web 0.5 Update 4
hi can some one help me please im geting this error
Fatal error: Call to undefined function mssql_connect() in F:\xampp\htdocs\_inc\phpcheck.php on line 12 thanks
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
harry428
hi can some one help me please im geting this error
Fatal error: Call to undefined function mssql_connect() in F:\xampp\htdocs\_inc\phpcheck.php on line 12 thanks
Edit config.php with your IP, SQL_User and SQL_ Password !