[Req] 1st Reset at lvl 325

ezramod

New Member
Joined
Jan 26, 2011
Messages
47
Reaction score
3
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; }
 
if($row[0] >= 325 && $row[1] == 0) { ..... }
elseif($row[0] >= 350 && $row[1] == 1) { ..... } etc..
 
OMG Why do you make it so hard :x
PHP:
if($row[1] == 0){$resetlevel >= 325}
if($row[1] == 1){$resetlevel >= 350}
if($row[1] == 2){$resetlevel >= 375}
if($row[1] >= 3){$resetlevel >= 400}
 
OMG Why do you make it so hard :x
PHP:
if($row[1] == 0){$resetlevel >= 325}
if($row[1] == 1){$resetlevel >= 350}
if($row[1] == 2){$resetlevel >= 375}
if($row[1] >= 3){$resetlevel >= 400}

and what is so hard lol :x
 
THX for help i use this:
if($row[0] >= 340 && $row[1] == 0) { $newpoints = $row[1] * $resetpoints; }
if($row[0] >= 360 && $row[1] == 1) { $newpoints = $row[1] * $resetpoints; }
if($row[0] >= 380 && $row[1] == 2) { $newpoints = $row[1] * $resetpoints; }
if($row[1] >= 3) { $newpoints = $row[1] * $resetpoints; }
but now i need to put filter and for lvl 400 i have this:
if($row[0] < $resetlevel) { echo"<div class='alert'>Character $character must be $resetlevel in order to reset!</div><br>"; $error=1;}
where $resetlevel = '400'
but now i need to create filter for rr 0, rr1, rr2
how can i do this?