LoveBol
03-08-08, 08:32 AM
Sau 1 hồi tụi member kêu ca là không nhận được nhiệm vụ, đọc lại code web mới biết tụi MuWeb code thiếu. Em đã test cũng khá kỹ rồi nên share code sửa cho anh em
File : mu\includes\bank.class.php
Tìm tới :
function do_change_class($new_class,$character)
{
Thêm đằng sau
$questnothing = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
if(($new_class=="0")||($new_class=="16")||($new_class=="32")||($new_class=="80")){
$questnothing = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
}
if($new_class=="1"){
$questnothing = "EAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
}
if($new_class=="17"){
$questnothing = "AAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
//Bk da nhan nv combo
}
if($new_class=="33"){
$questnothing = "EAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
}
if($new_class=="81"){
$questnothing = "EAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9C";
}
Tìm tới
$db->Execute("UPDATE Character SET [Resets]='$reset_change', Thêm vào sau
[Quest]=0x$questnothing,
Nói chung là dòng lệnh đó như sau :
$db->Execute("UPDATE Character SET [Resets]='$reset_change',[Quest]=0x$questnothing,[Class]='$new_class',[strength]='0',[dexterity]='0',[vitality]='0',[energy]='0',[Life]='2',[MaxLife]='2',[Mana]='2',[MaxMana]='2',[MapNumber]='0',[MapPosX]='143',[MapPosY]='134',[inventory]=CONVERT(varbinary(1080), null),[magiclist]= CONVERT(varbinary(180), null) WHERE Name='$info[character]' and AccountID='$info[login]'");
Good luck :byebye:
File : mu\includes\bank.class.php
Tìm tới :
function do_change_class($new_class,$character)
{
Thêm đằng sau
$questnothing = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
if(($new_class=="0")||($new_class=="16")||($new_class=="32")||($new_class=="80")){
$questnothing = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
}
if($new_class=="1"){
$questnothing = "EAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
}
if($new_class=="17"){
$questnothing = "AAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
//Bk da nhan nv combo
}
if($new_class=="33"){
$questnothing = "EAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
}
if($new_class=="81"){
$questnothing = "EAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9C";
}
Tìm tới
$db->Execute("UPDATE Character SET [Resets]='$reset_change', Thêm vào sau
[Quest]=0x$questnothing,
Nói chung là dòng lệnh đó như sau :
$db->Execute("UPDATE Character SET [Resets]='$reset_change',[Quest]=0x$questnothing,[Class]='$new_class',[strength]='0',[dexterity]='0',[vitality]='0',[energy]='0',[Life]='2',[MaxLife]='2',[Mana]='2',[MaxMana]='2',[MapNumber]='0',[MapPosX]='143',[MapPosY]='134',[inventory]=CONVERT(varbinary(1080), null),[magiclist]= CONVERT(varbinary(180), null) WHERE Name='$info[character]' and AccountID='$info[login]'");
Good luck :byebye: