misterex Level 1
Брой мнения : 17 Birthday : 06.12.1990 Join date : 20.06.2012 Age : 33 Местожителство : brazil
| Заглавие: How i can Add pvp balance in my server 97 Съб Сеп 13, 2014 3:36 pm | |
| Hello All! im braziliam and like servers bulgarian, and in brazil no have sistem for pvp balance i have one server in Beta and how i can make pvp balance in my server... All my classes earn the same amount of points per reset and it complicated and how can I change pro pvp balance?
my web is Auroramu.ddns.net | |
|
Deadman Level 4
Брой мнения : 90 Birthday : 01.01.1980 Join date : 20.03.2014 Age : 44 Местожителство : 1 My Hobbie : 1
| Заглавие: Re: How i can Add pvp balance in my server 97 Съб Сеп 13, 2014 5:02 pm | |
| Upload your Config.php and reset character function and i will make you a function for all characters to get unique amount of points. if you don't know what to upload just send me a download link with your website. | |
|
misterex Level 1
Брой мнения : 17 Birthday : 06.12.1990 Join date : 20.06.2012 Age : 33 Местожителство : brazil
| Заглавие: Re: How i can Add pvp balance in my server 97 Съб Сеп 13, 2014 5:17 pm | |
| my web is Auroramu.ddns.net | |
|
misterex Level 1
Брой мнения : 17 Birthday : 06.12.1990 Join date : 20.06.2012 Age : 33 Местожителство : brazil
| Заглавие: Re: How i can Add pvp balance in my server 97 Съб Сеп 13, 2014 5:22 pm | |
| - Код:
-
<link href="estilo.css" rel="stylesheet" type="text/css">
<?php
include("../config.php");
@session_start();
if (!(isset($_SESSION['FREElogin'])))
{
header("Location: index.php");
}
$Usuario= $_SESSION["FREElogin"];
$FREElogin = $Usuario;
$buscanome = "SELECT memb_name FROM MEMB_INFO WHERE memb___id='$FREElogin'";
$resultado = mssql_query( $buscanome );
$nome = mssql_fetch_row($resultado);
if (empty($_POST['nome'])) {
echo '<p><strong>RESET DE PERSONAGEM</strong></p>
<form name="reset" method="post" action="">
<table width="90%" border=0 align=center cellpadding=3 cellspacing=3>
<tbody>
<tr>
<td><b>
Clique no Personagem que deseja Resetar.<br><br>';
$query = "SELECT Name FROM Character WHERE AccountID = '$FREElogin'";
$result = mssql_query($query);
for($i=0;$i<mssql_num_rows($result);++$i)
{
$row = mssql_fetch_row($result);
echo '<input name="nome" type="submit" value="';
echo $row[0];
echo '" class="forms"> ';
}
$conn=mssql_close();
echo '<p>Resets no Lvl 340
';
}
else
{
$Usuario = stripslashes($_POST['nome']);
if ((eregi("[^a-zA-Z0-9_-]", $Usuario)))
{
echo("<font color='#FF0000'>SQL Injection Detectado. Use apenas letras de A a Z e numeros de 0 a 9");
exit();
}
if (empty($nome))
{
echo "<BR><BR>Selecione seu personagem!";
} else {
$sql_name_check = "SELECT Name FROM Character WHERE Name='$Usuario' and AccountID = '$FREElogin'";
$sql_name_check = mssql_query($sql_name_check);
$name_check = mssql_num_rows($sql_name_check);
if ($name_check <= 0)
{
echo "<BR><BR>Este personagem não existe no banco de dados da sua conta.";
} else {
$sql_online_check = "SELECT ConnectStat FROM MEMB_STAT WHERE ConnectStat = '0' AND memb___id='$FREElogin'";
$sql_online_check = mssql_query($sql_online_check);
$online_check = mssql_num_rows($sql_online_check);
if ($online_check <= 0)
{
echo "<BR><BR>Você está connected in the game. Please exit the game and try again.</div></td>
</tr></table>";
exit;
} else {
$sql_money1_check = "SELECT Money,Name FROM Character WHERE Money > 10000000 AND Name='$Usuario'";
$sql_money1_check = mssql_query($sql_money1_check);
$money1_check = mssql_num_rows($sql_money1_check);
$ddados = mssql_fetch_object($sql_money1_check);
$dindin_now = $ddados->Money;
if ($money1_check == 0)
{
echo "<BR><BR>Você não tem o dinheiro suficiente no inventório.";
} else {
$sql_level_check = "SELECT cLevel FROM Character WHERE Name = '$Usuario' AND cLevel > '339'";
$sql_level_check = mssql_query($sql_level_check);
$level_check = mssql_num_rows($sql_level_check);
if ($level_check <= 0)
{
echo "<BR><BR>Você não está no level máximo ainda. Avance até o level 340 para poder resetar.";
}else {
$sql_resets = "SELECT resets FROM Character WHERE Name = '$Usuario'";
$sql_resets = mssql_query($sql_resets);
$resets = mssql_result($sql_resets, 0,0);
if ($resets > 29){
echo "<BR><BR>Você já ultrapassou o número de resets permitido."; }
else {
if ($resets >= 600) {
$pontos = LevelUpPoint;
}
$numreset = $resets + 1;
if( $numreset >= 0 && $numreset <=450 )
{
$uppoints = 600;
$dinheiro = 20000000;
}
if( $numreset >= 451 && $numreset <=10000 )
{
$uppoints = 10;
$dinheiro = 10000000;
}
$conta = $uppoints*$numreset;
$conta2 = $dindin_now - $dinheiro;
if($dindin_now < $dinheiro )
{
$error = "Você precisa de no minimo ".$dinheiro." para resetar.";
}
$msquery = "
UPDATE Character SET
Experience = '0' ,
cLevel = '1' ,
MapNumber = '0' ,
MapPosX = '123' ,
MapPosY = '130' ,
LevelUpPoint =$conta,
Strength = '150' ,
Dexterity = '150' ,
Vitality = '150' ,
Energy = '150' ,
resets = $numreset,
Money = '$conta2'
WHERE Name = '$Usuario'
AND AccountID = '$FREElogin'
AND cLevel > '339'
AND Money >= '$dinheiro'
";
$msresults= mssql_query($msquery) ;
if($msresults && !isset($error))
{
echo "<BR><b>$Usuario</b> RESET SUCESS!<br>
Este foi seu reset número $numreset.<br><BR>
<font color=#ff0000>!!! Importante !!!<BR>
Distribua Seus Pontos Pelo Distribuidor do Site<br>";
} else {
echo "<BR> <strong><BR><b>$Usuario</b> foi resetado com sucesso!<br>
Este foi seu reset número $numreset.<br><BR>
<font color=#ff0000>!!! Importante !!!<BR>
Distribua Seus Pontos Pelo Distribuidor do Site<br></strong>".$error."<br>";
}
}}}}}}}
?>
<style>
<!--
.texto{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#333333;
text-decoration:none;
}
a.link {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#666666;
font-weight:bold;
text-decoration:none;
}
a.link:active {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#666666;
font-weight:bold;
text-decoration:none;
}
a.link:hover {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#333333;
font-weight:bold;
text-decoration:none;
}
a.link1 { font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#006600;
font-weight:bold;
text-decoration:none;
}
input {
background-color: #E2E2E2;
border-color:#333333;
border:thick;
}
input:hover {
background-color: #E2E2E2;
border-color:#333333;
border:thick;
}
body{
scrollbar-face-color: #DEE3E7;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #DEE3E7;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color: #006699;
scrollbar-track-color: #EFEFEF;
scrollbar-darkshadow-color: #98AAB1;
}
.style10 {color: #0000FF}
.style11 {color: #000000}
.style12 {color: #FF0000}
-->
</style>
Edit by DeadmanWonderland.Don't just paste the code like that ,there is a BB for Codes,scripts mate!
| |
|
Deadman Level 4
Брой мнения : 90 Birthday : 01.01.1980 Join date : 20.03.2014 Age : 44 Местожителство : 1 My Hobbie : 1
| Заглавие: Re: How i can Add pvp balance in my server 97 Съб Сеп 13, 2014 9:51 pm | |
| | |
|
misterex Level 1
Брой мнения : 17 Birthday : 06.12.1990 Join date : 20.06.2012 Age : 33 Местожителство : brazil
| Заглавие: Re: How i can Add pvp balance in my server 97 Нед Сеп 14, 2014 3:55 am | |
| Have skype to you help me? | |
|
Sponsored content
| Заглавие: Re: How i can Add pvp balance in my server 97 | |
| |
|