how to create this system in my server for reset character?
* First reset: Level reset >= 325;
* Second reset: Level reset >= 350;
* Third reset: Level reset >= 375;
* All other resets: Level reset = 400
i have in my reset script this:
$query = mssql_query("Select clevel,resets,money,leveluppoint from Character where Name='$character'");
$row = mssql_fetch_row($query);
$newmoney = $row[2]-$resetmoney;
$newresets = $row[1] + 1;
if($row[1] >= 1) { $newpoints = $row[1] * $resetpoints; }
and i want to create something this:
if($row[0] >= 325 but $row[1] == 0) { $newpoints = $row[1] * $resetpoints; }
if($row[0] >= 350 but $row[1] == 1) { $newpoints = $row[1] * $resetpoints; }
if($row[0] >= 375 but $row[1] == 2) { $newpoints = $row[1] * $resetpoints; }
if($row[1] >= 1) { $newpoints = $row[1] * $resetpoints; }
* First reset: Level reset >= 325;
* Second reset: Level reset >= 350;
* Third reset: Level reset >= 375;
* All other resets: Level reset = 400
i have in my reset script this:
$query = mssql_query("Select clevel,resets,money,leveluppoint from Character where Name='$character'");
$row = mssql_fetch_row($query);
$newmoney = $row[2]-$resetmoney;
$newresets = $row[1] + 1;
if($row[1] >= 1) { $newpoints = $row[1] * $resetpoints; }
and i want to create something this:
if($row[0] >= 325 but $row[1] == 0) { $newpoints = $row[1] * $resetpoints; }
if($row[0] >= 350 but $row[1] == 1) { $newpoints = $row[1] * $resetpoints; }
if($row[0] >= 375 but $row[1] == 2) { $newpoints = $row[1] * $resetpoints; }
if($row[1] >= 1) { $newpoints = $row[1] * $resetpoints; }