asisin 0 Postado Agosto 13, 2013 Share Postado Agosto 13, 2013 Iae Galera, eu não sei se estou postando no local correto mais vamos lá é o seguinte: O crystal onix do servidor que eu uso o catch dele ta bugado, o cara joga 50 ub + e não cata e quando joga master ball o servidor cai. Alguem poderia me ajudar? uso um PDA edited que tem ai no xtibia um que tem addons e icon, não me lembro quem o criou.. Rep + pra quem me ajudar Link para o comentário https://xtibia.com/forum/topic/219413-encerrado-bug-no-catch-shiny-onix/ Compartilhar em outros sites More sharing options...
Avronex 104 Postado Agosto 13, 2013 Share Postado Agosto 13, 2013 Voce tem que postar seu catch.lua pra gente poder dar uma olhada Link para o comentário https://xtibia.com/forum/topic/219413-encerrado-bug-no-catch-shiny-onix/#findComment-1550527 Compartilhar em outros sites More sharing options...
asisin 0 Postado Agosto 13, 2013 Autor Share Postado Agosto 13, 2013 local pos = {x=1152,y=1412,z=7} local ballcatch = { --id normal, id da ball shiy [2394] = {cr = 20, on = 24, off = 23, ball = {11826, 11737}, send = 47, typeee = "normal"}, --alterado v1.9 \/ [2391] = {cr = 30, on = 198, off = 197, ball = {11832, 11740}, send = 48, typeee = "great"}, [2393] = {cr = 50, on = 202, off = 201, ball = {11835, 11743}, send = 46, typeee = "super"}, [2392] = {cr = 70, on = 200, off = 199, ball = {11829, 11746}, send = 49, typeee = "ultra"}, [14445] = {cr = 69, on = 204, off = 203, ball = {14446, 14446}, send = 35, typeee = "saffari"}, [14484] = {cr = 10000, on = 200, off = 199, ball = {14480, 14480}, send = 49, typeee = "Master Ball"}, } function onUse(cid, item, frompos, item3, topos) local item2 = getTopCorpse(topos) if item2 == null then return true end if getItemAttribute(item2.uid, "catching") == 1 then return true end if getItemAttribute(item2.uid, "golden") and getItemAttribute(item2.uid, "golden") == 1 then return doPlayerSendCancel(cid, "You can't try to catch a pokemon in the Golden Arena!") end local lendarios = {"Mew", "Mewtwo", "Moltres", "Zapdos", "Articuno"} if isInArray(lendarios, name) then doPlayerSendTextMessage(cid, "You can't try to catch a Lendary Pokemon!") return true end local name = string.lower(getItemNameById(item2.itemid)) --alterado v1.9 \/ name = string.gsub(name, "fainted ", "") name = string.gsub(name, "defeated ", "") name = doCorrectPokemonName(name) local x = pokecatches[name] local storage = newpokedex[name].stoCatch --alterado v1.9 \/ if getPlayerStorageValue(cid, storage) == -1 or not string.find(getPlayerStorageValue(cid, storage), ";") then setPlayerStorageValue(cid, storage, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0, storm = 0;") end if not x then return true end local owner = getItemAttribute(item2.uid, "corpseowner") if owner and isCreature(owner) and isPlayer(owner) and cid ~= owner then doPlayerSendCancel(cid, "You are not allowed to catch this pokemon.") return true end local newidd = isShinyName(name) and ballcatch[item.itemid].ball[2] or ballcatch[item.itemid].ball[1] --alterado v1.9 local typeee = ballcatch[item.itemid].typeee local catchinfo = {} catchinfo.rate = ballcatch[item.itemid].cr catchinfo.catch = ballcatch[item.itemid].on catchinfo.fail = ballcatch[item.itemid].off catchinfo.newid = newidd catchinfo.name = doCorrectPokemonName(name) catchinfo.topos = topos catchinfo.chance = x.chance doSendDistanceShoot(getThingPos(cid), topos, ballcatch[item.itemid].send) doRemoveItem(item.uid, 1) local d = getDistanceBetween(getThingPos(cid), topos) if getPlayerStorageValue(cid, 98796) >= 1 and getPlayerItemCount(cid, 14445) <= 0 then --alterado v1.9 setPlayerStorageValue(cid, 98796, -1) setPlayerStorageValue(cid, 98797, -1) doTeleportThing(cid, pos) doSendMagicEffect(getThingPos(cid), 21) doPlayerSendTextMessage(cid, 27, "You spend all your saffari balls, good luck in the next time...") end addEvent(doSendPokeBall, d * 70 + 100 - (d * 14) , cid, catchinfo, false, false, typeee) addEvent(doSendMagicEffect, (d * 70 + 100 - (d * 14)) - 100, topos, 3) return true end Link para o comentário https://xtibia.com/forum/topic/219413-encerrado-bug-no-catch-shiny-onix/#findComment-1550531 Compartilhar em outros sites More sharing options...
Soulviling 66 Postado Agosto 13, 2013 Share Postado Agosto 13, 2013 muda no configuration o cacth ["Shiny Onix"] = {chance = XXX, corpse = 12582}, XXX= igual a chance que tem de catar, coloca 500 na mastar ball tem que mandar o script, Link para o comentário https://xtibia.com/forum/topic/219413-encerrado-bug-no-catch-shiny-onix/#findComment-1550607 Compartilhar em outros sites More sharing options...
Stigal 585 Postado Abril 21, 2018 Share Postado Abril 21, 2018 A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta. + Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda. * Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado. Link para o comentário https://xtibia.com/forum/topic/219413-encerrado-bug-no-catch-shiny-onix/#findComment-1735077 Compartilhar em outros sites More sharing options...
Posts Recomendados