Ir para conteúdo

MatteusDeli

Membro
  • Registro em

  • Última visita

Tudo que MatteusDeli postou

  1. Só configurar os itens e as quantidades no script e falar /items
  2. Bom dia, segue o script data/talkactions/scripts/items.lua: local config = { items = { [1] = {id = 2650, count = 1}, [2] = {id = 2160, count = 15}, [3] = {id = 2160, count = 26}, [4] = {id = 2382, count = 2}, -- [5] = {id = 2382, count = 2}, Adicionar novo item, seguir a sequencia entre [] -- [6] = {id = 2382, count = 2}, Adicionar novo item, seguir a sequencia entre [] }, } function onSay(player, words, param) if not (player:getGroup():getAccess()) then return false end for _,pid in ipairs(getOnlinePlayers()) do local player = Player(pid) if (player:isPlayer() and not player:getGroup():getAccess()) then player:sendTextMessage(TALKTYPE_ORANGE_1, "Parabens, voce recebeu os seguintes items do ADM!") for i=1, #config.items do player:addItem(config.items[i].id, config.items[i].count) local itemType = ItemType(config.items[i].id) player:sendTextMessage(3, "- "..config.items[i].count.." "..itemType:getName().."(s).") end end end end XML data/talkactions/talkactions.xml: <talkaction words="/items" separator=" " script="items.lua" />
  3. MatteusDeli postou uma resposta no tópico em Suporte Tibia OTServer
    O que está acontecendo é um problema de privilegio no banco de dados. Tente abrir o arquivo config.php na pasta do site html/config/config.php e procure por esta linha (ela está lá pro final do arquivo) $SQLlink = mysqli_connect("localhost", "root", "123456", "baiak"); Aonde está com a cor verde é a password de acesso ao banco de dados. Algumas soluções: 1° Tente remover a senha que está em verde, deixando ela vazia, apenas com as aspas ""; $SQLlink = mysqli_connect("localhost", "root", "", "baiak"); 2° Caso você deixando em branco e a conexão não estabeleça, você terá que checar se o seu banco de dados está com alguma senha de acesso, caso esteja coloque ela aonde está em verde dentro das aspas. $SQLlink = mysqli_connect("localhost", "root", "SUA_SENHA_AQUI", "baiak");
  4. MatteusDeli postou uma resposta no tópico em Suporte Tibia OTServer
    Você ta usando qual tipo de servidor para rodar o site? O xampp, mamp ou lampp?
  5. MatteusDeli postou uma resposta no tópico em Suporte Tibia OTServer
    Bom dia, entre na pasta do seu servidor (no meu caso é o xampp) e procuro pelo arquivo config.inc.php que geralmente fica na pasta do phpMyAdmin, abra este arquivo e procure pela linha $cfg['Servers'][$i]['password'] ao achar essa variável você altera ela para a senha que você colocou no seu banco de dados. Espero ter ajudado.
  6. @elielder Pode ser algum script que você colocou recentemente, geralmente esse erro acontece em scripts colocados no creaturevents ou no globalevents
  7. @Lisbeky Bom dia, alterei o script colocando o tempo
  8. @Lisbeky Boa noite, segue o script: data/actions/scripts crie um arquivo chamado ankh.lua e cole isto dentro: local config = { time = 3, -- Tempo em segundos para aparecer o monstro effect = 10, -- Efeito que ira sair quando o monstro for trocado monster_created = "demon", -- Nome do monstro que será criado monster_removed = "Orc" -- Nome do monstro que será removido } function onUse(cid, item, frompos, itemEx, topos) if not (isMonster(itemEx.uid)) then doPlayerSendCancel(cid, "Use este item apenas em monstros.") return true end if not (string.lower(getCreatureName(itemEx.uid)) == string.lower(config.monster_removed)) then doPlayerSendCancel(cid, "Voce nao pode usar este item neste monstro.") return true end doRemoveCreature(itemEx.uid) addEvent(function() doCreateMonster(config.monster_created, topos) doSendMagicEffect(topos, config.effect) end, config.time*1000) end data/actions/actions.xml <action actionid="100" event="script" value="ankha.lua" />
  9. @Samuel Cstr @rozinx.kungsan Boa noite, tenta colocar no lugar do #0D2E2B esse codigo #ff0000 (esse é o vermelho claro)
  10. @Lordoritos Serve sim @LeoTK Bom noite, obrigado pela ideia, não tinha pensado nisso.
  11. @gabrielbuff Boa noite, tenta assim:
  12. @eunaosei123 Voce quer que apareça a mensagem de cura da mana e do life toda fez que ocorrer a regeneração?
  13. @gabrielbuff Bom dia, cheque se na tabela accounts tem uma coluna chamada c_points, se não tiver execute este comando na database: ALTER TABLE accounts ADD c_points INTEGER DEFAULT 0;
  14. @eunaosei123 Bom dia, tente assim: Eu alterei o seu script e centralizei toda a configuração dele no arquivo 066-heal para facilitar. 1 - Vá em data/lib e crie um arquivo chamado 066-heal e cole isto dentro: 2 - Vá em data/actions/scripts e abra o seu script atual e altere para este: 3- Vá em data/creatureevents/scripts e crie um arquivo chamado healLogout.lua e cole isto dentro: - Por último abra o creatureevents.XML e cole estas duas tags dentro:
  15. @robsu Boa tarde, tente assim:
  16. @betofss Tenta assim, não sei se vai funcionar pq to sem nenhum server de poketibia para testar local pokes = { ["Rattata"] = {chance = 50, corpse = "Rattata", health = 350, maxhealth = 350, level = 1}, ["Flareon"] = {chance = 5000, corpse = "Flareon", health = 5300, maxhealth = 5300, level = 55}, ["Crystal Onix"] = {chance = 5000, corpse = "Crystal Onix", health = 5300, maxhealth = 5300, level = 70}, ["Porygon"] = {chance = 5000, corpse = "Porygon", health = 14000, maxhealth = 4000, level = 45}, ["porygon2"] = {chance = 5000, corpse = "porygon2", health = 14000, maxhealth = 4000, level = 45}, ["Ditto"] = {chance = 5000, corpse = "Ditto", health = 14000, maxhealth = 4000, level = 40}, ["Shiny Ditto"] = {chance = 5000, corpse = "Shiny Ditto", health = 14000, maxhealth = 4000, level = 60}, ["Magikarp"] = {chance = 20, corpse = "3999", health = 0, maxhealth = 120, level = 1}, ["Eevee"] = {chance = 4000, corpse = "Eevee", health = 1500, maxhealth = 1500, level = 20}, ["Abra"] = {chance = 900, corpse = "Abra", health = 620, maxhealth = 620, level = 10}, ["Kadabra"] = {chance = 5500, corpse = "Kadabra", health = 2500, maxhealth = 2500, level = 50}, ["Alakazam"] = {chance = 10705, corpse = "Alakazam", health = 4000, maxhealth = 4000, level = 80}, ["Shiny Alakazam"] = {chance = 10705, corpse = "Shiny Alakazam", health = 4000, maxhealth = 4000, level = 80}, ["Dark Alakazam"] = {chance = 10705, corpse = "Dark Alakazam", health = 4000, maxhealth = 4000, level = 90}, ["Raticate"] = {chance = 1300, corpse = "Raticate", health = 900, maxhealth = 900, level = 20}, ["Pidgey"] = {chance = 40.25, corpse = "Pidgey", health = 380, maxhealth = 380, level = 1}, ["Pidgeotto"] = {chance = 1407.5, corpse = "Pidgeotto", health = 1400, maxhealth = 1400, level = 20}, ["Pidgeot"] = {chance = 9000, corpse = "6020", health = 0, maxhealth = 0, level = 20}, ["Zubat"] = {chance = 75, corpse = "Zubat", health = 450, maxhealth = 450, level = 5}, ["Golbat"] = {chance = 1090, corpse = "Golbat", health = 1900, maxhealth = 1900, level = 35}, ["Bellsprout"] = {chance = 82.5, corpse = "Bellsprout", health = 420, maxhealth = 420, level = 5}, ["Weepinbell"] = {chance = 1550, corpse = "Weepinbell", health = 1100, maxhealth = 1100, level = 25}, ["Victreebel"] = {chance = 7012.5, corpse = "Victreebel", health = 4000, maxhealth = 4000, level = 55}, ["Shiny Victreebel"] = {chance = 7012.5, corpse = "Shiny Victreebel", health = 4000, maxhealth = 4000, level = 85}, ["Poliwag"] = {chance = 73.75, corpse = "Poliwag", health = 400, maxhealth = 400, level = 10}, ["Poliwhirl"] = {chance = 2012.5, corpse = "Poliwhirl", health = 1200, maxhealth = 1200, level = 25}, ["Poliwrath"] = {chance = 9000, corpse = "Poliwrath", health = 4400, maxhealth = 4400, level = 70}, ["Oddish"] = {chance = 90, corpse = "Oddish", health = 340, maxhealth = 340, level = 10}, ["Gloom"] = {chance = 1050, corpse = "Gloom", health = 1400, maxhealth = 1400, level = 25}, ["Vileplume"] = {chance = 7012.5, corpse = "Vileplume", health = 3300, maxhealth = 3300, level = 55}, ["Horsea"] = {chance = 105, corpse = "Horsea", health = 300, maxhealth = 300, level = 10}, ["Seadra"] = {chance = 4000, corpse = "Seadra", health = 2500, maxhealth = 2500, level = 55}, ["Grimer"] = {chance = 605, corpse = "Grimer", health = 600, maxhealth = 600, level = 18}, ["Weedle"] = {chance = 20, corpse = "Weedle", health = 325, maxhealth = 325, level = 5}, ["Kakuna"] = {chance = 201.25, corpse = "Kakuna", health = 900, maxhealth = 900, level = 15}, ["Beedrill"] = {chance = 2012.5, corpse = "Beedrill", health = 1900, maxhealth = 1900, level = 35}, ["Muk"] = {chance = 1075, corpse = "Muk", health = 2400, maxhealth = 2400, level = 40}, ["Doduo"] = {chance = 701.25, corpse = "Doduo", health = 600, maxhealth = 600, level = 15}, ["Dodrio"] = {chance = 3000, corpse = "Dodrio", health = 2650, maxhealth = 2650, level = 55}, ["Magnemite"] = {chance = 605, corpse = "Magnemite", health = 450, maxhealth = 450, level = 20}, ["Magneton"] = {chance = 3000, corpse = "Magneton", health = 1750, maxhealth = 1750, level = 45}, ["Voltorb"] = {chance = 406.25, corpse = "Voltorb", health = 620, maxhealth = 620, level = 20}, ["Electrode"] = {chance = 2075, corpse = "Electrode", health = 2000, maxhealth = 2000, level = 45}, ["Geodude"] = {chance = 302.5, corpse = "Geodude", health = 700, maxhealth = 700, level = 20}, ["Graveler"] = {chance = 2012.5, corpse = "Graveler", health = 3000, maxhealth = 3000, level = 45}, ["Golem"] = {chance = 9000, corpse = "Golem", health = 6500, maxhealth = 6500, level = 75}, ["Sandshrew"] = {chance = 906.25, corpse = "Sandshrew", health = 700, maxhealth = 700, level = 25}, ["Sandslash"] = {chance = 7075, corpse = "Sandslash", health = 3400, maxhealth = 3400, level = 60}, ["Charmander"] = {chance = 2075, corpse = "Charmander", health = 970, maxhealth = 970, level = 25}, ["Charmeleon"] = {chance = 5087.5, corpse = "Charmeleon", health = 2900, maxhealth = 2900, level = 45}, ["Charizard"] = {chance = 9687.5, corpse = "Charizard", health = 5200, maxhealth = 5200, level = 90}, ["Vulpix"] = {chance = 950, corpse = "Vulpix", health = 680, maxhealth = 680, level = 20}, ["Ninetales"] = {chance = 9062.5, corpse = "Ninetales", health = 2650, maxhealth = 2650, level = 70}, ["Bulbasaur"] = {chance = 2705, corpse = "Bulbasaur", health = 1200, maxhealth = 1200, level = 25}, ["Ivysaur"] = {chance = 5870.5, corpse = "Ivysaur", health = 2600, maxhealth = 2600, level = 45}, ["Venusaur"] = {chance = 14087.5, corpse = "Venusaur", health = 5200, maxhealth = 5200, level = 90}, ["Squirtle"] = {chance = 2705, corpse = "Squirtle", health = 1350, maxhealth = 1350, level = 25}, ["Wartortle"] = {chance = 5807.5, corpse = "Wartortle", health = 2800, maxhealth = 2800, level = 45}, ["Blastoise"] = {chance = 14087.5, corpse = "Blastoise", health = 5900, maxhealth = 5900, level = 90}, ["Growlithe"] = {chance = 3037.5, corpse = "Growlithe", health = 1000, maxhealth = 1000, level = 25}, ["Arcanine"] = {chance = 9250, corpse = "Arcanine", health = 6800, maxhealth = 6800, level = 70}, ["Psyduck"] = {chance = 925, corpse = "Psyduck", health = 950, maxhealth = 950, level = 25}, ["Golduck"] = {chance = 9000, corpse = "Golduck", health = 4000, maxhealth = 4000, level = 55}, ["Pikachu"] = {chance = 4000, corpse = "Pikachu", health = 900, maxhealth = 900, level = 20}, ["Raichu"] = {chance = 9000, corpse = "Raichu", health = 3500, maxhealth = 3500, level = 55}, ["Ekans"] = {chance = 406,25, corpse = "Ekans", health = 600, maxhealth = 600, level = 15}, ["Arbok"] = {chance = 2012.5, corpse = "Arbok", health = 2900, maxhealth = 2900, level = 35}, ["Cubone"] = {chance = 925, corpse = "Cubone", health = 1200, maxhealth = 1200, level = 20}, ["Marowak"] = {chance = 5025, corpse = "Marowak", health = 3900, maxhealth = 3900, level = 45}, ["Caterpie"] = {chance = 20, corpse = "Caterpie", health = 300, maxhealth = 300, level = 1}, ["Metapod"] = {chance = 201.25, corpse = "Metapod", health = 1100, maxhealth = 1100, level = 10}, ["Butterfree"] = {chance = 2102.5, corpse = "Butterfree", health = 2000, maxhealth = 2000, level = 30}, ["Goldeen"] = {chance = 72.5, corpse = "Goldeen", health = 950, maxhealth = 950, level = 10}, ["Seaking"] = {chance = 2075, corpse = "Seaking", health = 2000, maxhealth = 2000, level = 25}, ["Spearow"] = {chance = 88.75, corpse = "Spearow", health = 200, maxhealth = 200, level = 5}, ["Fearow"] = {chance = 6050, corpse = "Fearow", health = 3300, maxhealth = 3300, level = 50}, ["Drowzee"] = {chance = 937.5, corpse = "Drowzee", health = 1150, maxhealth = 1150, level = 22}, ["Hypno"] = {chance = 9000, corpse = "Hypno", health = 4600, maxhealth = 4600, level = 50}, ["Diglett"] = {chance = 400, corpse = "Diglett", health = 900, maxhealth = 900, level = 15}, ["Dugtrio"] = {chance = 4000, corpse = "Dugtrio", health = 3450, maxhealth = 3450, level = 35}, ["Krabby"] = {chance = 86.875, corpse = "Krabby", health = 850, maxhealth = 850, level = 5}, ["Kingler"] = {chance = 3000, corpse = "Kingler", health = 3250, maxhealth = 3250, level = 35}, ["Paras"] = {chance = 40.25, corpse = "Paras", health = 850, maxhealth = 850, level = 1}, ["Parasect"] = {chance = 2012.5, corpse = "Parasect", health = 3800, maxhealth = 3800, level = 50}, ["Dratini"] = {chance = 3037.5, corpse = "Dratini", health = 520, maxhealth = 520, level = 10}, ["Dragonair"] = {chance = 9425, corpse = "Dragonair", health = 3000, maxhealth = 3000, level = 70}, ["Shiny Dragonair"] = {chance = 9425, corpse = "Shiny Dragonair", health = 3000, maxhealth = 3000, level = 70}, ["Dragonite"] = {chance = 35000, corpse = "Dragonite", health = 17000, maxhealth = 17000, level = 100}, ["Shiny Dragonite"] = {chance = 35000, corpse = "Shiny Dragonite", health = 17000, maxhealth = 17000, level = 100}, ["Ponyta"] = {chance = 906.25, corpse = "Ponyta", health = 1400, maxhealth = 1400, level = 20}, ["Rapidash"] = {chance = 4602.5, corpse = "Rapidash", health = 5500, maxhealth = 5500, level = 60}, ["Pinsir"] = {chance = 4000, corpse = "Pinsir", health = 55, maxhealth = 55, level = 42}, ["Seel"] = {chance = 1500, corpse = "Seel", health = 1000, maxhealth = 1000, level = 20}, ["Dewgong"] = {chance = 900, corpse = "Dewgong", health = 5200, maxhealth = 5200, level = 65}, ["Exeggcute"] = {chance = 300, corpse = "Exeggcute", health = 800, maxhealth = 800, level = 8}, ["Exeggutor"] = {chance = 7075, corpse = "Exeggutor", health = 450, maxhealth = 4000, level = 48}, ["Koffing"] = {chance = 502.5, corpse = "Koffing", health = 900, maxhealth = 900, level = 15}, ["Weezing"] = {chance = 1605, corpse = "Weezing", health = 2800, maxhealth = 2800, level = 30}, ["Staryu"] = {chance = 405, corpse = "Staryu", health = 1050, maxhealth = 1050, level = 15}, ["Starmie"] = {chance = 3000, corpse = "Starmie", health = 3800, maxhealth = 3800, level = 45}, ["Rhyhorn"] = {chance = 1007.5, corpse = "Rhyhorn", health = 3800, maxhealth = 3800, level = 35}, ["Rhydon"] = {chance = 5500, corpse = "Rhydon", health = 7000, maxhealth = 7000, level = 65}, ["Shellder"] = {chance = 505, corpse = "Shellder", health = 800, maxhealth = 800, level = 5}, ["Snorlax"] = {chance = 33705, corpse = "Snorlax", health = 9000, maxhealth = 9000, level = 85}, ["Shiny Snorlax"] = {chance = 33705, corpse = "Shiny Snorlax", health = 9000, maxhealth = 9000, level = 100}, ["Gyarados"] = {chance = 30000, corpse = "Gyarados", health = 7800, maxhealth = 7800, level = 75}, ["Machop"] = {chance = 906.25, corpse = "Machop", health = 1100, maxhealth = 1100, level = 18}, ["Machoke"] = {chance = 5205, corpse = "Machoke", health = 2850, maxhealth = 3500, level = 40}, ["Machamp"] = {chance = 11500, corpse = "Machamp", health = 6100, maxhealth = 7500, level = 65}, ["Clefairy"] = {chance = 1075, corpse = "Clefairy", health = 600, maxhealth = 600, level = 10}, ["Clefable"] = {chance = 5050, corpse = "Clefable", health = 2400, maxhealth = 2400, level = 35}, ["Jigglypuff"] = {chance = 987.5, corpse = "Jigglypuff", health = 550, maxhealth = 550, level = 10}, ["Wigglytuff"] = {chance = 5025, corpse = "Wigglytuff", health = 2900, maxhealth = 2900, level = 42}, ["Venonat"] = {chance = 925, corpse = "Venonat", health = 1350, maxhealth = 1350, level = 18}, ["Venomoth"] = {chance = 4000, corpse = "Venomoth", health = 3850, maxhealth = 3850, level = 50}, ["Meowth"] = {chance = 900, corpse = "Meowth", health = 2000, maxhealth = 950, level = 12}, ["Persian"] = {chance = 4000, corpse = "Persian", health = 2250, maxhealth = 2250, level = 25}, ["Mankey"] = {chance = 605, corpse = "Mankey", health = 1050, maxhealth = 1050, level = 10}, ["Primeape"] = {chance = 5205, corpse = "Primeape", health = 4500, maxhealth = 4500, level = 45}, ["Tentacool"] = {chance = 303.75, corpse = "Tentacool", health = 1050, maxhealth = 1050, level = 12}, ["Tentacruel"] = {chance = 6500, corpse = "Tentacruel", health = 7050, maxhealth = 7050, level = 70}, ["Slowpoke"] = {chance = 906.25, corpse = "Slowpoke", health = 1200, maxhealth = 1200, level = 12}, ["Slowbro"] = {chance = 7102.5, corpse = "Slowbro", health = 4600, maxhealth = 4600, level = 45}, ["Cloyster"] = {chance = 5807.5, corpse = "Cloyster", health = 120, maxhealth = 5000, level = 65}, ["Gastly"] = {chance = 3307.5, corpse = "Gastly", health = 1000, maxhealth = 1000, level = 18}, ["Haunter"] = {chance = 7705, corpse = "Haunter", health = 3000, maxhealth = 3000, level = 45}, ["Gengar"] = {chance = 39075, corpse = "Gengar", health = 7000, maxhealth = 7000, level = 80}, ["Onix"] = {chance = 4000, corpse = "Onix", health = 5300, maxhealth = 5300, level = 50}, ["Hitmonlee"] = {chance = 6500, corpse = "Hitmonlee", health = 9250, maxhealth = 9250, level = 60}, ["Hitmonchan"] = {chance = 6500, corpse = "Hitmonchan", health = 10500, maxhealth = 10500, level = 60}, ["Lickitung"] = {chance = 9875, corpse = "Lickitung", health = 4800, maxhealth = 4800, level = 45}, ["Chansey"] = {chance = 40000, corpse = "Chansey", health = 7500, maxhealth = 7500, level = 60}, ["Tangela"] = {chance = 4000, corpse = "Tangela", health = 3500, maxhealth = 3500, level = 40}, ["Kangaskhan"] = {chance = 4000, corpse = "Kangaskhan", health = 7000, maxhealth = 7000, level = 60}, ["Scyther"] = {chance = 14075, corpse = "Scyther", health = 6500, maxhealth = 6500, level = 70}, ["Electabuzz"] = {chance = 14075, corpse = "Electabuzz", health = 6800, maxhealth = 6800, level = 70}, ["Magmar"] = {chance = 14075, corpse = "Magmar", health = 7200, maxhealth = 7200, level = 70}, ["Jynx"] = {chance = 10000, corpse = "Jynx", health = 7000, maxhealth = 7000, level = 65}, ["Nidoran Male"] = {chance = 500, corpse = "Nidoran Male", health = 650, maxhealth = 650, level = 10}, ["Nidoran Female"] = {chance = 500, corpse = "Nidoran Female", health = 600, maxhealth = 600, level = 10}, ["Nidoking"] = {chance = 5000, corpse = "Nidoking", health = 4800, maxhealth = 4800, level = 65}, ["Shiny Nidoking"] = {chance = 5000, corpse = "Shiny Nidoking", health = 4800, maxhealth = 4800, level = 80}, ["Nidoqueen"] = {chance = 5000, corpse = "Nidoqueen", health = 4200, maxhealth = 4200, level = 65}, ["Nidorina"] = {chance = 2500, corpse = "Nidorina", health = 2000, maxhealth = 2000, level = 25}, ["Nidorino"] = {chance = 2500, corpse = "Nidorino", health = 2500, maxhealth = 2500, level = 25}, ["Farfetchd"] = {chance = 5205, corpse = "Farfetchd", health = 2500, maxhealth = 2500, level = 40}, ["MrMime"] = {chance = 8307.5, corpse = "MrMime", health = 5500, maxhealth = 5500, level = 60}, ["Tauros"] = {chance = 2102.5, corpse = "Tauros", health = 4200, maxhealth = 4200, level = 40}, ["Lapras"] = {chance = 58075, corpse = "Lapras", health = 8000, maxhealth = 8000, level = 70}, ["Omanyte"] = {chance = 9025, corpse = "Omanyte", health = 1300, maxhealth = 1300, level = 20}, ["Omastar"] = {chance = 30125, corpse = "Omastar", health = 6000, maxhealth = 6000, level = 70}, ["Kabuto"] = {chance = 11025, corpse = "Kabuto", health = 1375, maxhealth = 1375, level = 20}, ["Kabutops"] = {chance = 31205, corpse = "Kabutops", health = 6920, maxhealth = 6920, level = 70}, ["Aerodactyl"] = {chance = 122050, corpse = "Aerodactyl", health = 7100, maxhealth = 7100, level = 100}, ["Shiny Aerodactyl"] = {chance = 122050, corpse = "Shiny Aerodactyl", health = 7100, maxhealth = 7100, level = 120}, ["Articuno"] = {chance = 5000, corpse = "Articuno", health = 12000, maxhealth = 12000, level = 120}, ["Zapdos"] = {chance = 5000, corpse = "Zapdos", health = 11000, maxhealth = 11000, level = 120}, ["Moltres"] = {chance = 5000, corpse = "Moltres", health = 11000, maxhealth = 11000, level = 120}, ["Mewtwo"] = {chance = 10000, corpse = "Mewtwo", health = 8500, maxhealth = 8500, level = 140}, ["Mew"] = {chance = 10000, corpse = "Mew", health = 7200, maxhealth = 7200, level = 140}, ------------------------Shiny----------------------- ["Shiny Charizard"] = {chance = 8000, corpse = 2954, health = 7200, maxhealth = 7200, level = 100}, ["Shiny Magikarp"] = {chance = 1000, corpse = 105, health = 920, maxhealth = 920, level = 100}, ["Shiny Rattata"] = {chance = 1000, corpse = 110, health = 900, maxhealth = 900, level = 100}, ["Shiny Paras"] = {chance = 1500, corpse = 116, health = 1400, maxhealth = 1400, level = 100}, ["Shiny Oddish"] = {chance = 1500, corpse = 115, health = 990, maxhealth = 990, level = 100}, ["Shiny Zubat"] = {chance = 1500, corpse = 114, level = 100}, ["Shiny Tentacool"] = {chance = 2000, corpse = 122, health = 0, maxhealth = 0, level = 100}, ["Shiny Tentacruel"] = {chance = 7500, corpse = 128, health = 0, maxhealth = 0, level = 100}, ["Shiny Raticate"] = {chance = 2000, corpse = 136, health = 0, maxhealth = 0, level = 100}, ["Shiny Krabby"] = {chance = 1800, corpse = 126, health = 0, maxhealth = 0, level = 100}, ["Shiny Kingler"] = {chance = 3000, corpse = 138, health = 0, maxhealth = 0, level = 100}, ["Shiny Horsea"] = {chance = 1800, corpse = 139, health = 4080, maxhealth = 4080, level = 100}, ["Shiny Seadra"] = {chance = 3000, corpse = 131, health = 0, maxhealth = 0, level = 100}, ["Shiny Gyarados"] = {chance = 9000, corpse = 144, health = 18000, maxhealth = 18000, level = 100}, ["Shiny Parasect"] = {chance = 4000, corpse = 127, health = 0, maxhealth = 0, level = 100}, ["Shiny Scyther"] = {chance = 9000, corpse = 142, health = 0, maxhealth = 0, level = 100}, ["Shiny Electabuzz"] = {chance = 9000, corpse = 143, health = 0, maxhealth = 0, level = 100}, ["Shiny Jynx"] = {chance = 9000, corpse = 129, health = 0, maxhealth = 0, level = 100}, ["Shiny Electrode"] = {chance = 5000, corpse = 124, health = 0, maxhealth = 0, level = 100}, ["Shiny Voltorb"] = {chance = 1800, corpse = 125, health = 0, maxhealth = 0, level = 100}, ["Shiny Raichu"] = {chance = 5000, corpse = 140, health = 0, maxhealth = 0, level = 100}, ["Shiny Venonat"] = {chance = 2000, corpse = 130, health = 0, maxhealth = 0, level = 100}, ["Shiny Venomoth"] = {chance = 4500, corpse = 132, health = 0, maxhealth = 0, level = 100}, ["Shiny Beedril"] = {chance = 3000, corpse = 137, health = 0, maxhealth = 0, level = 100}, ["Shiny Butterfree"] = {chance = 3000, corpse = 133, health = 0, maxhealth = 0, level = 100}, ["Shiny Venusaur"] = {chance = 9000, corpse = 135, health = 10200, maxhealth = 10200, level = 100}, ["Shiny Blastoise"] = {chance = 9000, corpse = 134, health = 0, maxhealth = 0, level = 100}, ["Shiny Farfetchd"] = {chance = 4000, corpse = 119, health = 0, maxhealth = 0, level = 100}, ["Shiny Grimer"] = {chance = 1800, corpse = 123, health = 0, maxhealth = 0, level = 100}, ["Shiny Muk"] = {chance = 4000, corpse = 121, health = 0, maxhealth = 0, level = 100}, ["Shiny Growlithe"] = {chance = 2500, corpse = 117, health = 0, maxhealth = 0, level = 100}, ["Shiny Arcanine"] = {chance = 9000, corpse = 120, health = 0, maxhealth = 17000, level = 100}, ["Shiny Dratini"] = {chance = 4000, corpse = 118, health = 0, maxhealth = 0, level = 100}, ["Shiny Abra"] = {chance = 5000, corpse = 141, health = 0, maxhealth = 3620, level = 100}, ["Shiny Golem"] = {chance = 5000, corpse = 2995, health = 0, maxhealth = 3620, level = 100}, -----------------------------------Johto------------------------------ ["Aipom"] = {chance = 910, corpse = 11391, health = 3000, maxhealth = 3000, level = 30}, ["Ampharos"] = {chance = 14100, corpse = 11393, health = 3000, maxhealth = 3000, level = 30}, ["Ariados"] = {chance = 2200, corpse = 11394, health = 3000, maxhealth = 3000, level = 30}, ["Azumarill"] = {chance = 3000, corpse = 11395, health = 3000, maxhealth = 3000, level = 30}, ["Bayleef"] = {chance = 5900, corpse = 11396, health = 3000, maxhealth = 3000, level = 30}, ["Bellossom"] = {chance = 7100, corpse = 11397, health = 3000, maxhealth = 3000, level = 30}, ["Blissey"] = {chance = 14100, corpse = 11398, health = 3000, maxhealth = 3000, level = 30}, ["Celebi"] = {chance = 10000, corpse = 11399, health = 3000, maxhealth = 3000, level = 30}, ["Chikorita"] = {chance = 2800, corpse = 11400, health = 3000, maxhealth = 3000, level = 30}, ["Chinchou"] = {chance = 3000, corpse = 11401, health = 3000, maxhealth = 3000, level = 30}, ["Cleffa"] = {chance = 2000, corpse = 11402, health = 3000, maxhealth = 3000, level = 30}, ["Corsola"] = {chance = 5900, corpse = 11403, health = 3000, maxhealth = 3000, level = 30}, ["Crobat"] = {chance = 9000, corpse = 11404, health = 5500, maxhealth = 5500, level = 30}, ["Croconaw"] = {chance = 5900, corpse = 11405, health = 3000, maxhealth = 3000, level = 30}, ["Cyndaquil"] = {chance = 2100, corpse = 11406, health = 3000, maxhealth = 3000, level = 30}, ["Delibird"] = {chance = 6000, corpse = 11407, health = 3000, maxhealth = 3000, level = 30}, ["Donphan"] = {chance = 4500, corpse = 11408, health = 3000, maxhealth = 3000, level = 30}, ["Dunsparce"] = {chance = 210, corpse = 11409, health = 3000, maxhealth = 3000, level = 30}, ["Elekid"] = {chance = 4000, corpse = 11410, health = 3000, maxhealth = 3000, level = 30}, ["Entei"] = {chance = 10000, corpse = 11411, health = 3000, maxhealth = 3000, level = 30}, ["Espeon"] = {chance = 5000, corpse = 11412, health = 3000, maxhealth = 3000, level = 30}, ["Feraligatr"] = {chance = 14100, corpse = 11413, health = 3000, maxhealth = 3000, level = 30}, ["Flaaffy"] = {chance = 5800, corpse = 11414, health = 3000, maxhealth = 3000, level = 30}, ["Forretress"] = {chance = 500, corpse = 11415, health = 3000, maxhealth = 3000, level = 30}, ["Furret"] = {chance = 5100, corpse = 11416, health = 3000, maxhealth = 3000, level = 30}, ["Gallade"] = {chance = 6000, corpse = 11630, health = 3000, maxhealth = 3000, level = 30}, ["Girafarig"] = {chance = 6000, corpse = 11417, health = 3000, maxhealth = 3000, level = 30}, ["Gligar"] = {chance = 1100, corpse = 11418, health = 3000, maxhealth = 3000, level = 30}, ["Granbull"] = {chance = 4000, corpse = 11419, health = 3000, maxhealth = 3000, level = 30}, ["Heracross"] = {chance = 4000, corpse = 11420, health = 3000, maxhealth = 3000, level = 30}, ["Hitmontop"] = {chance = 6500, corpse = 11421, health = 3000, maxhealth = 3000, level = 30}, ["Ho oh"] = {chance = 10000, corpse = 11422, health = 3000, maxhealth = 3000, level = 30}, ["Hoothoot"] = {chance = 1500, corpse = 11423, health = 3000, maxhealth = 3000, level = 30}, ["Hoppip"] = {chance = 200, corpse = 11424, health = 3000, maxhealth = 3000, level = 30}, ["Houndoom"] = {chance = 9200, corpse = 11425, health = 3000, maxhealth = 3000, level = 30}, ["Houndor"] = {chance = 3100, corpse = 11426, health = 3000, maxhealth = 3000, level = 30}, ["Igglybuff"] = {chance = 1800, corpse = 11427, health = 3000, maxhealth = 3000, level = 30}, ["Jumpluff"] = {chance = 7200, corpse = 11428, health = 3000, maxhealth = 3000, level = 30}, ["Kingdra"] = {chance = 8500, corpse = 11429, health = 3000, maxhealth = 3000, level = 30}, ["Lanturn"] = {chance = 4200, corpse = 11430, health = 3000, maxhealth = 3000, level = 30}, ["Larvitar"] = {chance = 4500, corpse = 11431, health = 3000, maxhealth = 3000, level = 30}, ["Ledian"] = {chance = 2200, corpse = 11432, health = 3000, maxhealth = 3000, level = 30}, ["Ledyba"] = {chance = 1000, corpse = 11433, health = 3000, maxhealth = 3000, level = 30}, ["Lugia"] = {chance = 10000, corpse = 11434, health = 3000, maxhealth = 3000, level = 30}, ["Magby"] = {chance = 4000, corpse = 11435, health = 3000, maxhealth = 3000, level = 30}, ["Magcarbo"] = {chance = 4500, corpse = 11436, health = 3000, maxhealth = 3000, level = 30}, ["Mantine"] = {chance = 4200, corpse = 11437, health = 3000, maxhealth = 3000, level = 30}, ["Mareep"] = {chance = 2100, corpse = 11438, health = 3000, maxhealth = 3000, level = 30}, ["Marill"] = {chance = 2100, corpse = 11439, health = 3000, maxhealth = 3000, level = 30}, ["Meganium"] = {chance = 14100, corpse = 11440, health = 3000, maxhealth = 3000, level = 30}, ["Miltank"] = {chance = 5000, corpse = 11441, health = 3000, maxhealth = 3000, level = 30}, ["Misdreavus"] = {chance = 7800, corpse = 11442, health = 3000, maxhealth = 3000, level = 30}, ["Murkrow"] = {chance = 5000, corpse = 11443, health = 3000, maxhealth = 3000, level = 30}, ["Natu"] = {chance = 3000, corpse = 11444, health = 3000, maxhealth = 3000, level = 30}, ["Noctowl"] = {chance = 6100, corpse = 11445, health = 3000, maxhealth = 3000, level = 30}, ["Octillery"] = {chance = 5000, corpse = 11446, health = 3000, maxhealth = 3000, level = 30}, ["Phanpy"] = {chance = 2100, corpse = 11447, health = 3000, maxhealth = 3000, level = 30}, ["Pichu"] = {chance = 4000, corpse = 11448, health = 3000, maxhealth = 3000, level = 30}, ["Piloswine"] = {chance = 5000, corpse = 11449, health = 3000, maxhealth = 3000, level = 30}, ["Pineco"] = {chance = 1800, corpse = 11450, health = 3000, maxhealth = 3000, level = 30}, ["Politoed"] = {chance = 5000, corpse = 11451, health = 3000, maxhealth = 3000, level = 30}, ["Porygon2"] = {chance = 9000, corpse = 11452, health = 3000, maxhealth = 3000, level = 30}, ["Pupitar"] = {chance = 7000, corpse = 11453, health = 3000, maxhealth = 3000, level = 30}, ["Quaqsire"] = {chance = 5000, corpse = 11454, health = 3000, maxhealth = 3000, level = 30}, ["Quilava"] = {chance = 5900, corpse = 11455, health = 3000, maxhealth = 3000, level = 30}, ["Qwilfish"] = {chance = 4000, corpse = 11456, health = 3000, maxhealth = 3000, level = 30}, ["Raikou"] = {chance = 10000, corpse = 11457, health = 3000, maxhealth = 3000, level = 30}, ["Remoraid"] = {chance = 3000, corpse = 11458, health = 3000, maxhealth = 3000, level = 30}, ["Scizor"] = {chance = 9500, corpse = 11459, health = 3000, maxhealth = 3000, level = 30}, ["Shuckle"] = {chance = 4500, corpse = 11460, health = 3000, maxhealth = 3000, level = 30}, ["Skarmory"] = {chance = 4500, corpse = 11462, health = 3000, maxhealth = 3000, level = 30}, ["Skiploom"] = {chance = 3400, corpse = 11463, health = 3000, maxhealth = 3000, level = 30}, ["Slowking"] = {chance = 4400, corpse = 11464, health = 3000, maxhealth = 3000, level = 30}, ["Slugma"] = {chance = 2100, corpse = 11465, health = 3000, maxhealth = 3000, level = 30}, ["Smeargle"] = {chance = 3200, corpse = 11466, health = 3000, maxhealth = 3000, level = 30}, ["Smoochum"] = {chance = 4000, corpse = 11467, health = 3000, maxhealth = 3000, level = 30}, ["Sneasel"] = {chance = 4600, corpse = 11468, health = 3000, maxhealth = 3000, level = 30}, ["Sentret"] = {chance = 1500, corpse = 11461, health = 3000, maxhealth = 3000, level = 30}, ["Snubbull"] = {chance = 1500, corpse = 11469, health = 3000, maxhealth = 3000, level = 30}, ["Spinarak"] = {chance = 800, corpse = 11470, health = 3000, maxhealth = 3000, level = 30}, ["Stantler"] = {chance = 3500, corpse = 11471, health = 3000, maxhealth = 3000, level = 30}, ["Steelix"] = {chance = 8500, corpse = 11472, health = 3000, maxhealth = 3000, level = 30}, ["Sudowoodo"] = {chance = 7500, corpse = 11473, health = 3000, maxhealth = 3000, level = 30}, ["Suicune"] = {chance = 10000, corpse = 11474, health = 3000, maxhealth = 3000, level = 30}, ["Sunflora"] = {chance = 4200, corpse = 11475, health = 3000, maxhealth = 3000, level = 30}, ["Sunkern"] = {chance = 1000, corpse = 11476, health = 3000, maxhealth = 3000, level = 30}, ["Swinub"] = {chance = 2100, corpse = 11477, health = 3000, maxhealth = 3000, level = 30}, ["Teddiursa"] = {chance = 2100, corpse = 11478, health = 3000, maxhealth = 3000, level = 30}, ["Togepi"] = {chance = 5500, corpse = 11479, health = 3000, maxhealth = 3000, level = 30}, ["Togetic"] = {chance = 9500, corpse = 11480, health = 3000, maxhealth = 3000, level = 30}, ["Totodile"] = {chance = 2100, corpse = 11481, health = 3000, maxhealth = 3000, level = 30}, ["Typhlosion"] = {chance = 14100, corpse = 11482, health = 3000, maxhealth = 3000, level = 30}, ["Tyranitar"] = {chance = 10000, corpse = 11483, health = 3000, maxhealth = 3000, level = 30}, ["Tyrogue"] = {chance = 4000, corpse = 11484, health = 3000, maxhealth = 3000, level = 30}, ["Umbreon"] = {chance = 5000, corpse = 11485, health = 3000, maxhealth = 3000, level = 30}, ["Unown a"] = {chance = 5000, corpse = 11486, health = 3000, maxhealth = 3000, level = 30}, ["Unown b"] = {chance = 5000, corpse = 11487, health = 3000, maxhealth = 3000, level = 30}, ["Unown c"] = {chance = 5000, corpse = 11488, health = 3000, maxhealth = 3000, level = 30}, ["Unown d"] = {chance = 5000, corpse = 11489, health = 3000, maxhealth = 3000, level = 30}, ["Unown e"] = {chance = 5000, corpse = 11490, health = 3000, maxhealth = 3000, level = 30}, ["Unown f"] = {chance = 5000, corpse = 11491, health = 3000, maxhealth = 3000, level = 30}, ["Unown g"] = {chance = 5000, corpse = 11492, health = 3000, maxhealth = 3000, level = 30}, ["Unown h"] = {chance = 5000, corpse = 11493, health = 3000, maxhealth = 3000, level = 30}, ["Unown i"] = {chance = 5000, corpse = 11494, health = 3000, maxhealth = 3000, level = 30}, ["Unown j"] = {chance = 5000, corpse = 11495, health = 3000, maxhealth = 3000, level = 30}, ["Unown k"] = {chance = 5000, corpse = 11496, health = 3000, maxhealth = 3000, level = 30}, ["Unown l"] = {chance = 5000, corpse = 11497, health = 3000, maxhealth = 3000, level = 30}, ["Unown m"] = {chance = 5000, corpse = 11498, health = 3000, maxhealth = 3000, level = 30}, ["Unown n"] = {chance = 5000, corpse = 11499, health = 3000, maxhealth = 3000, level = 30}, ["Unown o"] = {chance = 5000, corpse = 11500, health = 3000, maxhealth = 3000, level = 30}, ["Unown p"] = {chance = 5000, corpse = 11501, health = 3000, maxhealth = 3000, level = 30}, ["Unown q"] = {chance = 5000, corpse = 11502, health = 3000, maxhealth = 3000, level = 30}, ["Unown r"] = {chance = 5000, corpse = 11503, health = 3000, maxhealth = 3000, level = 30}, ["Unown s"] = {chance = 5000, corpse = 11504, health = 3000, maxhealth = 3000, level = 30}, ["Unown t"] = {chance = 5000, corpse = 11505, health = 3000, maxhealth = 3000, level = 30}, ["Unown u"] = {chance = 5000, corpse = 11506, health = 3000, maxhealth = 3000, level = 30}, ["Unown v"] = {chance = 5000, corpse = 11507, health = 3000, maxhealth = 3000, level = 30}, ["Unown w"] = {chance = 5000, corpse = 11508, health = 3000, maxhealth = 3000, level = 30}, ["Unown x"] = {chance = 5000, corpse = 11509, health = 3000, maxhealth = 3000, level = 30}, ["Unown y"] = {chance = 5000, corpse = 11510, health = 3000, maxhealth = 3000, level = 30}, ["Ursaring"] = {chance = 8000, corpse = 11512, health = 3000, maxhealth = 3000, level = 30}, ["Wobbuffet"] = {chance = 5000, corpse = 11513, health = 3000, maxhealth = 3000, level = 30}, ["Wooper"] = {chance = 2100, corpse = 11514, health = 3000, maxhealth = 3000, level = 30}, ["Xatu"] = {chance = 4000, corpse = 11515, health = 3000, maxhealth = 3000, level = 30}, ["Yanma"] = {chance = 5000, corpse = 11516, health = 3000, maxhealth = 3000, level = 30}, ["Giratina"] = {chance = 20000, corpse = 11633, health = 15000, maxhealth = 15000, level = 30}, ["Palkia"] = {chance = 20000, corpse = 11635, health = 15000, maxhealth = 15000, level = 30}, ["Rayquaza"] = {chance = 20000, corpse = 11637, health = 15000, maxhealth = 15000, level = 30}, ["Primal Dialga"] = {chance = 22000, corpse = 11638, health = 15000, maxhealth = 15000, level = 30}, ["Dialga"] = {chance = 20000, corpse = 11640, health = 15000, maxhealth = 15000, level = 30}, } local description = "Contém um %pokename." function onUse(cid, item, frompos, item2, topos) if not isCreature(item2.uid) then return doPlayerSendCancel(cid, "Voce so pode usar pokebolas em pokemons!") end if isPlayer(getCreatureMaster(item2.uid)) then return doPlayerSendCancel(cid, "Voce so pode usar em pokemon selvagem!") end local name = getCreatureName(item2.uid) if name == "Nidoran" then if getCreatureSkullType(item2.uid) == 4 then name = "Nidoran Male" else name = "Nidoran Female" end end if item.itemid == 2147 then -- POKEBALL catchrate = 50 oncatch = 24 onfail = 23 bolabola = 2222 elseif item.itemid == 2642 then -- GREATBALL catchrate = 100 oncatch = 198 onfail = 197 bolabola = 2651 elseif item.itemid == 2645 then -- SUPERBALL catchrate = 200 oncatch = 202 onfail = 201 bolabola = 2653 elseif item.itemid == 2146 then -- ULTRABALL catchrate = 800 oncatch = 200 onfail = 199 bolabola = 2220 elseif item.itemid == 0 then -- MasterBALL catchrate = 1600 oncatch = 0 onfail = 0 bolabola = 0 elseif item.itemid == 2644 then -- EXBALL(Saffari) catchrate = 3000 oncatch = 204 onfail = 203 bolabola = 2655 end local rate = (catchrate) local catch = oncatch local fail = onfail local newid = bolabola for i,x in pairs(pokes) do if table.find(x, name) then if name == pokes[i].corpse then doRemoveItem(item.uid, 1) local pegar = math.random(1, x.chance) local maxhp = getCreatureMaxHealth(item2.uid) local hp = getCreatureHealth(item2.uid) if maxhp == hp then pegar = pegar + 2000 else pegar = pegar+(hp/10) end corpse = getTopCorpse(topos).uid if pegar <= 1*(rate) then rando = getCreatureSkullType(item2.uid) doRemoveItem(corpse, 1) doSendMagicEffect(topos, catch) local nas = { ["%%pokename"] = i } for i,x in pairs(nas) do if description:find(i) then description = description:gsub(i, x) end end local function capturou(params) if not isCreature(params.cid) then return true end if getPlayerFreeCap(cid) <= 0.99 then doPlayerAddSoul(cid, 1) item = doCreateItemEx(newid-1) doItemSetAttribute(item, "poke", params.poke) doItemSetAttribute(item, "nome", params.nome) randomlv = math.random((x.level-5),(x.level+2)) if randomlv <= 0 then randomlv = 1 end nextlv = (100*(1.2^(randomlv)))+(100*(randomlv)) randomlvs = tostring(randomlv) nextlvs = tostring(nextlv) expss = 0 doItemSetAttribute(item, "description", params.description.." ["..randomlvs.."]") doItemSetAttribute(item, "level", randomlvs) doItemSetAttribute(item, "exp", expss) doItemSetAttribute(item, "nextlevelexp", nextlvs) doItemSetAttribute(item, "fome", "100") doItemSetAttribute(item, "feliz", "100") doItemSetAttribute(item, "sexo", rando) doPlayerSendMailByName(getCreatureName(params.cid), item, 1) doPlayerSendTextMessage(cid, 27, "Congratulations, you caught a "..i.."!") doPlayerSendTextMessage(cid, 27, "Since you are already holding six pokemons, this pokeball has been sent to your depot.") else item = doCreateItemEx(params.ball) doPlayerAddSoul(cid, 1) doItemSetAttribute(item, "poke", params.poke) doItemSetAttribute(item, "nome", params.nome) randomlv = math.random((x.level-5),(x.level+2)) if randomlv <= 0 then randomlv = 1 end nextlv = (100*(1.2^(randomlv)))+(100*(randomlv)) randomlvs = tostring(randomlv) nextlvs = tostring(nextlv) expss = 0 doItemSetAttribute(item, "description", params.description.." ["..randomlvs.."]") doItemSetAttribute(item, "level", randomlvs) doItemSetAttribute(item, "exp", expss) doItemSetAttribute(item, "nextlevelexp", nextlvs) doItemSetAttribute(item, "fome", "100") doItemSetAttribute(item, "feliz", "100") doItemSetAttribute(item, "sexo", rando) doPlayerAddItemEx(params.cid, item, true) doTransformItem(item, newid) doPlayerSendTextMessage(cid, 27, "Congratulations, you caught a "..i.."!") end if #getCreatureSummons(cid) >= 1 then doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 178) else doSendMagicEffect(getThingPos(cid), 178) end end local description = "Contains a "..i.."." local poke1 = "This is "..i.."'s pokeball. HP = ["..x.health.."/"..x.maxhealth.."]" addEvent(capturou, 4000, {cid = cid, poke = poke1, nome = i, description = description, ball = 2219, letter = 2597}) return true else function ruim(params) if not isCreature(params.cid) then return true end doRemoveItem(corpse, 1) doPlayerSendTextMessage(params.cid, 27, "Sorry, you didn\'t catch that pokemon.") if #getCreatureSummons(params.cid) >= 1 then doSendMagicEffect(getThingPos(getCreatureSummons(params.cid)[1]), 166) else doSendMagicEffect(getThingPos(params.cid), 166) end end addEvent(ruim, 4000, {cid = cid}) doSendMagicEffect(topos, fail) return true end end end end return TRUE end Altere na lista dos pokemons aonde esta ex: corpse = "Rattata" para corpse = id do corpse do rattata (sem as aspas). ["Rattata"] = {chance = 50, corpse = XXXX, health = 350, maxhealth = 350, level = 1},
  17. @betofss Boa Tarde, os pokemons shinys e johtos estão sendo capturados normalmente (do jeito que você quer)?
  18. @leozincorsair Boa noite: Explicando: A área que esta marcada em vermelho, será aonde ocorrerá o bônus de experiencia (que foi configurado no arquivo data/lib nas variáveis banner_radius_x e banner_radius_y). Caso o player esteja dentro desta área e matar um monstro, ocorrerá o efeito no banner como mostra no gif abaixo indicando que ele esta dentro da área e que houve um acréscimo na exp, caso contrario não ocorrera o efeito e nem o acréscimo de exp. Obs: O banner só funcionará para o player que colocou ele.
  19. @bellatrikz Boa Tarde, segue o script: local positions = { -- Aqui você coloca todas as posições que você quer que o player esteja para ser teleportado {x=841,y=1438,z=9}, {x=842,y=1438,z=9}, } function onSay(cid, words, param) for i=1, #positions do local player_pos = getCreaturePosition(cid) if (player_pos.x == positions[i].x and player_pos.y == positions[i].y and player_pos.z == positions[i].z) then if isPlayer(cid) then doTeleportThing(cid,{x=841,y=1435,z=9}) doSendMagicEffect(player_pos,10) doPlayerSendTextMessage(cid,25,"You have found the secret word") return true end end end doPlayerSendTextMessage(cid,25,"You need to step in to digit this comand") doSendMagicEffect(getCreaturePosition(cid),2) return true end
  20. Boa noite, não sei se já existe este script aqui no fórum caso não aqui está. Este script foi testado na versão 8.6 TFS 0.4, funciona em servidores de Tibia, Pokemon, Narutibia etc... Bom neste script eu tive como base o script de banner da PXG aonde você coloca ele em uma Hunt e ganha uma porcentagem X a mais de experiencia. Instalando o Script - Vá em data/lib crie um arquivo com o nome bannerExp.lua e cole o código abaixo nele: -- Configurações -- effect_invoke_banner = 10 -- efeito que saira no banner quando ele for colocado no chao effect_decay_banner = 2 -- efeito que saira no banner quando o tempo dele acabar effect_kill_banner = 36 -- efeito que saira no banner quando o player matar um monstro e ganhar o bonus de exp banner_radius_x = 5 -- distancia maxima em x que ira ocorreu o bonus banner_radius_y = 5 -- distancia maxima em y que ira ocorreu o bonus time_in_minutes = 60 -- configurado em minutos (caso queira em horas só colocar 60 * 60) remove_banner_item = false -- Se estiver TRUE o item de criacao do banner sera removido do player, caso esteja FALSE o item não sera removido. config_banner = { --[ID DO ITEM CRIAR O BANNER] = {banner_id = ID DO BANNER, exp_bonus = % EXP PLAYER IRA GANHAR, time_left = TEMPO PARA SUBIR O BANNER}, [4865] = {banner_id = 8617, exp_bonus = 20, time_left = 20}, [4866] = {banner_id = 8618, exp_bonus = 25, time_left = 10}, [4867] = {banner_id = 8619, exp_bonus = 35, time_left = 15}, [4868] = {banner_id = 8620, exp_bonus = 45, time_left = 20}, } -- Não Mexer -- time_banner = 7899987 player_use_banner = 78999788 storage_banner_x = 7889911 storage_banner_y = 7889912 storage_banner_z = 7889913 storage_banner_id = 7884544 storage_exp = 7889915 rate_level = SKILL__LEVEL - Agora vá em data/actions/scripts e crie um arquivo chamado bannerexp.lua e cole isto dentro: function onUse(cid, item, frompos, itemEx, topos) if (getPlayerStorageValue(cid, player_use_banner) >= 1) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Voce ja esta usando o banner.") return true end if (config_banner[item.itemid]) then local banner = config_banner[item.itemid] if (remove_banner_item == true or remove_banner_item == TRUE) then doPlayerRemoveItem(cid, item.itemid, 1) end CreateBanner(cid, banner, itemEx) TimeBannerCheck(cid, banner, getThingPos(itemEx.uid)) EffectBanner(getThingPos(itemEx.uid)) end end function CreateBanner(cid, banner, itemEx) doCreateItem(banner.banner_id, getThingPos(itemEx.uid)) doSendMagicEffect(getThingPos(itemEx.uid), effect_invoke_banner) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Voce usou o banner de ["..banner.exp_bonus.."% EXP], ele tem duração de "..banner.time_left.." minuto(s).") setPlayerStorageValue(cid, storage_banner_x, getThingPos(itemEx.uid).x) setPlayerStorageValue(cid, storage_banner_y, getThingPos(itemEx.uid).y) setPlayerStorageValue(cid, storage_banner_z, getThingPos(itemEx.uid).z) setPlayerStorageValue(cid, storage_banner_id, banner.banner_id) setPlayerStorageValue(cid, storage_exp, banner.exp_bonus) setPlayerStorageValue(cid, player_use_banner, 1) setPlayerStorageValue(cid, time_banner, os.time() + (banner.time_left * time_in_minutes)) end function TimeBannerCheck(cid, banner, banner_pos) if not isCreature(cid) then doRemoveItem(getTileItemById(banner_pos, banner.banner_id).uid) doSendMagicEffect(banner_pos, effect_decay_banner) return true end if (getPlayerStorageValue(cid, time_banner) == os.time()) then doRemoveItem(getTileItemById(banner_pos, banner.banner_id).uid) doSendMagicEffect(banner_pos, effect_decay_banner) setPlayerStorageValue(cid, player_use_banner, -1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "O Banner de ["..banner.exp_bonus.."% EXP] terminou.") return true end addEvent(function() TimeBannerCheck(cid, banner, banner_pos) end, 1000) end - Em Actions.XML cole esta tag: <action itemid="4865" script="bannerexp.lua"/> Aonde está 4865 você coloca o(s) ITEM_ID que será usado para summonar o banner no chão. - Agora vá em data/creatureevents/scripts crie um arquivo chamado bannerexp.lua e cole isto dentro dele: function onKill(cid, target) if not isMonster(target) then return true end if (getPlayerStorageValue(cid, storage_banner_id) <= -1) then return true end local banner_pos = {x=getPlayerStorageValue(cid, storage_banner_x), y=getPlayerStorageValue(cid, storage_banner_y), z=getPlayerStorageValue(cid, storage_banner_z)} if (getTileItemById(banner_pos, getPlayerStorageValue(cid, storage_banner_id)).uid >= 1) then if not (CheckPlayerInArea(cid, banner_pos)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Voce esta fora da area do bonus.") end else doPlayerSetRate(cid, rate_level,1) end return true end function CheckPlayerInArea(cid, banner_pos) for x=banner_pos.x-banner_radius_x, banner_pos.x+banner_radius_x do for y=banner_pos.y-banner_radius_y, banner_pos.y+banner_radius_y do local banner_area = {x=x,y=y,z=banner_pos.z} local player = getTopCreature(banner_area).uid if (isPlayer(player)) then AddBonusExp(cid, banner_pos) return true end end end end function AddBonusExp(cid, banner_pos) doPlayerSetExperienceRate(cid, (1+(getPlayerStorageValue(cid, storage_exp)/100))+(getPlayerExtraExpRate(cid)/100)) doSendMagicEffect(banner_pos, effect_kill_banner) end function getPlayerExtraExpRate(cid) return (getPlayerRates(cid)[rate_level]-1)*100 end - Em Creatureevents.XML cole está tag: <event type="kill" name="BannerExp" event="script" value="bannerexp.lua"/> - Agora no arquivo login.lua em data/creatureevents/scripts cole este código antes do último return true: registerCreatureEvent(cid, "BannerExp") if (getPlayerStorageValue(cid, 78999788) >= 1) then setPlayerStorageValue(cid, 78999788, -1) end Explicação: (Configuração fica no arquivo adicionado no data/lib) 1° Aqui você configura a área em que o player tem que estar matando o monstro para poder ganhar o bônus banner_radius_x = 5 -- distancia maxima em x que ira ocorreu o bonus banner_radius_y = 5 -- distancia maxima em y que ira ocorreu o bonus 2° Aqui você adiciona um novo banner (Lembre-se de adicionar o itemid que você colocar entre colchetes lá na tag em Actions.XML) -[ID DO ITEM CRIAR O BANNER] = {banner_id = ID DO BANNER, exp_bonus = % EXP PLAYER IRA GANHAR, time_left = TEMPO PARA SUMIR O BANNER}, É isso... Script básico mais eu acho que vai ser bastante útil para muitos servidores. -- ATUALIZAÇÃO -- - Adicionado mensagem quando o player sair da área do bônus! - Adicionado variável que controla se o item da criação do banner será removido do player ou não. (Alterar a variável remove_banner_item em data/lib/bannerExp.lua).
  21. @Phineasz Boa noite, vê se é assim que você quer data/talkactions crie um arquivo chamado vip2.lua e adicione isto dentro: local storage_vip = 7884451 local price_vip = 100 -- 100 = 1kk em crystal coins local money_id = 2160 -- itemid do dinheiro neste caso sera crystal coin function onSay(cid, words, param, channel) if (getPlayerItemCount(cid, money_id) >= price_vip) then doPlayerRemoveItem(cid, money_id, price_vip) setPlayerStorageValue(cid, storage_vip, 1) doPlayerSendCancel(cid, "Voce comprou a vip 2.") else doPlayerSendCancel(cid, "Voce precisa de 1kk para comprar a vip 2.") return true end return true end talkactions.xml: <talkaction words="!buyvip2" event="script" value="vip2.lua" /> data/moveevents crie um arquivo chamado vip2tile.lua e adicione isto dentro: local storage_vip = 7884451 -- mesma storage que esta no talkaction function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return false end if (getPlayerStorageValue(cid, storage_vip) >= 1) then doPlayerSendCancel(cid, "Bem vindo.") doSendMagicEffect(getThingPos(cid), 12) else doTeleportThing(cid, fromPosition) doSendMagicEffect(getThingPos(cid), 2) doPlayerSendCancel(cid, "Voce nao pode passar aqui.") return true end return true end moveevents.xml: <movevent type="StepIn" actionid="XXXX" event="script" value="vip2tile.lua"/> OBS: Aonde está XXXX você coloca a actionid no tile que irá executar o script.
  22. @alexpaimel Eu testei no TFS 0.4 pode ser que no OTX não tenha algumas functions usadas no script, deve ser por isso que não esta aumentando a exp e o loot. Tenta dar uma testada em algum server TFS
  23. @bellatrikz Boa noite, veja se é isso que voce quer data/lib crie um arquivo chamado boostedMonster.lua e cole isto dentro: monster_name_backup = 74812 -- nao mexer monster_exp_backup = 74813 -- nao mexer monster_loot_backup = 74814 -- nao mexer config_boosted = { ["00:00:00"] = { -- Horario de cada dia que irá ocorrer a troca dos monstros pos_monster = {x=161,y=58,z=7, stackpos = 253}, -- a posição aonde ficara o monstro informando a quantidade de exp e loot time_effects = 2 -- tempo em segundos que ficará saindo os efeitos } } monsters_boosteds = { -- Configuracao dos monstros que irão ter exp e loot aumentados [1] = {monster_name = "Dwarf", exp = 5, loot = 7}, [2] = {monster_name = "Goblin", exp = 15, loot = 5}, [3] = {monster_name = "Orc", exp = 25, loot = 15}, [4] = {monster_name = "Dwarf Soldier", exp = 35, loot = 10}, --[5] = {monster_name = "NOME DO MONSTRO", exp = "PORCENTAGEM DE EXP", loot = "PORCENTAGEM DO LOOT"}, } agora em data/globalevents/scripts crie um arquivo chamado boosted.lua e cole isto dentro: function onThink(interval, lastExecution) local current_hour = os.date("%X") if config_boosted[current_hour] then local time = config_boosted[current_hour] local monster = getTopCreature(time.pos_monster).uid local random_monster = monsters_boosteds[math.random(1, #monsters_boosteds)] if (monster >= 1) then doRemoveCreature(monster) end SummonMonster(time, random_monster) setGlobalStorageValue(monster_name_backup, random_monster.monster_name) setGlobalStorageValue(monster_exp_backup, random_monster.exp) setGlobalStorageValue(monster_loot_backup, random_monster.loot) end return true end function SummonMonster(time, monster) doCreateMonster(monster.monster_name, time.pos_monster) effectsMonster(time, monster) end function effectsMonster(time, monster) effectLoot(time.pos_monster, monster) effectExp(time.pos_monster, monster) doSendMagicEffect(time.pos_monster, 30) doSendAnimatedText(time.pos_monster, "Boosted", COLOR_DARKYELLOW) addEvent(function() effectsMonster(time, monster) end, time.time_effects * 1000) end function effectLoot(pos, monster) local pos_effect = {x=pos.x, y=pos.y-1, z=pos.z} doSendMagicEffect(pos_effect, 29) doSendAnimatedText(pos_effect, "Loot +"..monster.loot.."%", COLOR_DARKYELLOW) end function effectExp(pos, monster) local pos_effect = {x=pos.x, y=pos.y+1, z=pos.z} doSendMagicEffect(pos_effect, 29) doSendAnimatedText(pos_effect, "EXP +"..monster.exp.."%", COLOR_DARKYELLOW) end Em globalevents.xml registre esta tag: <globalevent name="boosted" interval="1000" event="script" value="boosted.lua"/> Agora em data/creatureevents/scripts crie um arquivo chamado boosted.lua e cole isto dentro: function onKill(cid, target, damage, flags) if not (isMonster(target)) then return true end if (string.lower(getCreatureName(target)) == string.lower(getGlobalStorageValue(monster_name_backup))) then local exp = tonumber(getGlobalStorageValue(74813)) doPlayerSetRate(cid, SKILL__LEVEL, getExperienceStage(getPlayerLevel(cid))*(getGlobalStorageValue(monster_exp_backup) / 1000)) addLoot(getCreaturePosition(target), getCreatureName(target), {}) else doPlayerSetRate(cid, SKILL__LEVEL, 1) end return true end function addLoot(position, name, ignoredList) local check = false for i = 0, 255 do position.stackpos = i corpse = getTileThingByPos(position) if corpse.uid > 0 and isCorpse(corpse.uid) then check = true break end end if check == true then local newRate = (1 + (getGlobalStorageValue(monster_loot_backup)/100)) * getConfigValue("rateLoot") local mainbp = doCreateItemEx(1987, 1) local monsterLoot = getMonsterLootList(name) for i, loot in pairs(monsterLoot) do if math.random(1, 100000) <= newRate * loot.chance then if #ignoredList > 0 then if (not isInArray(ignoredList, loot.id)) then doAddContainerItem(mainbp, loot.id, loot.countmax and math.random(1, loot.countmax) or 1) end else doAddContainerItem(mainbp, loot.id, loot.countmax and math.random(1, loot.countmax) or 1) end end end doAddContainerItemEx(corpse.uid, mainbp) end end Em creatureevent.xml registre esta tag: <event type="kill" name="BoostedMonster" event="script" value="boosted.lua"/> Por ultimo abra o arquivo login.lua na mesma pasta (creatureevents/scripts) e cole esta linha antes do ultimo return true: registerCreatureEvent(cid, "BoostedMonster") OBS: A explicação de como adicionar os monstros etc.. Esta no arquivo boostedMonster.lua em data/lib.
  24. @MarkCharlotte testei o script aqui e ta funcionando normal, se voce tiver tentando usar ele com o god não vai funcionar, tem que usar ele como player

Informação Importante

Confirmação de Termo