100) $_SESSION ["lavkamaxlevel"]=100; if (@$_GET["h_zn_show"]) $_SESSION ["hzntype"] = $_GET ["h_zn_show"]; $ti=time(); echo '
'; echo "
У вас с собой ".$pers["money"]." LN

"; ?>
Сортировка: от"") echo $_SESSION["lavkaminlevel"];else echo "0";?>" class=laar>до"") echo $_SESSION["lavkamaxlevel"];else echo $pers["level"];?> class=laar>Уровня. Не дороже "") echo $_SESSION["lavkamaxcena"];else echo"1000";?>" class=laar>
Религия Некромантия Стихийная магия Магия порядка Вызовы существ

"; $pers['zakl'] = "|".$pers['zakl']; if (!empty($_GET["housezndo"]))$zak=mysql_fetch_array (mysql_query ("SELECT * FROM `zakl` WHERE `id`='".$_GET["housezndo"]."';")); if (!empty($_GET["housezndo"]) and strpos($pers["zakl"],$zak["id"])==0 and $zak["price"]>$pers["money"]) echo "Не хватает денег."; if (!empty($_GET["housezndo"]) and strpos($pers["zakl"],$zak["id"])==0 and $zak["price"]<=$pers["money"] and $zak["tlevel"]<=$pers["level"] and $zak["tpower"]<=$pers["power"]) { $pers["zakl"]=$pers["zakl"].$_GET["housezndo"]."|"; $pers["money"]-=$zak["price"]; $pers["cmana"]-=$zak["mana"]; mysql_query ("UPDATE `users` SET `zakl`='".$pers["zakl"]."' , `money`='".$pers["money"]."' , `cmana`='".$pers["cmana"]."' WHERE `uid`=".$_SESSION["uid"].";"); echo "Заклинание ".$zak["name"]." успешно изучено!"; } if ($_SESSION["hzntype"]<>'other') { $zakl=mysql_query ("SELECT * FROM `zakl` WHERE `tlevel`>='".$_SESSION ["lavkaminlevel"]."' and `tlevel`<='".$_SESSION ["lavkamaxlevel"]."' and `price`<='".$_SESSION ["lavkamaxcena"]."' and (`stype`='".$_SESSION ["hzntype"]."' or `type`='') ORDER BY `".$_SESSION ["lavkasort"]."` ASC"); } else { $zakl=mysql_query ("SELECT * FROM `zakl` WHERE `tlevel`>='".$_SESSION ["lavkaminlevel"]."' and `tlevel`<='".$_SESSION ["lavkamaxlevel"]."' and `price`<='".$_SESSION ["lavkamaxcena"]."' and `type`<>'aura' and `type`<>'blast' and `type`<>'visov' ORDER BY `".$_SESSION ["lavkasort"]."` ASC"); } while ($zak=mysql_fetch_array($zakl)) { if (strpos(" |".$pers["zakl"],"|".$zak["id"]."|")==0) { $id=0; include ('inc/inc/zakl.php'); if (strpos($pers["zakl"],$zak["id"])==0 and $z==1) { echo "

"; } else echo "
"; }} ?>