-
re: [Release] MFS Team Web 0.5 Update 4
found it , but i get this error
Fatal error: Call to undefined function char_online() in C:\xampp\htdocs\_modcp\modules\editchar.php on line 325
if(!char_online($row[0])){ $status[0] ='<center><img src=./images/Offline.gif width=12 height=12 ></center>';
}
if(char_online($row[0])){ $status[0] ='<center><img src=./images/Online.gif width=12 height=12 ></center>';
-
re: [Release] MFS Team Web 0.5 Update 4
Vip system fixed:
1. open _inc/mfs_class.php find function get_vip()
2. replace the code with this:
Code:
function get_vip()
{
$character = secure($_POST['character']);
$account = secure($_POST['login']);
$password = secure($_POST['password']);
check_inject();
global $mfs_vip_connect;
global $mfs_vip_price;
global $mfs_vip_table;
global $mfs_vip_column;
global $mfs_vip_column_memb;
global $mfs_vip_zen;
$queryaccount = mssql_query("Select * from MEMB_INFO where memb___id='$account'");
$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);
$query = mssql_query("Select Money from Character where Name='$character'");
$row = mssql_fetch_row($query);
$newmoney = $row[0]-$mfs_vip_zen;
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'>Your Login does not exist in our database. Please go back and try again!</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($row2[0] < 0) { echo"<font color='red'>Character $character dont have enough credits!</font><br>"; $error=1;}
if($newmoney < 0 OR $row[0] <= 0) { echo"<font color='red'>Character $character dont have enough zen!</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 "";
{
$creds_get=mssql_query("SELECT $mfs_vip_column FROM $mfs_vip_table WHERE $mfs_vip_column_memb='$account'");
$creds=mssql_fetch_row($creds_get);
$file=fopen($mfs_vip_connect,"a+");
if (isset($_POST['submit'])) {
$new_creds=$creds[0]-$mfs_vip_price;
if ($new_creds<0) {echo $die_start . "You do not have enough credits to purchase." . $die_end;}
else {
mssql_query("UPDATE $mfs_vip_table SET $mfs_vip_column='$new_creds' WHERE $mfs_vip_column_memb='$account'");
mssql_query("UPDATE Character SET Money='$newmoney' WHERE Name='$character'");
mssql_query("UPDATE MEMB_INFO SET vip='1' WHERE memb___id='$account'");
fwrite($file, "\n$account");
fclose($file);
echo $okey_start ."<font color=green>The operation was successful! You have $new_creds credits!</font>". $okey_end."<br>";
}
} else {
if (!is_file($mfs_vip_connect)) {echo $die_start . "ConnectServer.txt was not found" . $die_end;}
elseif (!is_writeable($mfs_vip_connect)) {echo $die_start . "Write in file failed." . $die_end;}
elseif (!is_readable($mfs_vip_connect)) {echo $die_start . "Read the file failed." . $die_end;}
else {
if (eregi($login,file_get_contents($mfs_vip_connect))) {
$status="<font color='#DAA520'>VIP</font>";
$button_buy='<input disabled name="buy_start" type="submit" value="Buy VIP">';
} else {
$status="<font color='grey'>User</font>";
$button_buy='<div align="center" class="spoilertop" onClick="openClose('."'1'".')"><input name="buy_start" type="submit" value=" Buy VIP "></div>';
$button_no='<span style="padding-left: 15px" class="spoilertop" onClick="openClose('."'1'".')"><input name="no" type="button" value=" No "></span>';
}
echo "
<table class='sort-table' align='center' border='0' cellpadding='0' cellspacing='0'>
<thead>
<tr>
<td>Account</td><td>Status</td><td>Credits</td><td>payment</td><td>value</td>
</tr>
</thead>
<tr>
<td align='center'>$login</td><td align='center'>$status</td><td align='center'>$creds[0] cr</td><td align='center'>$button_buy</td><td align='center'>$mfs_vip_price cr</td>
</tr>
</table>
<div align='center' class='spoilerbox' id='1' style='display:none'><br>
<form action='' method='post'>
<table class='sort-table' cellpadding='0' border='0' cellspacing='1' align='center'>
<tr>
<td height='30'>Attention! Do you really want to buy access to the VIP server for $mfs_vip_price credits?</td>
</tr>
</table>
<br>
<input type='submit' name='submit' value=' Yes '>$button_no
</form>
</div>
";
}
}
}
}
}
}
Try it now work normal
Quote:
Originally Posted by
dexterul
found it , but i get this error
Fatal error: Call to undefined function char_online() in C:\xampp\htdocs\_modcp\modules\editchar.php on line 325
if(!char_online($row[0])){ $status[0] ='<center><img src=./images/Offline.gif width=12 height=12 ></center>';
}
if(char_online($row[0])){ $status[0] ='<center><img src=./images/Online.gif width=12 height=12 ></center>';
what you do to give you this error so i can see it
-
re: [Release] MFS Team Web 0.5 Update 4
can i ask you a lil favor , can you please post an "update folder" with the new changes ... new bug fixes , soon you will have to make an autoupdate heh , joking , but just put the new made files in one folder and upload it , so i can take those fixed ones and put them in my htdocs folder :D
please and thanks for your work , the website is really sweet :D
-
re: [Release] MFS Team Web 0.5 Update 4
soon i will reupload the links to the 0.5 version update
-
re: [Release] MFS Team Web 0.5 Update 4
is there any chance that you would be doing that tonight ?
btw , im adding you to skype
-
re: [Release] MFS Team Web 0.5 Update 4
dextrul, you tried register? I can`t register, it doesn`t save for me. Have problems with register, plz help!
-
re: [Release] MFS Team Web 0.5 Update 4
I have a problem with Grand Reset System, please help me!
- How to fix this ? I want to be like this: 300 Resets = 1 Grand Reset = 30000 Credits
1. - I click on the Grand Reset System:
http://i44.tinypic.com/o6abs2.png
2. - And this appears: (Text with red is edited by me on _mods/char_gr.php and _inc/mfs_class.php)
2.1. - I log in:
http://i43.tinypic.com/s5cphu.png
3. And this appears: (I did what it says in the picture)
http://i39.tinypic.com/14t6df9.png
4. This is the results: ( 1 Reset = 1 Grand Reset = 30.000 Credits) [300 Resets = 300 Grand Resets = 9.000.000 Credits]
http://i42.tinypic.com/168y5p4.png
5. Results:
http://i39.tinypic.com/20r2y54.png
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@domain and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.4 (Win32) PHP/5.2.1 Server at domain Port 80
I've got this error. i'm using appserver and I've configured confid.php what is the problem?
-
re: [Release] MFS Team Web 0.5 Update 4
Account Fsss has been succsesfuly created on 2012-01-24 22:52:11!
works good for me ....
Quote:
Originally Posted by
mediki87
I've got this error. i'm using appserver and I've configured confid.php what is the problem?
try with xampp , i think its more stable ...
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
mediki87
I've got this error. i'm using appserver and I've configured confid.php what is the problem?
1. Go to \Apache2.2\conf\httpd.conf
2. Search for: LoadModule rewrite_module modules/mod_rewrite.so
3. Delete this tag " # " from the front
4. Restart your Apache.
-
re: [Release] MFS Team Web 0.5 Update 4
detox , can you please help me with something if you want ?
can you please tell me how to add webshop/vip/voterewardsystem ? and post some links too if you want ... thx in advance
-
re: [Release] MFS Team Web 0.5 Update 4
Vote Reward & VIP Systems its already in the website:
http://localhost/ ?page= vip
http://localhost/vote/
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
Detox
where can i get webshop ?
also how can i edit,cancel,move pages/modules ?
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
dexterul
where can i get webshop ?
also how can i edit,cancel,move pages/modules ?
You can find a lot of WebShop's on the internet, and tutorials to edit !
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
Detox
You can find a lot of WebShop's on the internet, and tutorials to edit !
do you have some chat application ? yahoo messenger skype , anything ?
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
Detox
thanks for reply i will take a look on it
Edit: tested working normal
in config.php:
Code:
$grand_res_credits = "15";
Its maded 1 reset * credits , so if you had 1 reset = 15 credits , 2 resets = 30 credits
It's 2*gr_credits , the formula
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
Detox
1. Go to \Apache2.2\conf\httpd.conf
2. Search for: LoadModule rewrite_module modules/mod_rewrite.so
3. Delete this tag " # " from the front
4. Restart your Apache.
thank you very much
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
mediki87
thank you very much
For nothing.
Quote:
Originally Posted by
diablo71
thanks for reply i will take a look on it
Edit: tested working normal
in config.php:
Code:
$grand_res_credits = "15";
Its maded 1 reset * credits , so if you had 1 reset = 15 credits , 2 resets = 30 credits
It's 2*gr_credits , the formula
1. So if i put:
Code:
$grand_res_credits = "100";
-At 300 Resets will receive 30.000 Credits and 300 Grand Resets
2. In that post i'll mean that i could fix to work like this:
At 300 Resets, player give 1 Grand Reset and receive 30.000 Credits.
-
re: [Release] MFS Team Web 0.5 Update 4
you can make the code like you like it
by default exchange resets for 1 GR, i will update this script to ask resets for 1 GR
-
re: [Release] MFS Team Web 0.5 Update 4
Quote:
Originally Posted by
diablo71
you can make the code like you like it
Can you tell me how i make it like that ?
-
re: [Release] MFS Team Web 0.5 Update 4
open _inc/mfs_class.php and find dogrand_reset() and edit it like you want it
-
re: [Release] MFS Team Web 0.5 Update 4
Code:
function dogrand_reset()
{
$account = secure($_SESSION['user']);
global $grand_res_credits;
if(isset($_POST['exchange']))
{
$account = secure($_SESSION['user']);
$character = secure($_POST['character']);
$resets = secure($_POST['resets']);
check_inject();
$querychar = mssql_query("Select resets,grresets from character where name='$character'");
$char = mssql_fetch_row($querychar);
$newresets = $char[0] - $resets;
$newgrresets = $char[1] + $resets;
if($newresets < 0) { echo"<br><font color='red'>Not enought resets!</font><br>"; $error = 1; }
elseif($resets < 0) { echo"<br><font color='red'>Error! You Can't put - numbers!</font><br>"; $error = 1; }
elseif($error != 1) {
$credits = $resets * $grand_res_credits;
echo"<br><font color='green'>You exchange $resets reset(s) for $credits credits</font><br>";
$a = mssql_query("Update Character set resets='$newresets',GrResets='$newgrresets' where name='$character'");
$b = mssql_query("Update MEMB_CREDITS set credits = credits+$credits WHERE memb___id='$account'");
}
}
$query = mssql_query("Select name,resets from character where AccountID='$account'");
echo"
<form action='' name='' method='POST'>
<select id='character' name='character'><optgroup label='Select a character'>
";
for($i=0;$i < mssql_num_rows($query);++$i)
{
$row = mssql_fetch_row($query);
echo"
<option value='$row[0]'>$row[0] [$row[1]]</option>
";
}
echo"</select>
<br><input type='text' size='25' id='resets' name='resets' />
<br><input type='submit' maxlength='2' value='Exchange' name='exchange'>
</form>
<br>300 Resets = 1 Grand Reset !
<br>1 Grand Reset = $grand_res_credits Credits!
";
}
What i have to edit to have: 300 Resets = 1 Grand Reset
-
re: [Release] MFS Team Web 0.5 Update 4
Detox i made it like this , test it is it what you want:
1. open _inc/mfs_class.php find : dogrand_reset() and replace the code with this one:
Code:
function dogrand_reset()
{
$account = secure($_SESSION['user']);
global $grand_res_credits;
global $grand_res_resets;
if(isset($_POST['exchange']))
{
$account = secure($_SESSION['user']);
$character = secure($_POST['character']);
$resets = secure($_POST['resets']);
check_inject();
$querychar = mssql_query("Select resets,grresets from character where name='$character'");
$char = mssql_fetch_row($querychar);
$newresets = $char[0] - $resets;
$newgrresets = $char[1] + 1;
if($newresets < 0) { echo"<br><font color='red'>Not enought resets!</font><br>"; $error = 1; }
elseif($resets < $grand_res_resets) { echo"<br><font color='red'>Error! You need more resets.</font><br>"; $error = 1; }
elseif($error != 1) {
$credits = $resets * $grand_res_credits;
echo"<br><font color='green'>You exchange $resets reset(s) for $credits credits</font><br>";
$a = mssql_query("Update Character set resets='$newresets',GrResets='$newgrresets' where name='$character'");
$b = mssql_query("Update MEMB_CREDITS set credits = credits+$credits WHERE memb___id='$account'");
}
}
$query = mssql_query("Select name,resets from character where AccountID='$account'");
echo"
<form action='' name='' method='POST'>
<select id='character' name='character'><optgroup label='Select a character'>
";
for($i=0;$i < mssql_num_rows($query);++$i)
{
$row = mssql_fetch_row($query);
echo"
<option value='$row[0]'>$row[0] [$row[1]]</option>
";
}
echo"</select>
<br><input type='text' size='25' id='resets' name='resets' />
<br><input type='submit' maxlength='2' value='exchange' name='exchange'>
</form>
<br>Each one sold reset is equivalent to One 'GR' in Rankings !
<br>1 Reset = $grand_res_credits Credits!
";
}
2. Open config.php find: $grand_res_credits and after him add:
Code:
$grand_res_resets = "2"; // How much resets will need to have
Test and reply
-
re: [Release] MFS Team Web 0.5 Update 4
Code:
$grand_res_credits = "100"; // How much credits to give
$grand_res_resets = "300"; // How much resets will need to have
Thanks a lot, works perfect! 300 Resets = 1 Grand Reset & 30.000 Credits !
And now i have another problem: (All characters show Offline)
http://i41.tinypic.com/25p34lk.png
But there is Online:
http://i40.tinypic.com/o8b4gz.png
-
re: [Release] MFS Team Web 0.5 Update 4