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.
GOSTARIA DOS ICONES DAS TATTOS , TODOS ICONES , COM ESSE LV , ATÉ O LVL 6 POR FAVOR , PARA INTERLUDE , ESSES DO PRINT NAO SAO INTERLUDE E NAO TENHO ! OBRIGADO!
Olá, seu tópico se encontra com um ou mais links offline. Caso ainda possua o conteúdo, favor postar aqui mesmo no tópico ou mandar MP para algum staff que estaremos normalizando o tópico.
Grato pela atenção!
Voce usar a conta de admin q vc tem no server, vai em accounts e define o acess_level la. e vc entra auto.
Eu tenho uma versão desse votesystem q tentei atualizar e com tutorial so acessar o link na minha assinatura em baixo.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Pergunta
oxygens
Bom pessoal to com essas 2 scripts aqui... as 2 estao para identificar nas tabelas a coluna obj_id e meu servidor é para charid.
Gostaria que trocassem de obj_id para charid alguem faz isso pra mim? Pois nao manjo.
E me repassa a script aqui?
Grato
Script 1
<!--
CREDTIOS: William Silveira aka: WilliamArcher
ESTE SCRIPT É SOMENTE PARA O www.l2jbrasil.com!
CASO PEGOU EM OUTRO FORUM DENUNCIE NO FORUM L2JBRASIL!
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
<html xmlns="
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Entrega de Doacao!</title>
<link href="../estilo.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#tabela {
background: URL('items/tabela_fatia.gif') repeat-x;
}
#tabela2 {
background: URL('items/tabela_titulo.gif') repeat-x;
}
-->
</style>
</head>
<body>
<p><a href="index.php">Voltar</a></p>
<hr>
<p>Pesquisar Items</p>
<?php
if($_GET['tabela'] == "weapon") {
$w = " selected";
}elseif($_GET['tabela'] == "armor") {
$a = " selected";
}else{
$i = " selected";
}
$char = $_GET['id'];
?>
<form id="form1" name="form1" method="get">
<center>
<span class="style7"><span id="texto">Buscar Item:</span></span>
<label>
<input name="pesquisar" type="text" id="pesquisar" size="25" maxlength="18" />
</label>
<label>
<select name="tabela" class="style1" id="tabela1">
<option value="etcitem"<?php echo $i; ?>>Ítem</option>
<option value="weapon"<?php echo $w; ?>>Armas</option>
<option value="armor"<?php echo $a; ?>>Roupas</option>
</select>
</label>
<label>
<input type="submit" name="submit" id="submit" value="Buscar" />
</label>
<label>
ID do Char: <input type="text" name="id" size="8" id="submit" value="<? echo $char; ?>" />
</label>
</center>
</form>
<?php
$pesquisar = $_GET['pesquisar'];
$tabela = $_GET['tabela'];
if($pesquisar == ''){
exit();
}
include "../config.php";
$sql = mysql_query("SELECT * FROM ".$tabela." WHERE name LIKE '%".$pesquisar."%' ORDER BY item_id") or die(mysql_error());
$contar = mysql_num_rows($sql);
?>
<?php
if($contar < 1){
?>
<center><font color="#000000">Sua pesquisa não encontrou nada!</font></center>
<?php
exit();
}
?>
<p id="pesquisa"><center>Você esta pesquisando por: <font color="#000000"><i><b><? echo $pesquisar; ?></i></b></font> / Achou: <font color="#000000"><i><b><? echo $contar; ?></i></b></font> Resultado(s).</center></p>
<table border="0" width="70%" align="center" bgcolor="#000000" cellspacing="1" cellpadding="1">
<!-- Linha dos titulos -->
<tr height="25" id="tabela">
<td align="center">Imagem</td>
<td align="center">Nome</td>
<td align="center">Item ID</td>
<td align="center">Ação</td>
</tr>
<!-- Linha dos items -->
<?php
while($linha = mysql_fetch_array($sql)){
$cor = $cor + 1;
if($cor % 2 == 0) {
$bg = '#E7E7E7';
}else {
$bg = '#F7F7F7';
}
?>
<tr bgcolor="<?php echo $bg; ?>">
<td align="center" valign="center">
<?php
if(file_exists("items/5-".$linha['item_id'].".gif")) {
$img = "<img src=\"items/5-".$linha['item_id'].".gif\" alt=\"".$linha['name']."\">";
echo $img;
}else{
$img = "<img src=\"items/sem_img.gif\" alt=\"Sem imagem para este Ãtem.\">";
echo $img;
}
?>
</td>
<td><b><?=$linha['name']?></b></td>
<td align="center"><?=$linha['item_id']?></td>
<td align="center">
<form method="POST" action="add_doacao.php?id=<? echo $char; ?>&id_item=<?=$linha['item_id']?>">
Enchant: <input type="text" name="enchant" size="3"> - Qnt: <input type="text" name="quantidade" size="3"> <input type="submit" name="submit" value="Doar">
</form>
</td>
</tr>
<?
}
?>
</table>
</body>
</html>
<!--
CREDTIOS: William Silveira aka: WilliamArcher
ESTE SCRIPT É SOMENTE PARA O www.l2jbrasil.com!
CASO PEGOU EM OUTRO FORUM DENUNCIE NO FORUM L2JBRASIL!
-->
Script 2
<?php
/*
CREDTIOS: William Silveira aka: WilliamArcher
ESTE SCRIPT É SOMENTE PARA O www.l2jbrasil.com!
CASO PEGOU EM OUTRO FORUM DENUNCIE NO FORUM L2JBRASIL!
*/
$char = $_GET['id'];
$item = $_GET['id_item'];
$enchant = $_POST['enchant'];
$qnt = $_POST['quantidade'];
$caracteres = '0123456789';
$numch = 8;
$oid = '';
for($i = 0; $i < $numch; $i++) {
$oid.=$caracteres[rand(0,strlen($caracteres)-1)];
}
include "../config.php";
$sql = mysql_query("INSERT INTO items (owner_id, object_id, item_id, count, enchant_level, loc) VALUES ('".$char."', '".$oid.$i."', '".$item."', '".$qnt."', '".$enchant."', 'INVENTORY')") or die(mysql_error());
echo "<script>alert('Doação Entregue com sucesso!');location.href='index.php'</script>";
/*
CREDTIOS: William Silveira aka: WilliamArcher
ESTE SCRIPT É SOMENTE PARA O www.l2jbrasil.com!
CASO PEGOU EM OUTRO FORUM DENUNCIE NO FORUM L2JBRASIL!
*/
?>
Grato a quem ajudar.
Link para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts recomendados
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.