Ir para conteúdo

Bodak Reborn

Membro
  • Registro em

  • Última visita

Tudo que Bodak Reborn postou

  1. config.lua Troque allowBlockSpawn = true para allowBlockSpawn = false
  2. @veel, procure no seu arquivo XML, algo relacionado a esse seu arquivo que tenha o type "login" e remova. O script que tu passou não diz nada sobre manter a poção após morrer.
  3. Ahn? Explique melhor.
  4. Então, eu tenho um script de uma skill que causa dano em área e dura alguns segundos, só que quando ela é ativada, ela pega a posição que o cara tava quando soltou a skill e toda a sua duração é naquela posição, ou seja, se eu soltar uma skill numa posição x e caminhar até uma posição y, a minha skill vai ficar na posição x, ela não me segue. Como eu faço pra pegar a posição atual do meu personagem, para quando eu soltar a skill, ela me acompanhar? Pensei que fosse com for, mas eu travei e nem tentei. Se tiver mal explicado, me avisem. Grato!
  5. Yo boyz, então, o script da Golden Arena tá certinho, os player são puxados, os pokémons nascem e tal, mas eu queria que ao player morrer, ele ganhar x quantidade de x item. Se for mais simples, premiar o jogador por wave. Eu tentei usar a função doPlayerAddItem (cid, id do item, quantidade) na função DoWave mas dava esse erro na distro: (LuaDoPlayerAddItem) Player Not Found data/lib/Golden Arena.lua
  6. Troque if (count > 100) then por if (count >= 100) then
  7. Como funciona o Rotom? Yo boyz, então, eu achei esse script de Rotom/Light Abra (não lembro o nome do autor) e tentei adaptar para ser necessário ter X item na sua bag para o Rotom transformar para x forma. O ideal seria um item que, quando você usasse no Rotom, ele ganhava a possibilidade de se transformar para tal forma. Mas eu não tenho a mínima ideia de como fazer isso, então tentei fazer essa gambiarra. Exemplo: Eu tenho um Rotom e quero transformá-lo para Rotom Heat (Rotom do tipo fogo), para isso, eu tenho que ter na bag um item chamado de Heat Form, do contrário, o meu Rotom não poderia se transformar para Rotom Heat. A ordem de transformação é a seguinte: Rotom, Rotom Wash, Rotom Heat, Rotom Mow, Rotom Fan, Rotom Frost Se eu tivesse o item de todos os Rotom menos o do Heat, ficaria: Rotom, Rotom Wash, Rotom Mow, Rotom Fan, Rotom Frost O bug está nessas linhas: if getPlayerItemCount(cid,12162) == true then local _TAB = { ["Rotom"] = {eff = lightEff, name = "Rotom Heat", outfit = lightOut} } else local _TAB ={ ["Rotom"] = {eff = ghostEff, name = "Rotom", outfit = ghostOut}, } end A minha intenção era checar se o player tinha o item de id 12162 (id de teste) e se tivesse, ao usar o move MORPH, o Rotom se transformaria para Rotom Heat, e caso não tivesse, continuaria como Rotom normal. Bug na distro: Código do move MORPH:
  8. Bodak Reborn postou uma resposta no tópico em Suporte Tibia OTServer
    É /b. Exemplo: /b Blablabla /bc é pra usar cor, exemplo: /bc green Blablablabla Isso não é script, cuidado na hora de postar...
  9. Tente fazer as alterações que eu citei, mas não sei se vai funcionar...
  10. Cara, eu to recém aprendendo lua também, estou cursando o 5 semestre PHP, então se tiver algo errado, perdão. Primeira coisa é os IFs que tu montou... Tu tem que botar ou um END depois do IF, ficando assim: if s <= -20 then x = {"GranBigNoob"} end if s <= -10 then x = {"Big Noob"} end if s ..... Ou ELSEIF, ficando assim: if s <= -20 then x = {"GranBigNoob"} elseif s <= -10 then x = {"Big Noob"} elseif s ..... Nessa linha: doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Matou: ["..getDeathsAndKills(thing.uid, "kill").."] Players.\n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Morreu: ["..getDeathsAndKills(thing.uid, "death").."] Vezes" ) Em: getPlayerSex(thing.uid) == 0 and "Ela" or "Ele" Acho que se tu só quer pegar o sexo do player, seria: getPlayerSex(cid) Se tu quer apenas falar qual o sexo do player, seria: ..(sex == 0 and "Ela" or "Ele").. Eu acho que funciona dos dois jeitos, comentei apenas para caso não funcionasse. Voltando nos IFs, caso algum seja true, você da um valor em string para a variável "x", mas não usa ela em lugar nenhum. Mesma coisa com o "s", você declara a variável com o valor "0" e não tem nenhuma outra linha modificando o valor dessa variável, o valor dela SEMPRE será "0". Ah, e não se esqueça de tirar os ENDs correspondentes nas últimas linhas. Se ainda estiver com algum problema, tenta explicar melhor o que você quer, não consegui entender direito. Vou tentar ajudar como eu puder. Como eu disse, estou recém aprendendo lua.
  11. Yo boyz, então, no meu servidor tem o script de !fly (que eu peguei aqui no fórum há alguns dias, no código está como "NORD" o nome do autor, mas não achei aqui no fórum) e eu gostaria de melhorar ele. Atualmente, o comando tem uma velocidade fixa e configurável nessa linha: addEvent(autoWalk, 500, cid, id) Só que ter uma velocidade fixa para todos os pokémon é um problema, o ideal seria que pegasse a velocidade de cada pokémon. OBS: "500" é a velocidade em milissegundos. Função do comando: Quando você ativa o comando !fly, seu char (caso esteja voando) irá andar reto até você dizer !fly novamente, desativando o comando. Agradeço desde já. talkactions/scripts/!fly.lua
  12. Bodak Reborn postou uma resposta no tópico em Suporte Tibia OTServer
    Seria ótimo se passasse, @DukeeH.
  13. O que ele quis dizer é que, ele não consegue logar mais de 2 chares por PC. Ele pode logar mais de um char na mesma conta, mas quando ele tenta logar o terceiro, fica em na tela de "Aguarde" pra sempre. No meu servidor tem o mesmo problema, e eu não sei resolver. OBS: É por internet, não por PC. Quando eu vou para casa de meus amigos, quando tentam logar o 4 char (no meu servidor, são 3 chares por internet) fica na tela de "aguarde".
  14. Opa, tudo bem? Então, eu peguei o script do Dalk da base que eu uso (Pokemon Dash Advanced (1.0)) e tentei dar uma adaptada para o jeito que eu queria. Se alguém puder me ajudar, ficarei extremamente grato. Eu sou novo em lua, estou recém aprendendo, mas estou precisando desse NPC por agora. Eu gostaria que ele trocasse o nome dos players por 3 diamonds (eu peguei um código que fazia por name_lock e tentei adaptar no meu código, mas quando eu digo "yes", não acontece nada). De preferência, trocar o nome falando com o NPC mesmo, não por name_lock, exemplo: hi/change name/yes/nome que eu quero/yes. Ai o player reloga e o nome é trocado. Mas se não tiver como e o único jeito for por name_lock mesmo, sem problemas. E a opção de trocar de cidade natal. Erro depois de dar "change name", "yes": (sou burro e não sei inserir imagem) http://prntscr.com/anp4f0 Thanks boyz dalk.lua: .Dalk.xml:
  15. Hey @LLossavaro, eu achei muito interessante o projeto mas eu não tenho nenhum tipo de conhecimento que vocês estão precisando, apenas HTML/PHP, estou recém aprendendo a mexer em um servidor. Eu sou CM de um OT e estou começando a mexer com a parte de scripts, fiz o site, atualizações, balanceamento, etc... Eu gostaria de saber como você fez para o preço aparecer no look do pokémon e as mensagens (os moves, go/back, order) serem laranjas, sem aparecer no chat. Eu agradeceria muito se você me ajudasse, e, se precisarem de tutor/gm/cm e afins, podem contar comigo. =)
  16. Guys, meu duel system está bugado, se alguém tem algum que está funcionando ou consegue arrumar o erro do meu, eu agradeceria muito. Erros: Quando o player chama duel 1x1 e o outro jogador não aceita (não aceita nem recusa, deixa pendente), se esse player morrer, ele vai parar no PVP e não perde EXP. Às vezes, por algum motivo, o duel de um player buga, ele não consegue dar "hi" no CP, usar revive, puxar o pokémon... eu não sei a causa desse bug, mas às vezes acontece com o duel 1x1. Com o duel 2x2 acontece SEMPRE. Eu gostaria de inserir torneios 2x2 no meu servidor, só que sempre que os jogadores tentam ir 2x2, o duel de alguém buga. Sistemas que eu gostaria: Colocar um tempo para quando um jogador chamar o outro para duelar e este deixar pendente, depois desse tempo o duelo cancelar sozinho. Se no meio de um duel, algum jogador ficar x tempo sem pokémon, este perde o duelo automaticamente. O sistema para chamar outro player para duelar tem dois modos: Ou dar move nesse player, ou clicar com o botão direito nele e clicar em "Duel". O problema do move, é que se você acidentalmente dar move em você, você da "Give up" e perde o duelo. Se possível, botar para apenas poder chamar o player clicando na opção do botão direito. data/lib/Duel System.lua: storagesDuel = {52480, 52481, 52482, 52482, 52483, 52484, 52485, 6598754} --[[ Lista das storages Duel! 52480 = sto de duelo e do modo de duel; 52481 = sto de pokes no duel; 52482 = sto do seu time; 52483 = sto do time adversario; 52484 = sto de aceitaçao de duel e do começo do duel; 52485 = sto do nome do 'invitador'; 6598754 = sto do canAttackOther; ]] function beginDuel(cid, n) if getPlayerStorageValue(cid, 52482) == -1 or getPlayerStorageValue(cid, 52483) == -1 then return true end local t1 = string.explode(getPlayerStorageValue(cid, 52482), ",") local t2 = string.explode(getPlayerStorageValue(cid, 52483), ",") local sto2, sto3 = getPlayerStorageValue(cid, 52482), getPlayerStorageValue(cid, 52483) if n == 0 then for i = 1, #t1 do local pid, sid = getPlayerByName(t1[i]), getPlayerByName(t2[i]) if isCreature(pid) and getPlayerStorageValue(pid, 52480) >= 1 then setPlayerStorageValue(pid, 6598754, 5) setPlayerStorageValue(pid, 52482, sto2) setPlayerStorageValue(pid, 52483, sto3) setPlayerStorageValue(pid, 52484, 10) end --- if isCreature(sid) and getPlayerStorageValue(sid, 52480) >= 1 then setPlayerStorageValue(sid, 6598754, 10) setPlayerStorageValue(sid, 52482, sto2) setPlayerStorageValue(sid, 52483, sto3) setPlayerStorageValue(sid, 52484, 10) end --- doSendAnimatedText(getThingPosWithDebug(pid), "START", 215) doSendAnimatedText(getThingPosWithDebug(sid), "START", 215) end return true else for i = 1, #t1 do local pid, sid = getPlayerByName(t1[i]), getPlayerByName(t2[i]) if isCreature(pid) and getPlayerStorageValue(pid, 52480) >= 1 then doSendAnimatedText(getThingPosWithDebug(pid), (n == 6 and "" or ""..n.."!"), 215) end if isCreature(sid) and getPlayerStorageValue(sid, 52480) >= 1 then doSendAnimatedText(getThingPosWithDebug(sid), (n == 6 and "" or ""..n.."!"), 215) end end n = n-1 end addEvent(beginDuel, 1000, cid, n) end function removeFromTableDuel(cid, value) if not isCreature(cid) then return true end local t1 = string.explode(getPlayerStorageValue(cid, 52482), ",") local t2 = string.explode(getPlayerStorageValue(cid, 52483), ",") table.remove(t1, table.find(t1, value) or -1) table.remove(t2, table.find(t2, value) or -1) --- local str1, str2 = "", "" for i = 1, 3 do if t1[i] then str1 = str1..(t1[i] or "").."," end if t2[i] then str2 = str2..(t2[i] or "").."," end end setPlayerStorageValue(cid, 52482, str1) setPlayerStorageValue(cid, 52483, str2) return true end function isDuelingAgainst(cid, pid) if not isCreature(cid) or not isCreature(pid) then return false end ----- local t1 = string.explode(getPlayerStorageValue(cid, 52482), ",") local t2 = string.explode(getPlayerStorageValue(cid, 52483), ",") ----- local name1, name2 = getCreatureName(cid), getCreatureName(pid) ----- if table.find(t1, name1) ~= nil and table.find(t2, name2) ~= nil then return true elseif table.find(t2, name1) ~= nil and table.find(t1, name2) ~= nil then return true end return false end function doEndDuel(cid, desisto) if isCreature(cid) then if getPlayerStorageValue(cid, 52482) ~= -1 then t1 = string.explode(getPlayerStorageValue(cid, 52482), ",") t2 = string.explode(getPlayerStorageValue(cid, 52483), ",") end local invit = getPlayerByName(getPlayerStorageValue(cid, 52485)) if isCreature(invit) then table1 = string.explode(getPlayerStorageValue(invit, 52482), ",") table2 = string.explode(getPlayerStorageValue(invit, 52483), ",") end if getPlayerStorageValue(cid, 52484) ~= 10 then if getPlayerStorageValue(cid, 52482) ~= -1 then for a = 1, 3 do local pid, sid = getPlayerByName(t1[a]), getPlayerByName(t2[a]) if isCreature(pid) then doCreatureSetSkullType(pid, 0) doRemoveCondition(pid, CONDITION_INFIGHT) end if isCreature(sid) then doCreatureSetSkullType(sid, 0) doRemoveCondition(sid, CONDITION_INFIGHT) end for i = 1, #storagesDuel do if isCreature(pid) then setPlayerStorageValue(pid, storagesDuel[i], -1) end if isCreature(sid) then setPlayerStorageValue(sid, storagesDuel[i], -1) end end end else for i = 1, #storagesDuel do setPlayerStorageValue(cid, storagesDuel[i], -1) end doCreatureSetSkullType(cid, 0) doRemoveCondition(cid, CONDITION_INFIGHT) --------------------------------- if table2 then local numero = 0 for i = 1, #table2 do local ppid = getPlayerByName(table2[i]) if not isCreature(ppid) or getPlayerStorageValue(ppid, 52480) ~= -1 then numero = numero+1 end end if numero == 0 then doEndDuel(invit) sendMsgToPlayer(invit, 20, "The opponents are give up! Duel is canceled!") end end -------------------------------- end if desisto then doSendAnimatedText(getThingPosWithDebug(cid), "GIVE UP", COLOR_BLUE) end return true end for a = 1, #t1 do local pid, sid = getPlayerByName(t1[a]), getPlayerByName(t2[a]) removeFromTableDuel(pid, getCreatureName(cid)) removeFromTableDuel(sid, getCreatureName(cid)) end local t3 = string.explode(getPlayerStorageValue(cid, 52482), ",") local t4 = string.explode(getPlayerStorageValue(cid, 52483), ",") if (#t3 == 0 and #t4 >= 1) or (#t4 == 0 and #t3 >= 1) then for j = 1, (#t3 > 0 and #t3 or #t4) do local winner = #t3 > 0 and getPlayerByName(t3[j]) or getPlayerByName(t4[j]) if isCreature(winner) then addEvent(doSendAnimatedText, 500, getThingPosWithDebug(winner), "WIN", COLOR_ELECTRIC) for i = 1, #storagesDuel do setPlayerStorageValue(winner, storagesDuel[i], -1) end doCreatureSetSkullType(winner, 0) doRemoveCondition(winner, CONDITION_INFIGHT) end end addEvent(doSendAnimatedText, 500, getThingPosWithDebug(cid), "LOSE", COLOR_BURN) for i = 1, #storagesDuel do setPlayerStorageValue(cid, storagesDuel[i], -1) end doCreatureSetSkullType(cid, 0) doRemoveCondition(cid, CONDITION_INFIGHT) else for i = 1, #storagesDuel do setPlayerStorageValue(cid, storagesDuel[i], -1) end doCreatureSetSkullType(cid, 0) doRemoveCondition(cid, CONDITION_INFIGHT) if desisto then doSendAnimatedText(getThingPosWithDebug(cid), "GIVE UP", COLOR_BLUE) else addEvent(doSendAnimatedText, 500, getThingPosWithDebug(cid), "LOSE", COLOR_BURN) end end end end function checkDuel(cid) if getPlayerStorageValue(cid, 52484) ~= 10 then return true end if getPlayerStorageValue(cid, 52481) >= 1 then setPlayerStorageValue(cid, 52481, getPlayerStorageValue(cid, 52481)-1) doSendAnimatedText(getThingPosWithDebug(cid), "POKE DOWN", 65) end if getPlayerStorageValue(cid, 52481) == 0 then doEndDuel(cid) end end --/////////////////////////////////////////////////////////////////////////////////////////////--
  17. Eu estou com problemas com os helds, eu adicionei como no tópico: Mas tem vários com bugs, por exemplo: Cure está removendo Harden e Iron Defense, Defense não muda nada, Boost não muda nada... Tem como alguém me ajudar?
  18. Bodak Reborn postou uma resposta no tópico em Suporte Tibia OTServer
    Sim
  19. Bodak Reborn postou uma resposta no tópico em Suporte Tibia OTServer
    Testei algumas coisas e não funcionou, eu realmente não sei mais o que fazer... perdão
  20. Bodak Reborn postou uma resposta no tópico em Suporte Tibia OTServer
    Não dá erro nenhum? Apenas.. não inicia?
  21. Bodak Reborn postou uma resposta no tópico em Suporte Tibia OTServer
    Certo, espero que funcione... as apóstrofes estavam fazendo um comentário, fazendo com que uma parte do código fosse ignorada, se isso não funcionar, não sei o que pode ser ;/
  22. Bodak Reborn postou uma resposta no tópico em Suporte Tibia OTServer
    Você esqueceu de tirar a apóstrofe dessa linha: function Player:getBackItems() -- function to clear the player's inventory
  23. Bodak Reborn postou uma resposta no tópico em Suporte Tibia OTServer
    Creio eu que só começa quando tiver o minimo de players em cada arena. Bota para o mínimo de jogadores ser 1, loga três chares e testa.
  24. Bodak Reborn postou uma resposta no tópico em Suporte Tibia OTServer
    Funcionou?
  25. Cara, vou te passar o meu goback.lua que está funcionando normalmente, testa ai: function onUse(cid, item, frompos, item2, topos) if exhaustion.get(cid, 6666) and exhaustion.get(cid, 6666) > 0 then return true end if getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 17001) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 or getPlayerStorageValue(cid, 75846) >= 1 or getPlayerStorageValue(cid, 5700) >= 1 then --alterado v1.9 << return true end local ballName = getItemAttribute(item.uid, "poke") local btype = getPokeballType(item.itemid) local usando = pokeballs[btype].use local effect = pokeballs[btype].effect if not effect then effect = 21 end unLock(item.uid) --alterado v1.8 if item.itemid == usando then if getPlayerStorageValue(cid, 990) == 1 then -- GYM doPlayerSendCancel(cid, "You can't return your pokemon during gym battles.") return true end if #getCreatureSummons(cid) > 1 and getPlayerStorageValue(cid, 212124) <= 0 then --alterado v1.6 if getPlayerStorageValue(cid, 637501) == -2 or getPlayerStorageValue(cid, 637501) >= 1 then BackTeam(cid) end end if #getCreatureSummons(cid) == 2 and getPlayerStorageValue(cid, 212124) >= 1 then doPlayerSendCancel(cid, "You can't do that while is controling a mind") return true --alterado v1.5 end if #getCreatureSummons(cid) <= 0 then if isInArray(pokeballs[btype].all, item.itemid) then doTransformItem(item.uid, pokeballs[btype].off) doItemSetAttribute(item.uid, "hp", 0) doPlayerSendCancel(cid, "This pokemon is fainted.") return true end end local cd = getCD(item.uid, "blink", 30) if cd > 0 then setCD(item.uid, "blink", 0) end local z = getCreatureSummons(cid)[1] if getCreatureCondition(z, CONDITION_INVISIBLE) and not isGhostPokemon(z) then return true end doReturnPokemon(cid, z, item, effect) elseif item.itemid == pokeballs[btype].on then if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_FEET).uid then doPlayerSendCancel(cid, "You must put your pokeball in the correct place!") return TRUE end local thishp = getItemAttribute(item.uid, "hp") if thishp <= 0 then if isInArray(pokeballs[btype].all, item.itemid) then doTransformItem(item.uid, pokeballs[btype].off) doItemSetAttribute(item.uid, "hp", 0) doPlayerSendCancel(cid, "This pokemon is fainted.") return true end end local pokemon = getItemAttribute(item.uid, "poke") if not pokes[pokemon] then return true end ----------------------- Sistema de nao poder carregar mais que 3 pokes lvl baixo e + q 1 poke de lvl medio/alto --------------------------------- if not isInArray({5, 6}, getPlayerGroupId(cid)) then local balls = getPokeballsInContainer(getPlayerSlotItem(cid, 3).uid) local low = {} local lowPokes = {"Rattata", "Caterpie", "Weedle", "Oddish", "Pidgey", "Paras", "Poliwag", "Bellsprout", "Magikarp", "Hoppip", "Sunkern"} if #balls >= 1 then for _, uid in ipairs(balls) do local nome = getItemAttribute(uid, "poke") if not isInArray(lowPokes, pokemon) and nome == pokemon then return doPlayerSendTextMessage(cid, 27, "Sorry, but you can't carry two pokemons equals!") else if nome == pokemon then table.insert(low, nome) end end end end if #low >= 3 then return doPlayerSendTextMessage(cid, 27, "Sorry, but you can't carry more than three pokemons equals of low level!") end end --------------------------------------------------------------------------------------------------------------------------------------------------- local x = pokes[pokemon] local boost = getItemAttribute(item.uid, "boost") or 0 if getPlayerLevel(cid) < (x.level+boost) then doPlayerSendCancel(cid, "You need level "..(x.level+boost).." to use this pokemon.") return true end ---------------------------- Sistema pokes de clan -------------------------------------- local shinysClan = { ["Shiny Fearow"] = {4, "Wingeon"}, ["Shiny Flareon"] = {1, "Volcanic"}, ["Shiny Vaporeon"] = {2, "Seavel"}, ["Shiny Jolteon"] = {9, "Raibolt"}, ["Shiny Hypno"] = {7, "Psycraft"}, ["Shiny Golem"] = {3, "Orebound"}, ["Shiny Vileplume"] = {8, "Naturia"}, ["Shiny Nidoking"] = {5, "Malefic"}, ["Shiny Hitmontop"] = {6, "Gardestrike"}, --alterado v1.4 } if shinysClan[pokemon] and (getPlayerGroupId(cid) < 4 or getPlayerGroupId(cid) > 6) then --alterado v1.9 \/ if getPlayerClanNum(cid) ~= shinysClan[pokemon][1] then doPlayerSendCancel(cid, "You need be a member of the clan "..shinysClan[pokemon][2].." to use this pokemon!") return true elseif getPlayerClanRank(cid) ~= 5 then doPlayerSendCancel(cid, "You need be atleast rank 5 to use this pokemon!") return true end end -------------------------------------------------------------------------------------- doSummonMonster(cid, pokemon) local pk = getCreatureSummons(cid)[1] if not isCreature(pk) then return true end ------------------------passiva hitmonchan------------------------------ if isSummon(pk) then --alterado v1.8 \/ if pokemon == "Shiny Hitmonchan" or pokemon == "Hitmonchan" then if not getItemAttribute(item.uid, "hands") then doSetItemAttribute(item.uid, "hands", 0) end local hands = getItemAttribute(item.uid, "hands") doSetCreatureOutfit(pk, {lookType = hitmonchans[pokemon][hands].out}, -1) end end ------------------------------------------------------------------------- ---------movement magmar, jynx------------- if EFFECTS[getCreatureName(pk)] then markPosEff(pk, getThingPos(pk)) sendMovementEffect(pk, EFFECTS[getCreatureName(pk)], getThingPos(pk)) end -------------------------------------------------------------------------- ---if getCreatureName(pk) == "Ditto" or getCreatureName(pk) == "Shiny Ditto" then --edited -- local left = getItemAttribute(item.uid, "transLeft") -- local name = getItemAttribute(item.uid, "transName") -- if left and left > 0 then -- setPlayerStorageValue(pk, 1010, name) -- doSetCreatureOutfit(pk, {lookType = getItemAttribute(item.uid, "transOutfit")}, -1) -- addEvent(deTransform, left * 1000, pk, getItemAttribute(item.uid, "transTurn")) -- doItemSetAttribute(item.uid, "transBegin", os.clock()) -- else -- setPlayerStorageValue(pk, 1010, getCreatureName(pk) == "Ditto" and "Ditto" or "Shiny Ditto") --edited -- end -- end if isGhostPokemon(pk) then doTeleportThing(pk, getPosByDir(getThingPos(cid), math.random(0, 7)), false) end doCreatureSetLookDir(pk, 2) adjustStatus(pk, item.uid, true, true, true) doRegenerateWithY(getCreatureMaster(pk), pk) doCureWithY(getCreatureMaster(pk), pk) doTransformItem(item.uid, item.itemid+1) local pokename = getPokeName(pk) --alterado v1.7 local mgo = gobackmsgs[math.random(1, #gobackmsgs)].go:gsub("doka", pokename) doCreatureSay(cid, mgo, TALKTYPE_SAY) doSendMagicEffect(getCreaturePosition(pk), effect) if useOTClient then doPlayerSendCancel(cid, '12//,show') --alterado v1.7 end else doPlayerSendCancel(cid, "This pokemon is fainted.") end if useKpdoDlls then doUpdateMoves(cid) end return true end

Informação Importante

Confirmação de Termo