Ir para conteúdo
Banner com Efeitos

Sabrina10

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Curtir
    Sabrina10 deu reputação a MatteusDeli em (Resolvido)Dar use em item e aparecer monstro   
    @Baalbeerith Bom dia
     
     
    XML: 
     
     
     
  2. Curtir
    Sabrina10 deu reputação a MatteusDeli em (Resolvido)Dar use em item e aparecer monstro   
    @Lisbeky Bom dia, alterei o script colocando o tempo
  3. Curtir
    Sabrina10 deu reputação a MatteusDeli em (Resolvido)Dar use em item e aparecer monstro   
    @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" />  
  4. Gostei
    Sabrina10 deu reputação a MatteusDeli em (Resolvido)[AJUDA] Alterar Catch System   
    @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},  
  5. Curtir
    Sabrina10 deu reputação a MatteusDeli em (Resolvido)[AJUDA] Alterar Catch System   
    @betofss Boa Tarde, os pokemons shinys e johtos estão sendo capturados normalmente (do jeito que você quer)?
  6. Gostei
    Sabrina10 deu reputação a Mathwsz em CRIAR QUEST QUER DE MOUNT OU ADDON   
    Vá em Data/Actions.xml e adicione:
     
    <action uniqueid="30015" event="script" value="questteleport.lua"/> Agora vá em Data/Actions/Scripts e crie um arquivo chamado questteleport.lua e adicione:
     
    local config = { daily = "no", -- allow only one enter per day? (like in global Tibia) level = 100, storage = 30015, entry = { {x = 247, y = 659, z = 13}, {x = 247, y = 660, z = 13}, {x = 247, y = 661, z = 13}, {x = 247, y = 662, z = 13} }, destination = { {x = 189, y = 650, z = 13}, {x = 189, y = 651, z = 13}, {x = 189, y = 652, z = 13}, {x = 189, y = 653, z = 13} } } config.daily = getBooleanFromString(config.daily) function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.itemid == 1946) then if(config.daily) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) else doTransformItem(item.uid, item.itemid - 1) end return true end if(item.itemid ~= 1945) then return true end local players = {} for _, position in ipairs(config.entry) do local pid = getTopCreature(position).uid if(pid == 0 or not isPlayer(pid) or getCreatureStorage(pid, config.storage) > 0 or getPlayerLevel(pid) < config.level) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) return true end table.insert(players, pid) end for i, pid in ipairs(players) do doSendMagicEffect(config.entry[i], CONST_ME_POFF) doTeleportThing(pid, config.destination[i], false) doSendMagicEffect(config.destination[i], CONST_ME_ENERGYAREA) end doTransformItem(item.uid, item.itemid + 1) return true end Aah já ia esquecendo.. Vá no seu Remeres Map Editor, clique com o botão direito na alavanca e vai em Propriedades, e coloque o UniqueID 30015.
     
    Pronto
    Obs: Se lhe ajudei de um REP+ :D
    Dúvidas, poste aí  
  7. Gostei
    Sabrina10 deu reputação a Toca do Aranha em Host para OT dúvida   
    cria um topico novo, assim a comunidade poderá ajudar melhor, más se o problema for no site mostrando que o servidor está "offine" é problema no Config.Php.
     agora sobre o problema de você como ADM não ver os players que me deixou na duvida. como assim "não vejo" os players como ADM?
  8. Gostei
    Sabrina10 deu reputação a ViitinG em [creaturescripts] Senha para porta   
    Bom para quem não sabe como funciona o script,é basicamente uma senha para conseguir abrir uma porta e após um tempo a porta se fecha automaticamente,podendo ser configurado o tempo/senha/porta.
     
    • Adicionando o script •
     
    Em "data/creaturescripts/creaturescripts.xml" adicione está tag :
    <event type="textoparaporta" name="Senha" event="script" value="senhaporta.lua"/> Em "data/creaturescripts/scripts/login.lua" adicione está tag no final do script :
    registerCreatureEvent(cid, "Senha") Em "data/creaturescripts/scripts/senhaporta.lua" adicione este script :
    local uniqueids = {8049, 8050} local passwords = { ["TibiaKing"] = {doorpos = {x = 163, y = 36, z = 7}, doorid = 6257, blackboardpos = {x = 162, y = 36, z = 7}, blackboardid = 1811, uniqueid = 8049, doorclosetime = 10}, ["TK"] = {doorpos = {x = 1000, y = 1000, z = 7}, doorid = 1213, blackboardpos = {x = 1000, y = 1000, z = 7}, blackboardid = 1811, uniqueid = 8050, doorclosetime = 10} } function onTextEdit(cid, item, newText) local x = passwords[newText] local function onCloseDoor() if(getTileItemById(x.doorpos,x.doorid+1).uid) > 0 then doTransformItem(getTileItemById(x.doorpos,x.doorid+1).uid, x.doorid) doSendMagicEffect(x.doorpos, CONST_ME_MAGIC_RED) end end for _, check in pairs(uniqueids) do if item.uid == check then if x and item.uid == x.uniqueid then if(getTileItemById(x.doorpos,x.doorid).uid) > 0 then doTransformItem(getTileItemById(x.doorpos,x.doorid).uid, x.doorid + 1) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Sua Senha "'..newText..'" esta correta, voce pode entrar.') addEvent(onCloseDoor,x.doorclosetime*1000) doRemoveItem(item.uid, 1) local blackboard = doCreateItem(x.blackboardid,1,x.blackboardpos) doItemSetAttribute(blackboard, "uid", x.uniqueid) else doRemoveItem(item.uid, 1) local blackboard = doCreateItem(x.blackboardid,1,x.blackboardpos) doItemSetAttribute(blackboard, "uid", x.uniqueid) doPlayerSendCancel(cid, 'A porta ja esta aberta, feche-a ou espera ela se fechar.') end else doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) doPlayerSendCancel(cid, 'Sua senha "'..newText..'" esta incorreta.') end end end return true end • Configurando •
     
     
    Creditos : Limos
     
    Imagens :



Informação Importante

Confirmação de Termo