- Joined
- Nov 16, 2008
- Messages
- 171
- Reaction score
- 116
Ако имах времето би било супер - да го направя... (може да давате идеи, но няма да стане скоро)Ако се добави 1 маркет би било супер.
Last edited:
Ако имах времето би било супер - да го направя... (може да давате идеи, но няма да стане скоро)Ако се добави 1 маркет би било супер.
Eva ще те помоля,да оправиш модула за рестарт,когато имаш време.Благодаря предварително !
<?php
session_start();
$request = $_SERVER['REQUEST_METHOD'];
if ($request == 'GET'){
header("Location: $domein/index/home");
}
define('IN_VALID',True);
require('config.php');
if((isset($_POST['name']))){
$username = $_SESSION['uid'];
$name = addslashes(htmlspecialchars($_POST['name']));
$accountstatus = mssql_query("SELECT * FROM MEMB_STAT WHERE memb___id='".$username."'") or die ('Немога да изпълня заявката!');
$row = mssql_fetch_assoc($accountstatus);
$characterinfo = mssql_query("SELECT cLevel,Resets,Money,LevelUpPoint,Class From Character where Name='".$name."'") or die ('Немога да изпълня заявката!');
$charinfo = mssql_fetch_assoc($characterinfo) or die ('Немога да изпълня заявката!');
$reseets = $charinfo['Resets']; // 1
$money = $charinfo['Money']; // 2
$upts = $charinfo['LevelUpPoint']; // 3
$level = $charinfo['cLevel']; // 4
$resets = ($reseets + 1);
$ConnectCheck = '1';
if ($web['ExtraReset'] == 'Yes'){
$resetmoeny = ($money - ($web['resetmoney']) * ($resets));
$resetpoints = $upts + ($web['resetpoints']);
}else{
$resetmoeny = ($money - ($web['resetmoney']));
$resetpoints = ($upts + ($web['resetpoints']));
}
//print_r($charinfo);
if(empty($name)){
$error = 'Не сте избрали герой или нямате такъв';
$_SESSION['error'] = $error;
header("Location: $domein/index/resetchar");
}else{
if($row['ConnectStat'] == $ConnectCheck){
$error = 'Акаунта е в игра и неможете да резетнете героят си!';
$_SESSION['error'] = $error;
header("Location: $domein/index/resetchar");
}else{
if ($resetmoeny < 0){
if($web['ExtraReset'] == 'Yes'){
$extrareset = ($web['resetmoney'] * $resets);
}else{
$extrareset = ($web['resetmoney']);
}
$error = 'На '.$name.' му трявбат '.number_format($extrareset).' Zen за резет!';
$_SESSION['error'] = $error;
header("Location: $domein/index/resetchar");
}else{
if ($resets > $web['maxresets']){
$error = 'Резет лимита е ' .$web['maxresets']. ' неможете да резетнете героят си!';
$_SESSION['error'] = $error;
header("Location: $domein/index/resetchar");
}elseif ($level < $web['resetlevel']){
$error = 'Левелът за резет е '.$web['resetlevel'].' вие сте ' .$level. '';
$_SESSION['error'] = $error;
header("Location: $domein/index/resetchar");
}else{
if (($web['resetmode'] == 'No')){ // Keep stats
$sql = "UPDATE Character SET [clevel]='1',[experience]='0',[money]='$resetmoeny',[LevelUpPoint]='$resetpoints',[resets]='$resets' WHERE name='".$name."'";
$result = mssql_query($sql) or die ('Немога да изпълня заявката :(');
}elseif (($web['resetmode'] == 'Yes')){ // Reset Stats
$sql = "UPDATE Character SET [strength]='25',[dexterity]='25',[vitality]='25',[energy]='25',[clevel]='1',[experience]='0',[money]='$resetmoeny',[LevelUpPoint]='$resetpoints',[resets]='$resets' WHERE name='".$name."'";
$result = mssql_query($sql) or die ('Немога да изпълня заявката :(');
}
if($web['clear_iventory'] == 'Yes' && $web['clear_skills'] == 'Yes'){
$sql = "UPDATE Character SET [inventory]=CONVERT(varbinary(1080), null),[magiclist]=CONVERT(varbinary(180), null) WHERE name='".$name."'";
$result = mssql_query($sql) or die ('Немога да изпълня заявката :(');
}elseif ($web['clear_iventory'] == 'No' && $web['clear_skills'] == 'No'){
$sql = "Select name from character where name='".$name."'";
$result = mssql_query($sql) or die ('Немога да изпълня заявката :(');
}elseif ($web['clear_iventory'] == 'Yes' && $web['clear_skills'] == 'No'){
$sql = "UPDATE Character SET [inventory]=CONVERT(varbinary(1080), null) WHERE name='".$name."'";
$result = mssql_query($sql) or die ('Немога да изпълня заявката :(');
}elseif ($web['clear_iventory'] == 'No' && $web['clear_skills'] == 'Yes'){
$sql = "UPDATE Character SET [magiclist]=CONVERT(varbinary(180), null) WHERE name='".$name."'";
$result = mssql_query($sql) or die ('Немога да изпълня заявката :(');
}
$success = 'Вашият герой е резетнат успешно :)';
$_SESSION['success'] = $success;
header("Location: $domein/index/resetchar");
}
}
}
}
}else{
$error = 'Не сте избрали герой или нямате такъв!';
$_SESSION['error'] = $error;
header("Location: $domein/index/resetchar");
}
?>
Можели да ми дадете "online.php" и "admins.php" За EvaWeb 0.2 ? Благодаря Ви предварително.
<?
include_once('config.php');
error_reporting (E_ALL ^ E_NOTICE);
$query = mssql_query("SELECT Name,CtlCode,Skype from Character order by Name desc");
echo '
<table width="350" border=0 align="center" ">
<tr>
<td valign=top align=center width=0 height=0 class="rank"><b>[#]</b></td>
<td valign=top align=center width=0 class="rank"><center><b>Character</center></b></td>
<td valign=top align=center width=0 class="rank"><center><b>Skype</center></b></td>
';
$i1=0;
for($i=0;$i < mssql_num_rows($query);++$i)
{
$row = mssql_fetch_row($query);
if ($row[1]==8)
{
$i1 = $i1+1;
$rank = $i1;
echo "
<tr bgcolor='$colors' class='rank'><td><center>$rank.</center></td>
<td><center>$row[0]</center></td>
<td><center>$row[2]</center></td>
</tr>
</font>
";
}
}
?>
<center>
<?
include_once('config.php');
include('rankingmenu.php');
error_reporting (E_ALL ^ E_NOTICE);
$acc1 = mssql_query("SELECT memb___id from MEMB_STAT where ConnectStat='1' order by ConnectTM desc ");
$i1=0;
for($i=0;$i < mssql_num_rows($acc1);++$i)
{
$acc = mssql_fetch_row($acc1);
$char1 = mssql_query("Select GameIDC from AccountCharacter where Id='$acc[0]'");
$char = mssql_fetch_row($char1);
$query = mssql_query("SELECT Name,Class,cLevel,resets,Money,PKcount,PkLevel,MapNumber,MapPosX,MapPosY,Class,AccountID,CtlCode from Character where Name='$char[0]'");
$row = mssql_fetch_row($query);
$status="select ConnectStat from MEMB_STAT where memb___id='$row[11]'";
$sql_status_check=mssql_query($status);
$row1=mssql_fetch_row($sql_status_check);
if (($row[12]<>8) and ($row1[0] == 1))
{
$i1 = $i1+1;
$rank = $i1;
if($row1[0] == 0){ $row1[0] ='<img src=images/Offline.gif> <img src=images/Offline1.gif>';
}
if($row1[0] == 1){ $row1[0] ='<img src=images/Online.gif> <img src=images/Online11.gif>';
}
if($row[1]==0){$cl='Dark Wizard';}
elseif($row[1]==1){$cl='Soul Master';}
elseif($row[1]==2){$cl='Grand Master';}
elseif($row[1]==16){$cl='Dark Knight';}
elseif($row[1]==17){$cl='Blade Knight';}
elseif($row[1]==18){$cl='Blade Master';}
elseif($row[1]==19){$cl='Blade Master';}
elseif($row[1]==32){$cl='Elf';}
elseif($row[1]==33){$cl='Muse Elf';}
elseif($row[1]==34){$cl='High Elf';}
elseif($row[1]==48){$cl='Magic Gladiator';}
elseif($row[1]==49){$cl='Duel Master';}
elseif($row[1]==64){$cl='Dark Lord';}
elseif($row[1]==65){$cl='Lord Emperor';}
elseif($row[1]==66){$cl='Lord Emperor';}
elseif($row[1]==80){$cl='Summoner';}
elseif($row[1]==81){$cl='Bloody Summoner';}
elseif($row[1]==82){$cl='Dimension Master';}
elseif($row[1]==83){$cl='Dimension Master';}
else{$cl=$row[1];}
if($row[10]==0){$pic='<img src=images/small_dw.png>';}
elseif($row[10]==1){$pic='<img src=images/small_dw.png>';}
elseif($row[10]==2){$pic='<img src=images/small_dw.png>';}
elseif($row[10]==16){$pic='<img src=images/small_dk.png>';}
elseif($row[10]==17){$pic='<img src=images/small_dk.png>';}
elseif($row[10]==18){$pic='<img src=images/small_dk.png>';}
elseif($row[10]==19){$pic='<img src=images/small_dk.png>';}
elseif($row[10]==32){$pic='<img src=images/small_elf.png>';}
elseif($row[10]==33){$pic='<img src=images/small_elf.png>';}
elseif($row[10]==34){$pic='<img src=images/small_elf.png>';}
elseif($row[10]==48){$pic='<img src=images/small_mg.png>';}
elseif($row[10]==49){$pic='<img src=images/small_mg.png>';}
elseif($row[10]==64){$pic='<img src=images/small_dl.png>';}
elseif($row[10]==65){$pic='<img src=images/small_dl.png>';}
elseif($row[10]==66){$pic='<img src=images/small_dl.png>';}
elseif($row[10]==80){$pic='<img src=images/small_sum.png>';}
elseif($row[10]==81){$pic='<img src=images/small_sum.png>';}
elseif($row[10]==82){$pic='<img src=images/small_sum.png>';}
elseif($row[10]==83){$pic='<img src=images/small_sum.png>';}
else{$pic=$row[10];}
if($row[7]==0){$map='Lorencia';}
elseif($row[7]==1){$map='Dungeon';}
elseif($row[7]==2){$map='Devias';}
elseif($row[7]==3){$map='Noria';}
elseif($row[7]==4){$map='LostTower';}
elseif($row[7]==5){$map='Excile';}
elseif($row[7]==6){$map='Stadium';}
elseif($row[7]==7){$map='Atlans';}
elseif($row[7]==8){$map='Tarkan';}
elseif($row[7]==9){$map='Devil Square';}
elseif($row[7]==32){$map='Devil Square';}
elseif($row[7]==10){$map='Icarus';}
elseif($row[7]==11){$map='Blood Castle 1';}
elseif($row[7]==12){$map='Blood Castle 2';}
elseif($row[7]==13){$map='Blood Castle 3';}
elseif($row[7]==14){$map='Blood Castle 4';}
elseif($row[7]==15){$map='Blood Castle 5';}
elseif($row[7]==16){$map='Blood Castle 6';}
elseif($row[7]==17){$map='Blood Castle 7';}
elseif($row[7]==18){$map='Chaos Castle 1';}
elseif($row[7]==19){$map='Chaos Castle 2';}
elseif($row[7]==20){$map='Chaos Castle 3';}
elseif($row[7]==21){$map='Chaos Castle 4';}
elseif($row[7]==22){$map='Chaos Castle 5';}
elseif($row[7]==23){$map='Chaos Castle 6';}
elseif($row[7]==24){$map='Kalima 1';}
elseif($row[7]==25){$map='Kalima 2';}
elseif($row[7]==26){$map='Kalima 3';}
elseif($row[7]==27){$map='Kalima 4';}
elseif($row[7]==28){$map='Kalima 5';}
elseif($row[7]==29){$map='Kalima 6';}
elseif($row[7]==36){$map='Kalima 7';}
elseif($row[7]==30){$map='Valley Of Loren';}
elseif($row[7]==31){$map='Lands Of Trials';}
elseif($row[7]==33){$map='Aida';}
elseif($row[7]==34){$map='CryWolf';}
elseif($row[7]==35){$map='Silent Map';}
elseif($row[7]==37){$map='Kanturu Ruin';}
elseif($row[7]==38){$map='Kanturu Remain';}
elseif($row[7]==39){$map='Kanturu Tower';}
else{$map=$row[7];}
if($row[6]==1){$pklvl='<font color=#605ca8>Hero</font>';}
elseif($row[6]==2){$pklvl='<font color=#abcef8>Commoner</font>';}
elseif($row[6]==3){$pklvl='Normal';}
elseif($row[6]==4){$pklvl='<font color=#fbaf5d>Against Murderer</font>';}
elseif($row[6]==5){$pklvl='<font color=#a0410d>Murderer</font>';}
elseif($row[6]==6){$pklvl='<font color=#c81118>Phonomania</font>';}
else{$pklvl=$row[6];}
echo "
<tr><td class='news-head' rowspan='4' width='50'>$pic</td><td class='news-head' align='center'>
Name</td><td class='news-head' align='center'>
Level /<font color=red>Resets</font></td><td class='news-head' align='center'>
Class</td><td class='news-head' align='center'>
Status</td><td class='news-head' align='center'>
#</td></tr><tr><td class='news-rest' align='center'>
<b><font color=white>$row[0]</font></b></td><td class='news-rest' align='center'>
<b>$row[2] / <font color='red'>$row[3]</font></b></td><td class='news-rest' align='center'>
$cl</td>
<td class='news-rest' align='center'>
<center>$row1[0]</center></td><td class='news-rest' align='center'>
$rank</td></tr>
<td>
</tr><td>
</td>
";
}
}
?>
Имам проблем влизам в Потребителски Панел > Изчисти ПК > пише "Вашият герой е изчистен успешно." ама като влизам в играта героя пак е убиец ... на EvaWeb 0.2 .. как да го оправя? Благодаря Ви предварително.
<?php
session_start();
$request = $_SERVER['REQUEST_METHOD'];
if ($request == 'GET'){
header("Location: $domein/index/home");
}
define('IN_VALID',True);
require('config.php');
if((isset($_POST['name']))){
$username = $_SESSION['uid'];
$name = addslashes(htmlspecialchars($_POST['name']));
$accountstatus = mssql_query("SELECT ConnectStat FROM MEMB_STAT WHERE memb___id='".$name."'") or die ('Немога да изпълня заявката!');
$row = mssql_fetch_assoc($accountstatus);
$characterinfo = mssql_query("SELECT PkCount,Money From Character where Name='".$name."'") or die ('Немога да изпълня заявката!');
$charinfo = mssql_fetch_assoc($characterinfo) or die ('Немога да изпълня заявката!');
$PkCount = $charinfo['PkCount']; // 1
$money = $charinfo['Money']; // 2
if ($web['ExtraPK'] == 'Yes'){
$PkMoneyClear = ($money - ($web['PKmoney']) * ($PkCount));
$moneyneed = $PkCount * $web['PKmoney'];
}else{
$PkMoneyClear = ($money - ($web['PKmoney']));
$moneyneed = $web['PKmoney'];
}
//print_r($charinfo);
if(empty($name)){
$error = 'Не сте избрали герой или нямате такъв';
$_SESSION['error'] = $error;
header("Location: $domein/index/clearpk");
}else{
if($row == 1){
$error = 'Акаунта е в игра и неможете да резетнете героят си!';
$_SESSION['error'] = $error;
header("Location: $domein/index/clearpk");
}else{
if ($PkMoneyClear < 0){
$error = 'На '.$name.' му трявбат '.number_format($moneyneed).' Zen за изчистване на убийствата!';
$_SESSION['error'] = $error;
header("Location: $domein/index/clearpk");
}else{
if ($PkCount == 0){
$error = 'Нямате убийства за изчистване!';
$_SESSION['error'] = $error;
header("Location: $domein/index/clearpk");
}elseif($PkCount > 0 ){
$sql = mssql_query("UPDATE Character SET [PkCount]='0',[money]='$PkMoneyClear' WHERE name='".$name."'") or die ('Немога да изпълня заявката!');
$success = 'Вашият герой е успешно изчистен!';
$_SESSION['success'] = $success;
header("Location: $domein/index/clearpk");
}
}
}
}
}else{
$error = 'Не сте избрали герой или нямате такъв';
$_SESSION['error'] = $error;
header("Location: $domein/index/clearpk");
}
?>