Ir para conteúdo
Banner com Efeitos

Gnius

Membro
  • Registro em

  • Última visita

Tudo que Gnius postou

  1. Gnius postou uma resposta no tópico em Suporte Tibia OTServer
    Galera Estou com um probleminha no sistema de surf O erro é o seguinte, O player surfa normalmente +na hora de sair do surf,o pokemon morre. Estranho que só ocorre em alguns lugares,na praia e em lavender não acontece,porém em lugares que tenha matos,acaba acontecendo esse erro Já verifiquei o id das bordas e todas estão corretas E se eu remover essa linha doRemoveCreature(getCreatureSummons(cid)[1]) O pokemon não morre porém quando eu vou surfar ele continua no chão Id da borda 4647 4646 script/surf.lua
  2. Sim, Na verdade eu queria somente o piso. Eu usaria esse piso para diversas coisa entendeu? Eu queria o piso assim que você passar por uma conta,não teria mais como passar novamente com outro char o outra conta Pode fechar o tópico. Editei a script aqui e funcionou Pra quem quiser usar tá ai function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition) if pokemon == "" then return true end if getGlobalStorageValue(cid, getPlayerIp(cid)) <= 0 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabens voce passou") setGlobalStorageValue(cid, getPlayerIp(cid), 1) else doPlayerSendTextMessage(cid, 27, "Desculpe mais a passagem so e liberada um char por pc.") doTeleportThing(cid, fromPosition) return end return true end
  3. function onUse(cid, item, fromPos, item2, toPos) local premios = {12618, 2160, 11449, 11441, 11443} local tempo = 24*60*60 -- Em segundos if item.actionid == 1891 then if os.time()-getPlayerStorageValue(cid, 48613) > tempo then local randomChance = math.random(1, #premios) doPlayerAddItem(cid, premios[randomChance]) setPlayerStorageValue(cid, 48613, os.time()) else return doPlayerSendCancel(cid, "Parece que voce ja pegou o presente,aguarde 1dia para pegar novamente.") end return true end end
  4. Não seria pra ganhar pokemon,somente para passar no piso impedindo de passar novamente com outro chars ou outras contas.
  5. Não foi +também não deu nenhum erro O sistema que eu queria não seria esse. Porque por exemplo Eu botei um inicial no meu cp e para os players não ficarem criando muitas contas para pegar esse inicial, eu iria por esse sistema. Por exemplo: Passei no piso,meu ip ficou marcado. Deslogo da minha conta e logo na outra e mesmo assim não iria passar porque já passei la 1x
  6. Olá galera do tk,eu gostaria de criar uma script em que consiste apenas 1 player por ip passar por aquele piso. Por exemplo: Creio 1 conta com e passo no piso uma vez,ai se tentar passar novamente iria dar erro porque já passou,mesmo eu usando outra conta ou outro char também daria erro.
  7. Obrigado,funcionou
  8. Olá galera do tk,gostaria de uma script que quando um pokemon morre-se o player que mato e os outros playqers que ajudou a matar também ganhariam a storage. Por exemplo: Matei 1 mewtwo,mais as outras pessoas que atakacou também ganharia a storage
  9. Olá galera do tk,gostaria de saber como eu altero o ban system,queria deixar igual do otpokemon,que quando desse ban não mostraria no global,somente para o membro da staff que deu ban por exemplo: Dei ban em 1 player O ban só iria mostrar pra min
  10. Galera do tk,gostaria de saber se tem algum sistema de top level e top fishing igual o do otpokemon,que fica-se no lado direito do site,eu já tenho o layout do site,agr só falta adicionar o sistema
  11. Ola galera do tk,tentei procurar um sistema de rank catch pra por no site mais não consegui achar,alguém ai teria esse sistema? Ele é seria igual o do otp.
  12. A sua vocations.xml não funcionou,mais a do fishing poketibia no tk funcionou,brigadão por me informar sobre o tópico
  13. Olá galera do tk,gostaria de saber como eu baixo o EXP da minha pesca sem erro Eu já alterei o rateskill do config.lua,já alterei o arquivo fishing.lua,já mechi nas fishing das vocations mais mesmo assim não vai Rateskill o minimo que vai é 1 porque quando ponho por exemplo 0.5 o fishing não sobe mais E quando vou alterar as fishing das vocations o serve crasha Por exemplo: Fui na vocations e deixei o fishing 2.0 (padrão é 1.0),abro oservidor normal sem erro+quando vou pescar o servidor trava e não volta mais e também não da nenhum erro Config.lua rateSkill = 1 Data/XML/vocations.xml Data/action/tools/fishing.lua
  14. Procure sqlPass = "imperiaonline" Deixe assim sqlPass = "" Procure sqlDatabase = "cdcol" Deixe assim sqlDatabase = "forgottenserver" Como ali ta mostrando,deve ser algo com Seu SQLITE,ele não está conseguindo executar o comando corretamente Caso não funcione,tente trocar a database do serve,ele não está conseguindo executar corretamente as funções da vocação e account manager
  15. @gabriezika eu testei aqui,porém o pokemon fica com a vida negativa. Por exemplo 16-/-37. e só toma um rit pra qualquer poke que ele ja morre.
  16. Então se eu abaixar essa parte,iria baixar de todos os pokemons?
  17. Oque mudou?
  18. Gnius postou uma resposta no tópico em Suporte Tibia OTServer
    E quando o player usa area em pvp,ele mesmo se mata Vlw mano,aparentimente funcionou certinho,brigadão mesmo
  19. Gnius postou uma resposta no tópico em Suporte Tibia OTServer
    Agora deu esse erro quando fui iniciar na distro [18/11/2017 16:20:34] [Error - LuaScriptInterface::loadFile] datapack/creaturescripts/scripts/exp2.0.lua:536: 'end' expected (to close 'function' at line 59) near '<eof>' [18/11/2017 16:20:34] [Warning - Event::loadScript] Cannot load script (datapack/creaturescripts/scripts/exp2.0.lua) [18/11/2017 16:20:34] datapack/creaturescripts/scripts/exp2.0.lua:536: 'end' expected (to close 'function' at line 59) near '<eof>'
  20. Gnius postou uma resposta no tópico em Suporte Tibia OTServer
    Ola galera do tk,estou com um problema no creaturescripts do meu servidor Está dando esse erro [18/11/2017 15:17:03] [Error - CreatureScript Interface] [18/11/2017 15:17:03] datapack/creaturescripts/scripts/exp2.0.lua:onStatsChange [18/11/2017 15:17:03] Description: [18/11/2017 15:17:03] datapack/creaturescripts/scripts/exp2.0.lua:363: attempt to index field '?' (a nil value) [18/11/2017 15:17:03] stack traceback: [18/11/2017 15:17:03] datapack/creaturescripts/scripts/exp2.0.lua:363: in function <datapack/creaturescripts/scripts/exp2.0.lua:63> Script do exp2.0
  21. function adjustWildPoke(cid, optionalLevel) if isMonster(cid) and pokes[getCreatureName(cid)] then local level = (optionalLevel and optionalLevel >= 1) and optionalLevel or getPokemonLevel(cid) --alterado v1.8 setPlayerStorageValue(cid, 1000, level) --alterado v1.8 setPlayerStorageValue(cid, 1001, pokes[getCreatureName(cid)].offense * level) setPlayerStorageValue(cid, 1002, pokes[getCreatureName(cid)].defense) setPlayerStorageValue(cid, 1003, pokes[getCreatureName(cid)].agility) setPlayerStorageValue(cid, 1004, pokes[getCreatureName(cid)].vitality * level) setPlayerStorageValue(cid, 1005, pokes[getCreatureName(cid)].specialattack * level * 5) doRegainSpeed(cid) --alterado! setCreatureMaxHealth(cid, (getVitality(cid) * HPperVITwild)) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) if pokes[getCreatureName(cid)].exp then local exp = pokes[getCreatureName(cid)].exp * baseExpRate + pokes[getCreatureName(cid)].vitality * pokemonExpPerLevelRate setPlayerStorageValue(cid, 1006, (exp * generalExpRate/2)*10) if getPlayerStorageValue(cid, 22546) == 1 then setPlayerStorageValue(cid, 1006, 750) doSetCreatureDropLoot(cid, false) end end end end function getPokemonXMLOutfit(name) --alterado v1.9 \/ local path = "data/monster/pokes/Shiny/"..name..".xml" local tpw = io.type(io.open(path)) if not tpw then path = "data/monster/pokes/geracao 2/"..name..".xml" tpw = io.type(io.open(path)) end if not tpw then path = "data/monster/pokes/geracao 1/"..name..".xml" tpw = io.type(io.open(path)) end if not tpw then path = "data/monster/pokes/"..name..".xml" tpw = io.type(io.open(path)) end if not tpw then return print("[getPokemonXMLOutfit] Poke with name: "..name.." ins't in any paste on monster/pokes/") and 2 end local arq = io.open(path, "a+") local txt = arq:read("*all") arq:close() local a, b = txt:find('look type="(.-)"') txt = string.sub(txt, a + 11, b - 1) return tonumber(txt) end function doEvolutionOutfit(cid, oldout, outfit) if not isCreature(cid) then return true end if getCreatureOutfit(cid).lookType == oldout then doSetCreatureOutfit(cid, {lookType = outfit}, -1) else doSetCreatureOutfit(cid, {lookType = oldout}, -1) end end function doSendEvolutionEffect(cid, pos, evolution, turn, ssj, evolve, f, h) if not isCreature(cid) then doSendAnimatedText(pos, "CANCEL", 215) return true end if evolve then doEvolvePokemon(getCreatureMaster(cid), {uid = cid}, evolution, 0, 0) return true end doSendMagicEffect(pos, 18) if ssj then sendSSJEffect(evo) end doEvolutionOutfit(cid, f, h) addEvent(doSendEvolutionEffect, math.pow(1900, turn/20), cid, getThingPos(cid), evolution, turn - 1, turn == 19, turn == 2, f, h) end function sendSSJEffect(cid) if not isCreature(cid) then return true end local pos1 = getThingPos(cid) local pos2 = getThingPos(cid) pos2.x = pos2.x + math.random(-1, 1) pos2.y = pos2.y - math.random(1, 2) doSendDistanceShoot(pos1, pos2, 37) addEvent(sendSSJEffect, 45, cid) end function sendFinishEvolutionEffect(cid, alternate) if not isCreature(cid) then return true end local pos1 = getThingPos(cid) if alternate then local pos = { [1] = {-2, 0}, [2] = {-1, -1}, [3] = {0, -2}, [4] = {1, -1}, [5] = {2, 0}, [6] = {1, 1}, [7] = {0, 2}, [8] = {-1, 1}} for a = 1, 8 do local pos2 = getThingPos(cid) pos2.x = pos2.x + pos[a][1] pos2.y = pos2.y + pos[a][2] local pos = getThingPos(cid) doSendDistanceShoot(pos2, pos, 37) addEvent(doSendDistanceShoot, 300, pos, pos2, 37) end else for a = 0, 3 do doSendDistanceShoot(pos1, getPosByDir(pos1, a), 37) end for a = 4, 7 do addEvent(doSendDistanceShoot, 600, pos1, getPosByDir(pos1, a), 37) end end end function doEvolvePokemon(cid, item2, theevo, stone1, stone2) if not isCreature(cid) then return true end if not pokes[theevo] or not pokes[theevo].offense then doReturnPokemon(cid, item2.uid, getPlayerSlotItem(cid, 8), pokeballs[getPokeballType(getPlayerSlotItem(cid, 8).itemid)].effect, false, true) return true end local owner = getCreatureMaster(item2.uid) local pokeball = getPlayerSlotItem(cid, 8) local description = "Contains a "..theevo.."." local pct = getCreatureHealth(item2.uid) / getCreatureMaxHealth(item2.uid) doItemSetAttribute(pokeball.uid, "hp", pct) doItemSetAttribute(pokeball.uid, "poke", theevo) doItemSetAttribute(pokeball.uid, "description", "Contains a "..theevo..".") doPlayerSendTextMessage(cid, 27, "Congratulations! Your "..getPokeName(item2.uid).." evolved into a "..theevo.."!") doSendMagicEffect(getThingPos(item2.uid), 18) doTransformItem(getPlayerSlotItem(cid, 7).uid, fotos[theevo]) doSendMagicEffect(getThingPos(cid), 173) local oldpos = getThingPos(item2.uid) local oldlod = getCreatureLookDir(item2.uid) doRemoveCreature(item2.uid) doSummonMonster(cid, theevo) local pk = getCreatureSummons(cid)[1] doTeleportThing(pk, oldpos, false) doCreatureSetLookDir(pk, oldlod) sendFinishEvolutionEffect(pk, true) addEvent(sendFinishEvolutionEffect, 550, pk, true) addEvent(sendFinishEvolutionEffect, 1050, pk) doPlayerRemoveItem(cid, stone1, 1) doPlayerRemoveItem(cid, stone2, 1) doAddPokemonInOwnList(cid, theevo) 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 end function doMathDecimal(number, casas) if math.floor(number) == number then return number end local c = casas and casas + 1 or 3 for a = 0, 10 do if math.floor(number) < math.pow(10, a) then local str = string.sub(""..number.."", 1, a + c) return tonumber(str) end end return number end function doAdjustWithDelay(cid, pk, health, vit, status) if isCreature(cid) then adjustStatus(pk, getPlayerSlotItem(cid, 8).uid, health, vir, status) end end function adjustStatus(pk, item, health, vite, conditions) if not isCreature(pk) then return true end local gender = getItemAttribute(item, "gender") and getItemAttribute(item, "gender") or 0 addEvent(doCreatureSetSkullType, 10, pk, gender) setPlayerStorageValue(pk, 1001, pokes[getCreatureName(pk)].offense * (getMasterLevel(pk) + getPokemonBoost(pk))) setPlayerStorageValue(pk, 1002, pokes[getCreatureName(pk)].defense) setPlayerStorageValue(pk, 1003, pokes[getCreatureName(pk)].agility) setPlayerStorageValue(pk, 1004, pokes[getCreatureName(pk)].vitality * 75) setPlayerStorageValue(pk, 1005, pokes[getCreatureName(pk)].specialattack * (getMasterLevel(pk) + getPokemonBoost(pk) )*9) if vite == true then local pct = getCreatureHealth(pk) / getCreatureMaxHealth(pk) local vit = getVitality(pk) setCreatureMaxHealth(pk, ( vit * HPperVITsummon )) doCreatureAddHealth(pk, pct * vit * HPperVITsummon) end doRegainSpeed(pk) local nick = getItemAttribute(item, "poke") if isGhostPokemon(pk) then setPlayerStorageValue(pk, 8981, 1) updateGhostWalk(pk) end if getItemAttribute(item, "nick") then nick = getItemAttribute(item, "nick") end setPlayerStorageValue(pk, 1007, nick) local lvl = getItemAttribute(item, "level") or 0 nick = nick doCreatureSetNick(pk, nick) if not getItemAttribute(item, "happy") then doItemSetAttribute(item, "happy", 120) end if not getItemAttribute(item, "hunger") then doItemSetAttribute(item, "hunger", 5) end local happy = getItemAttribute(item, "happy") if happy < 0 then happy = 1 end setPlayerStorageValue(pk, 1008, happy) local hunger = getItemAttribute(item, "hunger") setPlayerStorageValue(pk, 1009, hunger) if health == true then local mh = HPperVITsummon * getVitality(pk) local rd = 1 - (tonumber(getItemAttribute(item, "hp"))) setCreatureMaxHealth(pk, mh) doCreatureAddHealth(pk, getCreatureMaxHealth(pk)) doCreatureAddHealth(pk, -(getCreatureMaxHealth(pk) * rd)) end if isSummon(pk) and conditions then local burn = getItemAttribute(item, "burn") if burn and burn >= 0 then local ret = {id = pk, cd = burn, check = false, damage = getItemAttribute(item, "burndmg"), cond = "Burn"} addEvent(doCondition2, 3500, ret) end local poison = getItemAttribute(item, "poison") if poison and poison >= 0 then local ret = {id = pk, cd = poison, check = false, damage = getItemAttribute(item, "poisondmg"), cond = "Poison"} addEvent(doCondition2, 1500, ret) end local confuse = getItemAttribute(item, "confuse") if confuse and confuse >= 0 then local ret = {id = pk, cd = confuse, check = false, cond = "Confusion"} addEvent(doCondition2, 1200, ret) end local sleep = getItemAttribute(item, "sleep") if sleep and sleep >= 0 then local ret = {id = pk, cd = sleep, check = false, first = true, cond = "Sleep"} doCondition2(ret) end local miss = getItemAttribute(item, "miss") if miss and miss >= 0 then local ret = {id = pk, cd = miss, eff = getItemAttribute(item, "missEff"), check = false, spell = getItemAttribute(item, "missSpell"), cond = "Miss"} doCondition2(ret) end local fear = getItemAttribute(item, "fear") if fear and fear >= 0 then local ret = {id = pk, cd = fear, check = false, skill = getItemAttribute(item, "fearSkill"), cond = "Fear"} doCondition2(ret) end local silence = getItemAttribute(item, "silence") if silence and silence >= 0 then local ret = {id = pk, cd = silence, eff = getItemAttribute(item, "silenceEff"), check = false, cond = "Silence"} doCondition2(ret) end local stun = getItemAttribute(item, "stun") if stun and stun >= 0 then local ret = {id = pk, cd = stun, eff = getItemAttribute(item, "stunEff"), check = false, spell = getItemAttribute(item, "stunSpell"), cond = "Stun"} doCondition2(ret) end local paralyze = getItemAttribute(item, "paralyze") if paralyze and paralyze >= 0 then local ret = {id = pk, cd = paralyze, eff = getItemAttribute(item, "paralyzeEff"), check = false, first = true, cond = "Paralyze"} doCondition2(ret) end local slow = getItemAttribute(item, "slow") if slow and slow >= 0 then local ret = {id = pk, cd = slow, eff = getItemAttribute(item, "slowEff"), check = false, first = true, cond = "Slow"} doCondition2(ret) end local leech = getItemAttribute(item, "leech") if leech and leech >= 0 then local ret = {id = pk, cd = leech, attacker = 0, check = false, damage = getItemAttribute(item, "leechdmg"), cond = "Leech"} doCondition2(ret) end for i = 1, 3 do local buff = getItemAttribute(item, "Buff"..i) if buff and buff >= 0 then local ret = {id = pk, cd = buff, eff = getItemAttribute(item, "Buff"..i.."eff"), check = false, buff = getItemAttribute(item, "Buff"..i.."skill"), first = true, attr = "Buff"..i} doCondition2(ret) end end end --alterado v1.9 if getItemAttribute(item, "boost") and getItemAttribute(item, "boost") >= 50 and getItemAttribute(item, "aura") then sendAuraEffect(pk, auraSyst[getItemAttribute(item, "aura")]) end if getPlayerStorageValue(getCreatureMaster(pk), 6598754) >= 1 then setPlayerStorageValue(pk, 6598754, 1) elseif getPlayerStorageValue(getCreatureMaster(pk), 6598755) >= 1 then setPlayerStorageValue(pk, 6598755, 1) end return true end function setWildPokemonLevel(cid, optionalLevel, optionalStatus, optionalNick, optionalExtraExp) if not isCreature(cid) then return true end if not pokes[getCreatureName(cid)] then return true end --alterado v2.6 local levelRange = 0 local off = 0 local def = 0 local agi = 0 local spatk = 0 local vit = 0 local this = getCreatureName(cid) local ee = 1 if optionalExtraExp then ee = optionalExtraExp end if optionalLevel and tonumber(optionalLevel) >= 1 then --alterado v2.8\/ levelRange = optionalLevel else levelRange = math.random(pokes[this].wildLvlMin, pokes[this].wildLvlMax) end local status = getPokemonStatus(this) if status then off = status.off def = status.def agi = status.agi vit = status.vit spatk = status.spatk end setPlayerStorageValue(cid, 1000, (levelRange > 100 and 100 or levelRange)) --alterado v2.8 if optionalStatus and optionalStatus.off then setPlayerStorageValue(cid, 1001, optionalStatus.offense) setPlayerStorageValue(cid, 1002, optionalStatus.defense) setPlayerStorageValue(cid, 1003, optionalStatus.agility) setPlayerStorageValue(cid, 1004, optionalStatus.vitality) setPlayerStorageValue(cid, 1005, optionalStatus.specialattack) setPlayerStorageValue(cid, 1011, optionalStatus.offense) setPlayerStorageValue(cid, 1012, optionalStatus.defense) setPlayerStorageValue(cid, 1013, optionalStatus.agility) setPlayerStorageValue(cid, 1014, optionalStatus.vitality) setPlayerStorageValue(cid, 1015, optionalStatus.specialattack) else setPlayerStorageValue(cid, 1001, 5 + math.random(off * levelRange * 0.9, off * levelRange * 1.8)) setPlayerStorageValue(cid, 1002, 5 + math.random(def * levelRange * 0.9, def * levelRange * 1.8)) setPlayerStorageValue(cid, 1003, math.random(agi * levelRange * 0.9, agi * levelRange * 1.8)) setPlayerStorageValue(cid, 1004, math.random(vit * levelRange * 0.9, vit * levelRange * 1.8)) setPlayerStorageValue(cid, 1005, 5 + math.random(spatk * levelRange * 0.9, spatk * levelRange * 1.8)) setPlayerStorageValue(cid, 1011, getPlayerStorageValue(cid, 1001)) setPlayerStorageValue(cid, 1012, getPlayerStorageValue(cid, 1002)) setPlayerStorageValue(cid, 1013, getPlayerStorageValue(cid, 1003)) setPlayerStorageValue(cid, 1014, getPlayerStorageValue(cid, 1004)) setPlayerStorageValue(cid, 1015, getPlayerStorageValue(cid, 1005)) end doRegainSpeed(cid) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + getPlayerStorageValue(cid, 1004) * HPperVIT * vitReductionForWild) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) if pokes[getCreatureName(cid)].exp then --getMonsterInfo(getCreatureName(cid)).experience local exp = (50 + pokes[getCreatureName(cid)].exp) * baseExpRate + pokes[getCreatureName(cid)].vitality * levelRange * pokemonExpPerLevelRate setPlayerStorageValue(cid, 1006, exp * generalExpRate * ee) if getPlayerStorageValue(cid, 22546) == 1 then setPlayerStorageValue(cid, 1006, 750) doSetCreatureDropLoot(cid, false) --edited golden arena end end local wildshow = wildBeforeNames and "Wild " or "" if optionalNick then if hideWildsLevel then doCreatureSetNick(cid, optionalNick) else doCreatureSetNick(cid, optionalNick.." ["..getWildPokemonLevel(cid).."]") end else if hideWildsLevel then doCreatureSetNick(cid, ""..wildshow..""..getCreatureName(cid).."") else doCreatureSetNick(cid, ""..wildshow..""..getCreatureName(cid).." ["..getWildPokemonLevel(cid).."]") end end end function getOffense(cid) if not isCreature(cid) then return 0 end return tonumber(getPlayerStorageValue(cid, 1001)) end function getDefense(cid) if not isCreature(cid) then return 0 end return tonumber(getPlayerStorageValue(cid, 1002)) end function getSpeed(cid) if not isCreature(cid) then return 0 end return tonumber(getPlayerStorageValue(cid, 1003)) end function getVitality(cid) if not isCreature(cid) then return 0 end return tonumber(getPlayerStorageValue(cid, 1004)) end function getSpecialAttack(cid) if not isCreature(cid) then return 0 end return tonumber(getPlayerStorageValue(cid, 1005)) end function getHappiness(cid) if not isCreature(cid) then return 0 end return tonumber(getPlayerStorageValue(cid, 1008)) end function getSpecialDefense(cid) if not isCreature(cid) then return 0 end return getSpecialAttack(cid) * 0.85 + getDefense(cid) * 0.2 end function getPokemonLevel(cid, dex) if not isCreature(cid) then return 0 end if not dex then --alterado v1.9 if ehMonstro(cid) and getPlayerStorageValue(cid, 1000) > 0 then return getPlayerStorageValue(cid, 1000) elseif ehMonstro(cid) then return pokes[getCreatureName(cid)].wildLvl end end return pokes[getCreatureName(cid)].level end function getPokemonLevelByName(name) return pokes[name] and pokes[name].level or 0 --alterado v1.9 end function getMasterLevel(poke) if not isSummon(poke) then return 0 end return getPlayerLevel(getCreatureMaster(poke)) end function getPokemonBoost(poke) if not isSummon(poke) then return 0 end return getItemAttribute(getPlayerSlotItem(getCreatureMaster(poke), 8).uid, "boost") or 0 end function getPokeballBoost(ball) if not isPokeball(ball.itemid) then return 0 end --alterado v1.8 return getItemAttribute(ball.uid, "boost") or 0 end function getPokeName(cid) if not isSummon(cid) then return getCreatureName(cid) end if getCreatureName(cid) == "Evolution" then return getPlayerStorageValue(cid, 1007) end local item = getPlayerSlotItem(getCreatureMaster(cid), 8) if getItemAttribute(item.uid, "nick") then return getItemAttribute(item.uid, "nick") end return getCreatureName(cid) end function getPokeballName(item, truename) if not truename and getItemAttribute(item, "nick") then return getItemAttribute(item, "nick") end return getItemAttribute(item, "poke") end function getPokemonName(cid) return getCreatureName(cid) end function getPokemonGender(cid) --alterado v1.9 return getCreatureSkullType(cid) end function setPokemonGender(cid, gender) if isCreature(cid) and gender then --alterado v1.8 doCreatureSetSkullType(cid, gender) return true end return false end function getWildPokemonExp(cid) return getPlayerStorageValue(cid, 1006) end
  22. Olá galera do TK,estou com um problema em meu servidor,o pokemon está tirando muito dano de pokemon e do proprio player que ele está no PVP,já tentei baixar o dano pelo configuration.lua e mesmo assim não vai,continua o mesmo dano. Vou dar um exemplo de pokemon que tentei baixar o dano: ["Vileplume"] = {move1 = {name = "Absorb", level = 1, cd = 10, dist = 1, target = 1, f = 40, t = "grass"}, move2 = {name = "Leech Seed", level = 7, cd = 7, dist = 3, target = 1, f = 1, t = "grass"}, move3 = {name = "Acid", level = 20, cd = 8, dist = 4, target = 1, f = 45, t = "poison"}, move4 = {name = "Poison Bomb", level = 50, cd = 23, dist = 3, target = 1, f = 70, t = "poison"}, move5 = {name = "Poison Gas", level = 50, cd = 8, dist = 1, target = 0, f = 69, t = "poison"}, move6 = {name = "Petal Dance", level = 50, cd = 13, dist = 1, target = 0, f = 54, t = "grass"}, move7 = {name = "Solar Beam", level = 52, cd = 10, dist = 1, target = 0, f = 76, t = "grass"}, move8 = {name = "Sleep Powder", level = 50, cd = 10, dist = 1, target = 0, f = 0, t = "grass"}, move9 = {name = "Stun Spore", level = 50, cd = 10, dist = 1, target = 0, f = 0, t = "grass"}, }, ["Vileplume"] = {offense = 10, defense = 9, specialattack = 11.0, vitality = 7.5, agility = 170, exp = 184, level = 50, wildLvl = 60, type = "grass", type2 = "poison"}, Já editei os dano (f= ) do move1,move2 move 3 etc e mesmo assim não vai. @up
  23. Olá galera do TK,gostaria que minha função fly não funciona-se no PVP Zone Minha script do fly.lua local del = {'460', '1022', '1023'} local updown = {'1', '3'} function onStepIn(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, 17000) <= 0 then doTeleportThing(cid, topos, false) doRemoveItem(getTileThingByPos(frompos).uid, 1) if isPlayer(cid) then if getPlayerLanguage(cid) == 0 then doPlayerSendCancel(cid, "Você não pode voar.") end if getPlayerLanguage(cid) == 2 then doPlayerSendCancel(cid, "You can't fly.") end if getPlayerLanguage(cid) == 1 then doPlayerSendCancel(cid, "No se puede volar.") end end return true end if getPlayerStorageValue(cid, 17000) >= 1 then if topos.z == frompos.z then if getCreatureOutfit(cid).lookType == 316 then effect = 136 else effect = 2 end doSendMagicEffect(topos, effect) end end for x=-1,1 do for y=-1,1 do posa = {x=topos.x+x,y=topos.y+y,z=topos.z} if isInArray(del, getTileThingByPos(posa).itemid) then doRemoveItem(getTileThingByPos(posa).uid, 1) end end end for x=-1,1 do for y=-1,1 do pose = {x=frompos.x+x,y=frompos.y+y,z=frompos.z} if getTileThingByPos(pose).itemid == 0 then doCombatAreaHealth(cid, 0, pose, 0, 0, 0, CONST_ME_NONE) doCreateItem(460, 1, pose) end end end doCombatAreaHealth(cid, 0, topos, 0, 0, 0, CONST_ME_NONE) doCreateItem(460, 1, frompos) if topos.z > frompos.z then doCreateItem(1023, 1, frompos) doTransformItem(getTileThingByPos(frompos).uid, 1023) elseif topos.z < frompos.z then doCreateItem(1022, 1, frompos) doTransformItem(getTileThingByPos(frompos).uid, 1022) end return true end
  24. Funcionou,obrigado mano

Informação Importante

Confirmação de Termo