Ir para conteúdo

luanluciano93

Héroi
  • Registro em

  • Última visita

Solutions

  1. luanluciano93's post in (Resolvido)Alguem me ajudaria nesse sistema? was marked as the answer   
    Tenta assim: 
    if(param == "skilldistance") then local buff = getCreatureCondition(cid, CONDITION_ATTRIBUTES) if not isPaladin(cid) and not buff and getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 350 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Paladins podem comprar skill de distance.") else if getPlayerItemCount(cid, 9971) >= 1 then local pid = getPlayerGUID(cid) local distance = getPlayerSkillLevel(cid, SKILL_DISTANCE) doPlayerRemoveItem(cid, 9971, 1) setPlayerStorageValue(cid, 11548, os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (distance + 1) .. ", `count` = 0 WHERE `skillid` = 4 and `player_id` = " .. pid .. ";") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") end end return true end Se não der experimenta trocar isso: local buff = getCreatureCondition(cid, CONDITION_ATTRIBUTES)
    por isso  local buff = getCreatureCondition(cid, CONDITION_PARAM_SKILL_DISTANCEPERCENT)
  2. luanluciano93's post in (Resolvido)erro Warning: date() [function.date] was marked as the answer   
    Resolvido ~
  3. luanluciano93's post in (Resolvido)[Pedido] Alavanca Remover 2 items e da 1 item was marked as the answer   
    Não entendi, ele remover apenas 1 e funciona?

    Tente assim: 
    function onUse(cid, item, position) if item.itemid == 1945 then doTransformItem(item.uid, 1946) else doTransformItem(item.uid, 1945) end local removeItem1 = 11217 local removeItem2 = 11217 local AddItem = 7440 -- o item que o player vai ganhar if getPlayerItemCount(cid, removeItem1) >= 25 and getPlayerItemCount(cid, removeItem2) >= 25 then doPlayerRemoveItem(cid, removeItem1, 25) doPlayerRemoveItem(cid, removeItem2, 25) doPlayerAddItem(cid, AddItem, 1) doPlayerPopupFYI(cid, "Voce trocou 25 halloween coins por uma 4x potion") else doPlayerPopupFYI(cid, "Voce precisa de 25 halloween coins pra trocar por uma 4x potion") return false end end
  4. luanluciano93's post in (Resolvido)[PEDIDO ]ajuda com pagamentos .. was marked as the answer   
    Nessa linha: 
    $main_content .= '<br><br><b>Valores:</b><br> Escreva as informações que quiser depois disso $main_content .= ' ... lembrando que <br> esse linha, e 2 <br> pula uma inha ... boa sorte!
  5. luanluciano93's post in (Resolvido)[AJUDA] erro no distro e ajuda com script de shop was marked as the answer   
    @RedSlugah, arrume o termpo na tag em globalevents/globalevents.xml, procure o script do shop e veja o interval, pode estar em milésimos.

    Clique na melhor resposta para que o tópico fique automaticamente como resolvido. 
  6. luanluciano93's post in (Resolvido)Erro player.cpp was marked as the answer   
    Se for mexer em C/C++ aprenda pelo menos o basico ...   

    Mude isso:
    sprintf(buffer, "Voce perdeu %d ponto de vida pelo ataque de um %s.", damage, (damage != 1 ? "s" : ""), attacker->getNameDescription().c_str()); else sprintf(buffer, "Voce perdeu %d ponto de vida.", damage, (damage != 1 ? "s" : "")); Para isso: 
    sprintf(buffer, "Voce perdeu %d ponto%s de vida pelo ataque de um %s.", damage, (damage != 1 ? "s" : ""), attacker->getNameDescription().c_str()); else sprintf(buffer, "Voce perdeu %d ponto%s de vida.", damage, (damage != 1 ? "s" : "")); Bjs gatu!
  7. luanluciano93's post in (Resolvido)Shop / Gesior was marked as the answer   
    Use o comando na database e add direto por lá, é mais seguro.
  8. luanluciano93's post in (Resolvido)MYSQL was marked as the answer   
    • http://www.4shared.com/rar/chm83vh8/Database_OT-SOFT.html?
     
  9. luanluciano93's post in (Resolvido)[ERRO] Gesior 2012 TFS1.0 was marked as the answer   
    Resolvido ~
  10. luanluciano93's post in (Resolvido)[failed connecting to database] was marked as the answer   
    mude onde esta localhost pra 127.0.0.1 e teste.
  11. luanluciano93's post in (Resolvido)Como Colocar para o Treiner Healar was marked as the answer   
    <?xml version="1.0" encoding="UTF-8"?> <monster name="Training Monk" nameDescription="a training monk" race="blood" experience="0" speed="0" manacost="0"> <health now="100000" max="100000"/> <look type="57" head="20" body="30" legs="40" feet="50" corpse="3128"/> <targetchange interval="1000" chance="0"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag staticattack="50"/> <flag lightlevel="0"/> <flag lightcolor="0"/> <flag targetdistance="1"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="1200" attack="1" skill="60"/> <attack name="mass healing" interval="2000" chance="100" target="0" min="100000" max="100000"/> </attacks> <defenses armor="0" defense="0"> <defense name="healing" interval="10000" chance="100" min="100000" max="100000"/> </defenses> <immunities> <immunity invisible="1"/> </immunities> </monster> Essa parte faz ele healar .. 
    <defense name="healing" interval="10000" chance="100" min="100000" max="100000"/>
  12. luanluciano93's post in (Resolvido)Adicionando Shop Guild e Most powerfull guilds was marked as the answer   
    Tente usar a barra de pesquia do fórum, você pode entrar mais facilmente a resolução das dúvidas ..   


    Guild shop system: http://www.tibiaking.com/forum/topic/22910-guild-shop-system-100-perfect/
    Most powerfull guilds:
    <table border="0" cellspacing="3" cellpadding="4" width="100%"> <tr>'; foreach($SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, `g`.`logo_gfx_name` AS `logo`, COUNT(`g`.`name`) as `frags` FROM `killers` k LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id` LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id` LEFT JOIN `guild_ranks` gr ON `p`.`rank_id` = `gr`.`id` LEFT JOIN `guilds` g ON `gr`.`guild_id` = `g`.`id` WHERE `k`.`unjustified` = 1 AND `k`.`final_hit` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0, 4;') as $guild) $main_content .= ' <td style="width: 25%; text-align: center;"> <a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guilds/' . ((!empty($guild['logo']) && file_exists('guilds/' . $guild['logo'])) ? $guild['logo'] : 'default_logo.gif') . '" width="64" height="64" border="0"/><br />' . $guild['name'] . '</a><br />' . $guild['frags'] . ' kills </td>'; $main_content .= ' </tr> </table>'; ou http://www.tibiaking.com/forum/topic/35251-most-powerful-guilds-gesior-acc/
     
  13. luanluciano93's post in (Resolvido)[ACTION] Ajuda com Action[tfs1.0] was marked as the answer   
    doPlayerRemoveItem(cid, itemuid, 1)
  14. luanluciano93's post in (Resolvido)PROBLEMA NO ["INSTALL"] DO GESIOR /URGENTE\ was marked as the answer   
    Gesior 2012 para TFS 1.0 é esse: 
    https://github.com/gesior/Gesior2012/tree/TFS-1.0
  15. luanluciano93's post in (Resolvido)[Urgente][Fatal Error] site was marked as the answer   
    • Table 'otserv.z_shopguild_offer' doesn't exist' (precisa add a tabela z_guildshop_offer)
    • Unknown column 'item_name' (precisa add a coluna item_name)
    • Unknown column 'viewers' (precisa add a coluna viewers)
     
  16. luanluciano93's post in (Resolvido)[Urgente][Erro] Site was marked as the answer   
    CREATE TABLE IF NOT EXISTS `announcements` ( `id` int(10) NOT NULL auto_increment, `title` varchar(50) NOT NULL, `text` varchar(255) NOT NULL, `date` varchar(20) NOT NULL, `author` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ; http://www.tibiaking.com/forum/topic/30053-2015-gesior-10-victorwebmaster/?p=178024
  17. luanluciano93's post in (Resolvido)ERRO NA HORA DE COMPRAR ITEM NO SHOP! was marked as the answer   
    CREATE TABLE IF NOT EXISTS `z_ots_comunication` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `action` varchar(255) NOT NULL, `param1` varchar(255) NOT NULL, `param2` varchar(255) NOT NULL, `param3` varchar(255) NOT NULL, `param4` varchar(255) NOT NULL, `param5` varchar(255) NOT NULL, `param6` varchar(255) NOT NULL, `param7` varchar(255) NOT NULL, `delete_it` int(2) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=230 ;
  18. luanluciano93's post in (Resolvido)[MODERN AAC] Deletar Character was marked as the answer   
    Resolvido ~
  19. luanluciano93's post in (Resolvido)Erro no Gesior was marked as the answer   
    Execute esse comando no phpmyadmin em sua database:
    ALTER TABLE `accounts` ADD `page_lastday` int(11);
  20. luanluciano93's post in (Resolvido)Protecção do meu site, como fazer? was marked as the answer   
    Entre em system/load.compat.php ... procure essa parte:
    if(Website::fileExists("pages/" . $_REQUEST['subtopic'] . ".php")) { $subtopic = $_REQUEST['subtopic']; } else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, file does not exist.'); } Mude isso: 
    else new Error_Critic('CRITICAL ERROR', 'Cannot load page <b>' . htmlspecialchars($_REQUEST['subtopic']) . '</b>, file does not exist.'); Para isso:
    else { header('Location: ?subtopic=error'); } E pronto, basta criar em pages/ um arquivo com o nome error.php e coloca o que tu quiser dentro, lembrando que é um arquivo php.
  21. luanluciano93's post in (Resolvido)[GESIOR] Site inicia com abas laterais abertas. was marked as the answer   
    verifica no index
  22. luanluciano93's post in (Resolvido)PEDIDO tibia 8.54 was marked as the answer   
    <talkaction words="!comando" event="script" value="teste.lua"/> function onSay(cid, words, param) if(getPlayerItemCount(cid, 2223) > 0) then doPlayerRemoveItem(cid, 2223, 1) doPlayerAddItem(cid, 3445, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Troca feita com sucesso.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce nao tem o item necessario.") end return true end
  23. luanluciano93's post in (Resolvido)[Ajuda] Como editar o Featured Article was marked as the answer   
    É no arquivo latestnews.php ... caso tenha dúvidas poste aqui. 
  24. luanluciano93's post in (Resolvido)Erro Ao Criar Conta Gesior was marked as the answer   
    Existe esses arquivos no seu site?

    • ajax/check_account.php
    • ajax/check_email.php
     
    ???
  25. luanluciano93's post in (Resolvido)Mudar vocações do site was marked as the answer   
    É só mudar no config/config.php.

Informação Importante

Confirmação de Termo