Solutions
-
luanluciano93's post in (Resolvido)[DUVIDA] Alterações nos scripts de outras versões was marked as the answerNormalmente 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
-
luanluciano93's post in (Resolvido)(AJUDA) Erro Ao Tentar Adicionar Uma Pagina was marked as the answerno gesior2012 basta colocar no pages/ como você disse, e no caso você não tem o arquivo changename.
-
luanluciano93's post in (Resolvido)[Help] Vip e Premmium was marked as the answerTecnicamente é 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
-
luanluciano93's post in (Resolvido)comando was marked as the answerResolvido ~
-
luanluciano93's post in (Resolvido)Alguem me ajudaria nesse sistema? was marked as the answerTenta 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)
-
luanluciano93's post in (Resolvido)erro Warning: date() [function.date] was marked as the answerResolvido ~
-
luanluciano93's post in (Resolvido)[Pedido] Alavanca Remover 2 items e da 1 item was marked as the answerNã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 -
luanluciano93's post in (Resolvido)[PEDIDO ]ajuda com pagamentos .. was marked as the answerNessa 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!
-
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.
-
luanluciano93's post in (Resolvido)Erro player.cpp was marked as the answerSe 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!
-
luanluciano93's post in (Resolvido)Shop / Gesior was marked as the answerUse o comando na database e add direto por lá, é mais seguro.
-
luanluciano93's post in (Resolvido)MYSQL was marked as the answer• http://www.4shared.com/rar/chm83vh8/Database_OT-SOFT.html?
-
luanluciano93's post in (Resolvido)[ERRO] Gesior 2012 TFS1.0 was marked as the answerResolvido ~
-
luanluciano93's post in (Resolvido)[failed connecting to database] was marked as the answermude onde esta localhost pra 127.0.0.1 e teste.
-
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"/> -
luanluciano93's post in (Resolvido)Adicionando Shop Guild e Most powerfull guilds was marked as the answerTente 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/
-
-
luanluciano93's post in (Resolvido)[ACTION] Ajuda com Action[tfs1.0] was marked as the answerdoPlayerRemoveItem(cid, itemuid, 1)
-
luanluciano93's post in (Resolvido)PROBLEMA NO ["INSTALL"] DO GESIOR /URGENTE\ was marked as the answerGesior 2012 para TFS 1.0 é esse:
https://github.com/gesior/Gesior2012/tree/TFS-1.0 -
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)
-
luanluciano93's post in (Resolvido)[Urgente][Erro] Site was marked as the answerCREATE 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
-
luanluciano93's post in (Resolvido)ERRO NA HORA DE COMPRAR ITEM NO SHOP! was marked as the answerCREATE 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 ;
-
luanluciano93's post in (Resolvido)[MODERN AAC] Deletar Character was marked as the answerResolvido ~
-
luanluciano93's post in (Resolvido)Erro no Gesior was marked as the answerExecute esse comando no phpmyadmin em sua database:
ALTER TABLE `accounts` ADD `page_lastday` int(11); -
luanluciano93's post in para quem manja was marked as the answerNa 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