Ir para conteúdo

luanluciano93

Héroi
  • Registro em

  • Última visita

Solutions

  1. luanluciano93's post in (Resolvido)[DUVIDA] Alterações nos scripts de outras versões was marked as the answer   
    Normalmente existe mudanças simples em scripts comparando as versões 0.4 e 0.3.6 (nessas versões que você citou só podem ser essa a mudança).

    Nas sources no arquivo: luascript.h

    procure e tente interpretar:  //lua functions
  2. luanluciano93's post in (Resolvido)(AJUDA) Erro Ao Tentar Adicionar Uma Pagina was marked as the answer   
    no gesior2012 basta colocar no pages/ como você disse, e no caso você não tem o arquivo changename.
  3. luanluciano93's post in (Resolvido)[Help] Vip e Premmium was marked as the answer   
    Tecnicamente é a mesma coisa .. 
     
    O Premium Account, ou Premium System, foi criado pela CipSoft para dar benefícios para jogadores que doassem certa quantia para o jogo ... e a Vip Account (Vip System) foi criado pelos donos de otserv, pelo fato do otserv ser a base do tibia, muitos dos benefícios de um jogador premium, seria que indispensável para um jogador em otserv, como viajar de barco, usar addons, a maioria das magias, entre outros ... por isso, a maioria dos donos de otserv preferem deixar o player como free premium, (deixa-lo premium account sem pagar) e restringir alguns benefícios para jogadores que doam, no caso os vips accounts ... é +/- isso
  4. luanluciano93's post in (Resolvido)comando was marked as the answer   
    Resolvido ~
  5. 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)
  6. luanluciano93's post in (Resolvido)erro Warning: date() [function.date] was marked as the answer   
    Resolvido ~
  7. 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
  8. 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!
  9. 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. 
  10. 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!
  11. luanluciano93's post in (Resolvido)Shop / Gesior was marked as the answer   
    Use o comando na database e add direto por lá, é mais seguro.
  12. luanluciano93's post in (Resolvido)MYSQL was marked as the answer   
    • http://www.4shared.com/rar/chm83vh8/Database_OT-SOFT.html?
     
  13. luanluciano93's post in (Resolvido)[ERRO] Gesior 2012 TFS1.0 was marked as the answer   
    Resolvido ~
  14. 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.
  15. 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"/>
  16. 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/
     
  17. luanluciano93's post in Dúvida was marked as the answer   
    Sempre que é solicitado pelo autor do tópico, fechamos.
  18. luanluciano93's post in (Resolvido)[ACTION] Ajuda com Action[tfs1.0] was marked as the answer   
    doPlayerRemoveItem(cid, itemuid, 1)
  19. 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
  20. 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)
     
  21. 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
  22. 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 ;
  23. luanluciano93's post in (Resolvido)[MODERN AAC] Deletar Character was marked as the answer   
    Resolvido ~
  24. 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);
  25. luanluciano93's post in para quem manja was marked as the answer   
    Na tabela acima dos elementos fica seu número atômico, que basicamente é o número de protons, ai é só pensar ... SE EM CADA ÁTOMO O NÚMERO DE PRÓTONS É IGUAL AO NÚMERO DE ELÉTRONS.
    nº atômico = nº prótons = nº elétrons

Informação Importante

Confirmação de Termo