PDA

View Full Version : [MU] WebMu 3.5a_support_ Class7 bị lỗi không đổi được Giới tính



dungtienvu0
21-06-12, 03:28 PM
anh em ai đã gặp chưa tư vấn hộ em cách sử lí với. nó toàn báo là nhân vật, giới tính không hợp lệ. mặc dù em đã thử các kiểu theo hướng dẫn rồi.

ByHackker
21-06-12, 04:45 PM
Bạn Nên Sài NBB Là Tốt Nhất :^o

cuocdoisp
21-06-12, 07:28 PM
website này cũ lắm rồi , ko phù hợp nữa đâu . Sài cái khác đi cậu

dungtienvu0
21-06-12, 07:57 PM
Bạn Nên Sài NBB Là Tốt Nhất :^o

vậy bạn có hướng dẫn nào chi tiết ""hướng dẫn cài web NBB" không??? mình làm thử mấy lần nhưng không thành công , không biết cách kết nối thế nào... hoặc có bản nao cài tương tự như WebMu 3.5a_support_ Class7 mà đẩy đủ chức năng không( đổi giới tính đc)

luutrunhac
21-06-12, 09:40 PM
Đổi hoàn toàn bình thường bạn à. Vì bạn xài server mới code nhân vạt khác nên nó mới báo lỗi thôi. Chỉ cần chỉnh lại là đc. Web nay mình đã xài và add thêm các chức năng bình thường.

dungtienvu0
21-06-12, 11:25 PM
Đổi hoàn toàn bình thường bạn à. Vì bạn xài server mới code nhân vạt khác nên nó mới báo lỗi thôi. Chỉ cần chỉnh lại là đc. Web nay mình đã xài và add thêm các chức năng bình thường.

oh vậy ah hướng dẫn chi tiết cho mình 1 tí nhé. chỉnh ở Navicat 8 hay chinh ở msql2000 vậy bạn. mình cũng chưa biết add thêm các chức năng vào web như thế nào......

luutrunhac
22-06-12, 01:08 AM
chỉnh o website ấy. bạn vào thư mục inc_ mở file doi_gioitinh.cl.php thay bằng code sau:


<?php
if (eregi("doi_gioitinh.cl.php", $_SERVER['SCRIPT_NAME'])) { die(""); }
require("error.php");
require("anti.php");
if(isset($_SESSION['t_k']) && isset($_SESSION['m_k']) && isset($_POST['charname']) && isset($_POST['classname']) && isset($_POST['loai'])){
$login = stripslashes($_SESSION['t_k']);
$charid =stripslashes($_POST['charname']);
$classid =intval($_POST['classname']);
$payid =stripslashes($_POST['loai']);
include('mssql.php');
if ($payid !="Cash" && $payid !="Zen")
{ die(paybug); }
else if (strlen($login) < 4 or strlen($login) > 10 || eregi("[^a-zA-Z0-9]", $login))
{ die(loiacc); }
else if (strlen($charid) < 4 or strlen($charid) > 10 || eregi("[^a-zA-Z0-9]", $charid))
{ die(char_fail); }
else if ($classid !=0 && $classid !=16 && $classid !=32 && $classid !=48 && $classid !=64 && $classid !=80 & $classid !=96)
{ die(bugclass); }
else
{
include('fuc.php');
include('cauhinh/doi_gioitinh.ch.php');
include('cauhinh/code.php');
$a =mssql_query("SELECT cLevel,Class FROM Character WHERE AccountID ='".chuvaso($login)."' and Name ='".secure($charid)."'");
if(mssql_num_rows($a)==1)
{
$cota =mssql_fetch_row($a);
$a1 =mssql_query("SELECT GameIDC FROM AccountCharacter WHERE id ='".chuvaso($login)."' and GameIDC ='".secure($charid)."'");
if(mssql_num_rows($a1)==0){
switch($payid)
{
case "Zen";
$pay =",nganhang_zen";
$idbank ="bankzen";
break;
case "Cash";
$pay =",CSPoints";
$idbank ="bankcash";
break;
}
$b =mssql_query("SELECT vip $pay FROM MEMB_INFO WHERE memb___id ='".chuvaso($login)."'");
$cotb =mssql_fetch_row($b);
$conn=odbc_pconnect($dbmssql['db'],$dbmssql['use'],$dbmssql['pw']);
if (!$conn)
{exit("ODBC Connection Failed: ");}
$sql="SELECT Inventory FROM Character WHERE Name ='".secure($charid)."'";
$rs=odbc_exec($conn,$sql);
if (!$rs)
{exit("Error in SQL");}
while (odbc_fetch_row($rs))
{
$compname=odbc_result($rs,"Inventory");
$inventory = bin2hex($compname);
$inventory = strtoupper($inventory);
$inventorya = substr($inventory, 0, 384);
$inventoryb = substr($inventory, 384, 3072);
$inventoryc = $code['vatdung'].$inventoryb;
}
include("$inc_/char.cl.php");
$thuoc = dongtoc($classid);
switch($payid)
{
case "Zen";
$money = $ch1['payzen'];
$upmoney =number_format($cotb[1]-$money, "", ",", "");
$msgmoney = bankzen;
$upclass ="
Update Character set Class ='$classid',Inventory=CONVERT(varbinary(1728), 0x$inventoryc) where Name ='".secure($charid)."';
Update MEMB_INFO set nganhang_zen ='$upmoney' where memb___id ='".chuvaso($login)."';
";
break;
case "Cash";
$money = $ch1['paycash'];
$upmoney =number_format($cotb[1]-$money, "", ",", "");
$msgmoney = bankcash;
$upclass ="
Update Character set Class ='$classid',Inventory=CONVERT(varbinary(1728), 0x$inventoryc) where Name ='".secure($charid)."';
Update MEMB_INFO set CSPoints ='$upmoney' where memb___id ='".chuvaso($login)."';
";
break;
}

if($cotb[0]==0 && $payid=="Zen")
{
if($cota[0] < $ch1['relvl'])
{die(relvl.$ch1['relvl']);}
}
if($cota[1] == $classid)
{die(inclass.$thuoc[name]);}
else if($cotb[1] < $money)
{die($msgmoney);}
else
{
if($inventorya==$code['vatdung'])
{
if(mssql_query($upclass))
{echo("<label class=xanh><b>$charid</b> đổi giới tính thành công sang <b>".$thuoc[name]."</b></label><script type=\"text/javascript\">
$('#$idbank').html(formatNumber($upmoney));</script>"); }
else{die(bugquery);}
}
else
{die("<div class=do><b>$charid</b> ".reslot);}
}
}
else{die(gamechange);}
}
else{die(chardie);}
}
}
else{die($nologin);}
?>

dungtienvu0
22-06-12, 10:39 AM
chỉnh o website ấy. bạn vào thư mục inc_ mở file doi_gioitinh.cl.php thay bằng code sau:


<?php
if (eregi("doi_gioitinh.cl.php", $_SERVER['SCRIPT_NAME'])) { die(""); }
require("error.php");
require("anti.php");
if(isset($_SESSION['t_k']) && isset($_SESSION['m_k']) && isset($_POST['charname']) && isset($_POST['classname']) && isset($_POST['loai'])){
$login = stripslashes($_SESSION['t_k']);
$charid =stripslashes($_POST['charname']);
$classid =intval($_POST['classname']);
$payid =stripslashes($_POST['loai']);
include('mssql.php');
if ($payid !="Cash" && $payid !="Zen")
{ die(paybug); }
else if (strlen($login) < 4 or strlen($login) > 10 || eregi("[^a-zA-Z0-9]", $login))
{ die(loiacc); }
else if (strlen($charid) < 4 or strlen($charid) > 10 || eregi("[^a-zA-Z0-9]", $charid))
{ die(char_fail); }
else if ($classid !=0 && $classid !=16 && $classid !=32 && $classid !=48 && $classid !=64 && $classid !=80 & $classid !=96)
{ die(bugclass); }
else
{
include('fuc.php');
include('cauhinh/doi_gioitinh.ch.php');
include('cauhinh/code.php');
$a =mssql_query("SELECT cLevel,Class FROM Character WHERE AccountID ='".chuvaso($login)."' and Name ='".secure($charid)."'");
if(mssql_num_rows($a)==1)
{
$cota =mssql_fetch_row($a);
$a1 =mssql_query("SELECT GameIDC FROM AccountCharacter WHERE id ='".chuvaso($login)."' and GameIDC ='".secure($charid)."'");
if(mssql_num_rows($a1)==0){
switch($payid)
{
case "Zen";
$pay =",nganhang_zen";
$idbank ="bankzen";
break;
case "Cash";
$pay =",CSPoints";
$idbank ="bankcash";
break;
}
$b =mssql_query("SELECT vip $pay FROM MEMB_INFO WHERE memb___id ='".chuvaso($login)."'");
$cotb =mssql_fetch_row($b);
$conn=odbc_pconnect($dbmssql['db'],$dbmssql['use'],$dbmssql['pw']);
if (!$conn)
{exit("ODBC Connection Failed: ");}
$sql="SELECT Inventory FROM Character WHERE Name ='".secure($charid)."'";
$rs=odbc_exec($conn,$sql);
if (!$rs)
{exit("Error in SQL");}
while (odbc_fetch_row($rs))
{
$compname=odbc_result($rs,"Inventory");
$inventory = bin2hex($compname);
$inventory = strtoupper($inventory);
$inventorya = substr($inventory, 0, 384);
$inventoryb = substr($inventory, 384, 3072);
$inventoryc = $code['vatdung'].$inventoryb;
}
include("$inc_/char.cl.php");
$thuoc = dongtoc($classid);
switch($payid)
{
case "Zen";
$money = $ch1['payzen'];
$upmoney =number_format($cotb[1]-$money, "", ",", "");
$msgmoney = bankzen;
$upclass ="
Update Character set Class ='$classid',Inventory=CONVERT(varbinary(1728), 0x$inventoryc) where Name ='".secure($charid)."';
Update MEMB_INFO set nganhang_zen ='$upmoney' where memb___id ='".chuvaso($login)."';
";
break;
case "Cash";
$money = $ch1['paycash'];
$upmoney =number_format($cotb[1]-$money, "", ",", "");
$msgmoney = bankcash;
$upclass ="
Update Character set Class ='$classid',Inventory=CONVERT(varbinary(1728), 0x$inventoryc) where Name ='".secure($charid)."';
Update MEMB_INFO set CSPoints ='$upmoney' where memb___id ='".chuvaso($login)."';
";
break;
}

if($cotb[0]==0 && $payid=="Zen")
{
if($cota[0] < $ch1['relvl'])
{die(relvl.$ch1['relvl']);}
}
if($cota[1] == $classid)
{die(inclass.$thuoc[name]);}
else if($cotb[1] < $money)
{die($msgmoney);}
else
{
if($inventorya==$code['vatdung'])
{
if(mssql_query($upclass))
{echo("<label class=xanh><b>$charid</b> đổi giới tính thành công sang <b>".$thuoc[name]."</b></label><script type=\"text/javascript\">
$('#$idbank').html(formatNumber($upmoney));</script>"); }
else{die(bugquery);}
}
else
{die("<div class=do><b>$charid</b> ".reslot);}
}
}
else{die(gamechange);}
}
else{die(chardie);}
}
}
else{die($nologin);}
?>

rất cám ơn bạn , minh đã thử nhưng không đc . bây giờ thì nó toàn báo là " nhân vật này không tồn tại"

dungtienvu0
22-06-12, 11:28 PM
có bác nào giúp dùm em cái.................