Ir para conteúdo

arthurmgoncalves

Membro
  • Registro em

  • Última visita

  1. Queria saber se alguem pode me ajudar com um codigo de passive system (aquele que o poke so ataca o player quando for atacado) para meu poketibia tfs 0.3.6?
  2. isso queria saber a programar como fazer para cada script do server funcionar essas coisas assim
  3. Alguem poderia me mandar um tutorial pra mecher em source queria editar source para poketibia
  4. acho que tbm tem que mecher no some functions.lua que fica na pasta /lib do seu OT, procura alguma coisa parecida com isso if string.find(tostring(getCreatureName(cid)), "Shiny") then e manda pra mim
  5. @luangop com esse ai acho que tem que fazer varias modificaçoes mas com esse outro script funciona normal, mas nao tem o valor de quantas stones precisa, so usa uma shiny stone tem como configurar o valor de quantas stones posso usar pra ter o shiny o script: function onUse(cid, item, frompos, item2, topos) local cfg = { eff_one = 15, --Efeito que irá sair ao evoluir o pokémon (esse efeito aparecerá no pokémon) eff_two = 18, --Efeito que irá sair ao evoluir o pokémon (esse efeito aparecerá no player) proibidos = false, --Terá pokémons proibidos para evoluir? [true/sim] [false/não] } local can_not = {} if cfg.proibidos == true then can_not = {"Espeon", "Umbreon", "Magneton"} --Pokémons que não podem evoluir. end if not isMonster(item2.uid) or not isSummon(item2.uid) then return true end if not pokes["Shiny "..getCreatureName(item2.uid)] then return doPlayerSendCancel(cid, "Esse pokémon não possui uma forma shiny.") end local minlevel = pokes["Shiny "..getCreatureName(item2.uid)].level if not isPlayer(getCreatureMaster(item2.uid)) or getCreatureMaster(item2.uid) ~= cid then return doPlayerSendCancel(cid, "Você só pode evoluir seu próprio pokémon.") end if getPlayerLevel(cid) < minlevel then return doPlayerSendCancel(cid, "Você não tem o level necessário para evoluir esse pokémon. ("..minlevel..").") end if isInArray(can_not, getCreatureName(item2.uid)) then return doPlayerSendCancel(cid, "Você não pode evoluir esse pokémon!") end local nome = "Shiny "..getCreatureName(item2.uid) local owner = getCreatureMaster(item2.uid) local pokeball = getPlayerSlotItem(cid, 8) local description = "Contains a "..nome.."." local pct = getCreatureHealth(item2.uid) / getCreatureMaxHealth(item2.uid) doItemSetAttribute(pokeball.uid, "hp", pct) doItemSetAttribute(pokeball.uid, "poke", nome) doItemSetAttribute(pokeball.uid, "description", "Contains a "..nome..".") doPlayerSendTextMessage(cid, 27, "Parabéns! Seu "..getPokeName(item2.uid).." se transformou em um "..nome.."!") doSendMagicEffect(getThingPos(item2.uid), cfg.eff_one) doTransformItem(getPlayerSlotItem(cid, 7).uid, fotos[nome]) doSendMagicEffect(getThingPos(cid), cfg.eff_two) local oldpos = getThingPos(item2.uid) local oldlod = getCreatureLookDir(item2.uid) doRemoveCreature(item2.uid) doSummonMonster(cid, nome) local pk = getCreatureSummons(cid)[1] doTeleportThing(pk, oldpos, false) doCreatureSetLookDir(pk, oldlod) doRemoveItem(item.uid, 1) doAddPokemonInOwnList(cid, nome) local happy = getItemAttribute(pokeball.uid, "happy") doItemSetAttribute(pokeball.uid, "happy", happy + happyGainedOnEvolution) if happy + happyGainedOnEvolution > 255 then doItemSetAttribute(pokeball.uid, "happy", 255) end adjustStatus(pk, pokeball.uid, true, false) if useKpdoDlls then doUpdateMoves(cid) end return true
  6. imagino que seja esse aqui if string.find(tostring(getCreatureName(cid)), "Shiny") then local newName = tostring(getCreatureName(cid)):match("Shiny (.*)") return newName end apaga e testa pra ver
  7. Ah man, tem nada haver com isso ai não, tem haver com o level system msm, vai em level system da ctrl+f procura por if string.find(tostring(nick), "Shiny") then nick = tostring(nick):match("Shiny (.*)") end e apaga e salva o arquivo só isso
  8. Vlw, man pelo script script da shiny stone: local evo = { ["Gengar"] = {"Shiny Gengar", 1}, } local balls = { [11826] = {newBall = 11826}, [11832] = {newBall = 11832}, [11835] = {newBall = 11835}, [11829] = {newBall = 11829}, } function onUse(cid, item, fromPosition, itemEx, toPosition) if isMonster(itemEx.uid) and getCreatureMaster(itemEx.uid) == cid then local monster = getCreatureName(itemEx.uid) if evo[monster] then if getPlayerItemCount(cid, item.itemid) >= evo[monster][2] then doPlayerSendTextMessage(cid, 27, "Parabens! Seu "..getPokeName(itemEx.uid).." evoluiu para "..evo[monster][1].."!") doSendMagicEffect(getThingPos(itemEx.uid), 18) doRemoveCreature(itemEx.uid) doPlayerRemoveItem(cid, item.itemid, evo[monster][2]-1) doRemoveItem(item.uid, 1) doSummonMonster(cid,evo[monster][1]) local pokeball = getPlayerSlotItem(cid, 8) doItemSetAttribute(pokeball.uid, "poke", evo[monster][1]) doItemSetAttribute(pokeball.uid, "level", pokes[evo[monster][1]].level) doItemSetAttribute(ball, "hp", 1) doItemSetAttribute(ball, "happy", 110) local pk = getCreatureSummons(cid)[1] local oldpos = getThingPos(itemEx.uid) local oldlod = getCreatureLookDir(itemEx.uid) local oldlvl = getPokemonLevel(itemEx.uid) doTeleportThing(pk, oldpos, false) doCreatureSetLookDir(pk, oldlod) sendFinishEvolutionEffect(pk, true) addEvent(sendFinishEvolutionEffect, 550, pk, true) addEvent(sendFinishEvolutionEffect, 1050, pk) local status = getPokemonStatus(getCreatureName(pk)) local off = status.off local def = status.def local agi = status.agi local spatk = status.spatk local vit = status.vit doPlayerSendTextMessage(cid, 27, "Evolution bonus: • Offense: +"..doMathDecimal(off).." • Defense: +"..doMathDecimal(def).." • Spc. Atk: +"..doMathDecimal(spatk).." • Agility: +"..doMathDecimal(agi).." • Vitality: +"..doMathDecimal(vit).."") adjustStatus(pk, pokeball.uid, true, false) return TRUE else return doPlayerSendTextMessage(cid, 27, "You need atleast ".. evo[monster][2] .." stones to do it!") end end end return FALSE end
  9. aqui ta abrindo como configuration.lua copia e cola aqui o começo de um deles pra eu ver
  10. posta o script de algum shiny ai pra eu ver
  11. e aquilo que o cara disse la em cima sobre coloca o nome do shiny no arquivo dele vc fez?
  12. Cara normalmente nos arquivos do shinys na pasta monsters eles ja ficam com o nome shiny msm são poucos os que ficam sem isso, mas vc ja fez o teste pra se é so isso msm, e no configuration onde tem wildBeforeNames = false adiciona isso shinyBeforeNames = true em baixo ficando assim wildBeforeNames = false shinyBeforeNames = true
  13. Cara até onde eu sei não tem nada a ver com o arquivo level system, e sim com o arquivo configuration.lua, esse arquivo fica na pasta /lib do seu Ot, la vai ter isso escrito shinyBeforeNames = false, onde ta false muda pra true, que vai aparecer o nome dos shinys, pelo menos é para aparecer, qualquer coisa me diz se funcionou
  14. como assim conhecimento na minha base? Boost stone queria que falha-se a partir da 5º e a porcentagem 50% Script da Boost stone: function onUse(cid, item, topos, item2, frompos) local myball = getPlayerSlotItem(cid, 8) local boost = getItemAttribute(myball.uid, "boost") or 0 local boosts = 0 local summon = getCreatureSummons(cid)[1] if boost >= 50 then return doPlayerSendCancel(cid, "[BOOST VIP] Seu Pokemon Esta No Boost Maximo!.") end if #getCreatureSummons(cid) >= 1 then boosts = boosts + 1 ----- Testar Ainda local pokemon = getItemAttribute(myball.uid, "poke") local off = pokes[pokemon].offense * boost_rate * boosts local def = pokes[pokemon].defense * boost_rate * boosts local agi = pokes[pokemon].agility * boosts local spatk = pokes[pokemon].specialattack * boost_rate * boosts local vit = pokes[pokemon].vitality * boost_rate * boosts doSetItemAttribute(myball.uid, "boost", boost + boosts) doItemSetAttribute(myball.uid, "offense", getItemAttribute(myball.uid, "offense") + off) doItemSetAttribute(myball.uid, "defense", getItemAttribute(myball.uid, "defense") + def) doItemSetAttribute(myball.uid, "speed", getItemAttribute(myball.uid, "speed") + agi) doItemSetAttribute(myball.uid, "specialattack", getItemAttribute(myball.uid, "specialattack") + spatk) doItemSetAttribute(myball.uid, "vitality", getItemAttribute(myball.uid, "vitality") + vit) doRemoveItem(item.uid, 1) doSendFlareEffect(getThingPos(cid)) doSendFlareEffect(getThingPos(summon)) doSendAnimatedText(getThingPos(summon), "Boost UP!", 215) doPlayerSendTextMessage(cid, 27, "[BOOST VIP] Parabens, Seu Pokemon "..pokemon..", Foi Boostado .") doPlayerSendTextMessage(cid, 27, "[BOOST VIP] Agora Seu Pokemon "..pokemon.." Esta com o Boost +["..boosts + boost.."].") else return doPlayerSendCancel(cid, "[BOOST VIP] So Pode Usar em Seus Pokemons!.") end return true end
  15. Queria saber como crio passivas para pokemons, tem como alguem me ajudar nisso, tipo adicionar uma nova passiva

Informação Importante

Confirmação de Termo