strancongtu2
03-05-12, 04:56 PM
Như tiêu đề ở trên, mình dùng 1.85 của Mr.Cường share. Bình thường nếu ngân hàng ko có ngọc thì ko rs dc (check ngân hàng ok), nhưng khi có ngọc và rs thành công nhưng ngọc trong ngân hàng vẫn còn nguyên. Mình sẽ up lên code file do_reset_nozen2.php, file mình tìm thấy code trừ ngọc:
<?php// Reset nhan vat la Darklordif ($row[4] == $class_dl_1 OR $row[4] == $class_dl_2) { $sql_reset_script = "UPDATE Character SET Clevel=1,Experience=0,Money=$resetmoney,LevelUpPoi nt=0,pointdutru=$resetpoint,Resets=$resetup,Streng th=$class_stat[1],Dexterity=$class_stat[2],Vitality=$class_stat[3],Energy=$class_stat[4],Life=$class_stat[5],MaxLife=$class_stat[6],Mana=$class_stat[7],MaxMana=$class_stat[8],MapNumber=$class_stat[9],MapPosX=$class_stat[10],MapPosY=$class_stat[11],MapDir=0,Leadership=$leadership,isThuePoint=0,NoR esetInDay=$CountNoResetInDay,NoResetInMonth=NoRese tInMonth+1,Resets_Time=$timestamp,ResetVIP=0,Point Thue=0 WHERE name='$character'"; $sql_reset_exec = $db->Execute($sql_reset_script) or die("Lỗi Query: $sql_reset_script");}//Reset nhan vat khong phai la DarkLordelse { $sql_reset_script = "UPDATE Character SET Clevel=1,Experience=0,Money=$resetmoney,LevelUpPoi nt=0,pointdutru=$resetpoint,Resets=$resetup,Streng th=$class_stat[1],Dexterity=$class_stat[2],Vitality=$class_stat[3],Energy=$class_stat[4],Life=$class_stat[5],MaxLife=$class_stat[6],Mana=$class_stat[7],MaxMana=$class_stat[8],MapNumber=$class_stat[9],MapPosX=$class_stat[10],MapPosY=$class_stat[11],MapDir=0,Leadership=$class_stat[12],isThuePoint=0,NoResetInDay=$CountNoResetInDay,NoR esetInMonth=NoResetInMonth+1,Resets_Time=$timestam p,ResetVIP=0,PointThue=0 WHERE name='$character'"; $sql_reset_exec = $db->Execute($sql_reset_script) or die("Lỗi Query: $sql_reset_script"); //All Quest For Class 3 if ($row[4] == $class_dw_3 OR $row[4] == $class_dk_3 OR $row[4] == $class_elf_3) { $sql_all_quest = $db->Execute($all_quest); } $add_xoaykiem = "UPDATE Character SET MagicList=0x2c000043000044000045000046000047000029 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000 WHERE name='$character'"; $add_muitenvotan = "UPDATE Character SET MagicList=0x2e00004300004400004500004600004700004d 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000 WHERE name='$character'"; $add_skill_sum = "UPDATE Character SET MagicList=0xda0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000 WHERE name='$character'"; //Add Xoay kiem cho DK if ($row[4] == $class_dk_1 OR $row[4] == $class_dk_2 OR $row[4] == $class_dk_3) { $sql_add_xoaykiem = $db->Execute($add_xoaykiem); } //Add Mui ten vo tan cho Elf C3 if ($row[4] == $class_elf_3) { $sql_add_muitenvotan = $db->Execute($add_muitenvotan); } //Add Skill cho Summoner if ($row[4] == $class_sum_1 OR $row[4] == $class_sum_2 OR $row[4] == $class_sum_3) { $sql_add_skill_sum = $db->Execute($add_skill_sum); }}
$tru_jewel = $db->Execute("UPDATE MEMB_INFO SET jewel_chao=jewel_chao-$chao,jewel_cre=jewel_cre-$cre,jewel_blue=jewel_blue-$blue,vpoint=$vpointnew WHERE memb___id='$account'");//Ghi vào Log$content = "$character Reset lần thứ $resetup";$Date = date("h:iA, d/m/Y");$file = "log/modules/log_resets.txt";$fp = fopen($file, "a+");fputs ($fp, $account."|".$content."|".$vpoint[0]."|".$vpointnew."|".$Date."|\n");fclose($fp);//End Ghi vào Log?>
hjc, ko biết làm thế nào cho cái khung code php nó to ra
<?php// Reset nhan vat la Darklordif ($row[4] == $class_dl_1 OR $row[4] == $class_dl_2) { $sql_reset_script = "UPDATE Character SET Clevel=1,Experience=0,Money=$resetmoney,LevelUpPoi nt=0,pointdutru=$resetpoint,Resets=$resetup,Streng th=$class_stat[1],Dexterity=$class_stat[2],Vitality=$class_stat[3],Energy=$class_stat[4],Life=$class_stat[5],MaxLife=$class_stat[6],Mana=$class_stat[7],MaxMana=$class_stat[8],MapNumber=$class_stat[9],MapPosX=$class_stat[10],MapPosY=$class_stat[11],MapDir=0,Leadership=$leadership,isThuePoint=0,NoR esetInDay=$CountNoResetInDay,NoResetInMonth=NoRese tInMonth+1,Resets_Time=$timestamp,ResetVIP=0,Point Thue=0 WHERE name='$character'"; $sql_reset_exec = $db->Execute($sql_reset_script) or die("Lỗi Query: $sql_reset_script");}//Reset nhan vat khong phai la DarkLordelse { $sql_reset_script = "UPDATE Character SET Clevel=1,Experience=0,Money=$resetmoney,LevelUpPoi nt=0,pointdutru=$resetpoint,Resets=$resetup,Streng th=$class_stat[1],Dexterity=$class_stat[2],Vitality=$class_stat[3],Energy=$class_stat[4],Life=$class_stat[5],MaxLife=$class_stat[6],Mana=$class_stat[7],MaxMana=$class_stat[8],MapNumber=$class_stat[9],MapPosX=$class_stat[10],MapPosY=$class_stat[11],MapDir=0,Leadership=$class_stat[12],isThuePoint=0,NoResetInDay=$CountNoResetInDay,NoR esetInMonth=NoResetInMonth+1,Resets_Time=$timestam p,ResetVIP=0,PointThue=0 WHERE name='$character'"; $sql_reset_exec = $db->Execute($sql_reset_script) or die("Lỗi Query: $sql_reset_script"); //All Quest For Class 3 if ($row[4] == $class_dw_3 OR $row[4] == $class_dk_3 OR $row[4] == $class_elf_3) { $sql_all_quest = $db->Execute($all_quest); } $add_xoaykiem = "UPDATE Character SET MagicList=0x2c000043000044000045000046000047000029 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000 WHERE name='$character'"; $add_muitenvotan = "UPDATE Character SET MagicList=0x2e00004300004400004500004600004700004d 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000 WHERE name='$character'"; $add_skill_sum = "UPDATE Character SET MagicList=0xda0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff00 00ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000 ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff0000ff 0000ff0000ff0000ff0000 WHERE name='$character'"; //Add Xoay kiem cho DK if ($row[4] == $class_dk_1 OR $row[4] == $class_dk_2 OR $row[4] == $class_dk_3) { $sql_add_xoaykiem = $db->Execute($add_xoaykiem); } //Add Mui ten vo tan cho Elf C3 if ($row[4] == $class_elf_3) { $sql_add_muitenvotan = $db->Execute($add_muitenvotan); } //Add Skill cho Summoner if ($row[4] == $class_sum_1 OR $row[4] == $class_sum_2 OR $row[4] == $class_sum_3) { $sql_add_skill_sum = $db->Execute($add_skill_sum); }}
$tru_jewel = $db->Execute("UPDATE MEMB_INFO SET jewel_chao=jewel_chao-$chao,jewel_cre=jewel_cre-$cre,jewel_blue=jewel_blue-$blue,vpoint=$vpointnew WHERE memb___id='$account'");//Ghi vào Log$content = "$character Reset lần thứ $resetup";$Date = date("h:iA, d/m/Y");$file = "log/modules/log_resets.txt";$fp = fopen($file, "a+");fputs ($fp, $account."|".$content."|".$vpoint[0]."|".$vpointnew."|".$Date."|\n");fclose($fp);//End Ghi vào Log?>
hjc, ko biết làm thế nào cho cái khung code php nó to ra