Postado Janeiro 9, 2015 10 anos Autor Just like that? local ballcatch = { --id normal, id ball shiy [2394] = {cr = 3, on = 24, off = 23, ball = {11826, 11826}, send = 47, typeee = "normal"}, - [2391] = {cr = 10, on = 198, off = 197, ball = {11832, 11832}, send = 48, typeee = "great"}, [2393] = {cr = 7, on = 202, off = 201, ball = {11835, 11835}, send = 47, typeee = "super"}, [2392] = {cr = 7, on = 200, off = 199, ball = {11829, 11829}, send = 49, typeee = "ultra"}, [12617] = {cr = 7, on = 204, off = 203, ball = {10975, 10975}, send = 35, typeee = "saffari"}, [13258] = {cr = 9999, on = 193, off = 192, ball = {11740, 11740}, send = 46, typeee = "master"}, local restrictions = {"Moltres", "Articuno", "Zapdos", "Mew", "Mewtwo", "Entei", "Raikou", "Suicune", "Lugia", "Ho-Oh"} } Editado Janeiro 9, 2015 10 anos por Spreh (veja o histórico de edições)
Postado Janeiro 9, 2015 10 anos Solução U need add an condition: if ballcatch[item.itemid].typeee == "master" then local restrictions = {"Moltres", "Articuno", "Zapdos", "Mew", "Mewtwo", "Entei", "Raikou", "Suicune", "Lugia", "Ho-oh", "Darkrai", "Beldum", "Metang", "Metagross","Shiny Metagross", "Shiny Metang", "Shiny Milotic"} if isInArray(restrictions, name) then return doPlayerSendTextMessage(cid, 25, "This pokemon is legendary and It can not be captured in master ball.") end end Sorry by my bad english :'c Tony Araújo
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.