Ir para conteúdo
  • 0

Ajudinha Pf Pf =/


vitor5468

Pergunta

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

  • 0

cara da um CTRL F e ve se nao tem algo errado com este simbulo.

 

}

 

Ai que está a questão parceiro, ja fiz esse teste e nada nada

=/

pow só ta faltando isso pro meu server ficar online =/

se puder me ajudar dou REP+ thanks !!

Link para o comentário
Compartilhar em outros sites

  • 0

Vitor, vai nessa linha :

 

["Zapdos"] = {chance = 999, corpse = 6074, health = 35000, maxhealth = 35000},

 

e tira a ultima virgula :

 

["Zapdos"] = {chance = 999, corpse = 6074, health = 35000, maxhealth = 35000}

 

 

Depois me fla.

 

Flws

Link para o comentário
Compartilhar em outros sites

  • 0

Vitor, vai nessa linha :

 

["Zapdos"] = {chance = 999, corpse = 6074, health = 35000, maxhealth = 35000},

 

e tira a ultima virgula :

 

["Zapdos"] = {chance = 999, corpse = 6074, health = 35000, maxhealth = 35000}

 

 

Depois me fla.

 

Flws

 

fiz isso ai parceiro, não mudou nada =/

ainda está o mesmo problema, pow fiz os pokes todos

sakposaksapoksap

canseeei de tanto ficar nesse catch

olhando poke por poke

aaaai agora da nisso =/

 

Ae galera, pode fechar o tópico po

consegui resolver sakposakpoasksaop

porra foi foda viu cara,

presta atenção, vou ensinar o que fiz errado e como arrumei

kkkkkkkkkkkkkkkkkkkkkkkk

 

podem rir, =)

 

 

 

["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},

 

 

 

Presta atenção no pikachu e no pinsir

sakpsoaksaopksapoasposa

no final la ta certinho né ??

opa, mas ta faltando a ","

por causa de uma vírgula

kasposakpoasksopaksaopkosa

 

valeu pra quem tentou ajudar, vou dar REP+ pelo esforço !

Link para o comentário
Compartilhar em outros sites

  • 0

tenta:

local chance = {

['abra'] = 99,

['kadabra'] = 65,

['alakazam'] = 20,

['gastly'] = 99,

['haunter'] = 65,

['gengar'] = 20,

['machop'] = 300,

['machoke'] = 80,

['machamp'] = 20,

['bellsprout'] = 400,

['weepinbell'] = 100,

['victreebel'] = 50,

['tentacool'] = 200,

['tentacruel'] = 35,

['geodude'] = 200,

['graveler'] = 100,

['golem'] = 20,

['ponyta'] = 150,

['rapidash'] = 50,

['slowpoke'] = 200,

['slowbro'] = 80,

['magnemite'] = 200,

['magneton'] = 70,

['farfetchd'] = 150,

['doduo'] = 150,

['dodrio'] = 70,

['seel'] = 240,

['dewgong'] = 20,

['grimer'] = 100,

['muk'] = 20,

['shellder'] = 100,

['cloyster'] = 20,

['elekid'] = 80,

['magby'] = 80,

['tyrogue'] = 80,

['pichu'] = 80,

['onix'] = 40,

['drowzee'] = 100,

['hypno'] = 35,

['krabby'] = 300,

['kingler'] = 60,

['voltorb'] = 200,

['electrode'] = 60,

['exeggcute'] = 100,

['exeggutor'] = 45,

['cubone'] = 150,

['marowak'] = 20,

['hitmonlee'] = 29,

['hitmonchan'] = 31,

['lickitung'] = 50,

['koffing'] = 200,

['weezing'] = 50,

['rhyhorn'] = 95,

['rhydon'] = 20,

['chansey'] = 28,

['tangela'] = 300,

['kangaskhan'] = 70,

['horsea'] = 800,

['seadra'] = 80,

['goldeen'] = 800,

['seaking'] = 60,

['staryu'] = 150,

['starmie'] = 30,

['mr.mime'] = 30,

['scyther'] = 30,

['jynx'] = 30,

['electabuzz'] = 30,

['magmar'] = 30,

['pinsir'] = 85,

['tauros'] = 85,

['magikarp'] = 900,

['gyarados'] = 40,

['lapras'] = 40,

['ditto'] = 1,

['eevee'] = 35,

['vaporeon'] = 10,

['flareon'] = 10,

['jolteon'] = 10,

['porygon'] = 35,

['omanyte'] = 100,

['omastar'] = 35,

['kabuto'] = 100,

['kabutops'] = 35,

['aerodactyl'] = 35,

['snorlax'] = 40,

['articuno'] = 1,

['zapdos'] = 1,

['moltres'] = 1,

['dratini'] = 90,

['dragonair'] = 40,

['dragonite'] = 1,

['mew'] = 1,

['mewtwo'] = 1,

['beedrill'] = 100,

['bulbasaur'] = 100,

['ivysaur'] = 50,

['venusaur'] = 20,

['charmander'] = 100,

['charmeleon'] = 50,

['charizard'] = 20,

['squirtle'] = 100,

['wartortle'] = 50,

['blastoise'] = 20,

['caterpie'] = 900,

['metapod'] = 150,

['butterfree'] = 100,

['weedle'] = 900,

['kakuna'] = 150,

['pidgey'] = 500,

['pidgeotto'] = 100,

['pidgeot'] = 40,

['rattata'] = 600,

['raticate'] = 100,

['spearow'] = 800,

['fearow'] = 78,

['ekans'] = 500,

['arbok'] = 50,

['pikachu'] = 120,

['raichu'] = 50,

['sandshrew'] = 200,

['sandslash'] = 20,

['nidoran F'] = 150,

['nidorina'] = 50,

['nidoqueen'] = 20,

['nidoran M'] = 150,

['nidorino'] = 50,

['nidoking'] = 20,

['clefairy'] = 200,

['clefable'] = 40,

['vulpix'] = 200,

['ninetales'] = 40,

['jigglypuff'] = 200,

['wigglytuff'] = 50,

['zubat'] = 800,

['golbat'] = 80,

['oddish'] = 800,

['gloom'] = 100,

['vileplume'] = 50,

['paras'] = 250,

['parasect'] = 20,

['venonat'] = 300,

['venomoth'] = 20,

['diglett'] = 500,

['dugtrio'] = 80,

['meowth'] = 500,

['persian'] = 50,

['psyduck'] = 100,

['golduck'] = 20,

['mankey'] = 150,

['primeape'] = 20,

['growlithe'] = 200,

['arcanine'] = 20,

['poliwag'] = 500,

['poliwhirl'] = 80,

['poliwrath'] = 20,

['elder charizard'] = 5,

['crystal onix'] = 5,

['red gyarados'] = 5,

['shiny horsea'] = 10,

['shiny seadra'] = 10,

['shiny krabby'] = 10,

['shiny kingler'] = 10,

['shiny tentacool'] = 10,

['shiny tentacruel'] = 10,

['shiny paras'] = 10,

['shiny parasect'] = 10,

['shiny rattata'] = 10,

['shiny raticate'] = 10,

['shiny grimer'] = 10,

['shiny muk'] = 10,

['shiny growlithe'] = 10,

['shiny arcanine'] = 10,

['shiny beedrill'] = 10,

['shiny butterfree'] = 10,

['shiny electrode'] = 10,

['shiny farfetchd'] = 10,

['shiny raichu'] = 10,

['shiny venomoth'] = 10,

['ivysaur2'] = 1,

['charmeleon2'] = 1,

['wartortle2'] = 1,

['pidgeotto2'] = 1,

['spearow2'] = 1,

['nidorina2'] = 1,

['nidorino2'] = 1,

['vulpix2'] = 1,

['paras2'] = 1,

['psyduck2'] = 1,

['growlithe2'] = 1,

['poliwhirl2'] = 1,

['kadabra2'] = 1,

['machoke2'] = 1,

['weepinbell2'] = 1,

['tentacool2'] = 1,

['graveler2'] = 1,

['shellder2'] = 1,

['haunter2'] = 1,

['drowzee2'] = 1,

['exeggcute2'] = 1,

['rhyhorn2'] = 1,

['magikarp2'] = 1,

['omanyte2'] = 1,

['kabuto2'] = 1,

['dragonair2'] = 1,

['shiny krabby2'] = 1,

['shiny tentacool2'] = 1,

['shiny horsea2'] = 1,

}

 

local ID_GREATBALL = 2146

local ID_SUPERBALL = 2147

local ID_ULTRABALL = 2150

local ID_MASTERBALL = 2554

local ID_CAPTUROU = 24

local ID_NAO_CAPTUROU = 23

 

local pokebolas = {

[2149] = {2532,"Pokeball"},

[2147] = {2653,"Superball"},

[2146] = {2652,"Greatball"},

[2150] = {2654,"Ultraball"},

[2521] = {2195,"Masterball"},

}

 

local level = {

['abra'] = 5,

['kadabra'] = 40,

['alakazam'] = 80,

['machop'] = 15,

['machoke'] = 40,

['machamp'] = 70,

['bellsprout'] = 5,

['weepinbell'] = 20,

['victreebel'] = 50,

['tentacool'] = 15,

['tentacruel'] = 70,

['geodude'] = 5,

['graveler'] = 35,

['golem'] = 65,

['ponyta'] = 10,

['rapidash'] = 50,

['slowpoke'] = 5,

['slowbro'] = 50,

['magnemite'] = 10,

['magneton'] = 40,

['farfetchd'] = 25,

['duduo'] = 15,

['dodrio'] = 45,

['seel'] = 15,

['dewgong'] = 65,

['grimer'] = 10,

['muk'] = 40,

['shellder'] = 5,

['cloyster'] = 60,

['gastly'] = 90,

['haunter'] = 50,

['gengar'] = 10,

['onix'] = 50,

['drowzee'] = 18,

['hypno'] = 55,

['krabby'] = 5,

['klinger'] = 35,

['voltorb'] = 5,

['electrode'] = 40,

['exeggcute'] = 8,

['exeggutor'] = 45,

['cubone'] = 15,

['marowak'] = 52,

['hitmonlee'] = 70,

['hitmonchan'] = 65,

['lickitung'] = 40,

['koffing'] = 10,

['weezing'] = 38,

['rhyhorn'] = 20,

['rhydon'] = 68,

['chansey'] = 50,

['tangela'] = 30,

['kangaskhan'] = 70,

['horsea'] = 5,

['seadra'] = 36,

['goldeen'] = 5,

['seaking'] = 32,

['staryu'] = 15,

['starmie'] = 40,

['mr.Mime'] = 60,

['scyther'] = 80,

['jynx'] = 70,

['electabuzz'] = 72,

['magmar'] = 72,

['pinsir'] = 10,

['tauros'] = 25,

['magikarp'] = 1,

['gyarados'] = 70,

['lapras'] = 40,

['ditto'] = 100,

['eevee'] = 15,

['vaporeon'] = 50,

['flareon'] = 50,

['jolteon'] = 50,

['porygon'] = 40,

['omanyte'] = 20,

['omastar'] = 10,

['kabuto'] = 20,

['kabutops'] = 10,

['snorlax'] = 35,

['articuno'] = 150,

['zapdos'] = 150,

['moltres'] = 150,

['dratini'] = 10,

['dragonair'] = 50,

['dragonite'] = 80,

['mew'] = 350,

['mewtwo'] = 200,

['beedrill'] = 25,

['bulbasaur'] = 5,

['ivysaur'] = 35,

['venusaur'] = 75,

['charmander'] = 5,

['charmeleon'] = 35,

['charizard'] = 75,

['squirtle'] = 5,

['wartortle'] = 35,

['blastoise'] = 75,

['caterpie'] = 1,

['metapod'] = 5,

['butterfree'] = 25,

['weedle'] = 1,

['kakuna'] = 5,

['pidgey'] = 5,

['pidgeotto'] = 20,

['pidgeot'] = 65,

['rattata'] = 1,

['raticate'] = 20,

['spearow'] = 5,

['fearow'] = 45,

['ekans'] = 10,

['arbok'] = 32,

['pikachu'] = 18,

['raichu'] = 42,

['sandshrew'] = 13,

['sandslash'] = 58,

['nidoranFE'] = 10,

['nidorina'] = 30,

['nidoqueen'] = 60,

['nidoranMA'] = 10,

['nidorino'] = 30,

['nidoking'] = 60,

['clefairy'] = 40,

['clefable'] = 10,

['vulpix'] = 10,

['ninetales'] = 60,

['jigglypuff'] = 5,

['wigglytuff'] = 40,

['zubat'] = 6,

['golbat'] = 28,

['oddish'] = 5,

['gloom'] = 25,

['vileplume'] = 50,

['paras'] = 5,

['parasect'] = 50,

['venonat'] = 13,

['venomoth'] = 40,

['diglett'] = 5,

['dugtrio'] = 40,

['meowth'] = 5,

['persian'] = 30,

['psyduck'] = 18,

['golduck'] = 55,

['mankey'] = 10,

['primeape'] = 50,

['growlithe'] = 18,

['arcanine'] = 80,

['poliwag'] = 5,

['poliwhirl'] = 25,

['poliwrath'] = 60,

}

 

-- Vá adicionando mais acima, como está ali ""

local function capturou(params)

doSendMagicEffect(getCreaturePosition(params.cid), 173)

doPlayerSendTextMessage(params.cid, 25, 'Parabens você capturou um ('..params.monster..').')

item = doCreateItemEx(params.ball)

doItemSetAttribute(item, "name", ""..params.monster.." "..params.ball2)

doItemSetAttribute(item, "level", params.level)

doItemSetAttribute(item, "aid", params.hp)

doPlayerAddItemEx(params.cid, item, true)

end

 

local function naocapturou(params)

 

end

 

function onUse(cid, item, fromPosition, itemEx, toPosition)

 

 

local monster = getItemName(itemEx.uid):match("dead (.*)")

if item.itemid == ID_GREATBALL then

chances = (chance[monster]) * 2

elseif item.itemid == ID_SUPERBALL then

chances = (chance[monster]) * 3

elseif item.itemid == ID_ULTRABALL then

chances = (chance[monster]) * 4

elseif item.itemid == 2521 then

chances = (chance[monster]) * 500

else

chances = chance[monster]

end

 

 

if not chance[monster] then

return doPlayerSendTextMessage(cid, 23, 'Você não pode capturar este pokemon!')

end

 

if math.random(1,1000) <= chances then

if item.itemid == 2149 then

doSendMagicEffect(toPosition, 24)

elseif item.itemid == 2147 then

doSendMagicEffect(toPosition, 202)

elseif item.itemid == 2146 then

doSendMagicEffect(toPosition, 198)

elseif item.itemid == 2150 then

doSendMagicEffect(toPosition, 200)

elseif item.itemid == 2521 then

doSendMagicEffect(toPosition, 24)

end

 

 

local hpmax = 0

local ball = pokebolas[item.itemid]

addEvent(capturou, 4000, {cid = cid, monster = monster, ball = ball[1], ball2 = ball[2], level = level[monster], hp = hpmax})

doRemoveItem(itemEx.uid, 1)

doRemoveItem(item.uid, 1)

else

if item.itemid == 2149 then

doSendMagicEffect(toPosition, 23)

elseif item.itemid == 2147 then

doSendMagicEffect(toPosition, 201)

elseif item.itemid == 2146 then

doSendMagicEffect(toPosition, 197)

elseif item.itemid == 2150 then

doSendMagicEffect(toPosition, 199)

elseif item.itemid == 2521 then

doSendMagicEffect(toPosition, 203)

end

doRemoveItem(itemEx.uid, 1)

doRemoveItem(item.uid, 1)

end

return TRUE

end

Link para o comentário
Compartilhar em outros sites

  • 0

tenta:

local chance = {

['abra'] = 99,

['kadabra'] = 65,

['alakazam'] = 20,

['gastly'] = 99,

['haunter'] = 65,

['gengar'] = 20,

['machop'] = 300,

['machoke'] = 80,

['machamp'] = 20,

['bellsprout'] = 400,

['weepinbell'] = 100,

['victreebel'] = 50,

['tentacool'] = 200,

['tentacruel'] = 35,

['geodude'] = 200,

['graveler'] = 100,

['golem'] = 20,

['ponyta'] = 150,

['rapidash'] = 50,

['slowpoke'] = 200,

['slowbro'] = 80,

['magnemite'] = 200,

['magneton'] = 70,

['farfetchd'] = 150,

['doduo'] = 150,

['dodrio'] = 70,

['seel'] = 240,

['dewgong'] = 20,

['grimer'] = 100,

['muk'] = 20,

['shellder'] = 100,

['cloyster'] = 20,

['elekid'] = 80,

['magby'] = 80,

['tyrogue'] = 80,

['pichu'] = 80,

['onix'] = 40,

['drowzee'] = 100,

['hypno'] = 35,

['krabby'] = 300,

['kingler'] = 60,

['voltorb'] = 200,

['electrode'] = 60,

['exeggcute'] = 100,

['exeggutor'] = 45,

['cubone'] = 150,

['marowak'] = 20,

['hitmonlee'] = 29,

['hitmonchan'] = 31,

['lickitung'] = 50,

['koffing'] = 200,

['weezing'] = 50,

['rhyhorn'] = 95,

['rhydon'] = 20,

['chansey'] = 28,

['tangela'] = 300,

['kangaskhan'] = 70,

['horsea'] = 800,

['seadra'] = 80,

['goldeen'] = 800,

['seaking'] = 60,

['staryu'] = 150,

['starmie'] = 30,

['mr.mime'] = 30,

['scyther'] = 30,

['jynx'] = 30,

['electabuzz'] = 30,

['magmar'] = 30,

['pinsir'] = 85,

['tauros'] = 85,

['magikarp'] = 900,

['gyarados'] = 40,

['lapras'] = 40,

['ditto'] = 1,

['eevee'] = 35,

['vaporeon'] = 10,

['flareon'] = 10,

['jolteon'] = 10,

['porygon'] = 35,

['omanyte'] = 100,

['omastar'] = 35,

['kabuto'] = 100,

['kabutops'] = 35,

['aerodactyl'] = 35,

['snorlax'] = 40,

['articuno'] = 1,

['zapdos'] = 1,

['moltres'] = 1,

['dratini'] = 90,

['dragonair'] = 40,

['dragonite'] = 1,

['mew'] = 1,

['mewtwo'] = 1,

['beedrill'] = 100,

['bulbasaur'] = 100,

['ivysaur'] = 50,

['venusaur'] = 20,

['charmander'] = 100,

['charmeleon'] = 50,

['charizard'] = 20,

['squirtle'] = 100,

['wartortle'] = 50,

['blastoise'] = 20,

['caterpie'] = 900,

['metapod'] = 150,

['butterfree'] = 100,

['weedle'] = 900,

['kakuna'] = 150,

['pidgey'] = 500,

['pidgeotto'] = 100,

['pidgeot'] = 40,

['rattata'] = 600,

['raticate'] = 100,

['spearow'] = 800,

['fearow'] = 78,

['ekans'] = 500,

['arbok'] = 50,

['pikachu'] = 120,

['raichu'] = 50,

['sandshrew'] = 200,

['sandslash'] = 20,

['nidoran F'] = 150,

['nidorina'] = 50,

['nidoqueen'] = 20,

['nidoran M'] = 150,

['nidorino'] = 50,

['nidoking'] = 20,

['clefairy'] = 200,

['clefable'] = 40,

['vulpix'] = 200,

['ninetales'] = 40,

['jigglypuff'] = 200,

['wigglytuff'] = 50,

['zubat'] = 800,

['golbat'] = 80,

['oddish'] = 800,

['gloom'] = 100,

['vileplume'] = 50,

['paras'] = 250,

['parasect'] = 20,

['venonat'] = 300,

['venomoth'] = 20,

['diglett'] = 500,

['dugtrio'] = 80,

['meowth'] = 500,

['persian'] = 50,

['psyduck'] = 100,

['golduck'] = 20,

['mankey'] = 150,

['primeape'] = 20,

['growlithe'] = 200,

['arcanine'] = 20,

['poliwag'] = 500,

['poliwhirl'] = 80,

['poliwrath'] = 20,

['elder charizard'] = 5,

['crystal onix'] = 5,

['red gyarados'] = 5,

['shiny horsea'] = 10,

['shiny seadra'] = 10,

['shiny krabby'] = 10,

['shiny kingler'] = 10,

['shiny tentacool'] = 10,

['shiny tentacruel'] = 10,

['shiny paras'] = 10,

['shiny parasect'] = 10,

['shiny rattata'] = 10,

['shiny raticate'] = 10,

['shiny grimer'] = 10,

['shiny muk'] = 10,

['shiny growlithe'] = 10,

['shiny arcanine'] = 10,

['shiny beedrill'] = 10,

['shiny butterfree'] = 10,

['shiny electrode'] = 10,

['shiny farfetchd'] = 10,

['shiny raichu'] = 10,

['shiny venomoth'] = 10,

['ivysaur2'] = 1,

['charmeleon2'] = 1,

['wartortle2'] = 1,

['pidgeotto2'] = 1,

['spearow2'] = 1,

['nidorina2'] = 1,

['nidorino2'] = 1,

['vulpix2'] = 1,

['paras2'] = 1,

['psyduck2'] = 1,

['growlithe2'] = 1,

['poliwhirl2'] = 1,

['kadabra2'] = 1,

['machoke2'] = 1,

['weepinbell2'] = 1,

['tentacool2'] = 1,

['graveler2'] = 1,

['shellder2'] = 1,

['haunter2'] = 1,

['drowzee2'] = 1,

['exeggcute2'] = 1,

['rhyhorn2'] = 1,

['magikarp2'] = 1,

['omanyte2'] = 1,

['kabuto2'] = 1,

['dragonair2'] = 1,

['shiny krabby2'] = 1,

['shiny tentacool2'] = 1,

['shiny horsea2'] = 1,

}

 

local ID_GREATBALL = 2146

local ID_SUPERBALL = 2147

local ID_ULTRABALL = 2150

local ID_MASTERBALL = 2554

local ID_CAPTUROU = 24

local ID_NAO_CAPTUROU = 23

 

local pokebolas = {

[2149] = {2532,"Pokeball"},

[2147] = {2653,"Superball"},

[2146] = {2652,"Greatball"},

[2150] = {2654,"Ultraball"},

[2521] = {2195,"Masterball"},

}

 

local level = {

['abra'] = 5,

['kadabra'] = 40,

['alakazam'] = 80,

['machop'] = 15,

['machoke'] = 40,

['machamp'] = 70,

['bellsprout'] = 5,

['weepinbell'] = 20,

['victreebel'] = 50,

['tentacool'] = 15,

['tentacruel'] = 70,

['geodude'] = 5,

['graveler'] = 35,

['golem'] = 65,

['ponyta'] = 10,

['rapidash'] = 50,

['slowpoke'] = 5,

['slowbro'] = 50,

['magnemite'] = 10,

['magneton'] = 40,

['farfetchd'] = 25,

['duduo'] = 15,

['dodrio'] = 45,

['seel'] = 15,

['dewgong'] = 65,

['grimer'] = 10,

['muk'] = 40,

['shellder'] = 5,

['cloyster'] = 60,

['gastly'] = 90,

['haunter'] = 50,

['gengar'] = 10,

['onix'] = 50,

['drowzee'] = 18,

['hypno'] = 55,

['krabby'] = 5,

['klinger'] = 35,

['voltorb'] = 5,

['electrode'] = 40,

['exeggcute'] = 8,

['exeggutor'] = 45,

['cubone'] = 15,

['marowak'] = 52,

['hitmonlee'] = 70,

['hitmonchan'] = 65,

['lickitung'] = 40,

['koffing'] = 10,

['weezing'] = 38,

['rhyhorn'] = 20,

['rhydon'] = 68,

['chansey'] = 50,

['tangela'] = 30,

['kangaskhan'] = 70,

['horsea'] = 5,

['seadra'] = 36,

['goldeen'] = 5,

['seaking'] = 32,

['staryu'] = 15,

['starmie'] = 40,

['mr.Mime'] = 60,

['scyther'] = 80,

['jynx'] = 70,

['electabuzz'] = 72,

['magmar'] = 72,

['pinsir'] = 10,

['tauros'] = 25,

['magikarp'] = 1,

['gyarados'] = 70,

['lapras'] = 40,

['ditto'] = 100,

['eevee'] = 15,

['vaporeon'] = 50,

['flareon'] = 50,

['jolteon'] = 50,

['porygon'] = 40,

['omanyte'] = 20,

['omastar'] = 10,

['kabuto'] = 20,

['kabutops'] = 10,

['snorlax'] = 35,

['articuno'] = 150,

['zapdos'] = 150,

['moltres'] = 150,

['dratini'] = 10,

['dragonair'] = 50,

['dragonite'] = 80,

['mew'] = 350,

['mewtwo'] = 200,

['beedrill'] = 25,

['bulbasaur'] = 5,

['ivysaur'] = 35,

['venusaur'] = 75,

['charmander'] = 5,

['charmeleon'] = 35,

['charizard'] = 75,

['squirtle'] = 5,

['wartortle'] = 35,

['blastoise'] = 75,

['caterpie'] = 1,

['metapod'] = 5,

['butterfree'] = 25,

['weedle'] = 1,

['kakuna'] = 5,

['pidgey'] = 5,

['pidgeotto'] = 20,

['pidgeot'] = 65,

['rattata'] = 1,

['raticate'] = 20,

['spearow'] = 5,

['fearow'] = 45,

['ekans'] = 10,

['arbok'] = 32,

['pikachu'] = 18,

['raichu'] = 42,

['sandshrew'] = 13,

['sandslash'] = 58,

['nidoranFE'] = 10,

['nidorina'] = 30,

['nidoqueen'] = 60,

['nidoranMA'] = 10,

['nidorino'] = 30,

['nidoking'] = 60,

['clefairy'] = 40,

['clefable'] = 10,

['vulpix'] = 10,

['ninetales'] = 60,

['jigglypuff'] = 5,

['wigglytuff'] = 40,

['zubat'] = 6,

['golbat'] = 28,

['oddish'] = 5,

['gloom'] = 25,

['vileplume'] = 50,

['paras'] = 5,

['parasect'] = 50,

['venonat'] = 13,

['venomoth'] = 40,

['diglett'] = 5,

['dugtrio'] = 40,

['meowth'] = 5,

['persian'] = 30,

['psyduck'] = 18,

['golduck'] = 55,

['mankey'] = 10,

['primeape'] = 50,

['growlithe'] = 18,

['arcanine'] = 80,

['poliwag'] = 5,

['poliwhirl'] = 25,

['poliwrath'] = 60,

}

 

-- Vá adicionando mais acima, como está ali ""

local function capturou(params)

doSendMagicEffect(getCreaturePosition(params.cid), 173)

doPlayerSendTextMessage(params.cid, 25, 'Parabens você capturou um ('..params.monster..').')

item = doCreateItemEx(params.ball)

doItemSetAttribute(item, "name", ""..params.monster.." "..params.ball2)

doItemSetAttribute(item, "level", params.level)

doItemSetAttribute(item, "aid", params.hp)

doPlayerAddItemEx(params.cid, item, true)

end

 

local function naocapturou(params)

 

end

 

function onUse(cid, item, fromPosition, itemEx, toPosition)

 

 

local monster = getItemName(itemEx.uid):match("dead (.*)")

if item.itemid == ID_GREATBALL then

chances = (chance[monster]) * 2

elseif item.itemid == ID_SUPERBALL then

chances = (chance[monster]) * 3

elseif item.itemid == ID_ULTRABALL then

chances = (chance[monster]) * 4

elseif item.itemid == 2521 then

chances = (chance[monster]) * 500

else

chances = chance[monster]

end

 

 

if not chance[monster] then

return doPlayerSendTextMessage(cid, 23, 'Você não pode capturar este pokemon!')

end

 

if math.random(1,1000) <= chances then

if item.itemid == 2149 then

doSendMagicEffect(toPosition, 24)

elseif item.itemid == 2147 then

doSendMagicEffect(toPosition, 202)

elseif item.itemid == 2146 then

doSendMagicEffect(toPosition, 198)

elseif item.itemid == 2150 then

doSendMagicEffect(toPosition, 200)

elseif item.itemid == 2521 then

doSendMagicEffect(toPosition, 24)

end

 

 

local hpmax = 0

local ball = pokebolas[item.itemid]

addEvent(capturou, 4000, {cid = cid, monster = monster, ball = ball[1], ball2 = ball[2], level = level[monster], hp = hpmax})

doRemoveItem(itemEx.uid, 1)

doRemoveItem(item.uid, 1)

else

if item.itemid == 2149 then

doSendMagicEffect(toPosition, 23)

elseif item.itemid == 2147 then

doSendMagicEffect(toPosition, 201)

elseif item.itemid == 2146 then

doSendMagicEffect(toPosition, 197)

elseif item.itemid == 2150 then

doSendMagicEffect(toPosition, 199)

elseif item.itemid == 2521 then

doSendMagicEffect(toPosition, 203)

end

doRemoveItem(itemEx.uid, 1)

doRemoveItem(item.uid, 1)

end

return TRUE

end

 

 

O problema já havia sido resolvido, não era necessário você postar..

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...