Ir para conteúdo

hiquezerah

Membro
  • Registro em

  • Última visita

Tudo que hiquezerah postou

  1. local RoomPosition = {x = 250, y = 114, z = 7} -- pos (centro) local rangex, rangey = 20, 10 -- quantos sqms x e y local specter = getSpectators(RoomPosition, rangex, rangey, false) for count, spec in pairs(specter) do if isPlayer(spec) then print(count) -- quantidade de jogadores na area end end Eu não conheço as funções da tfs 1.+ mas acredito que você so precisará modificar o getSpectators para game.getSpectators, acredito que seja isso que você deseja
  2. @Gustavots Você pode remover o "return true" no fim do script da sua spell. Ou você pode modificar seu spells.cpp e remover.
  3. hiquezerah postou uma resposta no tópico em Suporte Tibia OTServer
    0.4 você pode fazer facilmente por creaturescript utilizando value
  4. Atualizei o último post do código, testa agora, tinha esquecido uma coisa kkkk reseta sua storage para 0, e tenta novamente
  5. modifica o valor da storage que está na verificação para testar.
  6. local monsters = { [1] = {monstro = "Wolf", chance = 50, time = 10}, --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} [2] = {monstro = "Wolf Beast", chance = 40, time = 10}, --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} [3] = {monstro = "Bandit", chance = 80, time = 10} --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} } local function getRandomMonster(t) local i = math.random(1, #t) i = t[i] if math.random(1, 100) <= i.chance then return i end return getRandomMonster(t) end local chance = 60 -- 60% de chance de sucesso e 40% de falhar local shinys = {"Bandit"} -- adiciona o nome dos pokemons que não deverão sumir aqui. function onStepIn(cid, item, toPosition, fromPosition) if isPlayer(cid) and math.random(1, 100) <= chance and getPlayerStorageValue(cid, 74480) <= os.time() then local tempo = 1 local i = getRandomMonster(monsters) local monstro = doCreateMonster(i.monstro, getCreaturePosition(cid)) setPlayerStorageValue(cid, 74480, i.time + os.time()) doCreatureSay(monstro, "Um " ..i.monstro.. " Selvagem Apareceu!", TALKTYPE_MONSTER) addEvent(function() if isCreature(monstro) and not isInArray(shinys, i.monstro) then doRemoveCreature(monstro) end end, tempo*60*1000) end return true end
  7. colocar nome de bicho para desaparecer? nesse script eu coloquei um array para você adicionar os monstros que não deve desaparecer.
  8. @Aizuuu O último código que te enviei ja está com essa verificação, você testou?
  9. adaptar oque maninho? você fala do tempo de 10 segundos para ter chance de nascer algum monstro novamente?
  10. local monsters = { [1] = {monstro = "Wolf", chance = 50, time = 10}, --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} [2] = {monstro = "Wolf Beast", chance = 40, time = 10}, --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} [3] = {monstro = "Bandit", chance = 80, time = 10} --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} } local function getRandomMonster(t) local i = math.random(1, #t) i = t[i] if math.random(1, 100) <= i.chance then return i end return getRandomMonster(t) end local chance = 60 -- 60% de chance de sucesso e 40% de falhar local shinys = {"Bandit"} -- adiciona o nome dos pokemons que não deverão sumir aqui. function onStepIn(cid, item, toPosition, fromPosition) if isPlayer(cid) and math.random(1, 100) <= chance and getPlayerStorageValue(cid, 74480) <= os.time() then local tempo = 1 local i = getRandomMonster(monsters) local monstro = doCreateMonster(i.monstro, getCreaturePosition(cid)) setPlayerStorageValue(cid, 74480, i.time*1000 + os.time()) doCreatureSay(monstro, "Um " ..i.monstro.. " Selvagem Apareceu!", TALKTYPE_MONSTER) addEvent(function() if isCreature(monstro) and not isInArray(shinys, i.monstro) then doRemoveCreature(monstro) end end, tempo*60*1000) end return true end
  11. local shinys = { "bug", } local raros = { "bug", } local function ShinyName(cid) if isCreature(cid) then if string.find(tostring(getCreatureName(cid)), "Shiny") then local newName = tostring(getCreatureName(cid)):match("Shiny (.*)") doCreatureSetNick(cid, newNamed) if isMonster(cid) then doSetCreatureDropLoot(cid, false) end end end end local function doPokemonRegisterLevel(cid) if not isCreature(cid) then return true end if getWildPokemonLevel(cid) == -1 then setWildPokemonLevel(cid) if isCreature(cid) then local pokesLvl = {"Regice", "Registeel", "Regirock", "Furious Charizard", "Primal Kyogre", "Cresselia", "Regigigas", "Lugia", "Giratina", "Rayquaza", "Entei", "Suicune", "Raikou", "Celebi", "Shiny Celebi", "Latios", "Latias", "Shaymin", "Hoopa", "Mew", "Mewtwo", "Palkia", "Articuno", "Zapdos", "Moltres", "Kyogre", "Guardian Magmar", "Dialga", "Charizard Halloween", "Giant Gengar", "Marowak Halloween", "Jirachi", "Groudon", "Darkrai", "Darkrai Nightmare", "Primal Dialga", "Zekrom", "Kyurem", "White Kyurem", "Black Kyurem", "Reshiram"} if not isInArray(pokesLvl, getCreatureName(cid)) then local lvl = math.random(1, 10) local nick = ""..getCreatureName(cid).." ["..lvl.."]" doCreatureSetNick(cid, nick) setPlayerStorageValue(cid, 1000, lvl) else -- Classe 100-100 local lvl = 100 local nick = ""..getCreatureName(cid).." ["..lvl.."]" doCreatureSetNick(cid, nick) setPlayerStorageValue(cid, 1000, lvl) end if string.find(tostring(getCreatureName(cid)), "Shiny") then local lvl = math.random(5, 20) local nick = ""..getCreatureName(cid).." ["..lvl.."]" doCreatureSetNick(cid, nick) setPlayerStorageValue(cid, 1000, lvl) end end end end local function doSetRandomGender(cid) if not isCreature(cid) then return true end if isSummon(cid) then return true end local gender = 0 local name = getCreatureName(cid) if not newpokedex[name] then return true end local rate = newpokedex[name].gender if rate == 0 then gender = 3 elseif rate == 1000 then gender = 4 elseif rate == -1 then gender = 1 elseif math.random(1, 1000) <= rate then gender = 4 else gender = 3 end doCreatureSetSkullType(cid, gender) end local function doShiny(cid) if isCreature(cid) then if isSummon(cid) then return true end if getPlayerStorageValue(cid, 74469) >= 1 then return true end if getPlayerStorageValue(cid, 22546) >= 1 then return true end if isNpcSummon(cid) then return true end if getPlayerStorageValue(cid, 637500) >= 1 then return true end --alterado v1.9 if isInArray(shinys, getCreatureName(cid)) then --alterado v1.9 \/ chance = 0.1 --1% chance elseif isInArray(raros, getCreatureName(cid)) then --n coloquem valores menores que 0.1 !! chance = 0.1 --1% chance else return true end if math.random(1, 1000) <= chance*10 and getPlayerStorageValue(cid, 74480) <= os.time() then doSendMagicEffect(getThingPos(cid), 18) local name, pos = "Shiny ".. getCreatureName(cid), getThingPos(cid) doRemoveCreature(cid) local tempo = 1 -- tempo para sumir os monstros sumonados. local shi = doCreateMonster(name, pos, false) setPlayerStorageValue(shi, 74469, 1) setPlayerStorageValue(cid, 74480, 10000 + os.time()) addEvent(function() if isCreature(shi) then doRemoveCreature(shi) end end, tempo*60*1000) else setPlayerStorageValue(cid, 74469, 1) end --/\ else return true end end function onSpawn(cid) registerCreatureEvent(cid, "Experience") registerCreatureEvent(cid, "GeneralConfiguration") registerCreatureEvent(cid, "DirectionSystem") registerCreatureEvent(cid, "CastSystem") if isSummon(cid) then registerCreatureEvent(cid, "SummonDeath") return true end addEvent(doPokemonRegisterLevel, 5, cid) addEvent(doSetRandomGender, 5, cid) addEvent(doShiny, 10, cid) -- addEvent(adjustWildPoke, 5, cid) return true end testa
  12. local shinys = { "bug", } local raros = { "bug", } local function ShinyName(cid) if isCreature(cid) then if string.find(tostring(getCreatureName(cid)), "Shiny") then local newName = tostring(getCreatureName(cid)):match("Shiny (.*)") doCreatureSetNick(cid, newNamed) if isMonster(cid) then doSetCreatureDropLoot(cid, false) end end end end local function doPokemonRegisterLevel(cid) if not isCreature(cid) then return true end if getWildPokemonLevel(cid) == -1 then setWildPokemonLevel(cid) if isCreature(cid) then local pokesLvl = {"Regice", "Registeel", "Regirock", "Furious Charizard", "Primal Kyogre", "Cresselia", "Regigigas", "Lugia", "Giratina", "Rayquaza", "Entei", "Suicune", "Raikou", "Celebi", "Shiny Celebi", "Latios", "Latias", "Shaymin", "Hoopa", "Mew", "Mewtwo", "Palkia", "Articuno", "Zapdos", "Moltres", "Kyogre", "Guardian Magmar", "Dialga", "Charizard Halloween", "Giant Gengar", "Marowak Halloween", "Jirachi", "Groudon", "Darkrai", "Darkrai Nightmare", "Primal Dialga", "Zekrom", "Kyurem", "White Kyurem", "Black Kyurem", "Reshiram"} if not isInArray(pokesLvl, getCreatureName(cid)) then local lvl = math.random(1, 10) local nick = ""..getCreatureName(cid).." ["..lvl.."]" doCreatureSetNick(cid, nick) setPlayerStorageValue(cid, 1000, lvl) else -- Classe 100-100 local lvl = 100 local nick = ""..getCreatureName(cid).." ["..lvl.."]" doCreatureSetNick(cid, nick) setPlayerStorageValue(cid, 1000, lvl) end if string.find(tostring(getCreatureName(cid)), "Shiny") then local lvl = math.random(5, 20) local nick = ""..getCreatureName(cid).." ["..lvl.."]" doCreatureSetNick(cid, nick) setPlayerStorageValue(cid, 1000, lvl) end end end end local function doSetRandomGender(cid) if not isCreature(cid) then return true end if isSummon(cid) then return true end local gender = 0 local name = getCreatureName(cid) if not newpokedex[name] then return true end local rate = newpokedex[name].gender if rate == 0 then gender = 3 elseif rate == 1000 then gender = 4 elseif rate == -1 then gender = 1 elseif math.random(1, 1000) <= rate then gender = 4 else gender = 3 end doCreatureSetSkullType(cid, gender) end local function doShiny(cid) if isCreature(cid) then if isSummon(cid) then return true end if getPlayerStorageValue(cid, 74469) >= 1 then return true end if getPlayerStorageValue(cid, 22546) >= 1 then return true end if isNpcSummon(cid) then return true end if getPlayerStorageValue(cid, 637500) >= 1 then return true end --alterado v1.9 if isInArray(shinys, getCreatureName(cid)) then --alterado v1.9 \/ chance = 0.1 --1% chance elseif isInArray(raros, getCreatureName(cid)) then --n coloquem valores menores que 0.1 !! chance = 0.1 --1% chance else return true end if math.random(1, 1000) <= chance*10 then doSendMagicEffect(getThingPos(cid), 18) local name, pos = "Shiny ".. getCreatureName(cid), getThingPos(cid) doRemoveCreature(cid) local tempo = 1 -- tempo para sumir os monstros sumonados. local shi = doCreateMonster(name, pos, false) setPlayerStorageValue(shi, 74469, 1) addEvent(function() if isCreature(shi) then doRemoveCreature(shi) end end, tempo*60*1000) else setPlayerStorageValue(cid, 74469, 1) end --/\ else return true end end function onSpawn(cid) registerCreatureEvent(cid, "Experience") registerCreatureEvent(cid, "GeneralConfiguration") registerCreatureEvent(cid, "DirectionSystem") registerCreatureEvent(cid, "CastSystem") if isSummon(cid) then registerCreatureEvent(cid, "SummonDeath") return true end addEvent(doPokemonRegisterLevel, 5, cid) addEvent(doSetRandomGender, 5, cid) addEvent(doShiny, 10, cid) -- addEvent(adjustWildPoke, 5, cid) return true end tenta
  13. Você precisa postar o seu outro sistema para que as pessoas possam te ajudar maninho. kkkkkk eu entendi que você adicionaria os shinys para nascer nesse mesmo script e eles não deveriam sumir. Poste o seu spawn.lua
  14. local monsters = { [1] = {monstro = "Wolf", chance = 50}, --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} [2] = {monstro = "Wolf Beast", chance = 40}, --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} [3] = {monstro = "Bandit", chance = 80} --[Ordem numerica] = {nome do monstro = Bulbasaur, chance = chance de aparecer esse monstro} } local function getRandomMonster(t) local i = math.random(1, #t) i = t[i] if math.random(1, 100) <= i.chance then return i end return getRandomMonster(t) end local chance = 60 -- 60% de chance de sucesso e 40% de falhar local shinys = {"Bandit"} -- adiciona o nome dos pokemons que não deverão sumir aqui. function onStepIn(cid, item, toPosition, fromPosition) if isPlayer(cid) and math.random(1, 100) <= chance then local tempo = 1 local i = getRandomMonster(monsters) local monstro = doCreateMonster(i.monstro, getCreaturePosition(cid)) doCreatureSay(monstro, "Um " ..i.monstro.. " Selvagem Apareceu!", TALKTYPE_MONSTER) addEvent(function() if isCreature(monstro) and not isInArray(shinys, i.monstro) then doRemoveCreature(monstro) end end, tempo*10*1000) end return true end Acredito que seja isso que você queira
  15. @EtoxWudionTente modificar a estilização do cliente em data/styles/40-entergame.otui EnterGameWindow < StaticMainWindow anchors.top: content.top anchors.left: content.left margin-top: 200 size: 230 677
  16. Poste o xml das duas spells aqui
  17. .Qual servidor ou website você utiliza como base? otx 2.15 Alguém poderia me ajudar a criar uma spell onde o jogador que utilizar a spell no target irá remover 20% (configuravel) da vida do target e será adicionado ao jogador que castou a spell? durante 10 segundos. Depois a vida retornaria para o target e o jogador voltaria para vida normal Seria algo parecido com uma spell que encontrei aqui no tk. Mas queria que fosse em target e com as modificações citada acima se póssivel. Agradeço desde já! OBS: tentei procurar aqui no tk, mas não consegui encontrar
  18. @Endless Olá, boa noite, tudo bem? Fiz a instalação da versão 2.0, mas está ocorrendo um erro de not found ao clicar em alguma das opções, "ring", "armors", "legs" e etc... Todos estão dando o mesmo erro da imagem. Estou usando php 7.4
  19. .Qual servidor ou website você utiliza como base? OTX Qual o motivo deste tópico? Boa noite galera do tk, alguém poderia me ajudar com essa modificação nesse sistema? Tenho uma ideia para modificar um pouco o castelo e tentar deixa-lo mais "balanceado" para a guild que realmente esteja dominando e bem posicionada. O famoso castle of honor que existe na maioria dos servidores de tibia derivado existe uma grande falha, onde um jogador da guild inimiga pode esperar o último minuto e tentar correr para subir ao trono ou tentar da um rushadão para tentar dominar o trono e aguentar até o evento acabar, para tentar mudar isso tive essa ideia. Seria ativado 2 vezes na semana (horarios e dias configuraveis) No castelo teria um sistema de pontuação para definir quem seria o dominante, iria existir um trono que daria 1, 2 a 3 pontos baseado na vida de quem ta no trono. 100% vida = 1. 50% vida = 2 pontos. 25% de vida = 3 pontos. OBS: a cada 20 segundos (tempo configuravel) que o jogador estivesse encima do "trono" seria atribuido o ponto de acordo com sua vida e somaria até o final do evento. Primeiro vou explicar a parte do trono: O jogador "shutdown" subiu encima do trono começa a contagem de pontos com base na vida dele, Obs: o jogador precisa ter guild para subir no trono. Ao final do evento o jogador que estiver mais pontos e sua guild sera o ganhador do castelo. Obs: a guild do jogador vai ter a posse do castelo e não o jogador. bonificação: 10% de experiencia a mais para todos os jogadores da guild vencedora Você tem o código disponível? Se tiver publique-o aqui: Adicionei todos os arquivos utilizados no sistema de castelo atual no zip abaixo: castle.zip
  20. @dynkzin Boa noite, se você estiver se referindo a armas de distance, exemplo: bow ou crossbow tente utilizar a function swing="true" Vá até weapons, abra weapons.xml e procure pela tag. ficando assim: <distance id="3965" level="20" swing="true" event="function" value="default"/> <!-- Hunting Spear -->
  21. hiquezerah postou uma resposta no tópico em Suporte Websites
    .Qual servidor ou website você utiliza como base? myacc Qual o motivo deste tópico? Olá rapazeada do tk, boa noite! Alguém poderia me ajudar com uma mudanças no creatures do myacc? A minha ideia é colocar para aparecer as resistências e fraquezas sobre os elementos caso eles tenham no xml do monstro. Ao player clicar no nome do monstro como a imagem abaixo mostra. Se alguém poder me ajudar, eu precisava que colocasse o elemento (resistência e fraqueza do monstro) ficasse na tabela do monstro. Assim como o health, experiencia etc... Exemplo: Elementos: 25%+ fire | 25%- ice <elements> <element firePercent="25"/> <element icePercent="-25"/> </elements> https://prnt.sc/1u9sr1n https://prnt.sc/1u9sr1n Você tem o código disponível? Se tiver publique-o aqui: <?php /** * Creatures * * @package MyAAC * @author Gesior <[email protected]> * @author Slawkens <[email protected]> * @copyright 2019 MyAAC * @link https://my-aac.org */ defined('MYAAC') or die('Direct access not allowed!'); $title = "Creatures"; ?> <script type="text/javascript" src="tools/js/tipped.js"></script> <link rel="stylesheet" type="text/css" href="tools/css/tipped.css"/> <link rel="stylesheet" href="<?php echo BASE_URL; ?>tools/css/jquery.dataTables.min.css"> <script> $(document).ready(function () { Tipped.create('.item_image'); }); </script> <?php $canEdit = hasFlag(FLAG_CONTENT_MONSTERS) || admin(); if (isset($_POST['reload_monsters']) && $canEdit) { require LIBS . 'creatures.php'; if (Creatures::loadFromXML(true)) { if (Creatures::getMonstersList()->hasErrors()) error('There were some problems loading your monsters.xml file. Please check system/logs/error.log for more info.'); } else { error(Creatures::getLastError()); } } if ($canEdit) { ?> <form method="post" action="<?php echo getLink('creatures'); ?>"> <input type="hidden" name="reload_monsters" value="yes"/> <input type="submit" value="(admin) Reload monsters"/> </form> <?php } if (empty($_REQUEST['creature'])) { //send query to database $monsters = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'monsters` WHERE `hidden` != 1 ORDER BY name asc'); echo '<table id="creaturestb" class=""><thead> <tr role="row"><th>Name</th><th>Health</th><th>Experience</th> <th>Summonable Mana</th><th>Convinceable Mana</th><th>Race</th></tr> </thead><tbody>'; foreach ($monsters as $monster) { echo '<tr><td><a href="?subtopic=creatures&creature=' . urlencode($monster['name']) . '">' . $monster['name'] . '</a></td> <td>' . $monster['health'] . '</td> <td>' . $monster['exp'] . '</td> <td>' . ($monster['summonable'] ? $monster['mana'] : "---") . '</td> <td>' . ($monster['convinceable'] ? $monster['mana'] : "---") . '</td> <td>' . ucwords($monster['race']) . '</td></tr>'; } echo '</tbody></table>'; } else { $monster_name = stripslashes(trim(ucwords($_REQUEST['creature']))); $monster = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'monsters` WHERE `hidden` != 1 AND `name` = ' . $db->quote($monster_name) . ';')->fetch(); if (isset($monster['name'])) { $title = $monster['name'] . " - Creatures"; echo '<div style="text-align:center"><h2>' . $monster['name'] . '</h2></div>'; echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><tr><td> <TABLE BORDER=1 CELLSPACING=1 CELLPADDING=4 WIDTH=60%>'; $number_of_rows = 0; echo '<tr BGCOLOR="' . getStyle($number_of_rows) . '"><td width="100"><b>Health: </b></td><td>' . $monster['health'] . '</td></tr>'; $number_of_rows++; echo '<tr BGCOLOR="' . getStyle($number_of_rows) . '"><td width="100"><b>Experience: </b></td><td>' . $monster['exp'] . '</td></tr>'; $number_of_rows++; echo '<tr BGCOLOR="' . getStyle($number_of_rows) . '"><td width="100"><b>Speed like: </b></td><td>' . $monster['speed_lvl'] . ' level'; $number_of_rows++; if ($monster['use_haste']) echo ' (Can use haste)'; echo '</td></tr>'; $number_of_rows++; if ($monster['summonable'] == 1) echo '<tr BGCOLOR="' . getStyle($number_of_rows) . '"><td width="100"><b>Summon: </b></td><td>' . $monster['mana'] . ' mana</td></tr>'; else { echo '<tr BGCOLOR="' . getStyle($number_of_rows) . '"><td width="100"><b>Summon: </b></td><td>Impossible</td></tr>'; } $number_of_rows++; if ($monster['convinceable'] == 1) echo '<tr BGCOLOR="' . getStyle($number_of_rows) . '"><td width="100"><b>Convince: </b></td><td>' . $monster['mana'] . ' mana</td></tr>'; else echo '<tr BGCOLOR="' . getStyle($number_of_rows) . '"><td width="100"><b>Convince: </b></td><td>Impossible</td></tr>'; echo '</TABLE></td><td align=left> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=40%> <tr><td align=left>'; $monster['gfx_name'] = trim(strtolower($monster['name'])) . ".png"; if (!file_exists('images/monsters/' . $monster['gfx_name'])) { $gfx_name = str_replace(" ", "", $monster['gfx_name']); if (file_exists('images/monsters/' . $gfx_name)) echo '<img src="images/monsters/' . $gfx_name . '" height="128" width="128">'; else echo '<img src="images/monsters/nophoto.png" height="128" width="128">'; } else echo '<img src="images/monsters/' . $monster['gfx_name'] . '" height="128" width="128">'; echo '</td></tr> </TABLE></td></tr><tr><td> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>'; $immunities = json_decode($monster['immunities'], true); if (count($immunities) > 0) { $number_of_rows++; echo '<tr BGCOLOR="' . getStyle($number_of_rows) . '"><td width="100"><b>Immunities: </b></td><td width="100%">' . implode(', ', $immunities) . '</td></tr>'; } $voices = json_decode($monster['voices'], true); if (count($voices) > 0) { foreach ($voices as &$voice) { $voice = '"' . $voice . '"'; } $number_of_rows++; echo '<tr BGCOLOR="' . getStyle($number_of_rows) . '"><td width="100"><b>Voices: </b></td><td width="100%">' . implode(', ', $voices) . '</td></tr>'; } echo '</TABLE></td></tr>'; $loot = json_decode($monster['loot'], true); if ($loot) { echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><tr><td style="display: block;">'; function sort_by_chance($a, $b) { if ($a['chance'] == $b['chance']) { return 0; } return ($a['chance'] > $b['chance']) ? -1 : 1; } usort($loot, 'sort_by_chance'); $i = 0; foreach ($loot as $item) { $name = getItemNameById($item['id']); $tooltip = $name . '<br/>Chance: ' . round($item['chance'] / 1000, 2) . '%<br/>Max count: ' . $item['count']; echo '<img src="' . $config['item_images_url'] . $item['id'] . '.gif" class="item_image" title="' . $tooltip . '" width="32" height="32" border="0" alt=" ' . $name . '" />'; $i++; } echo '</td></tr></TABLE>'; } echo '</td></tr>'; echo '</TABLE>'; } else { echo "Monster with name <b>" . $monster_name . "</b> doesn't exist."; } //back button $twig->display('creatures.back_button.html.twig'); } ?> <script> $(document).ready(function () { $('#creaturestb').DataTable(); }); </script> <script src="<?php echo BASE_URL; ?>tools/js/jquery.dataTables.min.js"></script> Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
  22. @luangop Desculpe-me não expliquei muito bem sobre a minha ideia, é o seguinte eu tive uma ideia de criar um item que da protection all de 20% durante 10 segundos ao personagem que usar, após 10 segundos o item deve sumir para que as pessoas não fiquem estacando esses itens em bps para usar depois. E essa spell teria um cooldown de 50 segundos, sabe? é basicamente o script vai criar apenas 1 item, não são três não. eu testei o seu novo script aqui e continuou dando alguns erros vou te mandar aqui esse print acima é após a spell ser usada e eu tentar usar ela novamente /\ esse outro aqui eu acredito que seja depois dos 10 segundos que o item deveria sumir, mas não sumiu
  23. @luangop Olá, desculpa a demora para responder, não estava em casa. Acabei de testar aqui e apresentou um erro na distro. seria possivel colocar uma exhaust para poder usar esse script de 50 segundos para ser usada?

Informação Importante

Confirmação de Termo