The Gamer
27-11-12, 02:56 AM
Mình có tặng điểm nhân vật sau khi rs vào ene là 1000 điểm
Ý mình là sau khi rs thì mặc định + sẵn ene 1000 ko hiểu sao ko được ai giúp mình với
Nbb v5.0 ngày 7/8
lệnh như sau
/ Reset nhan vat la Darklord
if ($row[4] == 64 OR $row[4] == 65 OR $row[4] == 66)
{
$sql_reset_script="Update dbo.character set [clevel]='$clevel',[experience]='0',[LevelUpPoint]='$pointup',[pointdutru]='$resetpoint',[resets]=$resetup, ResetNBB=$resetup,[strength]='$Strength',[dexterity]='$Dexterity',[vitality]='$Vitality',[energy]='$Energy+1000',[Life]='$Life',[MaxLife]='$MaxLife',[Mana]='$Mana',[MaxMana]='$MaxMana',[MapNumber]='$MapNumber',[MapPosX]='$MapPosX',[MapPosY]='$MapPosY',[MapDir]='0',[Leadership]='$leadership',[isThuePoint]='0',[NoResetInDay]=$CountNoResetInDay,[". $fieldtopmonth ."]=". $fieldtopmonth ."+1,[Resets_Time]='$timestamp',[ResetVIP]='1',[PointThue]='0' where name='$name'";
$sql_reset_exec = $db->Execute($sql_reset_script);
check_queryerror($sql_reset_script, $sql_reset_exec);
//Nhan vat dang ki tai sinh
if ($char_back_reged_check > 0) {
$msquery = "Update Character_back set [Resets]=$resetup,[LevelUpPoint]='$resetpoint',[Class]='$row[4]',[Leadership]='$leadership',[Relifes]='$row[5]' where name='$name'";
$msresults= $db->Execute($msquery);
check_queryerror($msquery,$msresults);
}
}
//Reset nhan vat khong phai la DarkLord
else
{
$sql_reset_script="Update Character set [clevel]='$clevel',[experience]='0',[LevelUpPoint]='$pointup',[pointdutru]='$resetpoint',[resets]=$resetup, ResetNBB=$resetup,[strength]='$Strength',[dexterity]='$Dexterity',[vitality]='$Vitality',[energy]='$Energy+1000',[Life]='$Life',[MaxLife]='$MaxLife',[Mana]='$Mana',[MaxMana]='$MaxMana',[MapNumber]='$MapNumber',[MapPosX]='$MapPosX',[MapPosY]='$MapPosY',[MapDir]='$Mapdir',[Leadership]='0',[isThuePoint]='0',[NoResetInDay]=$CountNoResetInDay,[". $fieldtopmonth ."]=". $fieldtopmonth ."+1,[Resets_Time]='$timestamp',[ResetVIP]='1',[PointThue]='0' where name='$name'";
$sql_reset_exec = $db->Execute($sql_reset_script);
check_queryerror($sql_reset_script, $sql_reset_exec);
Ý mình là sau khi rs thì mặc định + sẵn ene 1000 ko hiểu sao ko được ai giúp mình với
Nbb v5.0 ngày 7/8
lệnh như sau
/ Reset nhan vat la Darklord
if ($row[4] == 64 OR $row[4] == 65 OR $row[4] == 66)
{
$sql_reset_script="Update dbo.character set [clevel]='$clevel',[experience]='0',[LevelUpPoint]='$pointup',[pointdutru]='$resetpoint',[resets]=$resetup, ResetNBB=$resetup,[strength]='$Strength',[dexterity]='$Dexterity',[vitality]='$Vitality',[energy]='$Energy+1000',[Life]='$Life',[MaxLife]='$MaxLife',[Mana]='$Mana',[MaxMana]='$MaxMana',[MapNumber]='$MapNumber',[MapPosX]='$MapPosX',[MapPosY]='$MapPosY',[MapDir]='0',[Leadership]='$leadership',[isThuePoint]='0',[NoResetInDay]=$CountNoResetInDay,[". $fieldtopmonth ."]=". $fieldtopmonth ."+1,[Resets_Time]='$timestamp',[ResetVIP]='1',[PointThue]='0' where name='$name'";
$sql_reset_exec = $db->Execute($sql_reset_script);
check_queryerror($sql_reset_script, $sql_reset_exec);
//Nhan vat dang ki tai sinh
if ($char_back_reged_check > 0) {
$msquery = "Update Character_back set [Resets]=$resetup,[LevelUpPoint]='$resetpoint',[Class]='$row[4]',[Leadership]='$leadership',[Relifes]='$row[5]' where name='$name'";
$msresults= $db->Execute($msquery);
check_queryerror($msquery,$msresults);
}
}
//Reset nhan vat khong phai la DarkLord
else
{
$sql_reset_script="Update Character set [clevel]='$clevel',[experience]='0',[LevelUpPoint]='$pointup',[pointdutru]='$resetpoint',[resets]=$resetup, ResetNBB=$resetup,[strength]='$Strength',[dexterity]='$Dexterity',[vitality]='$Vitality',[energy]='$Energy+1000',[Life]='$Life',[MaxLife]='$MaxLife',[Mana]='$Mana',[MaxMana]='$MaxMana',[MapNumber]='$MapNumber',[MapPosX]='$MapPosX',[MapPosY]='$MapPosY',[MapDir]='$Mapdir',[Leadership]='0',[isThuePoint]='0',[NoResetInDay]=$CountNoResetInDay,[". $fieldtopmonth ."]=". $fieldtopmonth ."+1,[Resets_Time]='$timestamp',[ResetVIP]='1',[PointThue]='0' where name='$name'";
$sql_reset_exec = $db->Execute($sql_reset_script);
check_queryerror($sql_reset_script, $sql_reset_exec);