Ir para conteúdo

Featured Replies

Postado

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

  • Respostas 5
  • Visualizações 466
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Testa aí   local a = { [11638] = {balltype = "normal", ballid = 11826, pokemons = {"Slowking", "Ampharos", "Houndoom", "Meganium", "Electabuzz", "Gengar", "Alakazam", "Shiny Electabuzz", "Donphan",

Postado

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
Postado
  • 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
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

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: "OTServScriptingActions e TalkActions"

Para: "OTServSuporte OTServSuporte de Scripts"

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo