Ir para conteúdo

Mateus Robeerto

Héroi
  • Registro em

  • Última visita

Tudo que Mateus Robeerto postou

  1. Provavelmente essa linha é responsável por fazer os monstros nascerem na tela do jogador. Eu coloquei como 'false' e os monstros nasceram na tela que eu queria. Então, talvez deva ser colocado como 'true' para que os monstros não nasçam na tela. Não tenho certeza se vai funcionar
  2. Se você quer montar um servidor 8.6, recomendo baixar o TFS 1.5 Nekiro com a versão 8.60. Existe um programa capaz de fazer o downgrade da versão 13x para 8.6 e ativar algumas funcionalidades do otclient. Sobre asas e wings, eles são apenas visuais mesmo. Caso deseje adicionar atributos, é possível fazê-lo SIM. Aqui vou disponibilizar alguns programas, sprites e arquivos DAT para você fazer o downgrade para a versão 8.6. Espero ter ajudado! O programa está disponível aqui. https://github.com/punkice3407/ObjectBuilder/releases Você precisa ativar essas opções para que a animação e outras funcionalidades funcionem antes de fazer o downgrade para a versão 8.6. https://imgur.com/Dyw3C9H Também estão disponíveis os sprites e arquivos DAT da versão 13x. Basta fazer o downgrade para 8.6 e não há erro. É muito fácil. Boa sorte! https://github.com/punkice3407/ObjectBuilder/releases Olha oS GIFS, eu fiz um downgrade da versão 13x para a 8.0 e estou usando o TFS 1.5 8.0 Nekiro. https://imgur.com/XNkYT0E https://imgur.com/jHyXULN Se você quiser ativar o sistema de montaria, basta descomentar algumas linhas de código na source para que funcione a montar e desmontar. O TFS 1.5 Nekiro já possui o sistema de montaria, apenas precisa ser descomentado para funcionar corretamente. Se você tiver interesse em um sistema interessante de aura e wings, basta adicionar no código-fonte e compilar.! Eu te ajudei? REP++ https://github.com/OTCv8/forgottenserver/compare/7f5b4fbc08711124dec86b0fcd7bfd78dd1165c4..239f555b0f71cfe0e17b6e5012518b25696d2f76
  3. ja foi resolvido.. fiz na source e deu certo Obs: Essa conta "Vortex" sou eu. Perdi as respostas secretas e decidi criar uma nova conta para poder fazer login em outros computadores de trabalho. Mas aqui está minha antiga conta, que está salva em casa. Se eu sair dessa conta, já era, porque não me lembro mais das respostas daquelas perguntas secretas para fazer o login... Haha!
  4. O problema já está resolvido! Estive tentando resolver essa função por mais de 3 meses, mas finalmente consegui ontem, através da source!! Eu sei que há pessoas interessadas nessa função de 'dano mágico em %'. Vou verificar com a pessoa que me passou os códigos pela source se ela me autoriza a compartilhá-los com vocês.
  5. Se o código que o cara mandou acima não funcionar, tente aqui. local storages = {13002} -- storages que serão verificadas local message = [[ ( Guia Nto Hard ) Desça no subsolo de Konoha e procure por criaturas para batalhar ! 1. Utilize Jutsus para Curar (Regeneration) e Atacar (Throw Kunai). 2. Utilize a palavra "skip" para subir e sair do calabouço ! ]] function onStepIn(cid, item, position, fromPosition) for _, v in ipairs(storages) do if getPlayerStorageValue(cid, v) <= 0 then doPlayerPopupFYI(cid, message) setPlayerStorageValue(cid, 13002, 1) return doTeleportThing(cid, fromPosition) end end end function doPlayerPopupFYI(cid, message) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, message) end
  6. <?php $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); echo '<div class="message"><div class="title">Top 5 Kages - Pontuação</div><div class="content"> <table border="0" cellspacing="3" cellpadding="4" width="100%"> <tr>'; $query = ' SELECT `p`.`name` AS `name`, `g`.`points` AS `points`, `p`.`profile_picture` AS `profile_picture` FROM `players` p LEFT JOIN `graduacao_points` g ON `p`.`id` = `g`.`player_id` ORDER BY `points` DESC LIMIT 5 '; $result = $SQL->query($query); $i = 1; while ($row = $result->fetch()) { $kageName = $row['name']; $kagePoints = $row['points']; $kageProfilePicture = $row['profile_picture']; echo ' <td style="padding-right: 20px; padding-top: 3px;" align="center"> <img src="' . $kageProfilePicture . '" alt="' . $kageName . '"> <p style="color: #336600; display: inline; padding: 0 0 3px 0; font-weight: bold;">' . $kagePoints . '</p> <br /><b>' . $i . '. ' . $kageName . '</b> </td>'; $i++; } echo ' </tr> </table>'; if ($i === 1) { echo "<center><font color='red'>Não há Kages registrados.</font></center>"; } echo '</div></div><br/>'; ?> espero que funcione!
  7. alguem fez e peguei o script.... quero saber como funciona desse , testei meu ot tfs 1.5 e nao vi nenhuma nada..
  8. Este script é baseado em 'increassemagicpercent', que aumenta o dano mágico em uma porcentagem específica. Se alguém puder testá-lo e fornecer feedback aqui, seria muito apreciado! data/scripts/file.lua local COMBAT_ELEMENTAL = 10000 local COMBAT_ALL = 10001 local elementalDamageTypes = { COMBAT_ENERGYDAMAGE, COMBAT_EARTHDAMAGE, COMBAT_FIREDAMAGE, COMBAT_ICEDAMAGE, COMBAT_HOLYDAMAGE, COMBAT_DEATHDAMAGE } local buff_items = { --[itemid] = {damageType, damagePercentage} [1111] = {damageType = COMBAT_PHYSICALDAMAGE, damagePercentage = 0.5}, -- 50% extra damage [2222] = {damageType = COMBAT_ENERGYDAMAGE, damagePercentage = 1}, -- 100% extra damage [3333] = {damageType = COMBAT_EARTHDAMAGE, damagePercentage = 1}, [4444] = {damageType = COMBAT_FIREDAMAGE, damagePercentage = 1}, [5555] = {damageType = COMBAT_ICEDAMAGE, damagePercentage = 1}, [6666] = {damageType = COMBAT_HOLYDAMAGE, damagePercentage = 1}, [7777] = {damageType = COMBAT_DEATHDAMAGE, damagePercentage = 1}, [8888] = {damageType = COMBAT_ELEMENTAL, damagePercentage = 1}, -- elemental types [9999] = {damageType = COMBAT_ALL, damagePercentage = 1} -- all damage types } local function damageCalculator(primaryDamage, primaryType, secondaryDamage, secondaryType, playerid) local player = Player(playerid) for slot = CONST_SLOT_FIRST, CONST_SLOT_LAST do local slotItem = player:getSlotItem(slot) if slotItem then local slotItemId = slotItem:getId() local index = buff_items[slotItemId] if index then local primaryIncrease = false local secondaryIncrease = false -- primary damage checks if index.damageType == COMBAT_ALL and (primaryType == COMBAT_PHYSICALDAMAGE or table.contains(elementalDamageTypes, primaryType)) then primaryIncrease = true end if index.damageType == COMBAT_ELEMENTAL and table.contains(elementalDamageTypes, primaryType) then primaryIncrease = true end if index.damageType == primaryType then primaryIncrease = true end -- secondary damage checks if index.damageType == COMBAT_ALL and (secondaryType == COMBAT_PHYSICALDAMAGE or table.contains(elementalDamageTypes, secondaryType)) then secondaryIncrease = true end if index.damageType == COMBAT_ELEMENTAL and table.contains(elementalDamageTypes, secondaryType) then secondaryIncrease = true end if index.damageType == secondaryType then secondaryIncrease = true end -- damage calculation if primaryIncrease then primaryDamage = primaryDamage * (index.damagePercentage + 1) end if secondaryIncrease then secondaryDamage = secondaryDamage * (index.damagePercentage + 1) end end end end return primaryDamage, secondaryDamage end @Movie @Underewar @Vodkart Se vocês puderem testar e confirmar se o script está funcionando corretamente, por favor, avisem aqui. Agradeço desde já pela colaboração Estou lutando incansavelmente para fazer esse script ou sistema de dano mágico em percentual funcionar. É de extrema importância para o meu servidor. Se alguém puder ajudar ou oferecer qualquer orientação, seria de imensa ajuda e gratidão.
  9. function onPlayerKill(player, creature, lastHit) if not creature:isPlayer() then return true end for cid, damage in pairs(creature:getDamageMap()) do local fragid = 20000000 + creature:getId() local timefrag = 30000000 + creature:getId() local participant = Player(cid) if participant and participant:isPlayer() then local difer = creature:getLevel() - player:getLevel() local difer2 = player:getLevel() - creature:getLevel() local ExpLow = math.ceil(creature:getExperience() * 0.05 / (difer2 + 1)) local ExpHigh = math.ceil(creature:getExperience() * 0.01 * ((difer * 0.5) + 1)) if creature:getLevel() <= participant:getLevel() and participant:getStorageValue(fragid) <= 3 then participant:addItem(2152, 10) --participant:addExperience(ExpLow, true) participant:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You gained ' .. ExpLow .. ' experience points.') participant:setStorageValue(fragid, participant:getStorageValue(fragid) + 1) participant:setStorageValue(timefrag, os.time() + 60) elseif participant:getStorageValue(fragid) >= 3 then participant:sendTextMessage(MESSAGE_STATUS_WARNING, 'This player cannot give experience to you.') end if difer >= 1 and participant:getStorageValue(fragid) <= 3 then participant:addItem(2152, (difer * 5) + 10) --participant:addExperience(ExpHigh, true) participant:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You gained ' .. ExpHigh .. ' experience points.') participant:setStorageValue(fragid, participant:getStorageValue(fragid)) participant:setStorageValue(timefrag, participant:getStorageValue(timefrag)) elseif participant:getStorageValue(fragid) >= 3 then player:sendTextMessage(MESSAGE_STATUS_WARNING, 'This player cannot give experience to you.') end end end return true end function registerPlayerOnKill() addEvent(onPlayerKill) end registerPlayerOnKill() testa ai e me fala aqui se deu erro no console
  10. Acho que precisa adicionar na sua database de dados (banco de dados). CREATE TABLE graduacao_points ( player_id INT NOT NULL, points INT, PRIMARY KEY (player_id), FOREIGN KEY (player_id) REFERENCES players(id) );
  11. <?php $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); echo '<div class="message"><div class="title">Top 5 Kages - Pontuação</div><div class="content"> <table border="0" cellspacing="3" cellpadding="4" width="100%"> <tr>'; // Consulta SQL para obter os top 5 Kages com base nos pontos $query = ' SELECT `p`.`name` AS `name`, `g`.`points` AS `points` FROM `players` p LEFT JOIN `graduacao_points` g ON `p`.`id` = `g`.`player_id` ORDER BY `points` DESC LIMIT 5 '; $result = $SQL->query($query); $i = 1; while ($row = $result->fetch()) { $kageName = $row['name']; $kagePoints = $row['points']; echo ' <td style="padding-right: 20px; padding-top: 3px;" align="center"> <p style="color: #336600; display: inline; padding: 0 0 3px 0; font-weight: bold;">' . $kagePoints . '</p> <br /><b>' . $i . '. ' . $kageName . '</b> </td>'; $i++; } echo ' </tr> </table>'; if ($i === 1) { echo "<center><font color='red'>Não há Kages registrados.</font></center>"; } echo '</div></div><br/>'; ?> alterei aqui agora, se ve ai e diga aqui
  12. Editei a postagem lá. Por favor, teste e me diga se deu certo
  13. <?php $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = $ots->getDBHandle(); echo '<div class="message"><div class="title">Top 5 Kages - Pontuação</div><div class="content"> <table border="0" cellspacing="3" cellpadding="4" width="100%"> <tr>'; // Consulta SQL para obter os top 5 Kages com base nos pontos $query = ' SELECT `p`.`name` AS `name`, `p`.`points` AS `points` FROM `players` p ORDER BY `points` DESC LIMIT 5 '; $result = $SQL->query($query); $i = 1; while ($row = $result->fetch()) { $kageName = $row['name']; $kagePoints = $row['points']; echo ' <td style="padding-right: 20px; padding-top: 3px;" align="center"> <p style="color: #336600; display: inline; padding: 0 0 3px 0; font-weight: bold;">' . $kagePoints . '</p> <br /><b>' . $i . '. ' . $kageName . '</b> </td>'; $i++; } echo ' </tr> </table>'; if ($i === 1) { echo "<center><font color='red'>Não há Kages registrados.</font></center>"; } echo '</div></div><br/>'; ?> tente ai se ve erro me fala aqui
  14. Tenho algumas dúvidas sobre o funcionamento do ataque crítico. Como isso funciona? É apenas usando uma espada que há uma chance de causar um ataque crítico? Eu só preciso editar o arquivo items.xml, ou também tenho que editar o arquivo weapons.xml? Testei, mas não vi nenhum ataque crítico ocorrer, apenas o Dodge funcionou bem
  15. Alguém sabe se é possível atribuir um item para aumentar o dano mágico em porcentagem ao ser utilizado? Se sim, como posso fazer isso?
  16. adicionei no meu servidor tfs 1.5 8.0 ta perfeitamente tudo sem erros nenhuma ok, mas como funciona desse pedra? é clica pedra pra evoluir ou por treinar skill pra evoluir? tenho duvidas rs --[[ Dodge & Critical fixado por Movie (Movie#4361) Disponibilizado para o TibiaKing e não autorizo outras reproduções Mantenha os créditos <3 --]] local dodge = TalkAction("!dodge") local critical = TalkAction("!critical") function dodge.onSay(player, words, param) local skill = player:getDodgeLevel() local message = "DODGE SYSTEM\nO sistema consiste em defender uma porcentagem dos ataques recebidos.\n\nPor Exemplo:\nCada pedra utilizada atribui 0,3% a mais de chance.\nCom 10 pedras, voce tera 3% de chance de defender 50% dos ataques recebidos.\nCom 100 pedras (maximo), voce tera 30% de chance de defender 50% dos ataques recebidos.\nCada pedra que voce usar, sua skill de dodge aumenta em 1 ponto.\n\n------------------\nDodge Skill: [" .. skill .. "/100]" doPlayerPopupFYI(player, message) end dodge:register() function critical.onSay(player, words, param) local skill = player:getCriticalLevel() local message = "CRITICAL SYSTEM\nO sistema consiste em ter uma chance de dar um dano critico.\n\nPor Exemplo:\nCada pedra utilizada atribui 0,3% a mais de chance.\nCom 10 pedras, voce tera 3% de chance de hitar um dano critico dos ataques desferidos ao seu oponente.\nCom 100 pedras (maximo), voce tera 30% de chance de hitar um dano critico dos ataques desferidos ao seu oponente.\nCada pedra que voce usar, sua skill de dodge aumenta em 1 ponto.\n\n------------------\nCritical Skill: [" .. skill .. "/100]" doPlayerPopupFYI(player, message) end critical:register() https://tibiaking.com/forums/topic/100172-tfs-1x-dodge-critical-system/
  17. perfeito, mas vc consegue colocar tutorial sobre highscores.php com reset e character.php tbm? se puder sim por favor obg
  18. poderia mandar gesior com reset completo? ou so essa parte themebox top reset?
  19. da uma olhada desse link baixei e testei, gostei e ficou legal ja vem sistema de mount e outras coisas top
  20. .Qual servidor ou website você utiliza como base? tfs 1.2 8.0 Qual o motivo deste tópico? quero que mostrar rank com reset e character tambem, alguem tem? se sim por favor me passar ou pode me dar passo a passo como adicionar.. obrigado Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  21. o que vc mexeu? me ensinar tambem, quero aprender xD vc adicionou so essa linha "player:setStorageValue(1)" msm? o script nao funciona nao
  22. .Qual servidor ou website você utiliza como base? TFS 1.2 8.0 Qual o motivo deste tópico? ALGUEM SABE COMO FAZ NPC TROCAR ITEM POR OUTRO ITEM SO UMA VEZ NESSE SCRIPT PF? Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid if(msgcontains(msg, 'ghost coin') or msgcontains(msg, 'gsc')) then selfSay('Você quer comprar 100 Ghost Coin\'s por 20kk ruby coins?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(getPlayerItemCount(cid, 13685) >= 20) then doPlayerRemoveItem(cid, 13685, 20) doPlayerAddItem(cid, 6527, 100) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,13685) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 20kk ruby coins.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'premium time') or msgcontains(msg, 'premium')) then selfSay('Aceita trocar 100 Ghost Coins por 30 dias de premium?', cid) talkState[talkUser] = 2 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 2) then if(getPlayerItemCount(cid, 6527) >= 100) then doPlayerRemoveItem(cid, 6527, 100) doPlayerAddPremiumDays(cid, 30) doSendMagicEffect(getCreaturePos(cid), 14) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você recebeu 30 dias de premium time.") doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " ghost coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 100 Ghost Coin\'s.', cid) end talkState[cid] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'bless class a') or msgcontains(msg, 'bless')) then selfSay('Você quer compra Bless Class A por 50 Ghost Coin?', cid) talkState[talkUser] = 3 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 3) then if getPlayerBlessing(cid, 1) then selfSay('Você já tem a benção dos deuses.', cid) return true end if(getPlayerItemCount(cid, 6527) >= 50) then if getPlayerPremiumDays(cid) == 0 then selfSay('Desculpe, mais você não tem premium.', cid) return true end doPlayerRemoveItem(cid, 6527, 50) doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doSendMagicEffect(getCreaturePos(cid), 49) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " ghost coin\'s.") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você recebeu benção dos deuses class A.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 50 Ghost Coin.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'changesex') or msgcontains(msg, 'sex')) then selfSay('Aceita trocar 100 Ghost Coin por uma cirurgia de troca de sexo?', cid) talkState[talkUser] = 4 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 4) then if(getPlayerItemCount(cid, 6527) >= 100) then doPlayerRemoveItem(cid, 6527, 100) doSendMagicEffect(getCreaturePos(cid), 14) doPlayerSetSex(cid, getPlayerSex(cid) == PLAYERSEX_FEMALE and PLAYERSEX_MALE or PLAYERSEX_FEMALE) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce trocou de sexo com sucesso.") doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ghost Coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 100 Ghost Coin.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'Frags') or msgcontains(msg, 'Remover Frags')) then selfSay('Você quer comprar um removedor de frags por 100 Ghost Coin\'s?', cid) talkState[talkUser] = 5 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 5) then if(getPlayerItemCount(cid, 6527) >= 100) then doPlayerRemoveItem(cid, 6527, 100) doSendMagicEffect(getCreaturePos(cid), 56) db.query('UPDATE `killers`, `player_killers` SET `killers`.`unjustified` = 0 WHERE `killers`.`unjustified` = 1 AND `player_killers`.`player_id` = ' .. getPlayerGUID(cid) .. ' AND `killers`.`id` = `player_killers`.`kill_id`') doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ghost Coin\'s.") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Suas Frags foi retirada.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 100 Ghost Coin\'s.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'concentrated demonic blood') or msgcontains(msg, 'demoniac')) then selfSay('Você quer comprar concentrated demonic blood por 50 Ghost Coin\'s?', cid) talkState[talkUser] = 6 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 6) then if(getPlayerItemCount(cid, 6527) >= 50) then doPlayerRemoveItem(cid, 6527, 50) doPlayerAddItem(cid, 6558) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ghost Coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 50 Ghost Coin\'s.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'blood of gods') or msgcontains(msg, 'blood')) then selfSay('Aceita trocar 70 Ghost Coins por 1 Backpack com 20 Blood of God\'s? (Requerido 1550 de cap)', cid) talkState[talkUser] = 7 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 7) then if(getPlayerItemCount(cid, 6527) >= 70) then doPlayerRemoveItem(cid, 6527, 70) doPlayerAddItem(cid, 14454, 20) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ghost Coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 70 Ghost Coin\'s.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'addon doll') or msgcontains(msg, 'addon doll')) then selfSay('você quer compra 1 addon doll por 100 Ghost Coin\'s.', cid) talkState[talkUser] = 8 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 😎 then if(getPlayerItemCount(cid, 6527) >= 50000) then doPlayerRemoveItem(cid, 6527, 50000) doPlayerAddItem(cid, 9693, 1) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ghost Coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 100 Ghost Coin\'s.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'teleport') or msgcontains(msg, 'teleport')) then selfSay('Aceita trocar 25 Ghost Coins por 10 Teleports? (Requerido 10 de cap).', cid) talkState[talkUser] = 9 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 9) then if(getPlayerItemCount(cid, 6527) >= 25) then doPlayerRemoveItem(cid, 6527, 25) doPlayerAddItem(cid,13691, 10) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ghost Coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 25 Ghost Coin\'s.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'small elixir of experience') or msgcontains(msg, 'small elixir')) then selfSay('Aceita trocar 30 Ghost Coins por 50 Small Elixir of Experience? (Requerido 60 de cap)', cid) talkState[talkUser] = 10 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 10) then if(getPlayerItemCount(cid, 6527) >= 30) then doPlayerRemoveItem(cid, 6527, 30) doPlayerAddItem(cid, 13692, 50) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ghost Coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 30 Ghost Coin\'s.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'normal elixir of experiences') or msgcontains(msg, 'normal elixir of experience')) then selfSay('Aceita trocar 50 Ghost Coins por 50 Normal Elixir of Experience? (Requerido 160 de cap)', cid) talkState[talkUser] = 11 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 11) then if(getPlayerItemCount(cid, 6527) >= 50) then doPlayerRemoveItem(cid, 6527, 50) doPlayerAddItem(cid, 13693, 50) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ghost Coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 50 Ghost Coin\'s.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'mana fluid') or msgcontains(msg, 'mfs')) then selfSay('Aceita trocar 15 Ghost Coins por 1 Large Mana Fluid com 100 cargas? (Requerido 100 de cap)', cid) talkState[talkUser] = 12 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 12) then if(getPlayerItemCount(cid, 6527) >= 15) then doPlayerRemoveItem(cid, 6527, 15) doPlayerAddItem(cid, 14456, 100) selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 15 Ghost Coin\'s.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'destroy field') or msgcontains(msg, 'destroy')) then selfSay('Aceita trocar 5 Ghost Coins por 1 bp com 20 runas de 60x de destroy field? (Requerido 45 de cap)', cid) talkState[talkUser] = 13 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 13) then if(getPlayerItemCount(cid, 6527) >= 5) then doPlayerRemoveItem(cid, 6527, 5) doPlayerAddItem(cid, 2261, 60) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ghost Coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 5 Ghost Coin\'s.', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'uh') or msgcontains(msg, 'uhs')) then selfSay('Aceita trocar 10 Ghost Coins por 1 bp com 20 runas de 20x de uh? (Requerido 45 de cap).', cid) talkState[talkUser] = 14 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 14) then if(getPlayerItemCount(cid, 6527) >= 10) then doPlayerRemoveItem(cid, 6527, 10) doPlayerAddItem(cid, 2273, 20) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 10 Ghost Coin\'s..', cid) end talkState[talkUser] = 0 --------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'dark explo') or msgcontains(msg, 'dexlo')) then selfSay('Aceita trocar 15 Ghost Coins por 1 bp com 1 runa de 200x de dark explosion? (Requerido 45 de cap).', cid) talkState[talkUser] = 15 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 15) then if(getPlayerItemCount(cid, 6527) >= 15) then doPlayerRemoveItem(cid, 6527, 15) doPlayerAddItem(cid, 2313, 200) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 15 Ghost Coin\'s..', cid) end talkState[talkUser] = 0 -------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'dark sd') or msgcontains(msg, 'dsd')) then selfSay('Aceita trocar 50 Ghost Coins por 1 bp com 1 runa de 200x de dsd? (Requerido 45 de cap).', cid) talkState[talkUser] = 16 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 16) then if(getPlayerItemCount(cid, 6527) >= 50) then doPlayerRemoveItem(cid, 6527, 50) doPlayerAddItem(cid, 2267, 200) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 50 Ghost Coin\'s..', cid) end talkState[talkUser] = 0 --------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'gfb') or msgcontains(msg, 'gfbs')) then selfSay('Aceita trocar 10 Ghost Coins por 1 bp com 20 runas de 40x de gfb? (Requerido 45 de cap).', cid) talkState[talkUser] = 17 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 17) then if(getPlayerItemCount(cid, 6527) >= 10) then doPlayerRemoveItem(cid, 6527, 10) doPlayerAddItem(cid, 2304, 20) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 10 Ghost Coin\'s..', cid) end talkState[talkUser] = 0 -------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'hmm') or msgcontains(msg, 'hmms')) then selfSay('Aceita trocar 5 Ghost Coins por 1 bp com 20 runas de 100x de hmm? (Requerido 45 de cap).', cid) talkState[talkUser] = 18 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 18) then if(getPlayerItemCount(cid, 6527) >= 5) then doPlayerRemoveItem(cid, 6527, 5) doPlayerAddItem(cid, 2311, 20) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 5 Ghost Coin\'s..', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'life ring') or msgcontains(msg, 'lifsing')) then selfSay('Aceita trocar 10 Ghost Coins por 1 bp com 20 life rings? (Requerido 35 de cap).', cid) talkState[talkUser] = 19 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 19) then if(getPlayerItemCount(cid, 6527) >= 10) then doPlayerRemoveItem(cid, 6527, 10) doPlayerAddItem(cid, 2168, 20) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 10 Ghost Coin\'s..', cid) end talkState[talkUser] = 0 ----------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'ring of healing') or msgcontains(msg, 'ring of healings')) then selfSay('Aceita trocar 20 Ghost Coins por 1 bp com 20 ring of healings? (Requerido 35 de cap).', cid) talkState[talkUser] = 20 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 20) then if(getPlayerItemCount(cid, 6527) >= 20) then doPlayerRemoveItem(cid, 6527, 20) doPlayerAddItem(cid, 2214, 20) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 20 Ghost Coin\'s..', cid) end talkState[talkUser] = 0 ---------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'blessed ring') or msgcontains(msg, 'blessed rings')) then selfSay('Aceita trocar 40 Ghost Coins por 1 bp com 20 Blessed rings? (Requerido 170 de cap).', cid) talkState[talkUser] = 21 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 21) then if(getPlayerItemCount(cid, 6527) >= 40) then doPlayerRemoveItem(cid, 6527, 40) doPlayerAddItem(cid, 13688, 20) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 40 Ghost Coin\'s..', cid) end talkState[talkUser] = 0 ----------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'fighting spirit') or msgcontains(msg, 'fs')) then selfSay('Aceita trocar 20 Ghost Coins por 1 Fighting Spirit? (Requerido 2 de cap).', cid) talkState[talkUser] = 22 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 22) then if(getPlayerItemCount(cid, 6527) >= 20) then doPlayerRemoveItem(cid, 6527, 20) doPlayerAddItem(cid, 4863, 1) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 20 Ghost Coin\'s..', cid) end talkState[talkUser] = 0 -------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'energetico') or msgcontains(msg, 'energeticos')) then selfSay('Aceita trocar 20 Ghost Coins por 1 Energético? (Requerido 30 de cap).', cid) talkState[talkUser] = 23 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 23) then if(getPlayerItemCount(cid, 6527) >= 20) then doPlayerRemoveItem(cid, 6527, 20) doPlayerAddItem(cid, 6106, 1) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,6527) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 20 Ghost Coin\'s..', cid) end talkState[talkUser] = 0 ------------------------------------------------------------------------------------------------------------------------------------------------- elseif(msgcontains(msg, 'offer') or msgcontains(msg, 'trade') or msgcontains(msg, 'ofertas')) then selfSay('Eu vendo {Ghost Coins}, {premium time},{remove frags}, {blessed ring e rings etc}, {addon doll}, {teleport}, {concentrated demonic blood}, {blessing class A}, {normal elixir of experience}, {small elixir of experience} e {blood of gods}. e cirugia de sexo {change sex}.', cid) selfSay('Eu vendo liquidos, grandes de {mana potion},{energetico} e de {health potion}.{runas, dark sd, dark explo, destroyer, gfb, uh, hmm etc.}.',cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  23. @Vodkart ajuda pelo script , so converter pra TFS 1.2 ou nao tem como, obg

Informação Importante

Confirmação de Termo