Jump to content
Sign in to follow this  
Fort ♥

Coletânea de Scripts para seu site

Recommended Posts

Coletânea de Scripts para seu site

 

Olly

 

<?


$servidor = 'localhost';
$usuario = 'root';
$senha = 'senhadadb';
$db = 'l2jdb';

$con = mysql_connect($servidor, $usuario, $senha) or die(mysql_error());
mysql_select_db($db, $con) or die(mysql_error());
?>
<html>
<head>
<title>Heroes Do mes L2JBr</title>
<style type="text/css">
<!--
.style5 {font-size: 15px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
.style8 {font-size: 12px; font-family: Arial, Helvetica, sans-serif; }
.style4 {font-size: 17px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }

body {
background-color: #EBEBEB;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>


<table width="100%" border="0" class="style4">
<tr>
<td align="center">Listando candidatos a heroes do servidor</td>
</tr>
</table>
<br>
<br>
<table width="100%" border="0">
<tr bgcolor="#CCCCCC" class="style5" align="center" height="30">
<td>Char:</td>
<td>Classe:</td>
<td>Vitórias:</td>
<td>Lutas:</td>
<td>Clan:</td>
<td>Ally:</td>

</tr>
<?
$sql = mysql_query("SELECT * FROM olympiad_nobles ORDER BY char_name") or die(mysql_error());
$cor = 0;
while($c = mysql_fetch_array($sql)) {
$cor = $cor + 1;
$bg = $cor % 2 == 0 ? '#F1F1F1' : '#E8E8E8';

$h = mysql_query("SELECT * FROM characters WHERE Obj_Id = '".$c['char_id']."'") or die(mysql_error());
$n = mysql_fetch_array($h);
$l = mysql_query("SELECT * FROM class_list WHERE id = '".$n['base_class']."'") or die(mysql_error());
$g = mysql_fetch_array($l);
$i = mysql_query("SELECT * FROM clan_data WHERE clan_id = '".$n['clanid']."'") or die(mysql_error());
$j = mysql_fetch_array($i);
$k = mysql_query("SELECT * FROM olympiad_nobles ") or die(mysql_error());
$w = mysql_fetch_array($k);
$g['class_name'] = explode("_", $g['class_name']);
$j['clan_name'] = empty($n['clanid']) ? 'Sem Clan.' : $j['clan_name'];
$j['ally_name'] = empty($j['ally_id']) ? 'Sem Alliance.' : $j['ally_name'];

?>

<tr bgcolor="<?php echo $bg; ?>" class="style8" align="center" height="23">
<td><?php echo $n['char_name']; ?></td>
<td><?php echo ucwords($g['class_name'][1]); ?></td>
<td><?php echo $w['olympiad_points']; ?></td>
<td><?php echo $w['competitions_done']; ?></td>
<td><?php echo $j['clan_name']; ?></td>
<td><?php echo $j['ally_name']; ?></td>


</tr>
<?
}
?>
</table>

 

 

 

Players On no Servidor:

 

 

<?php

function connect()
{
include "configs/script_config.php";
}

$sexes = array('M', 'F');
$levels = array('-100' => "Banned", '100' => "GM");

$FORM = "<table border='1' background='imagens/imagens/home_r6_c1.gif'>
<tr>
<th class='Stil5' align=center>Pos.</th>
<th class='Stil5' align=center>Player Online</th>
</tr>";
$query_chars = "select char_name from characters WHERE online=1;";
connect();
$link = mysql_query($query_chars);
$i=1;
$r=255;
while ( $row=mysql_fetch_row($link) )
{

$FORM .= "<tr>
<td class='Stil5' align=center>$i</span></td>
<td class='Stil5' align=center>$row[0]</td>
</tr>";
$i++;
$r -= 0;
}

mysql_close();

echo $FORM;

?>

 

 

 

Lista GM's que tem no Server

 

 

<?php

$servidor = '';
$usuario = 'root';
$senha = '';
$base	 = '';

$con = mysql_connect($servidor, $usuario, $senha) or die(mysql_error());
mysql_select_db($base, $con) or die(mysql_error());


$sql = mysql_query("SELECT char_name, accesslevel, online FROM characters WHERE accesslevel > 50") or die(mysql_error());
while($c = mysql_fetch_array($sql)) {

$cor = $c['online'] == '1' ? 'green' : 'red';
$msg = $c['online'] == '1' ? 'ONLINE' : 'OFFLINE';
echo $c['char_name'] . " - " . "<font color=\"".$cor."\">".$msg."</font><br>";
}
?>

 

 

 

Calculadora Online:

 

 

<h1 align="center">Calculadora Online</h1>
<table width="600" align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td> </td>

<td valign="top" bgcolor="#1e4863"><br><br>
<form name="calc" class="form" onsubmit="calc.input.value=eval(calc.input.value);return(false)">
<table align="center" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><input name="input" class="input" style="text-align: right; padding-right: 3px;" type="text"></td></tr>
<tr>
<td><br>
<table align="center" border="0" cellpadding="3" cellspacing="0">
<tbody><tr>

<td><input value=" 1 " onclick="calc.input.value += '1'" class="calcbut" type="button"></td>
<td><input value=" 2 " onclick="calc.input.value += '2'" class="calcbut" type="button"></td>
<td><input value=" 3 " onclick="calc.input.value += '3'" class="calcbut" type="button"></td>
<td><input value=" + " onclick="calc.input.value += ' + '" class="calcbut" type="button"></td>
</tr>
<tr>
<td><input value=" 4 " onclick="calc.input.value += '4'" class="calcbut" type="button"></td>
<td><input value=" 5 " onclick="calc.input.value += '5'" class="calcbut" type="button"></td>
<td><input value=" 6 " onclick="calc.input.value += '6'" class="calcbut" type="button"></td>

<td><input value=" - " onclick="calc.input.value += ' - '" class="calcbut" type="button"></td>
</tr>
<tr>
<td><input value=" 7 " onclick="calc.input.value += '7'" class="calcbut" type="button"></td>
<td><input value=" 8 " onclick="calc.input.value += '8'" class="calcbut" type="button"></td>
<td><input value=" 9 " onclick="calc.input.value += '9'" class="calcbut" type="button"></td>
<td><input value=" x " onclick="calc.input.value += ' * '" class="calcbut" type="button"></td>
</tr>
<tr>

<td><input value=" c " onclick="calc.input.value = ''" class="calcbut" type="button"></td>
<td><input value=" 0 " onclick="calc.input.value += '0'" class="calcbut" type="button"></td>
<td><input value=" = " onclick="calc.input.value = eval(calc.input.value)" class="calcbut" type="button"></td>
<td><input value=" / " onclick="calc.input.value += ' / '" class="calcbut" type="button"></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>

</form>
</td>

 

 

Game Server ON/OFF

 

 

	<?php
		$fp = @fsockopen("127.0.0.1", 2106, $errno, $errstr, 1);
		if($fp >= 1){
		echo 'ON';}
		else{ echo '<font color=red>OFF</font>'; }
		?>

 

 

Trocar Senha

 

<?php
$L2JBS_config["mysql_host"]="localhost";	// MySQL IP
$L2JBS_config["mysql_port"]=3306;		// MySQP port
$L2JBS_config["mysql_db"]="l2jdb";		// l2jnet_db or your lineage 2 server database name
$L2JBS_config["mysql_login"]="root";		// MySQL Login name	
$L2JBS_config["mysql_password"]="root";		// MySQL Password

error_reporting(0);
?>
<?php
$L2JBS_config["javascript_sort_method"]="bubble";
$link = mysql_connect($L2JBS_config['mysql_host'].":".$L2JBS_config['mysql_port'], $L2JBS_config['mysql_login'], $L2JBS_config['mysql_password']);
if (!$link)
die("Couldn't connect to MySQL");
@mysql_select_db($L2JBS_config['mysql_db'], $link)
or die ('Error '.mysql_errno().': '.mysql_error());

?><style type="text/css">
<!--
body {
background-image: url(imagens/index_r14_c3.gif);
}
a:link {
color: #FF9900;
font-weight: bold;
text-decoration: none;
}
a:visited {
color: #CCCCCC;
text-decoration: none;
}
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
}
a:hover {
color: #FF9933;
text-decoration: none;
}
a:active {
color: #FF6600;
text-decoration: none;
}
.style12 {
color: #FFFFFF;
font-size: 36px;
}
-->
</style>
<script type="text/javascript">//<![CDATA[
function isAlphaNumeric(value)
{
if (value.match(/^[a-zA-Z0-9]+$/))
return true;
else
return false;
}
function checkform(f)
{
if (f.account.value=="")
{
alert("Preencher todos os campos do formularios ");
return false;
}
if (!isAlphaNumeric(f.account.value))
{
alert("Preencher todos os campos do formularios");
return false;
}
if (f.oldpassword.value=="")
{
alert("Você colocou sua senha antiga");
return false;
}
if (f.newpassword.value=="")
{
alert("Nenhuma senha detectada no campo");
return false;
}
if (!isAlphaNumeric(f.newpassword.value))
{
alert("44444");
return false;
}
if (f.newpassword2.value=="")
{
alert("Você não repetiu a senha");
return false;
}
if (f.newpassword.value!=f.newpassword2.value)
{
alert(" Senha não é igual! ");
return false;
}
return true;
}
//]]></script>
<link href="style.css" rel="stylesheet" type="text/css">
<title>Trocar Senha</title></head>
<style type="text/css">
<!--
.Estilo1 {
color: #FFFFFF;
font-family: "Courier New", Courier, monospace;
}
color: #FFFFFF;
font-weight: bold;
}
-->
.Estilo4 {font-size: 10px; font-weight: bold; }
.Estilo6 {color: #FFFFFF}
-->
</style>
<body>
<form method="post" action="?ir=lembrarsenha" onsubmit="return checkform(this)">
<center>
<font face="Verdana, Arial, Helvetica, sans-serif"><strong><span class="Estilo1">Trocar </span><span class="Estilo6">senha<br>
</span><font color="#FF0000" size="4">
</font></strong></font> <br>
<table background="imagens/imagens/home_r6_c1.gif">
<tr>
<td class="Estilo1"><div align="left" class="Estilo4"><font face="Trebuchet MS">Login </font></div></td>
<td>
<font size="1"><b>
<input name="account" type="text" class="camp1" style="font-family: Trebuchet MS; " size="20" maxlength="15" />
</b></font></td>
</tr>
<tr>
<td class="Estilo1"><div align="left" class="Estilo4"><font face="Trebuchet MS">Senha Atual </font></div></td>
<td><font size="1"><b>
<input name="oldpassword" type="password" class="camp1" style="font-family: Trebuchet MS; " size="20" maxlength="15" />
</b></font></td>
</tr>
<tr>
<td class="Estilo1"><div align="left" class="Estilo4"><font face="Trebuchet MS">Nova Senha </font></div></td>
<td><font size="1"><b>
<input name="newpassword" type="password" class="camp1" style="font-family: Trebuchet MS; " size="20" maxlength="15" />
</b></font></td>
</tr>
<tr>
<td class="Estilo1"><div align="left" class="Estilo4"><font face="Trebuchet MS">Repetir Senha </font> </div></td>
<td><font size="1"><b>
<input name="newpassword2" type="password" class="camp1" style="font-family: Trebuchet MS; " size="20" maxlength="15" />
</b></font></td>
</tr>
<tr>
<td colspan="2" style="text-align: center;"><font size="1"><b>
<input name="submit" type="submit" class="camp1" style="font-family: Trebuchet MS" value="Trocar SENHA" />
</b></font></td>
</tr>
</table>
</center>
</form>
<center>
<?php
if(ereg("^([a-zA-Z0-9_-])*$", $_POST['account']) && ereg("^([a-zA-Z0-9_-])*$", $_POST['oldpassword']) && ereg("^([a-zA-Z0-9_-])*$", $_POST['newpassword']) && ereg("^([a-zA-Z0-9_-])*$", $_POST['newpassword2']))
{
if ($page='index.php' && $_POST['account'] && strlen($_POST['account'])<16 && $_POST['oldpassword'] && $_POST['newpassword'] && $_POST['newpassword']==$_POST['newpassword2'])
{
$result=mysql_query("SELECT login,password FROM accounts WHERE login='"[email protected]_real_escape_string($_POST['account'])."' AND password='".base64_encode(pack('H*', sha1($_POST['oldpassword'])))."'", $link)
 or die ("Error: ".mysql_error());
if (mysql_num_rows($result))
{
mysql_query("UPDATE accounts SET password='".base64_encode(pack('H*', sha1($_POST['newpassword'])))."' WHERE login='".mysql_real_escape_string($_POST['account'])."'", $link)
or die ("Error: ".mysql_error());
 print "<p style=\"font-weight: bold;\"><font size=1 color=ffffff>Senha modificada. </font> </p>";
}
else
 print "<p class=\"error\"><font size=1 color=ffffff>Ouve algum erro, tente novamente. </font> </p>";
mysql_close($link);
}
}
else
{
echo "<font size=1 color=ffffff>As limitações não foram testadas para a segurança. Se você for confiável que tido a informação correta, consultar por favor à administração.</font>";
}
?>
</center>
</body>
</html>

 

 

Login Server ON/OFF

 

 

<?php
		$fp = @fsockopen("127.0.0.1", 7777, $errno, $errstr, 1);
		if($fp >= 1){
		echo 'ON';}
		else{ echo '<font color=red>OFF</font>';}
		?>

 

 

 

Nomes dos players que estao On No Servidor

 

 

<?php

function connect()
{
include "configs/script_config.php";
}

$sexes = array('M', 'F');
$levels = array('-100' => "Banned", '100' => "GM");

$FORM = "<table border='1' background='imagens/imagens/home_r6_c1.gif'>
<tr>
<th class='Stil5' align=center>Pos.</th>
<th class='Stil5' align=center>Player Online</th>
</tr>";
$query_chars = "select char_name from characters WHERE online=1;";
connect();
$link = mysql_query($query_chars);
$i=1;
$r=255;
while ( $row=mysql_fetch_row($link) )
{

$FORM .= "<tr>
<td class='Stil5' align=center>$i</span></td>
<td class='Stil5' align=center>$row[0]</td>
</tr>";
$i++;
$r -= 0;
}

mysql_close();

echo $FORM;

?>

 

 

Cuantos Personagens existem no srv.

 

 

<?
$servidor = "localhost"; 	//IP do servidor
$usuario = "root"; 		//Usuário do Sql
$senha = "root"; 		//Senha do Banco de Dados
$banco = "l2jdb"; 		// Nome do Banco de Dados

$conexao = mysql_connect($servidor, $usuario, $senha) or die(mysql_error());
mysql_select_db($banco, $conexao) or die(mysql_error());

$sql = mysql_query("SELECT * FROM characters ORDER BY account_name") or die(mysql_error());

$i = 1;
while($a = mysql_fetch_object($sql)) {
$i++;
}
$i= $i-1
?><?php echo $i;
?>

 

 

Numero dos players on no seu server

 

 

<?php
function connect()
{
include "configs/script_config.php";
}

$query_chars = "select char_name from characters WHERE online=1;";
connect();
$link = mysql_query($query_chars);
$a=1;
$r=255;
while ( $row=mysql_fetch_row($link) )
{
$FORM .= $row[0];
$a++;
$r -= 0;
}
if ($a == ""){
$a=0;
}

mysql_close();
echo $a -1;
?>

 

 

Title se mechendo

 

 

<title>L2JBrasil </title>
<script><!--
var tit = document.title;
var c = 0;

function writetitle()
{
document.title = tit.substring(0,c);
if(c==tit.length)
{
c = 0;
setTimeout("writetitle()", 3000)
}
else
{
c++;
setTimeout("writetitle()", 200)
}
}
writetitle()
// --></script>

 

 

Script PHP (Troca imagem ao carrega o site)

 

 

<?php

function connect()
{
include "configs/script_config.php";
}

$sexes = array('M', 'F');
$levels = array('-100' => "Banned", '100' => "GM");

$FORM = "<table border='1' background='imagens/imagens/home_r6_c1.gif'>
<tr>
<th class='Stil5' align=center>Pos.</th>
<th class='Stil5' align=center>Player Online</th>
</tr>";
$query_chars = "select char_name from characters WHERE online=1;";
connect();
$link = mysql_query($query_chars);
$i=1;
$r=255;
while ( $row=mysql_fetch_row($link) )
{

$FORM .= "<tr>
<td class='Stil5' align=center>$i</span></td>
<td class='Stil5' align=center>$row[0]</td>
</tr>";
$i++;
$r -= 0;
}

mysql_close();

echo $FORM;

?>

 

 

 

Desativa o clik dereito do mouse

 

 

function GetClickCountRate(fileName)

curPage=1;
document.oncontextmenu = function() { return false }

if(document.layers)
{
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e)
{
if(e.target==document)
return false;
}
}

 

 

Crie um arkivo .js e coloke iso dentro

cualquer duvida poste-la aki !

 

Confirmar Doaçao

 

 

Index.php

 

 

<html>

<head>

<title>Formulario HTML</title>

<style type="text/css">

@import url("style.css");

</style>

</head>

<body>

<?php

if (isset($_POST["nome"]) || isset($_POST["login"]) || isset($_POST["char"]) ||

isset($_POST["banco"]) || isset($_POST["numero"]) || isset($_POST["modo"]) ||

isset($_POST["valor"]) || isset($_POST["data"]) || isset($_POST["hora"]) ||

isset($_POST["tipo"]) || isset($_POST["email"]) || isset($_POST["comentarios"]))

{

$nome = $_POST["nome"];

$login = $_POST["login"];

$char = $_POST["char"];

$banco = $_POST["banco"];

$numero = $_POST["numero"];

$modo = $_POST["modo"];

$valor = $_POST["valor"];

$data = $_POST["data"];

$hora = $_POST["hora"];

$tipo = $_POST["tipo"];

$email = $_POST["email"];

$comentarios = $_POST["comentarios"];

 

$arq = fopen("data.php", "a");

 

if($arq)

{

fputs($arq, "-----------------------------------------------------------------------------------------------

Nome = $nome

Login = $login

Char = $char

Banco = $banco

Numero do deposito = $numero

Modo de deposito = $modo

Valor da Doação = $valor

Data da Doação = $data

Hora exata da Doação = $hora

Tipo de Doação = $tipo

E-Mail de contato = $email

Comentario = $comentarios

-----------------------------------------------------------------------------------------------\r\n");

 

fclose($arq);

 

echo "<hr></hr><table align='center'>

<tr>

<th>Seu pedido de confirmação de Doação foi enviado com Sucesso!!</th>

</tr>

</table>

<hr></hr>";

}

else

{

echo "ERRO: Falha ao abrir o arquivo!";

}

}

else

{

echo "";

}

?>

<table border="0">

<form action="index.php" method="post">

<tr>

<th>Nome Completo:</th>

<td><input type="text" name="nome" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Login:</th>

<td><input type="text" name="login" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Char:</th>

<td><input type="text" name="char" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Banco:</th>

<td><input type="text" name="banco" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Numero do deposito:</th>

<td><input type="text" name="numero" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Modo de deposito:</th>

<td><input type="text" name="modo" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Valor da Doação:</th>

<td><input type="text" name="valor" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Data da Doação:</th>

<td><input type="text" name="data" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Hora exata da Doação:</th>

<td><input type="text" name="hora" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Tipo de Doação:</th>

<td><input type="text" name="tipo" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Seu E-Mail de Contato:</th>

<td><input type="text" name="email" size="30" maxlength="40"></td>

</tr>

<tr>

<th>Comentarios:</th>

<td><textarea name="comentarios" cols="22" rows="7"></textarea></td>

</tr>

<tr>

<td><center><input type="submit" value="Enviar"></center></td>

<td><center><input type="reset" value="Resetar"></center></td>

</tr>

</form>

</table>

</body>

</html>

 

 

 

style.css

 

 

 

/*********************************

********** CSS DO SCRIPT **********

**********************************/

body {

background-color: #283C3E;

}

th {

color: #FFFFFF;

text-align: left;

font-weigth: bold;

}

 

 

 

Demo:

 

 

fWrPX.png

 

 

 

 

 

Raid Boss ON/OFF (A Pedido do membro ByJrmhp)

 

 

<html>
<head>
<title>
Informações do Raid Boss
</title>
</head>
<body>
<table>
<tr><td>Name</td><td>Status</td><td>Spawn</td></tr>
<?php
$hostname = "localhost"; // tipo de conexao
$database = "l2jdb"; // nome da database
$user = "root"; // login no mysql
$pass = "senhadasuadb"; // senha do mysql

$connect = @mysql_connect($hostname, $user, $pass);
@mysql_select_db($database, $connect);

if(!$connect)
echo 'Can\'t connect to the database';
else
{
$raidspawn = mysql_query("SELECT boss_id,respawn_time FROM raidboss_spawnlist ORDER BY respawn_time DESC");
while(list($boss_id,$respawn_time) = mysql_fetch_row($raidspawn))
{
$raidnames = mysql_query("SELECT name FROM npc WHERE id = $boss_id");
$text = '<font color="00FF00">Ativo</font>';
$respawn = '<font color="0000FF">Spawn</font>';
if($respawn_time > 0)
{
	$respawntime = date('r',($respawn_time / 1000));
	$text = '<font color="FF0000">Morto</font>';
	$respawn = '<font color="FF0000">Tempo de Respawn '.$respawntime.'</font>';
}

while(list($raidname) = mysql_fetch_row($raidnames))
{
	echo '<tr><td>'.$raidname.'</td><td>'.$text.'</td><td>'.$respawn.'</td></tr>';
}
}
}
?>
</table>
</body>
</html>

 

 

 

Castle Siege

 

 

 

 

Imagem.

 

 

castleu.gif

 

 

 

 

Código

 

 

 

 

 

 

Rank Pvp/PK/Online/Rec Etc..

Creditos ao L2Vicio

 

<html>
<style type="text/css">
<!--
body,td,th {
color: #000;
background-color:#FFF
}
.table {
border-color: #000;
border-style: hidden;
}
.pos {
background-color:#CCC;
border-color: #000;
border-style: dashed;
}
.char {
background-color:#CCC;
border-color: #000;
border-style: dashed;
}
.quant {
background-color:#CCC;
border-color: #000;
border-style: dashed;
}
-->
</style>
<body>
<h3>Top PVP</h3>
<table width="300" border="1" class="table">
<tr>
<td class="pos">Posição:</td>
<td class="char">Character:</td>
<td class="quant">Quantidade:</td>
</tr>
<?php
// Script Desenvolvido por L2ViciO, por favor não remova os créditos daqui!
/*_______________________________________________________________________*/
// Configurações do MySQL
$sql['usr'] = "root"; # Usuário, Ex: "root" (Geralmente é root mesmo)
$sql['pass'] = "91f2v9e"; # Senha, caso não tenha definido, deixe em branco, Ex: ""
$sql['db'] = "l2db"; # Database, Ex: "l2jdb"
$sql['host'] = "noxconn.servegame.com"; # Endereço do servidor MySQL, Ex: "localhost"
// Fim das configurações do MySQL

// Não mexer abaixo
$open = mysql_connect($sql['host'], $sql['usr'], $sql['pass']) or die("Não foi possível conectar-se à database.");
$select_db = mysql_select_db($sql['db'], $open) or die("Database não encontrada ou inexistente.");
// Não mexer acima

// Configurações do Script
$accesslevel = accesslevel ; // Nome da coluna de accesslevel do seu server (Nos servers mais novos [Gracia +] é accesslevel mesmo .
$ranking = pvpkills ; // Tipo do Ranking; Pode ser: pvpkills ; pkkills ; onlinetime ; karma ; level ; maxCP ; maxHP ; maxMP ; fame .
$limite = 15 ; // Limite de chars que aparecem no ranking .
// Fim das configurações

// Querys e valores fixos (Não mexer)
$top = mysql_query("SELECT * FROM characters WHERE $accesslevel=0 ORDER BY $ranking DESC LIMIT 0, ".$limite."");
$fixo = 1;
// Fim das querys

// Script em si
while($x = mysql_fetch_array($top)){
echo '<tr>
<td class=pos>'.$fixo.' °</td>
<td class=char>'.$x['char_name'].'</td>
<td class=quant>'.$x[$ranking].'</td>
</tr>';
$fixo++;
}
echo '</table>';


// Script em si
// Script Desenvolvido por L2ViciO, por favor não remova os créditos daqui!
?>
</body>
</html>

 

 

 

Créditos : mend3, gpsites, asR, Rz,Amnesia, Jonatha ferreira.

Créditos Post: Fort♥

wink.gif

 

Cualquer duvida poste-la aki !

Edited by NattanFelipe
  • Like 5

Share this post


Link to post
Share on other sites

Conheça também nossa linha de Dedicados Gamer

Conheça a L2JCenter

Pronto.

 

95% ou ate mesmo 100% dos script mais usado nois site de Lineage 2 pode ser encontrado aki .

 

Merece Fixo.

 

Obrigado amigo :)

Share this post


Link to post
Share on other sites

rank pvp e pk tem ?

 

PvP/PK

Creditos ao L2Vicio

 

<html>
<style type="text/css">
<!--
body,td,th {
       color: #000;
       background-color:#FFF
}
.table {
       border-color: #000;
       border-style: hidden;
}
.pos {
       background-color:#CCC;  
       border-color: #000;
       border-style: dashed;
}
.char {
       background-color:#CCC;  
       border-color: #000;
       border-style: dashed;
}
.quant {
       background-color:#CCC;
       border-color: #000;
       border-style: dashed;   
}
-->
</style>
<body>
<h3>Top PVP</h3>
<table width="300" border="1" class="table">
<tr>
<td class="pos">Posição:</td>
<td class="char">Character:</td>
<td class="quant">Quantidade:</td>
</tr>
<?php
// Script Desenvolvido por L2ViciO, por favor não remova os créditos daqui!
/*_______________________________________________________________________*/
// Configurações do MySQL
$sql['usr'] = "root";     # Usuário, Ex: "root" (Geralmente é root mesmo)
$sql['pass'] = "91f2v9e";           # Senha, caso não tenha definido, deixe em branco, Ex: ""
$sql['db'] = "l2db";       # Database, Ex: "l2jdb"
$sql['host'] = "noxconn.servegame.com";   # Endereço do servidor MySQL, Ex: "localhost"
// Fim das configurações do MySQL

// Não mexer abaixo
$open = mysql_connect($sql['host'], $sql['usr'], $sql['pass']) or die("Não foi possível conectar-se à database.");
$select_db = mysql_select_db($sql['db'], $open) or die("Database não encontrada ou inexistente.");
// Não mexer acima

// Configurações do Script
$accesslevel = accesslevel ; // Nome da coluna de accesslevel do seu server (Nos servers mais novos [Gracia +] é accesslevel mesmo .
$ranking = pvpkills ; // Tipo do Ranking; Pode ser: pvpkills ; pkkills ; onlinetime ; karma ; level ; maxCP ; maxHP ; maxMP ; fame .
$limite = 15 ; // Limite de chars que aparecem no ranking .
// Fim das configurações

// Querys e valores fixos (Não mexer)
$top = mysql_query("SELECT * FROM characters WHERE $accesslevel=0 ORDER BY $ranking DESC LIMIT 0, ".$limite."");
$fixo = 1;
// Fim das querys

// Script em si
       while($x = mysql_fetch_array($top)){
               echo '<tr>
                               <td class=pos>'.$fixo.' °</td>
                       <td class=char>'.$x['char_name'].'</td>
                       <td class=quant>'.$x[$ranking].'</td>
                         </tr>';
               $fixo++;
               }
                               echo '</table>';


// Script em si
// Script Desenvolvido por L2ViciO, por favor não remova os créditos daqui!
?>
</body>
</html>

Share this post


Link to post
Share on other sites

leecher. os créditos não são seus.

 

 

créditos : mend3

Créditos:

gpsites

mend3

asR

Rz

Amnesia

 

Disculpe amigo, eu colokei meus creditos la pelo post feito por mim !

Mais os scripts nao sao ningum meu so juntei todos em 1 ...

Colokei todo os creditos que tu me pasou Obrigado ai..

Share this post


Link to post
Share on other sites

ola vc nao teria 1 registro simples i nao para este sit (http://www.l2jbrasil.com/index.php?/topic/44188-new-site-by-revoltado

 

o registro de la esta assim

 

Login: ....................................................

Exibição:................................................

Senha: .............................................

Confirma Senha: ..................................

Codigo de Acesso:...........................

(Apenas numeros max 5)

 

E-mail:..........................

 

poderia fazer 1 assim

 

log =

senha=

repetir senha=

 

com 1 sql para add no sit ( interlud) :excl:

Share this post


Link to post
Share on other sites

Ser o que?

 

 

 

Calculadora Online:

 

<h1 align="center">Calculadora Online</h1>

<table width="600" align="center" border="0" cellpadding="0" cellspacing="0">

<tbody>

<tr>

<td> </td>

 

<td valign="top" bgcolor="#1e4863"><br><br>

<form name="calc" class="form" onsubmit="calc.input.value=eval(calc.input.value);return(false)">

<table align="center" border="0" cellpadding="0" cellspacing="0">

<tbody><tr>

<td><input name="input" class="input" style="text-align: right; padding-right: 3px;" type="text"></td></tr>

<tr>

<td><br>

<table align="center" border="0" cellpadding="3" cellspacing="0">

<tbody><tr>

 

<td><input value=" 1 " onclick="calc.input.value += '1'" class="calcbut" type="button"></td>

<td><input value=" 2 " onclick="calc.input.value += '2'" class="calcbut" type="button"></td>

<td><input value=" 3 " onclick="calc.input.value += '3'" class="calcbut" type="button"></td>

<td><input value=" + " onclick="calc.input.value += ' + '" class="calcbut" type="button"></td>

</tr>

<tr>

<td><input value=" 4 " onclick="calc.input.value += '4'" class="calcbut" type="button"></td>

<td><input value=" 5 " onclick="calc.input.value += '5'" class="calcbut" type="button"></td>

<td><input value=" 6 " onclick="calc.input.value += '6'" class="calcbut" type="button"></td>

 

<td><input value=" - " onclick="calc.input.value += ' - '" class="calcbut" type="button"></td>

</tr>

<tr>

<td><input value=" 7 " onclick="calc.input.value += '7'" class="calcbut" type="button"></td>

<td><input value=" 8 " onclick="calc.input.value += '8'" class="calcbut" type="button"></td>

<td><input value=" 9 " onclick="calc.input.value += '9'" class="calcbut" type="button"></td>

<td><input value=" x " onclick="calc.input.value += ' * '" class="calcbut" type="button"></td>

</tr>

<tr>

 

<td><input value=" c " onclick="calc.input.value = ''" class="calcbut" type="button"></td>

<td><input value=" 0 " onclick="calc.input.value += '0'" class="calcbut" type="button"></td>

<td><input value=" = " onclick="calc.input.value = eval(calc.input.value)" class="calcbut" type="button"></td>

<td><input value=" / " onclick="calc.input.value += ' / '" class="calcbut" type="button"></td>

</tr>

</tbody></table>

</td>

</tr>

</tbody></table>

 

</form>

</td>

 

Share this post


Link to post
Share on other sites

Ser o que?

 

 

 

Calculadora Online:

 

<h1 align="center">Calculadora Online</h1>

<table width="600" align="center" border="0" cellpadding="0" cellspacing="0">

<tbody>

<tr>

<td> </td>

 

<td valign="top" bgcolor="#1e4863"><br><br>

<form name="calc" class="form" onsubmit="calc.input.value=eval(calc.input.value);return(false)">

<table align="center" border="0" cellpadding="0" cellspacing="0">

<tbody><tr>

<td><input name="input" class="input" style="text-align: right; padding-right: 3px;" type="text"></td></tr>

<tr>

<td><br>

<table align="center" border="0" cellpadding="3" cellspacing="0">

<tbody><tr>

 

<td><input value=" 1 " onclick="calc.input.value += '1'" class="calcbut" type="button"></td>

<td><input value=" 2 " onclick="calc.input.value += '2'" class="calcbut" type="button"></td>

<td><input value=" 3 " onclick="calc.input.value += '3'" class="calcbut" type="button"></td>

<td><input value=" + " onclick="calc.input.value += ' + '" class="calcbut" type="button"></td>

</tr>

<tr>

<td><input value=" 4 " onclick="calc.input.value += '4'" class="calcbut" type="button"></td>

<td><input value=" 5 " onclick="calc.input.value += '5'" class="calcbut" type="button"></td>

<td><input value=" 6 " onclick="calc.input.value += '6'" class="calcbut" type="button"></td>

 

<td><input value=" - " onclick="calc.input.value += ' - '" class="calcbut" type="button"></td>

</tr>

<tr>

<td><input value=" 7 " onclick="calc.input.value += '7'" class="calcbut" type="button"></td>

<td><input value=" 8 " onclick="calc.input.value += '8'" class="calcbut" type="button"></td>

<td><input value=" 9 " onclick="calc.input.value += '9'" class="calcbut" type="button"></td>

<td><input value=" x " onclick="calc.input.value += ' * '" class="calcbut" type="button"></td>

</tr>

<tr>

 

<td><input value=" c " onclick="calc.input.value = ''" class="calcbut" type="button"></td>

<td><input value=" 0 " onclick="calc.input.value += '0'" class="calcbut" type="button"></td>

<td><input value=" = " onclick="calc.input.value = eval(calc.input.value)" class="calcbut" type="button"></td>

<td><input value=" / " onclick="calc.input.value += ' / '" class="calcbut" type="button"></td>

</tr>

</tbody></table>

</td>

</tr>

</tbody></table>

 

</form>

</td>

 

 

 

GRD_374_web_calculadora_mod_03.jpg

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  




     



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Pessoal boa noite! Estou usando a revisão #1132 e estou tendo dificuldades pra por o PC (Computador) conectado na rede para logar-se no servidor. Tinha esta revisão já na maquina e estava finalizando (Fazendo teste cliente e servidor na mesma máquina.) porém tive alguns problemas pessoais e retornei a alguns dias para finalizar minhas edições encima da rev e usá-la para o público.   Segue algumas informações de como esta a princípio as minhas configurações: # #============================================================# #                       Frozen Dev.Team                      # #============================================================# # This is the server configuration file. Here you can set up the connection for your server. # Usually you have to change the ExternalHostname option to # - 127.0.0.1 (if you want to play alone / testing purpose) # - LAN IP* (if you want to play from another computer in the network) # - WAN IP** (if you want to play with friends over internet) # - Questions? => http://l2jfrozen.com # # * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig" # **= If you want to get you WAN IP, visit http://www.whatismyip.com # =================================================================================================== # ================================================================ # General server setting !!! REQUIRED to configure to everyone !!! # ================================================================ # This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname ExternalHostname = 192.168.15.1 # This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname InternalHostname = 192.168.15.1 # Bind ip of the loginServer, use * to bind on all available IPs LoginserverHostname =* LoginserverPort = 2106 # How many times you can provide an invalid account/pass before the IP gets banned LoginTryBeforeBan = 20 # Time you won't be able to login back again after LoginTryBeforeBan tries to login. Provide a value in seconds. Default 10min. (600)   LoginBlockAfterBan = 600 GMMinLevel = 100 # The address on which login will listen for GameServers, use * to bind on all available IPs   LoginHostname =* # The port on which login will listen for GameServers LoginPort = 9014 # If set to True any GameServer can register on your login's free slots AcceptNewGameServer = False # If False, the licence (after the login) will not be shown # It is highly recomended for Account Seciurity to leave this option as defalut (True) ShowLicence = True # Database Pool Type # Possible Values: c3p0 or BoneCP # c3p0: more stable # BoneCP: more performance DatabasePoolType = c3p0 # Database info Driver = com.mysql.jdbc.Driver #Driver=org.hsqldb.jdbcDriver #Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver # Database Settings URL = jdbc:mysql://localhost/l2jdb #URL=jdbc:hsqldb:hsql://localhost/l2jdb #URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password= # Parameters Databases - MYSQL # Login - Mysql's user Login = root # Password - Mysql's Password Password =  # maximum number of simultaneous connecting to the database MaximumDbConnections = 50 # Default: 0 MaximumDbIdleTime = 0 # The timeout before a new connection to the database (in ms) # default 0 disabled TimeOutConDb = 0 # Sets number of partitions to use. - BoneCP # In order to reduce lock contention and thus improve performance,  # each incoming connection request picks off a connection from a pool that has thread-affinity,  # i.e. pool[threadId % partition_count]. The higher this number, the better your performance will be for the case  # when you have plenty of short-lived threads. Beyond a certain threshold, maintenance of these pools will start  # to have a negative effect on performance (and only for the case when connections on a partition start running out). PartitionCount = 3 # Limit fast connections (input username / password) FastConnectionLimit = 15 # Time of the normal connection (in ms) NormalConnectionTime = 700 # Time fast connection (in ms) FastConnectionTime = 350 # Maximum connections with the 1st IP MaxConnectionPerIP = 50 # The lifetime of the session with the login server.  SessionTTL = 25000 MaxSessions = 100 # Choose the option: "true", to create an account when logging in automatically AutoCreateAccounts = True # Time to renew the IP address of the server in minutes (for dynamic IP) IpUpdateTime = 0 # The configuration of the local subnet # Example : 192.168 # Ppimer : 10.1 NetworkList = 192.168;10.0. # =============================================================== # Test server configuration, not to switch on the game server!  = # =============================================================== # Use the GG client authentication # Login server access let the client without GameGuard ForceGGAuth = False # Including protection from flood # IMPORTANT: Put True for server security. EnableFloodProtection = True # Enable mode "debugging" # With debug you will see more log on console and more messages in game. Debug = False # Switched on "development" Developer = False # ============================================================= # Anti Ddos protection.  # This system works with iptables # ============================================================= # iptables -A INPUT -p tcp --dport 7777 -j DROP # IMPORTANT: Put True for server security. # IMPORTANT: Active only with LINUX OS. EnableDdosProSystem = False # String deny_comms # IMPORTANT: If you don't know what is it, leave as default Deny_noallow_ip_ddos = /sbin/iptables -I INPUT 13 -p tcp --dport 7777 -s $IP -j ACCEPT # Active full log on Login Server console about Ddos protection Fulllog_mode_print = False # ============================================================= # Anti Bruteforce protection. (credits RT-Interlude) # ============================================================= #Count of trying connection to server, after which will be made checking IP addres #for a possible BrutForce #Reducing this value will increase the likelihood of false positives #Increasing this value will reduce the effectiveness of security (more chance find passwords for large accounts) BrutLogonAttempts = 15 #The average time (in seconds) between attempts to connect to the server #Reducing this value will increase the likelihood of false positives #Increasing this value will reduce the effectiveness of security (more chance find passwords for large accounts) BrutAvgTime = 30 #Number of second, for ban IP address, who time BrutAvgTime less specified #900 second = 15 minute  BrutBanIpTime = 900 Assert = False EnableAllExceptionsLog = False DebugPackets = False  Se estiver na área errada por favor, perdoe-me! A dúvida é relacionada a questão de por outro pc na mesma rede para abrir o servidor e poder editar sem ser na máquina que esta RODANDO o server. Desde já agradeço a atenção de todo(a)s! 
    • Ola amigos adaptei o dragaozinho espero que gostem     DOWNLOAD: http://www.mediafire.com/file/ifriib3ii6323lg/Fafurion_H5_by_Locodark.rar/file        
    • abaixa os status do seus itens ou faz um balanço na revisao em StatsPayer pra travar cada class sim podendo definir attk speed e casting speed por cada class
    • Olá amigos venho pedir ajuda em um problema que estou tendo.. Eu defini no meu server o Max de casting speed e atak speed porém quando uso qualquer itens grade s até mesmo os originais o personagem fight fica full atak speed e personagem mage full casting... Enfim gostaria de saber como deixar retail não deixar pra ficar full assim... brigadão des de já.  Uso a rev do Marcos Project x
    • Bom dia   Adicionei o NPC, mas ele não altera o ID do Template do MOB, quando dou spawn nele, ele funciona normalmente o Scheme, porém, ele vem com nome de: Anakim e oTitle (Raid Boss) (ID Template que usei para ele), ele vem como se fosse o Boss Anakim, porém, quando clica nele, abre o schema normal e funfa tudinho 
    • Bom dia Alguém? ainda não consegui resolver mudando os nomes, o que preciso fazer será?
    • Boa noite, como faço para aparecer o nível do enchant do item á venda no shop? Já editei a multisell, e quando se compra o item, ele vem enchantado. Porém não aparece o nível do enchant no shop.
    • Boa noite, alguém tem ai para disponibilizar dois itens para a JFrozen 1132? - Item Change Name - Item Change Classe   Se alguém tiver agradeço.
×
×
  • Create New...