- 0
Ajudinha Pf Pf =/
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
script alguém pode me ajudar nessa spells aqui, queira que colocassem pro meu personagem ficar inatingível por 6 segundos e podendo atacar livremente
Por lazaroszz,
- 0 respostas
- 475 visualizações
-
- 1 resposta
- 2219 visualizações
-
- 0 respostas
- 1058 visualizações
-
- 1 resposta
- 1225 visualizações
-
- 1 resposta
- 1270 visualizações
-
Pergunta
vitor5468 1
E ae pessoal como vão vocês ?
estou com 1 probleminha no meu servidor de pokémon
tipo arrumei ele todo, tirei bugs e tudo mais
deu um baita trabalho
mas consegui, porém estou com algo estranho que não dava antes
apareceu do nada, vejam só
[23/07/2011 20:30:08] [Error - LuaScriptInterface::loadFile] data/actions/scripts/catch.lua:124: '}' expected (to close '{' at line 1) near '['
[23/07/2011 20:30:08] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/catch.lua)
[23/07/2011 20:30:08] data/actions/scripts/catch.lua:124: '}' expected (to close '{' at line 1) near '['
[23/07/2011 20:30:08] Reloaded actions.
E pronto da erro nos catch =/
alguém ai pode me ajudar ???
ai vai meu catch completo depois de ter editado e feito ele completo
local pokes = {
["Abra"] = {chance = 59, corpse = 3000, health = 620, maxhealth = 620},
["Aerodactyl"] = {chance = 420, corpse = 6338, health = 8000, maxhealth = 8000},
["Aipom"] = {chance = 260, corpse = 4284, health = 800, maxhealth = 800},
["Alakazam"] = {chance = 241, corpse = 6057, health = 5500, maxhealth = 5500},
["Arbok"] = {chance = 130, corpse = 5984, health = 2000, maxhealth = 3000},
["Arcanine"] = {chance = 320, corpse = 6031, health = 6000, maxhealth = 6000},
["Ambipom"] = {chance = 220, corpse = 2928, health = 7000, maxhealth = 7000},
["Articuno"] = {chance = 1000, corpse = 7256, health = 35000, maxhealth = 35000},
["Beedrill"] = {chance = 40, corpse = 5990, health = 1500, maxhealth = 1500},
["Bellsprout"] = {chance = 13, corpse = 3047, health = 420, maxhealth = 420},
["Blastoise"] = {chance = 350, corpse = 5999, health = 6000, maxhealth = 6000},
["Bulbasaur"] = {chance = 19, corpse = 5969, health = 800, maxhealth = 800},
["Butterfree"] = {chance = 80, corpse = 5985, health = 1500, maxhealth = 1500},
["Banette"] = {chance = 67, corpse = 4318, health = 5400, maxhealth = 5400},
["Buizel"] = {chance = 18, corpse = 7328, health = 2600, maxhealth = 2600},
["Caterpie"] = {chance = 3, corpse = 5971, health = 200, maxhealth = 200},
["Chansey"] = {chance = 199, corpse = 6010, health = 4000, maxhealth = 4000},
["Charizard"] = {chance = 261, corpse = 6005, health = 6000, maxhealth = 6000},
["Charmander"] = {chance = 20, corpse = 5983, health = 800, maxhealth = 800},
["Charmeleon"] = {chance = 73, corpse = 5981, health = 2600, maxhealth = 2600},
["Clefable"] = {chance = 199, corpse = 6006, health = 4000, maxhealth = 4000},
["Clefairy"] = {chance = 50, corpse = 2968, health = 1200, maxhealth = 1200},
["Cloyster"] = {chance = 210, corpse = 2932, health = 6000, maxhealth = 6000},
["Cubone"] = {chance = 22, corpse = 6050, health = 700, maxhealth = 700},
["Corphish"] = {chance = 30, corpse = 2946, health = 600, maxhealth = 600},
["Crawdaunt"] = {chance = 170, corpse = 2957, health = 4000, maxhealth = 4000},
["Crobat"] = {chance = 170, corpse = 7326, health = 5400, maxhealth = 5400},
["Crystal Onix"] = {chance = 440, corpse = 6320, health = 20000, maxhealth = 20000},
["Dewgong"] = {chance = 190, corpse = 6038, health = 4500, maxhealth = 4500},
["Diglett"] = {chance = 15, corpse = 6023, health = 550, maxhealth = 550},
["Ditto"] = {chance = 200, corpse = 2817, health = 10000, maxhealth = 10000},
["Dodrio"] = {chance = 79, corpse = 6047, health = 2500, maxhealth = 2500},
["Doduo"] = {chance = 16, corpse = 2842, health = 800, maxhealth = 800},
["Dragonair"] = {chance = 280, corpse = 6002, health = 3000, maxhealth = 3000},
["Dragonite"] = {chance = 320, corpse = 4295, health = 10000, maxhealth = 10000},
["Dratini"] = {chance = 200, corpse = 2879, health = 800, maxhealth = 800},
["Drowzee"] = {chance = 27, corpse = 6026, health = 1000, maxhealth = 1000},
["Dugtrio"] = {chance = 85, corpse = 6024, health = 2000, maxhealth = 2000},
["Dusclops"] = {chance = 350, corpse = 4252, health = 6000, maxhealth = 6000},
["Duskull"] = {chance = 32, corpse = 4324, health = 1000, maxhealth = 1000},
["Eevee"] = {chance = 80, corpse = 6364, health = 700, maxhealth = 700},
["Ekans"] = {chance = 12, corpse = 5979, health = 520, maxhealth = 520},
["Elder Charizard"] = {chance = 690, corpse = 2954, health = 20000, maxhealth = 20000},
["Electabuzz"] = {chance = 150, corpse = 6065, health = 6500, maxhealth = 6500},
["Electrode"] = {chance = 60, corpse = 6051, health = 2350, maxhealth = 2350},
["Elekid"] = {chance = 20, corpse = 2020, health = 1500, maxhealth = 1500},
["Exeggcute"] = {chance = 15, corpse = 2982, health = 300, maxhealth = 300},
["Exeggutor"] = {chance = 52, corpse = 3005, health = 4500, maxhealth = 4500},
["Farfetch'd"] = {chance = 29, corpse = 2836, health = 3200, maxhealth = 3200},
["Fearow"] = {chance = 44, corpse = 5992, health = 3000, maxhealth = 3000},
["Flareon"] = {chance = 93, corpse = 6059, health = 3500, maxhealth = 3500},
["Gastly"] = {chance = 11, corpse = 5993, health = 750, maxhealth = 750},
["Gengar"] = {chance = 200, corpse = 6336, health = 5500, maxhealth = 5500},
["Geodude"] = {chance = 17, corpse = 6071, health = 900, maxhealth = 900},
["Gloom"] = {chance = 25, corpse = 6017, health = 1000, maxhealth = 1000},
["Golbat"] = {chance = 53, corpse = 6053, health = 2000, maxhealth = 2000},
["Goldeen"] = {chance = 7, corpse = 2970, health = 326, maxhealth = 326},
["Golduck"] = {chance = 45, corpse = 6028, health = 5000, maxhealth = 5000},
["Golem"] = {chance = 205, corpse = 6043, health = 5040, maxhealth = 5040},
["Graveler"] = {chance = 105, corpse = 6516, health = 3000, maxhealth = 3000},
["Grimer"] = {chance = 7, corpse = 6055, health = 1000, maxhealth = 1000},
["Growlithe"] = {chance = 16, corpse = 6036, health = 800, maxhealth = 800},
["Gyarados"] = {chance = 150, corpse = 6331, health = 6900, maxhealth = 6900},
["Haunter"] = {chance = 40, corpse = 6004, health = 2500, maxhealth = 2500},
["Hitmonchan"] = {chance = 200, corpse = 5977, health = 7000, maxhealth = 7000},
["Hitmonlee"] = {chance = 200, corpse = 6067, health = 7050, maxhealth = 7050},
["Horsea"] = {chance = 10, corpse = 2973, health = 350, maxhealth = 350},
["Hypno"] = {chance = 99, corpse = 6046, health = 3000, maxhealth = 3000},
["Ivysaur"] = {chance = 84, corpse = 5982, health = 2600, maxhealth = 2600},
["Jigglypuff"] = {chance = 11, corpse = 6011, health = 600, maxhealth = 600},
["Jolteon"] = {chance = 66, corpse = 6044, health = 3500, maxhealth = 3500},
["Jynx"] = {chance = 100, corpse = 5765, health = 7000, maxhealth = 7000},
["Kabuto"] = {chance = 44, corpse = 5972, health = 2500, maxhealth = 2500},
["Kabutops"] = {chance = 100, corpse = 6345, health = 8000, maxhealth = 8000},
["Kadabra"] = {chance = 142, corpse = 6060, health = 2500, maxhealth = 2500},
["Kakuna"] = {chance = 7, corpse = 6000, health = 1000, maxhealth = 1000},
["Kangaskhan"] = {chance = 82, corpse = 6073, health = 5000, maxhealth = 5000},
["Kingler"] = {chance = 99, corpse = 6340, health = 3000, maxhealth = 3000},
["Kingdra"] = {chance = 322, corpse = 7325, health = 6000, maxhealth = 6000},
["Koffing"] = {chance = 9, corpse = 2936, health = 820, maxhealth = 820},
["Krabby"] = {chance = 6, corpse = 6039, health = 300, maxhealth = 300},
["Lapras"] = {chance = 80, corpse = 6018, health = 6800, maxhealth = 6800},
["Lickitung"] = {chance = 120, corpse = 2953, health = 4000, maxhealth = 4000},
["Lucario"] = {chance = 999, corpse = 2909, health = 7000, maxhealth = 7000},
["Machamp"] = {chance = 750, corpse = 6048, health = 6500, maxhealth = 6500},
["Machoke"] = {chance = 310, corpse = 4251, health = 3500, maxhealth = 3500},
["Machop"] = {chance = 18, corpse = 6045, health = 1200, maxhealth = 1200},
["Magby"] = {chance = 77, corpse = 2020, health = 1500, maxhealth = 1500},
["Magikarp"] = {chance = 2, corpse = 2818, health = 150, maxhealth = 150},
["Magmar"] = {chance = 250, corpse = 7283, health = 6500, maxhealth = 6500},
["Magnemite"] = {chance = 19, corpse = 6056, health = 500, maxhealth = 500},
["Magneton"] = {chance = 70, corpse = 6076, health = 2300, maxhealth = 2300},
["Magnezone"] = {chance = 230, corpse = 6334, health = 7000, maxhealth = 7000},
["Mankey"] = {chance = 25, corpse = 6035, health = 1000, maxhealth = 1000},
["Marowak"] = {chance = 99, corpse = 6072, health = 2800, maxhealth = 2800},
["Meowth"] = {chance = 25, corpse = 6034, health = 800, maxhealth = 800},
["Metapod"] = {chance = 10, corpse = 5970, health = 1000, maxhealth = 1000},
["Mew"] = {chance = 1000, corpse = 2939, health = 40000, maxhealth = 40000},
["Mewtwo"] = {chance = 1000, corpse = 5973, health = 40000, maxhealth = 40000},
["Mime Jr"] = {chance = 40, corpse = 5932, health = 1500, maxhealth = 1500},
["Moltres"] = {chance = 999, corpse = 7330, health = 35000, maxhealth = 35000},
["Mr.Mime"] = {chance = 500, corpse = 6069, health = 5000, maxhealth = 5000},
["Muk"] = {chance = 310, corpse = 2845, health = 4500, maxhealth = 4500},
["Nidoking"] = {chance = 450, corpse = 5995, health = 4200, maxhealth = 4200},
["Nidoqueen"] = {chance = 450, corpse = 3004, health = 6000, maxhealth = 6000},
["Nidoran Female"] = {chance = 11, corpse = 6013, health = 500, maxhealth = 500},
["Nidoran Male"] = {chance = 11, corpse = 6015, health = 500, maxhealth = 500},
["Nidorina"] = {chance = 44, corpse = 6014, health = 2000, maxhealth = 2000},
["Nidorino"] = {chance = 44, corpse = 6019, health = 2000, maxhealth = 2000},
["Ninetales"] = {chance = 95, corpse = 6040, health = 5000, maxhealth = 5000},
["Oddish"] = {chance = 7, corpse = 3008, health = 500, maxhealth = 500},
["Omanyte"] = {chance = 33, corpse = 5998, health = 2500, maxhealth = 2500},
["Omastar"] = {chance = 91, corpse = 5994, health = 8000, maxhealth = 8000},
["Onix"] = {chance = 45, corpse = 2990, health = 7000, maxhealth = 7000},
["Paras"] = {chance = 8, corpse = 3007, health = 400, maxhealth = 400},
["Parasect"] = {chance = 38, corpse = 6027, health = 3000, maxhealth = 3000},
["Persian"] = {chance = 33, corpse = 6009, health = 3000, maxhealth = 3000},
["Pichu"] = {chance = 6, corpse = 2020, health = 600, maxhealth = 600},
["Pidgeot"] = {chance = 167, corpse = 6020, health = 5000, maxhealth = 5000},
["Pidgeotto"] = {chance = 26, corpse = 5966, health = 2000, maxhealth = 2000},
["Pidgey"] = {chance = 11, corpse = 5961, health = 500, maxhealth = 500},
["Pikachu"] = {chance = 15, corpse = 6001, health = 1200, maxhealth = 1200}
["Pinsir"] = {chance = 33, corpse = 7282, health = 4500, maxhealth = 4500}
["Poliwag"] = {chance = 8, corpse = 6042, health = 600, maxhealth = 600},
["Poliwhirl"] = {chance = 29, corpse = 6054, health = 2600, maxhealth = 2600},
["Poliwrath"] = {chance = 186, corpse = 6033, health = 5500, maxhealth = 5500},
["Ponyta"] = {chance = 16, corpse = 5975, health = 1000, maxhealth = 1000},
["Porygon"] = {chance = 100, corpse = 5963, health = 5000, maxhealth = 5000},
["Primeape"] = {chance = 96, corpse = 6032, health = 5000, maxhealth = 5000},
["Psyduck"] = {chance = 11, corpse = 6029, health = 800, maxhealth = 800},
["Raichu"] = {chance = 88, corpse = 5996, health = 4000, maxhealth = 4000},
["Rapidash"] = {chance = 100, corpse = 4323, health = 5000, maxhealth = 5000},
["Raticate"] = {chance = 16, corpse = 6007, health = 1500, maxhealth = 1500},
["Rattata"] = {chance = 8, corpse = 5974, health = 300, maxhealth = 300},
["Rhydon"] = {chance = 86, corpse = 2858, health = 6500, maxhealth = 6500},
["Rhyhorn"] = {chance = 25, corpse = 3035, health = 3000, maxhealth = 3000},
["Sandshrew"] = {chance = 16, corpse = 5988, health = 600, maxhealth = 600},
["Sandslash"] = {chance = 160, corpse = 6041, health = 2800, maxhealth = 2800},
["Scyther"] = {chance = 280, corpse = 3002, health = 7000, maxhealth = 7000},
["Seadra"] = {chance = 190, corpse = 2872, health = 3500, maxhealth = 3500},
["Seaking"] = {chance = 95, corpse = 3038, health = 2000, maxhealth = 2000},
["Seel"] = {chance = 13, corpse = 6030, health = 800, maxhealth = 800},
["Shellder"] = {chance = 9, corpse = 2837, health = 600, maxhealth = 600},
["Slowbro"] = {chance = 93, corpse = 5986, health = 2000, maxhealth = 2000},
["Slowpoke"] = {chance = 40, corpse = 2926, health = 600, maxhealth = 600},
["Snorlax"] = {chance = 105, corpse = 6016, health = 7000, maxhealth = 7000},
["Spearow"] = {chance = 20, corpse = 5968, health = 500, maxhealth = 500},
["Squirtle"] = {chance = 18, corpse = 6008, health = 800, maxhealth = 800},
["Starmie"] = {chance = 55, corpse = 7320, health = 5000, maxhealth = 5000},
["Staryu"] = {chance = 17, corpse = 5987, health = 500, maxhealth = 500},
["Tangela"] = {chance = 25, corpse = 5976, health = 2800, maxhealth = 2800},
["Tauros"] = {chance = 45, corpse = 6302, health = 3500, maxhealth = 3500},
["Tentacool"] = {chance = 22, corpse = 2961, health = 750, maxhealth = 750},
["Tentacruel"] = {chance = 135, corpse = 6037, health = 6000, maxhealth = 6000},
["Vaporeon"] = {chance = 77, corpse = 5960, health = 3500, maxhealth = 3500},
["Venomoth"] = {chance = 115, corpse = 2925, health = 3500, maxhealth = 3500},
["Venonat"] = {chance = 32, corpse = 5997, health = 300, maxhealth = 300},
["Venusaur"] = {chance = 345, corpse = 5962, health = 6000, maxhealth = 6000},
["Victreebel"] = {chance = 140, corpse = 6332, health = 4000, maxhealth = 4000},
["Vileplume"] = {chance = 133, corpse = 6025, health = 4000, maxhealth = 4000},
["Voltorb"] = {chance = 13, corpse = 6049, health = 550, maxhealth = 550},
["Vulpix"] = {chance = 15, corpse = 6003, health = 600, maxhealth = 600},
["Wartortle"] = {chance = 80, corpse = 5978, health = 2600, maxhealth = 2600},
["Weedle"] = {chance = 3, corpse = 5964, health = 200, maxhealth = 200},
["Weepinbell"] = {chance = 28, corpse = 2928, health = 1300, maxhealth = 1300},
["Weezing"] = {chance = 99, corpse = 6306, health = 3500, maxhealth = 3500},
["Wigglytuff"] = {chance = 112, corpse = 6012, health = 3000, maxhealth = 3000},
["Zubat"] = {chance = 15, corpse = 5989, health = 450, maxhealth = 450},
["Zapdos"] = {chance = 999, corpse = 6074, health = 35000, maxhealth = 35000},
}
local description = "Contains a %pokename."
function onUse(cid, item, frompos, item2, topos)
local name = getItemNameById(item2.itemid)
if item.itemid == 2147 then
catchrate = 1
oncatch = 24
onfail = 23
bolabola = 2222
elseif item.itemid == 2146 then
catchrate = 4
oncatch = 200
onfail = 199
bolabola = 2220
end
local rate = (catchrate)
local catch = oncatch
local fail = onfail
local newid = bolabola
for i,x in pairs(pokes) do
if getItemNameById(item2.itemid):find(i:lower()) then
if getItemIdByName(name) == pokes.corpse then
if cid ~= getItemAttribute(item2.uid, "corpseowner") and isInArray({1,8}, getPlayerGroupId(cid)) then
doPlayerSendCancel(cid, "You are not allowed to catch this pokemon.")
return true
end
doRemoveItem(item.uid, 1)
doRemoveItem(item2.uid, 1)
local pegar = math.random(0, x.chance)
if pegar <= 1*(rate) then
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 not string.find(getPlayerStorageValue(cid, 54842), ""..i..",") then
doPlayerAddSoul(cid, 1)
setPlayerStorageValue(cid, 54842, getPlayerStorageValue(cid, 54842)..""..i..", ")
end
if getPlayerFreeCap(cid) <= 0.99 then
item = doCreateItemEx(newid-1)
doItemSetAttribute(item, "poke", params.poke)
doItemSetAttribute(item, "nome", params.nome)
doItemSetAttribute(item, "description", params.description)
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)
doItemSetAttribute(item, "poke", params.poke)
doItemSetAttribute(item, "nome", params.nome)
doItemSetAttribute(item, "description", params.description)
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})
else
function ruim(params)
if not isCreature(params.cid) then
return true
end
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)
end
end
end
end
return TRUE
end
Dou REP+ pra quem ajudar
por favor, preciso muito disso =/
thanks !
Link para o comentário
Compartilhar em outros sites
8 respostass a esta questão
Posts Recomendados