мен а можеш ли да ми го настроиш това ?
$general =
"
UPDATE dbo.Character SET clevel=1 , strength='25' , dexterity='25' , vitality='25' , energy='25' , Resets = '$resetup' , experience = '0' , money = '$resetmoney' , LevelUpPoint = '$resetpt' , MapNumber = '0' , MapPosX= '125' , MapPosY= '125'
WHERE Name = '$name'
";
$general =
"
UPDATE dbo.Character SET clevel=1 , strength='25' , dexterity='25' , vitality='25' , energy='25' , Resets = '$resetup' , experience = '0' , money = '$resetmoney' , LevelUpPoint = '[B]някакво число[/B]' , MapNumber = '0' , MapPosX= '125' , MapPosY= '125'
WHERE Name = '$name' [B]and class = '1'[/B]
";
0= "Dark Wizard"
1= "Soul Master"
2= "Grand Master"
16= "Dark Knight"
17= "Blade Knight"
18= "Blade Master"
32= "Elf"
33= "Muse Elf"
34= "High Elf"
48= "Magic Gladiator"
50= "Duel Master"
64= "Dark Lord"
66= "Lord Emperor"
80= "Summoner"
81= "Bloody Summoner"
82= "Dimension Master"
96= "Rage Fighter"
98= "Fist Master"
$result = mssql_query("Select Clevel,Resets,Money,LevelUpPoint From Character where Name='$name'");
$result = mssql_query("Select Clevel,Resets,Money,LevelUpPoint,class From Character where Name='$name'");
if($row[4] == 0 or $row[4] == 1 or $row[4] == 2) { $resetpoints = "450"; } // for SM
elseif($row[4] == 16 or $row[4] == 17 or $row[4] == 18) { $resetpoints = "400"; } // for BK
$result = mssql_query("Select Clevel,Resets,Money,LevelUpPoint,class From Character where Name='$name'");
$row = mssql_fetch_row($result);
$resetup=$row[1] + (1);
$resetmoney=$row[2]-($resetzen);
$resetpt=$resetpoints * ($row[1] + 1);
toCode:$result = mssql_query("Select Clevel,Resets,Money,LevelUpPoint From Character where Name='$name'");
and addCode:$result = mssql_query("Select Clevel,Resets,Money,LevelUpPoint,class From Character where Name='$name'");
Code:if($row[4] == 0 or $row[4] == 1 or $row[4] == 2) { $resetpoints = "450"; } // for SM elseif($row[4] == 16 or $row[4] == 17 or $row[4] == 18) { $resetpoints = "400"; } // for BK
And add the lines for elf,mg,lord.It's simple,just copy elseif.... and change the numbers.You can use the pafa7a class number table
Warning: Put the "if" lines between
andCode:$result = mssql_query("Select Clevel,Resets,Money,LevelUpPoint,class From Character where Name='$name'"); $row = mssql_fetch_row($result);
Code:$resetup=$row[1] + (1); $resetmoney=$row[2]-($resetzen); $resetpt=$resetpoints * ($row[1] + 1);