Ir para conteúdo

gabrielbsales

Visconde
  • Total de itens

    266
  • Registro em

  • Última visita

  • Dias Ganhos

    7

Tudo que gabrielbsales postou

  1. #edit: tinha botado merda kk Vai em data/lib e abre o some functions.lua Procura por: function ehMonstro(cid) Apaga o que tive até o primeiro "end" e bota assim: function ehMonstro(cid) local eh = false if not isSummon(cid) and not ehNPC(cid) and not isPlayer(cid) then eh = true end return eh end
  2. Como faço para checar se em um area há um pokemon com tal nome vivo?
  3. Esse servidor ainda tá online?
  4. Obrigado aos 2, zeref, obrigado pela idéia, fiz assim no x-defense, com recomendação sua já, rep+ aos 2.
  5. Bom, adicionei isso no meu Exp2.lua para que, se o pokemon estiver com um atributo, o ataque dele dobrar, mas não está funcionando '-' Script: if isSummon(attacker) and isSummon(cid) and isPlayer(getCreatureMaster(attacker)) and getItemAttribute(getPlayerSlotItem(getCreatureMaster(attacker).uid, 8), "attackheld") == 1 then multiplier = multiplier * 2 end Botei em baixo do: if damageCombat ~= COMBAT_PHYSICALDAMAGE and not isInArray(ignored, damageCombat) then Não dá nenhum erro na distro, apenas não funciona. Como resolvo?
  6. E no client, onde botaria isso?
  7. Como faço para pegar o hp no pokemon na barra de mana do OtCLient?
  8. Bom, gostaria de um script que checasse se há outro player em tal posição. Rep +. Ex: local pos = {x= 1 y= 1 z =1} if Checkposanotherplayer(x,y,z) == pos then return pos end PS: essa função Checkposanotherplayer não existe, é apenas ilustrativa.
  9. Consegui resolver.
  10. Some Functions
  11. Bom, estou usando uma function que regenera a vida do pokemon a cada 1 segundo, mas da um erro na distro. Function: function doRegenerateWithHeld(cid) if isCreature(cid) and isSummon(cid) then local ball = getPlayerSlotItem(getCreatureMaster(cid), 8) if getItemAttribute(ball.uid, "regenheld") == 1 and getCreatureHealth(cid) < getCreatureMaxHealth(cid) then addEvent(function() doCreatureAddHealth(cid,500) end, 0) return true end end addEvent(DoRegenerateWithHeld, 0, cid) end Addevent: for i = 0, 4 do addEvent(doRegenerateWithHeld, 1000, pk) end Erro na distro: [09/01/2014 23:27:11] [Error - Action Interface] [09/01/2014 23:27:11] In a timer event called from: [09/01/2014 23:27:11] data/actions/scripts/goback.lua:onUse [09/01/2014 23:27:11] Description: [09/01/2014 23:27:11] (luaAddEvent) Callback parameter should be a function. O que devo fazer para resolver?
  12. No Actions/scripts/order.lua Procure por: if getCreatureName(item2.uid) == "Ditto" or getCreatureName(item2.uid) == "Shiny Ditto" then doPlayerSendCancel(cid, "Your ditto can't transform into another ditto.") markPos(mysum, unfix) return true end em baixo coloque: if getCreatureName(item2.uid) == "Poke1" or getCreatureName(item2.uid) == "Poke2" then doPlayerSendCancel(cid, "Your ditto can't transform into this pokemon.") markPos(mysum, unfix) return true end Poke1: Nome do pokemon que não poderá se transformar Poke2: Outro pokemon que não poderá se transformar Se quiser adicionar mais apenas bote depois do "Poke2" or getCreatureName(item2.uid) == "nome do poke"
  13. Zipter, você sempre me salvando kk, Resolvido e rep +
  14. Bom, gostaria de saber como faço para aumentar a vida do pokemon de forma fixa, estou fazendo um script, mas não sei qual comando usar para fazer isso. PS: É para um script, sei editar no configuration.lua.
  15. Resolvido, fiz uma gambiarra aqui. Max, valeu, peguei parte do script. Rep +
  16. Bom, a function ehmonstro que estou usando tem um problema, os ataques plantas não pegam em pokemons que ela é weak. a Function: function ehMonstro(cid) --alterado v1.9return cid and cid >= AUTOID_MONSTERS and cid < AUTOID_NPCS end
  17. Vá em lib/some functions.lua Procure pela function ehmonstro e substitua por isso function ehMonstro(cid) local eh = false if not isSummon(cid) and not ehNPC(cid) and not isPlayer(cid) then eh = true end return eh end
  18. Qual o objetivo disso: doItemSetAttribute(corpse.uid, "uplevel", level) ? Tente esse:
  19. Estranho... Repita as estapas, mandei o script novamente.
  20. Desse modo, teria que fazer de outro jeito, esse ai só dá com 1 rate. Se eu arranjar um modo, te aviso.
  21. Valeu, vou ajeitar ~edit Resolvido
  22. Nem sei, faz tempo que não mecho em item editor. Vê algum item que faça isso, uma potion ou outra coisa.] O script faz o que você pediu.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...