Ir para conteúdo
  • Cadastre-se

OngB4k

Membro
  • Total de itens

    6
  • Registro em

  • Última visita

Sobre OngB4k

OngB4k's Achievements

Aprendiz de Novato

Aprendiz de Novato (1/14)

0

Reputação

  1. To dentro!!! Sem dúvida o maior problema que tenho é deparar com erros que estão dentro da Rev, coisas que precisa compilar, etc.. Entender realmente o processo a nível de correções, não somente ajustes em arquivos que estão em Stats, Skills, XML. A isso me faz não ter segurança em tocar um server online.
  2. Olá!! Alguem poderia me orientar aonde configuro o TVT nesse server? Preciso alterar o item, quantidade, lvl... Grato!!
  3. Perfeito! Agora funcionou! Muito Obrigado Maxwellx!
  4. Se me permitem, aqui está desde o inicio. <?php include '../config/config.php'; $Char =$_GET['char']; $ItemID =$_GET['item_id']; $Amount =$_GET['amount']; $Enchant =$_GET['enchant']; ###################################################################################################### $procurar = mysql_query("SELECT * FROM characters WHERE char_name='$Char'") or die(mysql_error()); while($Obj = mysql_fetch_assoc($procurar)){$OBJ_ID = $Obj['obj_Id'];} ###################################################################################################### $Items = mysql_query("SELECT * FROM items") or die(mysql_error()); while($itens = mysql_fetch_array($Items)){$object_items =++$itens['object_id'];} ###################################################################################################### $armor = mysql_query("SELECT * FROM armor WHERE $col_item='$ItemID'")or die(mysql_error()); $weapon = mysql_query("SELECT * FROM weapon WHERE $col_item='$ItemID'")or die(mysql_error()); $etc = mysql_query("SELECT * FROM etcitem WHERE $col_item='$ItemID'")or die(mysql_error()); ###################################################################################################### if(mysql_num_rows($armor)==0){ if(mysql_num_rows($weapon)==0){ if(mysql_num_rows($etc)==0){echo "<script>alert('Esse item não existe')</script>";} else{//ELSE ETC ###################################################################################################### if($Enchant >0){echo "<script>alert('Esse não pode ser enchantado')</script>";} else{ while($ETC = mysql_fetch_assoc($etc)){$Item_Etc=$ETC['name'];} echo "<script>alert('".$Item_Etc." entregue')</script>"; $send = mysql_query ("INSERT INTO items (owner_id, object_id, item_id, count, enchant_level, loc, loc_data, price_sell, price_buy, time_of_use, custom_type1, custom_type2, mana_left, preco) VALUES ('$OBJ_ID', '$object_items', '$ItemID', '$Amount', '$Enchant', 'INVENTORY', '0', '0', '0', 'Null', '0', '0', '-1', '0')") or die(mysql_error()); echo '<meta http-equiv="refresh" content="0;URL=" />'; } ###################################################################################################### } }//IF WEAPON else{//ELSE WEAPON ###################################################################################################### if($Enchant > $MAX_ENCHANT){echo "<script>alert('Valor máximo de enchant excedido')</script>";} else{ while($WEAPON = mysql_fetch_assoc($weapon)){$Item_Weapon=$WEAPON['name'];} echo "<script>alert('".$Item_Weapon." entregue')</script>"; $send = mysql_query ("INSERT INTO items (owner_id, object_id, item_id, count, enchant_level, loc, loc_data, price_sell, price_buy, time_of_use, custom_type1, custom_type2, mana_left, preco) VALUES ('$OBJ_ID', '$object_items', '$ItemID', '$Amount', '$Enchant', 'INVENTORY', '0', '0', '0', 'Null', '0', '0', '-1', '0')") or die(mysql_error()); echo '<meta http-equiv="refresh" content="0;URL=" />'; } ###################################################################################################### } }//IF ARMOR else{//ELSE ARMOR ###################################################################################################### if($Enchant > $max_enchant){echo "<script>alert('Valor máximo de enchant excedido')</script>";} else{ while($ARMOR = mysql_fetch_assoc($armor)){$Item_ARMOR=$ARMOR['name'];} echo "<script>alert('".$Item_Weapon." entregue')</script>"; $send = mysql_query ("INSERT INTO items (owner_id, object_id, item_id, count, enchant_level, loc, loc_data, price_sell, price_buy, time_of_use, custom_type1, custom_type2, mana_left, preco) VALUES ('$OBJ_ID', '$object_items', '$ItemID', '$Amount', '$Enchant', 'INVENTORY', '0', '0', '0', 'Null', '0', '0', '-1', '0')") or die(mysql_error()); echo '<meta http-equiv="refresh" content="0;URL=" />'; } ###################################################################################################### } ?>
  5. Tayran A sintaxe padrão é essa abaixo: send = mysql_query ("INSERT INTO items (owner_id, object_id, item_id, count, enchant_level, loc, loc_data, price_sell, price_buy, custom_type1, custom_type2, mana_left) VALUES ('$OBJ_ID', '$object_items', '$ItemID', '$Amount', '$Enchant', 'INVENTORY', '0', '0', '0', '0', '0', '-1')") or die(mysql_error()); Obs: A versão do WampServer é 2.1 A versão do Mysql é 5.5.8 Saberia informar aonde estaria o erro?
  6. Pessoal boa tarde!! Quando vou em entregar Doação, adiciono tudo certinho, Id, quantidade e enchant, mas ao clicar em Entregar gera esse erro abaixo: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '='57'' at line 1 Poderiam me ajudar a resolver? :S
  7. Olá.. Infelizmente a única coisa que não se resolve de geito nenhuma.... pode funcionar pra uns pra pra maioria nao funciona... é o Formulario de Contato... Pode ser que seja problema de wamp, ou outro.... mas não apareceu nenhuma alma pra explicar como faz, como é.... por enquanto... li post por post... desde o inicio.... e nada... se alguem durante esses anos resolveu, compartilha aqui com a gente....
×
×
  • Criar Novo...

Important Information

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.