grand reset working fine, tested
it get information from Character>Resets , if you dont use this column for reset change the code to what you use
Printable View
grand reset working fine, tested
it get information from Character>Resets , if you dont use this column for reset change the code to what you use
Helped
When i register there is no in Database Memb_info
then change your database with other, its not website problem
Bro can u give me the URl of the MFS Team Mu Server Season 5 Update 6
my web is locked for now, soon i will unlock it
diablo please fix web for Google chrome[ Banner don`t work ;( ] and make more options for VIP users, like lower reset level, bonus points after rr...
diablo, can you give me script for Query Analizer for Total Online Time desc?
And why I have mystic symbols on hall of flame? п»ї <--- WTF? I Just deleted Rage Fighter, Summoner, Dark Lord, because my mu version doesn`t include this chars.
And I have this symbol on Top Voters too.
its little bug with charset, use install.php to insert the Total Online Time and all scripts in your database.. Enjoy
Emm, but how to remove this simbol? Can you help? Can you give me script without this simbol? Just remove RF, Summoner, DL! From TOP!!!
I found bug on web, I have character online in game, it shows that i`m online on Online Users, but it shows that i`m offline on Rankings, Killers Rankings. Can you fix it?
try this:
1. open _mods/rankings.php
2. replace the code with this
Code:
<?
/*
MFS Team Web 0.5
by Diablo
http://famous-scripters.net/
*/
?>
<?php
global $server;
?>
<table width='437' 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>
<?
/*
MFS Team Web 0.5
by Diablo
http://famous-scripters.net/
*/
?>
<?php
$query = 'Select memb___id, ConnectTM, ConnectTm From MEMB_STAT where Connectstat=1 order by ConnectTM desc';
$result = mssql_query( $query );
echo '<center><TABLE border=0 cellPadding=2 cellSpacing=2>
<table id="mutable" class="alt5" cellpadding="0" cellspacing="10" >
<tr>
<td align=left><center>#</center></td>
<td align=left><center>Name</center></td>
<td align=left><center>Level</center></td>
<td align=left><center>Reset</center></td>
<td align=left><center>Class</center></td>
<td align=left><center>Connect</center></td>
<td align=left><center>Map</center></td>
<td align=left><center>VIP</center></td>
</tr></center>';
$waw = mssql_query("SELECT count(*) From MEMB_STAT where Connectstat=1");
$xex = mssql_result($waw, 0, 0);
$color = 'darkblue';
for($i=0;$i < $xex;++$i)
{
$row = mssql_fetch_row($result);
$querychar = "Select GameIDC From AccountCharacter where Id='$row[0]'";
$resultchar = mssql_query( $querychar );
$accchar = mssql_fetch_row($resultchar);
$querychar = "Select Name,Class,MapNumber,clevel,resets From Character where Name='$accchar[0]'";
$resultchar = mssql_query($querychar);
$charr = mssql_fetch_row($resultchar);
$rank = $i+1;
$is_vip = mssql_query("SELECT * FROM MEMB_INFO WHERE memb___id='$row[0]'");
$row2 = mssql_fetch_array($is_vip);
$dados_query = mssql_query("SELECT * FROM Character WHERE AccountID='$row[0]'");
$dados = mssql_fetch_array($dados_query);
//Class
if ($charr['1'] == 0) { $charr[1] = "Dark Wizard"; }
if ($charr['1'] == 1) { $charr[1] = "Soul Master"; }
if ($charr['1'] == 2) { $charr[1] = "Grand Master"; }
if ($charr['1'] == 16) { $charr[1] = "Dark Knight"; }
if ($charr['1'] == 17) { $charr[1] = "Blade Knight"; }
if ($charr['1'] == 18) { $charr[1] = "Blade Master"; }
if ($charr['1'] == 32) { $charr[1] = "Elf"; }
if ($charr['1'] == 33) { $charr[1] = "Muse Elf"; }
if ($charr['1'] == 34) { $charr[1] = "High Elf"; }
if ($charr['1'] == 48) { $charr[1] = "Magic Gladiator"; }
if ($charr['1'] == 50) { $charr[1] = "Duel Master"; }
if ($charr['1'] == 64) { $charr[1] = "Dark Lord"; }
if ($charr['1'] == 65) { $charr[1] = "Lord Emperor"; }
if ($charr['1'] == 80) { $charr[1] = "Summoner"; }
if ($charr['1'] == 81) { $charr[1] = "Bloody Summoner"; }
if ($charr['1'] == 82) { $charr[1] = "Dimmension Master"; }
if ($charr['1'] == 96) { $charr[1] = "Rage Fighter"; }
if ($charr['1'] == 98) { $charr[1] = "Fist Master"; }
//Location
if ($charr['2'] == 0) { $charr['2'] = '<b>Lorencia</b>';}
if ($charr['2'] == 1) { $charr['2'] = '<b>Dungeon</b>';}
if ($charr['2'] == 2) { $charr['2'] = '<b>Devias</b>';}
if ($charr['2'] == 3) { $charr['2'] = '<b>Noria</b>';}
if ($charr['2'] == 4) { $charr['2'] = '<b>Lost Tower</b>';}
if ($charr['2'] == 6) { $charr['2'] = '<b>Arena</b>';}
if ($charr['2'] == 7) { $charr['2'] = '<b>Atlans';}
if ($charr['2'] == 8) { $charr['2'] = '<b>Tarkan</b>';}
if ($charr['2'] == 9) { $charr['2'] = '<b>Devil Square</b>';}
if ($charr['2'] == 10) { $charr['2'] = '<b>Icarus</b>';}
if ($charr['2'] == 11) { $charr['2'] = '<b>Blood Castle I</b>';}
if ($charr['2'] == 12) { $charr['2'] = '<b>Blood Castle II</b>';}
if ($charr['2'] == 13) { $charr['2'] = '<b>Blood Castle III</b>';}
if ($charr['2'] == 14) { $charr['2'] = '<b>Blood Castle IV</b>';}
if ($charr['2'] == 15) { $charr['2'] = '<b>Blood Castle V</b>';}
if ($charr['2'] == 16) { $charr['2'] = '<b>Blood Castle VI</b>';}
if ($charr['2'] == 17) { $charr['2'] = '<b>Blood Castle VII</b>';}
if ($charr['2'] == 18) { $charr['2'] = '<b>Chaos Castle I</b>';}
if ($charr['2'] == 19) { $charr['2'] = '<b>Chaos Castle II</b>';}
if ($charr['2'] == 20) { $charr['2'] = '<b>Chaos Castle III</b>';}
if ($charr['2'] == 21) { $charr['2'] = '<b>Chaos Castle IV</b>';}
if ($charr['2'] == 22) { $charr['2'] = '<b>Chaos Castle V</b>';}
if ($charr['2'] == 23) { $charr['2'] = '<b>Chaos Castle VI</b>';}
if ($charr['2'] == 24) { $charr['2'] = '<b>Kalima I</b>';}
if ($charr['2'] == 25) { $charr['2'] = '<b>Kalima II</b>';}
if ($charr['2'] == 26) { $charr['2'] = '<b>Kalima III</b>';}
if ($charr['2'] == 27) { $charr['2'] = '<b>Kalima IV</b>';}
if ($charr['2'] == 28) { $charr['2'] = '<b>Kalima V</b>';}
if ($charr['2'] == 29) { $charr['2'] = '<b>Kalima VI</b>';}
if ($charr['2'] == 30) { $charr['2'] = '<b>Valley Of Loren</b>';}
if ($charr['2'] == 31) { $charr['2'] = '<b>Lands Of Trial</b>';}
if ($charr['2'] == 32) { $charr['2'] = '<b>Devil Square</b>';}
if ($charr['2'] == 33) { $charr['2'] = '<b>Aida</b>';}
if ($charr['2'] == 34) { $charr['2'] = '<b>CryWolf</b>';}
if ($charr['2'] == 36) { $charr['2'] = '<b>Kalima VII</b>';}
if ($charr['2'] == 37) { $charr['2'] = '<b>Kantru</b>';}
if ($charr['2'] == 38) { $charr['2'] = '<b>Kantru Ruins</b>';}
if ($charr['2'] == 39) { $charr['2'] = '<b>Kantru Tower</b>';}
if ($charr['2'] == 40) { $charr['2'] = '<b>Silent Map</b>';}
if ($charr['2'] == 41) { $charr['2'] = '<b>Barrakas</b>';}
if ($charr['2'] == 42) { $charr['2'] = '<b>Refuge</b>';}
if ($charr['2'] == 45) { $charr['2'] = '<b>Illusion Temple I</b>';}
if ($charr['2'] == 46) { $charr['2'] = '<b>Illusion Temple II</b>';}
if ($charr['2'] == 47) { $charr['2'] = '<b>Illusion Temple III</b>';}
if ($charr['2'] == 48) { $charr['2'] = '<b>Illusion Temple IV</b>';}
if ($charr['2'] == 49) { $charr['2'] = '<b>Illusion Temple V</b>';}
if ($charr['2'] == 50) { $charr['2'] = '<b>Illusion Temple VI</b>';}
if ($charr['2'] == 51) { $charr['2'] = '<b>Elbeland</b>';}
if ($charr['2'] == 52) { $charr['2'] = '<b>Blood Castle VIII</b>';}
if ($charr['2'] == 53) { $charr['2'] = '<b>Chaos Castle VII</b>';}
if ($charr['2'] == 56) { $charr['2'] = '<b>Swamp Of Calmness</b>';}
if ($charr['2'] == 57) { $charr['2'] = '<b>Raklion</b>';}
if ($charr['2'] == 58) { $charr['2'] = '<b>Raklion II</b>';}
if ($charr['2'] == 62) { $charr['2'] = '<b>Santa Town</b>';}
if ($charr['2'] == 63) { $charr['2'] = '<b>Vulcan</b>';}
if ($charr['2'] == 64) { $charr['2'] = '<b>Duel Arena</b>';}
if ($charr['2'] == 70) { $charr['2'] = '<b>EmpireGuardian</b>';}
if ($charr['2'] == 71) { $charr['2'] = '<b>EmpireGuardian</b>';}
if ($charr['2'] == 72) { $charr['2'] = '<b>EmpireGuardian</b>';}
if ($charr['2'] == 79) { $charr['2'] = '<b>Loren Market</b>';}
if ($charr['2'] == 80) { $charr['2'] = '<b>Kalrutan</b>';}
if($row2['SCFisVip'] == '0')
{ $vip= '<img src="./_img/vip-no.gif">';}
else
{ $vip= '<img src="./_img/vip.gif">';}
echo "<center><tr>
<td align=left><font size=1 color=#666666><b><center>$rank</center></b></font></td>
<td align=left><font size=1 color=#000000><b><center>$accchar[0]</center></b></td>
<td align=left><font size=1 color=#000000><b><center>$charr[3]</center></b></td>
<td align=left><font size=1 color=#ed1c24><b><center>[$charr[4]]</center></b></td>
<td align=left><font size=1 color=#0076a3><b><center>$charr[1]</center></b></td>
<td align=left><font size=1 color=#00a650><center>$row[2]</center></td>
<td align=left><font size=1 color=#0076a3><b><center>$charr[2]</center></b></td>
<td align=left><font size=1 color=#0076a3><b><center>$vip</center></b></td>
</center></tr>
";
}
?>
</table>
</table>
thx bro, files work perfect MFS
Here like i promised:
1. Open _inc/mfs.class.php
2. Put somewhere this code:
3. Now open _mods/user_cp.php and replace the code with this:Code:// Reset Character VIP
function reset_character_vip()
{
global $resetmoney_vip;
global $resvid_vip;
global $bonus_points_vip;
global $reset_clear_inv_vip;
global $reset_clear_skill_vip;
global $max_resove_vip;
global $resetlevel_vip;
$character = secure($_POST['character']);
$account = secure($_POST['login']);
$password = secure($_POST['password']);
check_inject();
$query = mssql_query("Select clevel,resets,money,leveluppoint,Name,AccountID from Character where Name='$character' and AccountID='$account'");
$row = mssql_fetch_row($query);
$newmoney = $row[2]-$resetmoney_vip;
$newresets = $row[1] + 1;
if($row[1] >= 1) { $newpoints = $row[1] * $bonus_points_vip; }
$newleveluppoints = $row[3] + $bonus_points_vip;
$queryaccount = mssql_query("Select * from MEMB_INFO where memb___id='$account' and vip='2'");
$accountcheck = mssql_num_rows($queryaccount);
$queryonline = mssql_query("Select * from MEMB_STAT where memb___id='$account' and connectstat='1'");
$onlinecheck = mssql_num_rows($queryonline);
$querypassword = mssql_query("Select * from MEMB_INFO where memb___id='$account' and memb__pwd='$password'");
$passwordcheck = mssql_num_rows($querypassword);
$querychar = mssql_query("Select * from Character where Name='$character'");
$charcheck = mssql_num_rows($querychar);
if(empty($character) or empty($account) or empty($password)) { echo"<font color='red'>You cannot leave any fields blank!</font><br>"; $error=1; }
elseif($accountcheck <= 0) { echo"<font color=red><h2>You are not a <font color='gold'>GOLD</font> [<img src='imagens/layout/svip2.gif'></img>] vip member</h2> </font><br>"; $error=1; }
elseif($character != $row[4] || $account != $row[5]) { echo"<font color='orange'>Your Account name or Character name is not correct!</font><br>"; $error=1; }
elseif($passwordcheck <= 0) { echo"<font color='red'>Your Password does not exist in our database. Please go back and try again!</font><br>"; $error=1; }
elseif($charcheck <= 0) { echo"<font color='red'>Your Character does not exist in our database. Please go back and try again!</font><br>"; $error=1; }
else
{
if($newmoney < 0) { echo"<font color='red'>Character $character dones not have enough money to reset!</font><br>"; $error=1;}
if($row[0] < $resetlevel_vip) { echo"<font color='red'>Character $character must be $resetlevel_vip in order to reset!</font><br>"; $error=1;}
if($newresets > $max_resove_vip) { echo"<font color='red'>Character $character is maximum resets!</font><br>"; $error=1;}
if($onlinecheck >= 1) { echo"<font color='red'>Account $account is online!Please LogOff First!</font><br>"; $error=1;}
if($error != 1)
{
echo"<font color='green'>Character $character has been succesfully restarted.</font><br>";
if($resvid_vip == keep)
{
$a = mssql_query("Update Character Set Money='$newmoney',clevel='1',Experience='0',Resets='$newresets' where name='$character'");
}
elseif($resvid_vip == bonus)
{
$a = mssql_query("Update Character Set Money='$newmoney',clevel='1',Experience='0',Resets='$newresets',LevelUpPoint='$newpoints' where name='$character'");
}
elseif($resvid_vip == reset)
{
$a = mssql_query("Update Character Set Strength='25',Dexterity='25',Vitality='25',Energy='25',LeaderShip='25',Money='$newmoney',clevel='1',Experience='0',Resets='$newresets',LevelUpPoint='$newpoints' where name='$character'");
}
if($reset_clear_inv_vip == yes) { $b = mssql_query("UPDATE Character set Inventory=CONVERT(varbinary(1080), null) WHERE Name='$character'"); }
if($reset_clear_skill_vip == yes) { $c = mssql_query("Update Character set magiclist= CONVERT(varbinary(60), null) WHERE Name='$character'"); }
}
}
}
4. Now make new file in _mods/ with name "char_res_vip.php" and put this code inside:Code:<?
/*
MFS Team Web 0.5
by Diablo
http://famous-scripters.net/
*/
?>
<br><br>
<center>
<div>
<table width='400px'><tr><td align=left>
<div>
<div align="center"><i><font size="+1">Account</font></i><br />
<a href="index.php?page=register">Register</a><br />
<a href="index.php?page=lost_pass">Forgotten Password</a><br />
<a href="index.php?page=change_pass">Change Password</a><br />
<a href="vote/">Vote Reward</a><br />
<br />
<i><font size="+1">Character</font></i><br />
<a href="index.php?page=add_stats">Add Stats</a><br />
<a href="index.php?page=char_money">Clear Money</a><br />
<a href="index.php?page=char_res">Reset Character</a><br />
<a href="index.php?page=char_warp">Warp Character</a><br />
<a href="index.php?page=clear_inv">Clear Inventory</a><br />
<a href="index.php?page=clear_skills">Clear Skills</a><br />
<a href="index.php?page=clear_vault">Clear Vault</a><br />
<a href="index.php?page=clear_vault_money">Clear Vault Money</a><br />
<a href="index.php?page=unlock_vault">Change Vault Password</a><br />
<a href="index.php?page=char_disc">Disconnect Char</a><br />
<a href="index.php?page=char_gr">Grand Reset</a><br />
<a href="index.php?page=quest3">Quest 3</a><br />
<a href="index.php?page=trade_time">Trade Online Time</a><br /><br />
<i><font size="+1">VIP</font></i><br />
<a href="index.php?page=trade_timevip">Trade Online Time VIP</a><br />
<a href="index.php?page=char_res_vip">Reset Character VIP</a><br /></div>
</div>
<br />
</td></tr></table>
</div>
<br></center>
5.Now open config.php and replace it with this:Code:
<?
/*
MFS Team Web 0.5
by Diablo
http://famous-scripters.net/
*/
?>
<?php
if(isset($_POST['submit'])) { reset_character_vip(); }
?>
<table border=0 cellspacing=5 cellpadding=0>
<td width='280'>
<form name="" method="post" action="">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="70"><font color=>Character Name :</td><td width="100">
<input name="character" type="text" id="character" maxlength="10">
</td>
</tr>
<tr>
<td width="70"><font color=>Login ID :</td>
<td>
<input name="login" type="text" id="login" maxlength="10">
</td>
</tr>
<tr>
<td width="70"><font color=>Password :</td>
<td><input name="password" type="password" id="password" maxlength="16">
</td>
</tr>
<tr>
<td width="70"> </td>
</tr>
<tr>
<tr>
<td width="100" align="right"><input type="submit" class=button name="submit" value="Reset"></td>
<td><input type="reset" class=button name="Submit2" value="Clear"></td>
</tr>
</table>
</form>
</div>
</td>
</table>
EnjoyCode:<?
/*
MFS Team Web 0.5
by Diablo
http://famous-scripters.net/
*/
?>
<?php
// Database Config
error_reporting(E_ALL ^E_NOTICE ^E_WARNING);
$host = "127.0.0.1";
$database = "MuOnline";
$user = "sa";
$password = "Password";
require("_inc/phpcheck.php");
// Web Config
$mfs_title = "MFS Web 0.5 free"; // Web Title
//$mfs_lang = 'bg'; // Default Language (disabled for now, only by images)
//$md5 = "0"; // 0 - Disable , 1 - Enable (disabled for now not working right)
$pkmoney = "1000000"; // Zen For PK Clear
$maxstats = "32767"; // Max Stats
$grand_res_credits = "15"; // How much credits to give
$vote_chas = "24"; // Vote after time (in hours)
$vote_credits_win = "20"; // Credits per 1 vote
$vote_web_link = "http://famous-scripters.net/"; // Link to vote
$mfs[look_after_all] = 'yes'; // To look after all, Who where be.
// Reset Character
$resetmoney = "10000000"; // Zen For Reset
$resvid = "reset"; // save - keep stats , reset - reset stats
$bonus_points = "500"; // Bonus points per reset
$reset_clear_inv = "no"; // Clear Inventory after reset
$reset_clear_skill = "no"; // Clear Skills after reset
$max_resove = "150"; // Max Resets
$resetlevel = "400"; // Level need to reset
// Exchange Online Time
$resethours = "100";
$wincredits = "3";
// Enable Stuff
$grandreset = "1"; // Enable Grand Reset (1-Enable,0-Disable)
// VIP Config
$mfs_vip_connect = 'C:/Server/Data/ConnectMember2.txt';
$mfs_vip_table = 'MEMB_CREDITS';
$mfs_vip_column = 'credits';
$mfs_vip_column_memb = 'memb___id';
$mfs_vip_price = '200'; // How much credits will cost
$mfs_vip_zen = '200'; // How much zen will take
$mfs_vip_days = "30 days"; // How many days
$mfs_vip_exp = "20x"; // How much bonus exp will give
$mfs_vip_drop = "60x"; // How much bonus drop will give
$mfs_vip_itemdrop = "40x"; // How much bonus item drop will give
// VIP Reset Character
$resetmoney_vip = "10000000"; // Zen For Reset
$resvid_vip = "reset"; // save - keep stats , reset - reset stats
$bonus_points_vip = "500"; // Bonus points per reset
$reset_clear_inv_vip = "no"; // Clear Inventory after reset
$reset_clear_skill_vip = "no"; // Clear Skills after reset
$max_resove_vip = "150"; // Max Resets
$resetlevel_vip = "350"; // Level need to reset
// Admin Panel
$login_account = 'admin'; // Admin Account
$login_password = 'pass'; // Admin Password
// Server Config
$gsport = "55901"; // GameServer Port
$server = "MuOnline"; // Server Name
$version = "1.02k"; // Version
$exp = "400x"; // Expirience
$drop = "70%"; // Server Drop
$resetlvl = "400"; // Reset Level
$monsterhp = "0%"; // Monster HP
$blessbug = "OFF"; // Bless Bug
$jwllife = "100%"; // Jewel of Life Rate
$jwlbless = "100%"; // Jewel of Bless Rate
$jwlsoul = "100%"; // Jewel of Soul Rate
$jwlofsoulwithluck = "100%"; // Jewel Of Soul+Luck Rate
$rate10 = "40%"; // Item Rate +10
$rate11 = "30%"; // Item Rate +11
// Statistic Page Config
$IP = '127.0.0.1'; //Ip GameServer
$Port = '55901'; //Port GameServer
$IP2 = '127.0.0.1'; //Ip SiegeServer
$Port2 = '55919'; //Port SiegeServer
// Client Config
/* Full Client Mirrows */
$client_size_1 = "200mb"; // Client Mirrow 1 size
$client_size_2 = "200mb"; // Client Mirrow 2 size
$client_size_3 = "200mb"; // Client Mirrow 3 size
$client_from1 = "MegaUpload"; // Download from where?
$client_from2 = "FileFront"; // Download from where?
$client_from3 = "DepositFiles"; // Download from where?
$client_download_link1 = "http://"; // Download link
$client_download_link2 = "http://"; // Download link
$client_download_link3 = "http://"; // Download link
/* No Sound Client Mirrows */
$client_size_4 = "200mb"; // Client Mirrow 4 size
$client_size_5 = "200mb"; // Client Mirrow 5 size
$client_size_6 = "200mb"; // Client Mirrow 6 size
$client_from4 = "MegaUpload"; // Download from where?
$client_from5 = "FileFront"; // Download from where?
$client_from6 = "DepositFiles"; // Download from where?
$client_download_link4 = "http://"; // Download link
$client_download_link5 = "http://"; // Download link
$client_download_link6 = "http://"; // Download link
//======================= Don't edit here ===========================//
$msresults= mssql_query("select memb___id from MEMB_STAT where ConnectStat = 1");
$msresults2= mssql_query("select memb___id from MEMB_INFO");
$msresults3= mssql_query("select Name from Character");
$msresults4= mssql_query("select G_Name from Guild");
$online = mssql_num_rows ($msresults);
$total_accounts = mssql_num_rows ($msresults2);
$characters_online = mssql_num_rows ($msresults3);
$guilds = mssql_num_rows ($msresults4);
//======================= Don't edit here ===========================//
?>
Can you make better login not add everything by enter acc, pass, char name...
And What for need command in User CP Trade Online Time if don`t have .php file? Module trade_time not found. All new commands you added don`t have .php file!
And don`t show Grand Reset on new Rankings.php and on new rankings.php what you gave me don`t even show chars, nothing work.
Vip reset system don`t work correctly, I bought vip on web, and then went add reset, it gives me text You are not a GOLD vip member..
Oh, this web so much problems.. :@@ Everytime when offline on game need press Disconnect Char on web. So annoying :@
Can u give me ur skype diablo?
sorry little bad code in the table for vip reset , here now should work normal:
For your missing file "trade_time.php" , make new file in _mods/ with that name and put:Code:// Reset Character VIP
function reset_character_vip()
{
global $resetmoney_vip;
global $resvid_vip;
global $bonus_points_vip;
global $reset_clear_inv_vip;
global $reset_clear_skill_vip;
global $max_resove_vip;
global $resetlevel_vip;
$character = secure($_POST['character']);
$account = secure($_POST['login']);
$password = secure($_POST['password']);
check_inject();
$query = mssql_query("Select clevel,resets,money,leveluppoint,Name,AccountID from Character where Name='$character' and AccountID='$account'");
$row = mssql_fetch_row($query);
$newmoney = $row[2]-$resetmoney_vip;
$newresets = $row[1] + 1;
if($row[1] >= 1) { $newpoints = $row[1] * $bonus_points_vip; }
$newleveluppoints = $row[3] + $bonus_points_vip;
$queryaccount = mssql_query("Select * from MEMB_INFO where memb___id='$account' and vip='1'");
$accountcheck = mssql_num_rows($queryaccount);
$queryonline = mssql_query("Select * from MEMB_STAT where memb___id='$account' and connectstat='1'");
$onlinecheck = mssql_num_rows($queryonline);
$querypassword = mssql_query("Select * from MEMB_INFO where memb___id='$account' and memb__pwd='$password'");
$passwordcheck = mssql_num_rows($querypassword);
$querychar = mssql_query("Select * from Character where Name='$character'");
$charcheck = mssql_num_rows($querychar);
if(empty($character) or empty($account) or empty($password)) { echo"<font color='red'>You cannot leave any fields blank!</font><br>"; $error=1; }
elseif($accountcheck <= 0) { echo"<font color=red>You are not a VIP member <img src='./_img/vip-no.gif'></img></font><br>"; $error=1; }
elseif($character != $row[4] || $account != $row[5]) { echo"Your Account name or Character name is not correct!<br>"; $error=1; }
elseif($passwordcheck <= 0) { echo"<font color='red'>Your Password does not exist in our database. Please go back and try again!</font><br>"; $error=1; }
elseif($charcheck <= 0) { echo"<font color='red'>Your Character does not exist in our database. Please go back and try again!</font><br>"; $error=1; }
else
{
if($newmoney < 0) { echo"<font color='red'>Character $character dones not have enough money to reset!</font><br>"; $error=1;}
if($row[0] < $resetlevel_vip) { echo"<font color='red'>Character $character must be $resetlevel_vip in order to reset!</font><br>"; $error=1;}
if($newresets > $max_resove_vip) { echo"<font color='red'>Character $character is maximum resets!</font><br>"; $error=1;}
if($onlinecheck >= 1) { echo"<font color='red'>Account $account is online!Please LogOff First!</font><br>"; $error=1;}
if($error != 1)
{
echo"<font color='green'>Character $character has been succesfully restarted.</font><br>";
if($resvid_vip == keep)
{
$a = mssql_query("Update Character Set Money='$newmoney',clevel='1',Experience='0',Resets='$newresets' where name='$character'");
}
elseif($resvid_vip == bonus)
{
$a = mssql_query("Update Character Set Money='$newmoney',clevel='1',Experience='0',Resets='$newresets',LevelUpPoint='$newpoints' where name='$character'");
}
elseif($resvid_vip == reset)
{
$a = mssql_query("Update Character Set Strength='25',Dexterity='25',Vitality='25',Energy='25',LeaderShip='25',Money='$newmoney',clevel='1',Experience='0',Resets='$newresets',LevelUpPoint='$newpoints' where name='$character'");
}
if($reset_clear_inv_vip == yes) { $b = mssql_query("UPDATE Character set Inventory=CONVERT(varbinary(1080), null) WHERE Name='$character'"); }
if($reset_clear_skill_vip == yes) { $c = mssql_query("Update Character set magiclist= CONVERT(varbinary(60), null) WHERE Name='$character'"); }
}
}
}
If you dont like the new ranking, then use this old one:Code:
<?
/*
MFS Team Web 0.5
by Diablo
http://famous-scripters.net/
*/
?>
<?php
if(isset($_POST['submit'])) { online_hours(); }
?>
Trade you Online Hours for CREDITS !
<br>
Receive two credits per hour !<br> 1H Online = 2 Credits !<br>
<table border=0 cellspacing=5 cellpadding=0>
<td width='250'>
<form name="" method="post" action="">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="70">Login ID :</td>
<td>
<input name="login" type="text" id="login" maxlength="10">
</td>
</tr>
<tr>
<td width="70">Password :</td>
<td><input name="password" type="password" id="password" maxlength="16">
</td>
</tr>
<tr>
<td width="70"> </td>
</tr>
<tr>
<tr>
<td width="100" align="right"><input type="submit" class=button name="submit" value="Submit"></td>
<td><input type="reset" class=button name="Submit2" value="Reset"></td>
</tr>
</table>
</form>
</div>
</td>
</table>
Code:<?
/*
MFS Team Web 0.5
by Diablo
http://famous-scripters.net/
*/
?>
<?php
global $server;
?>
<table width='437' 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'>Level[Reset]</td>
<td align='center'>GR</td>
<td align='center'>Class</td>
<td align='center'>Status</td>
</tr>
</thead>
<?php
$topq = mssql_query("Select ToP 20 name,clevel,class,resets,GrResets from character order by resets desc, clevel desc");
for($i=0; $i < mssql_num_rows($topq); ++$i)
{
$rank = $i+1;
$row = mssql_fetch_row($topq);
if ($row[2] == 0) { $row[2] = "Dark Wizard"; }
if ($row[2] == 1) { $row[2] = "Soul Master"; }
if ($row[2] == 2) { $row[2] = "Grand Master"; }
if ($row[2] == 16) { $row[2] = "Dark Knight"; }
if ($row[2] == 17) { $row[2] = "Blade Knight"; }
if ($row[2] == 18) { $row[2] = "Blade Master"; }
if ($row[2] == 32) { $row[2] = "Elf"; }
if ($row[2] == 33) { $row[2] = "Muse Elf"; }
if ($row[2] == 34) { $row[2] = "High Elf"; }
if ($row[2] == 48) { $row[2] = "Magic Gladiator"; }
if ($row[2] == 50) { $row[2] = "Duel Master"; }
if ($row[2] == 64) { $row[2] = "Dark Lord"; }
if ($row[2] == 65) { $row[2]= "Lord Emperor"; }
if ($row[2] == 66) { $row[2] = "Lord Emperor"; }
if ($row[2] == 80) { $row[2] = "Summoner"; }
if ($row[2] == 81) { $row[2] = "Bloddy Summoner"; }
if ($row[2] == 82) { $row[2] = "Dimension Master"; }
if ($row[2] == 96) { $row[2] = "Rage Fighter"; }
if ($row[2] == 98) { $row[2] = "Fist Master"; }
$statusaq = mssql_query("select * from MEMB_STAT where memb___id='$row[0]' and connectstat='1'");
$statusa = mssql_num_rows($statusaq);
if($statusa != 0)
{
$statusq = mssql_query("select GameIDC From AccountCharacter where Id='$row[0]'");
$statusr = mssql_fetch_row($statusq);
if($statusr[0] == $row[0]) { $status = "<span class='online'><font color=green>Online</font></span>"; }
}
else { $status="<span class='offline'><font color=red>Offline</font></span>"; }
echo"
<tr>
<td align='center'>$rank.</td>
<td align='center'>$row[0]</td>
<td align='center'>$row[1][$row[3]]</td>
<td align='center'>$row[4]</td>
<td align='center'>$row[2]</td>
<td align='center'>$status</td>
</tr>
";
}
?>
</table>
</td></tr>
</table>
how do i enable login module ? i mean i dont see any Admin Login panel :(
this web is maded without login panel, like muweb or others, this is more simply and secured
you can use the admin panel in the web
You don`t understand me correctly, not I doesn`t like it, but it doesn`t work correctly, test and try again, I will infrom you. But what`s wrong, why every time when I offline game, I have to Disconnect on web, it`s so annoying..
its not website problem , the server need to be fixed that you play, like add MMT Joinserver+autodisconect module and the new Bor Team CS 2012
Lol, this is not the first web, what I use, in other websites, disconnect problem works perfect, don`t need to use Disconnect command, only in this web..
I tried VIP reset, I bought vip - The operation was successful! You have 1086 credits. Then I go to UserCP, reset character vip and I enter data, but it says - You are not a VIP member !
Edit: Tried old rankings, don`t know, but it`s showing me offline always.. Status-Offline
but in Online users i`m online.
Edit: Online Hours trade error - Fatal error: Call to undefined function online_hours() in C:\xampp\htdocs\_mods\trade_time.php on line 9
the admin panel is in : _modcp/
Edit: i sow the problem with the vip, i will fix it
in config.php is the admin acc and password
diablo, accept my invatation on skype, I invated you.
I have some big problems, what need to fix.
I can`t fix hall of Fame and rankings.. :(
And this web don`t work correctly on google chrome too.
That`s all I have to fix. Can anyone help?