Postado Agosto 3, 2014 10 anos Erro q deu no console do serv [03/08/2014 16:44:21] [Error - LuaScriptInterface::loadFile] data/actions/scripts/box.lua:59: '}' expected (to close '{' at line 1) near '[' [03/08/2014 16:44:21] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/box.lua) [03/08/2014 16:44:21] data/actions/scripts/box.lua:59: '}' expected (to close '{' at line 1) near '[' meu script local a = { [11638] = {balltype = "normal", ballid = 11826, pokemons = {"Slowking", "Ampharos", "Houndoom", "Meganium", "Electabuzz", "Gengar", "Alakazam", "Shiny Electabuzz", "Donphan", "Hitmontop", "Hitmonchan", "Ninetales", "Tentacruel", "Venusaur", "Charizard", "Blastoise", "Snorlax", "Nidoking", "Rapidash", "Vileplume"}}, [11639] = {balltype = "great", ballid = 11832, pokemons = {"Pidgeotto", "Weepinbell", "Clefairy", "Omanyte", "Kabuto", "Arbok", "Raichu", "Nidorino", "Nidorina", "Dodrio", "Muk", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian", "Poliwhirl", "Victreebel", "Machoke", "Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode", "Weezing", "Rhyhorn", "Seadra", "Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Dratini", "Charmeleon", "Wartortle", "Ivysaur"}}, [11640] = {balltype = "super", ballid = 11835, pokemons = {"Pidgeot", "Fearow", "Sandslash", "Ninetales", "Vileplume", "Primeape", "Golduck", "Kadabra", "Rapidash", "Clefable", "Wigglytuff", "Dewgong", "Onix", "Cloyster", "Hypno", "Exeggutor", "Marowak", "Hitmonchan", "Hitmonlee", "Lickitung", "Chansey", "Tangela", "Mr. Mime", "Pinsir", "Vaporeon", "Jolteon", "Flareon", "Porygon", "Dragonair"}}, [11641] = {balltype = "ultra", ballid = 11829, pokemons = {"Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Abra", "Dragonite", "Snorlax", "Kabutops", "Omastar", "Ditto", "Lapras", "Gyarados", "Magmar", "Electabuzz", "Jynx", "Scyther", "Kangaskhan", "Golem", "Venusaur", "Machamp", "Poliwrath", "Arcanine", "Nidoking", "Nidoqueen", "Charizard", "Blastoise", "Tentacruel", "Alakazam", "Gengar", "Rhydon"}}, [12149] = {balltype = "normal", ballid = 11826, pokemons = {"Articuno"}}, [12150] = {balltype = "normal", ballid = 11826, pokemons = {"Zapdos"}}, [12151] = {balltype = "normal", ballid = 11826, pokemons = {"Moltres"}}, [12237] = {balltype = "normal", ballid = 11826, pokemons = {"Tyranitar"}}, [12227] = {balltype = "normal", ballid = 11826, pokemons = {"Speed Deoxys"}}, [12338] = {balltype = "normal", ballid = 11826, pokemons = {"Lugia"}}, [12283] = {balltype = "normal", ballid = 11826, pokemons = {"Suicune"}}, [12236] = {balltype = "normal", ballid = 11826, pokemons = {"Raikou"}}, [12271] = {balltype = "normal", ballid = 11826, pokemons = {"Entei"}}, [12194] = {balltype = "normal", ballid = 11826, pokemons = {"Mewtwo"}}, [12289] = {balltype = "normal", ballid = 11826, pokemons = {"Mew"}}, [9074] = {balltype = "normal", ballid = 11826, pokemons = {"Ho-oh"}}, [9075] = {balltype = "normal", ballid = 11826, pokemons = {"Celebi"}}, [5944] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Regice"}}, [4852] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Darkrai"}}, [12225] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Mewtwo"}}, [12250] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Kyogre"}}, [12238] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Groudon"}}, [12224] = {balltype = "normal", ballid = 11826, pokemons = {"Palkia"}}, [12339] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Zekrom"}} [13095] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Reshiram"}} [13096] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Riolu"}} } local happy = 220 function onUse(cid, item, frompos, item2, topos) local b = a[item.itemid] if not b then return true end local pokemon = b.pokemons[math.random(#b.pokemons)] local btype = b.balltype if not pokeballs[btype] then return true end doPlayerSendTextMessage(cid, 27, "You opened a pokemon box!") doSendMagicEffect(getThingPos(cid), 29) addPokeToPlayer(cid, pokemon, 0, nil, btype) doRemoveItem(item.uid, 1) return true end
Postado Agosto 3, 2014 10 anos Testa aí local a = { [11638] = {balltype = "normal", ballid = 11826, pokemons = {"Slowking", "Ampharos", "Houndoom", "Meganium", "Electabuzz", "Gengar", "Alakazam", "Shiny Electabuzz", "Donphan", "Hitmontop", "Hitmonchan", "Ninetales", "Tentacruel", "Venusaur", "Charizard", "Blastoise", "Snorlax", "Nidoking", "Rapidash", "Vileplume"}}, [11639] = {balltype = "great", ballid = 11832, pokemons = {"Pidgeotto", "Weepinbell", "Clefairy", "Omanyte", "Kabuto", "Arbok", "Raichu", "Nidorino", "Nidorina", "Dodrio", "Muk", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian", "Poliwhirl", "Victreebel", "Machoke", "Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode", "Weezing", "Rhyhorn", "Seadra", "Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Dratini", "Charmeleon", "Wartortle", "Ivysaur"}}, [11640] = {balltype = "super", ballid = 11835, pokemons = {"Pidgeot", "Fearow", "Sandslash", "Ninetales", "Vileplume", "Primeape", "Golduck", "Kadabra", "Rapidash", "Clefable", "Wigglytuff", "Dewgong", "Onix", "Cloyster", "Hypno", "Exeggutor", "Marowak", "Hitmonchan", "Hitmonlee", "Lickitung", "Chansey", "Tangela", "Mr. Mime", "Pinsir", "Vaporeon", "Jolteon", "Flareon", "Porygon", "Dragonair"}}, [11641] = {balltype = "ultra", ballid = 11829, pokemons = {"Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Abra", "Dragonite", "Snorlax", "Kabutops", "Omastar", "Ditto", "Lapras", "Gyarados", "Magmar", "Electabuzz", "Jynx", "Scyther", "Kangaskhan", "Golem", "Venusaur", "Machamp", "Poliwrath", "Arcanine", "Nidoking", "Nidoqueen", "Charizard", "Blastoise", "Tentacruel", "Alakazam", "Gengar", "Rhydon"}}, [12149] = {balltype = "normal", ballid = 11826, pokemons = {"Articuno"}}, [12150] = {balltype = "normal", ballid = 11826, pokemons = {"Zapdos"}}, [12151] = {balltype = "normal", ballid = 11826, pokemons = {"Moltres"}}, [12237] = {balltype = "normal", ballid = 11826, pokemons = {"Tyranitar"}}, [12227] = {balltype = "normal", ballid = 11826, pokemons = {"Speed Deoxys"}}, [12338] = {balltype = "normal", ballid = 11826, pokemons = {"Lugia"}}, [12283] = {balltype = "normal", ballid = 11826, pokemons = {"Suicune"}}, [12236] = {balltype = "normal", ballid = 11826, pokemons = {"Raikou"}}, [12271] = {balltype = "normal", ballid = 11826, pokemons = {"Entei"}}, [12194] = {balltype = "normal", ballid = 11826, pokemons = {"Mewtwo"}}, [12289] = {balltype = "normal", ballid = 11826, pokemons = {"Mew"}}, [9074] = {balltype = "normal", ballid = 11826, pokemons = {"Ho-oh"}}, [9075] = {balltype = "normal", ballid = 11826, pokemons = {"Celebi"}}, [5944] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Regice"}}, [4852] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Darkrai"}}, [12225] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Mewtwo"}}, [12250] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Kyogre"}}, [12238] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Groudon"}}, [12224] = {balltype = "normal", ballid = 11826, pokemons = {"Palkia"}}, [12339] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Zekrom"}}, [13095] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Reshiram"}}, [13096] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Riolu"}} } local happy = 220 function onUse(cid, item, frompos, item2, topos) local b = a[item.itemid] if not b then return true end local pokemon = b.pokemons[math.random(#b.pokemons)] local btype = b.balltype if not pokeballs[btype] then return true end doPlayerSendTextMessage(cid, 27, "You opened a pokemon box!") doSendMagicEffect(getThingPos(cid), 29) addPokeToPlayer(cid, pokemon, 0, nil, btype) doRemoveItem(item.uid, 1) return true end Ajudei? De nada \o/ Att Rusherzin
Postado Agosto 4, 2014 10 anos Autor Vlww Rep+ Tipo eu dei esse script pro meu amigo e ele coloco +poke soq n funfo olha o script dele como fico local a = { [11638] = {balltype = "normal", ballid = 11826, pokemons = {"Slowking", "Ampharos", "Houndoom", "Meganium", "Electabuzz", "Gengar", "Alakazam", "Shiny Electabuzz", "Donphan", "Hitmontop", "Hitmonchan", "Ninetales", "Tentacruel", "Venusaur", "Charizard", "Blastoise", "Snorlax", "Nidoking", "Rapidash", "Vileplume"}}, [11639] = {balltype = "great", ballid = 11832, pokemons = {"Pidgeotto", "Weepinbell", "Clefairy", "Omanyte", "Kabuto", "Arbok", "Raichu", "Nidorino", "Nidorina", "Dodrio", "Muk", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian", "Poliwhirl", "Victreebel", "Machoke", "Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode", "Weezing", "Rhyhorn", "Seadra", "Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Dratini", "Charmeleon", "Wartortle", "Ivysaur"}}, [11640] = {balltype = "super", ballid = 11835, pokemons = {"Pidgeot", "Fearow", "Sandslash", "Ninetales", "Vileplume", "Primeape", "Golduck", "Kadabra", "Rapidash", "Clefable", "Wigglytuff", "Dewgong", "Onix", "Cloyster", "Hypno", "Exeggutor", "Marowak", "Hitmonchan", "Hitmonlee", "Lickitung", "Chansey", "Tangela", "Mr. Mime", "Pinsir", "Vaporeon", "Jolteon", "Flareon", "Porygon", "Dragonair"}}, [11641] = {balltype = "ultra", ballid = 11829, pokemons = {"Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Abra", "Dragonite", "Snorlax", "Kabutops", "Omastar", "Ditto", "Lapras", "Gyarados", "Magmar", "Electabuzz", "Jynx", "Scyther", "Kangaskhan", "Golem", "Venusaur", "Machamp", "Poliwrath", "Arcanine", "Nidoking", "Nidoqueen", "Charizard", "Blastoise", "Tentacruel", "Alakazam", "Gengar", "Rhydon"}}, [12149] = {balltype = "normal", ballid = 11826, pokemons = {"Articuno"}}, [12150] = {balltype = "normal", ballid = 11826, pokemons = {"Zapdos"}}, [12151] = {balltype = "normal", ballid = 11826, pokemons = {"Moltres"}}, [12237] = {balltype = "normal", ballid = 11826, pokemons = {"Tyranitar"}}, [12227] = {balltype = "normal", ballid = 11826, pokemons = {"Speed Deoxys"}}, [12338] = {balltype = "normal", ballid = 11826, pokemons = {"Lugia"}}, [12283] = {balltype = "normal", ballid = 11826, pokemons = {"Suicune"}}, [12236] = {balltype = "normal", ballid = 11826, pokemons = {"Raikou"}}, [12271] = {balltype = "normal", ballid = 11826, pokemons = {"Entei"}}, [12194] = {balltype = "normal", ballid = 11826, pokemons = {"Mewtwo"}}, [12289] = {balltype = "normal", ballid = 11826, pokemons = {"Mew"}}, [9074] = {balltype = "normal", ballid = 11826, pokemons = {"Ho-oh"}}, [9075] = {balltype = "normal", ballid = 11826, pokemons = {"Celebi"}}, [5944] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Regice"}}, [4852] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Darkrai"}}, [12225] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Mewtwo"}}, [12250] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Kyogre"}}, [12238] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Groudon"}}, [12224] = {balltype = "normal", ballid = 11826, pokemons = {"Palkia"}}, [12339] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Zekrom"}}, [13095] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Reshiram"}}, [13096] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Riolu"}} [114] = {balltype = "normal", ballid = 11826, pokemons = {"Black Kyurem"}} [115] = {balltype = "normal", ballid = 11826, pokemons = {"White Kyurem"}} [116] = {balltype = "normal", ballid = 11826, pokemons = {"Primal Dialga"}} [117] = {balltype = "normal", ballid = 11826, pokemons = {"Super Darkrai"}} } local happy = 220 function onUse(cid, item, frompos, item2, topos) local b = a[item.itemid] if not b then return true end local pokemon = b.pokemons[math.random(#b.pokemons)] local btype = b.balltype if not pokeballs[btype] then return true end doPlayerSendTextMessage(cid, 27, "You opened a pokemon box!") doSendMagicEffect(getThingPos(cid), 29) addPokeToPlayer(cid, pokemon, 0, nil, btype) doRemoveItem(item.uid, 1) return true end
Postado Agosto 4, 2014 10 anos local a = { [11638] = {balltype = "normal", ballid = 11826, pokemons = {"Slowking", "Ampharos", "Houndoom", "Meganium", "Electabuzz", "Gengar", "Alakazam", "Shiny Electabuzz", "Donphan", "Hitmontop", "Hitmonchan", "Ninetales", "Tentacruel", "Venusaur", "Charizard", "Blastoise", "Snorlax", "Nidoking", "Rapidash", "Vileplume"}}, [11639] = {balltype = "great", ballid = 11832, pokemons = {"Pidgeotto", "Weepinbell", "Clefairy", "Omanyte", "Kabuto", "Arbok", "Raichu", "Nidorino", "Nidorina", "Dodrio", "Muk", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian", "Poliwhirl", "Victreebel", "Machoke", "Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode", "Weezing", "Rhyhorn", "Seadra", "Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Dratini", "Charmeleon", "Wartortle", "Ivysaur"}}, [11640] = {balltype = "super", ballid = 11835, pokemons = {"Pidgeot", "Fearow", "Sandslash", "Ninetales", "Vileplume", "Primeape", "Golduck", "Kadabra", "Rapidash", "Clefable", "Wigglytuff", "Dewgong", "Onix", "Cloyster", "Hypno", "Exeggutor", "Marowak", "Hitmonchan", "Hitmonlee", "Lickitung", "Chansey", "Tangela", "Mr. Mime", "Pinsir", "Vaporeon", "Jolteon", "Flareon", "Porygon", "Dragonair"}}, [11641] = {balltype = "ultra", ballid = 11829, pokemons = {"Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Abra", "Dragonite", "Snorlax", "Kabutops", "Omastar", "Ditto", "Lapras", "Gyarados", "Magmar", "Electabuzz", "Jynx", "Scyther", "Kangaskhan", "Golem", "Venusaur", "Machamp", "Poliwrath", "Arcanine", "Nidoking", "Nidoqueen", "Charizard", "Blastoise", "Tentacruel", "Alakazam", "Gengar", "Rhydon"}}, [12149] = {balltype = "normal", ballid = 11826, pokemons = {"Articuno"}}, [12150] = {balltype = "normal", ballid = 11826, pokemons = {"Zapdos"}}, [12151] = {balltype = "normal", ballid = 11826, pokemons = {"Moltres"}}, [12237] = {balltype = "normal", ballid = 11826, pokemons = {"Tyranitar"}}, [12227] = {balltype = "normal", ballid = 11826, pokemons = {"Speed Deoxys"}}, [12338] = {balltype = "normal", ballid = 11826, pokemons = {"Lugia"}}, [12283] = {balltype = "normal", ballid = 11826, pokemons = {"Suicune"}}, [12236] = {balltype = "normal", ballid = 11826, pokemons = {"Raikou"}}, [12271] = {balltype = "normal", ballid = 11826, pokemons = {"Entei"}}, [12194] = {balltype = "normal", ballid = 11826, pokemons = {"Mewtwo"}}, [12289] = {balltype = "normal", ballid = 11826, pokemons = {"Mew"}}, [9074] = {balltype = "normal", ballid = 11826, pokemons = {"Ho-oh"}}, [9075] = {balltype = "normal", ballid = 11826, pokemons = {"Celebi"}}, [5944] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Regice"}}, [4852] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Darkrai"}}, [12225] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Mewtwo"}}, [12250] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Kyogre"}}, [12238] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Groudon"}}, [12224] = {balltype = "normal", ballid = 11826, pokemons = {"Palkia"}}, [12339] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Zekrom"}}, [13095] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Reshiram"}}, [13096] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Riolu"}}, [114] = {balltype = "normal", ballid = 11826, pokemons = {"Black Kyurem"}}, [115] = {balltype = "normal", ballid = 11826, pokemons = {"White Kyurem"}}, [116] = {balltype = "normal", ballid = 11826, pokemons = {"Primal Dialga"}}, [117] = {balltype = "normal", ballid = 11826, pokemons = {"Super Darkrai"}} } local happy = 220 function onUse(cid, item, frompos, item2, topos) local b = a[item.itemid] if not b then return true end local pokemon = b.pokemons[math.random(#b.pokemons)] local btype = b.balltype if not pokeballs[btype] then return true end doPlayerSendTextMessage(cid, 27, "You opened a pokemon box!") doSendMagicEffect(getThingPos(cid), 29) addPokeToPlayer(cid, pokemon, 0, nil, btype) doRemoveItem(item.uid, 1) return true end Ajudei? De nada \o/ Att Rusherzin
Postado Agosto 4, 2014 10 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Scripting → Actions e TalkActions" Para: "OTServ → Suporte OTServ → Suporte de Scripts" Ajudei = REP+ Não dou suporte por PM qualquer dúvida procure no fórum,caso não encontre oque procura crie um tópico. [email protected]" /> | TFS 0.4 DEV | %5Bcreaturescript%5D Icones no minimap com descrição%5Btalkaction%5D Adicionar ou remover VIP do player.%5Bcreaturescripts%5D Senha para porta%5Btalkaction%5D Mandar mensagem para pasta do servidorMapa Evento War Castle%5Baction%5D Canoa em MovimentoTeleport Scroll System%5Bcreaturescripts%5D Recompensa por level para X vocations%5Btalkaction%5D Adicionar X item para o player%5Btalkactions%5D Adicionar item para todos players online%5Baction%5D Item que teleporta o player para house[action+movement] Passaporte para entrar no barco
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.