Ir para conteúdo
  • Cadastre-se

Crypter

Membro
  • Total de itens

    343
  • Registro em

  • Última visita

  • Dias Ganhos

    4

Tudo que Crypter postou

  1. Use AddEvent com a função doSetCreatureOutfit .
  2. function onUse(cid, item, frompos, item2, topos) local pid = getTopCreature(topos).uid if (isPlayer(cid) == 1 and isPlayer(pid) == 1 ) then doPlayerSendTextMessage(cid,22,'Nick: '..getPlayerName(item2.uid)..'.') doPlayerSendTextMessage(cid,22,'Level: '..getPlayerLevel(item2.uid)..'.') doPlayerSendTextMessage(cid,22,'Chakra Level: '..getPlayerMagLevel(item2.uid)..'.') doPlayerSendTextMessage(cid,22,'Hit Points: '..getPlayerHealth(item2.uid)..'.') doPlayerSendTextMessage(cid,22,'Chakra: '..getPlayerMana(item2.uid)..'.') doPlayerSendTextMessage(cid,22,'Soul Points: '..getPlayerSoul(item2.u
  3. Verifique os 2 arquivos dessas linhas <event type="death" name="PlayerDeath" script="others/playerdeath.lua" /> <event type="death" name="DropLoot" script="others/droploot.lua" />
  4. <event type="advance" name="Hunt190Block" event="script" value="nomearq.lua"/> registerCreatureEvent(cid, "Hunt190Block") Creaturescripts.xml/Login.lua
  5. function onAdvance(cid, skill, oldlevel, newlevel) local PositionA = {x=0, y=0, z=0} -- Posição Superior esquerda do map local PositionB = {x=0, y=0, z=0} -- Posição Inferior direita do map local PositionExit = {x=0, y=0, z=0} local PlayerPos = getCreaturePosition(cid) if isInArea(PlayerPos, PositionA, PositionB) then if skill == SKILL__LEVEL and getPlayerLevel(cid) >= 190 then doTeleportThing(cid, PositionExit) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can no longer hover in this hunt.") return false end return true end
  6. function onCastSpell(cid, var) local target = getCreatureTarget(cid) local NumberOfHits = 1 local value = getCreatureMaxMana(target)*0.20 -- 0.20 representa a 20% da mana total do seu target local restoremana = "false" if isMonster(target)then return false end for x=1,NumberOfHits do if isPlayer(target) then doCreatureAddMana(target, -value) if restoremana == "true" then doCreatureAddMana(cid, value) end end end return true end
  7. Esse sistema você só consegue pagando para algum programador fazer em C++, como você citou, muitos servers de poketibia tem esse sistema,porém ele tem muitos bugs o mais comum é jogar o item em um portal e crashar o servidor.
  8. Você não citou a versão do seu server, portando tente procurar por isso no config.lua checkCorpseOwner Deixe assim checkCorpseOwner = false
  9. Explicação de como fazer isso, Você pode usar um addEvent, que iria fazer X coisa em Y tempo , no seu caso é lançar o efeito 230 em 1segundos ficando assim Esta é a função vazia addEvent( ) Agora vamos ajustar ela, colocando a função que lança efeito. addEvent(doSendMagicEffect, 1000, getThingPosition(getCreatureTarget(cid), 229) A Script completa ficaria assim, Caso alguma resposta tenha solucionado sua dúvida , marque como melhor resposta.
  10. Como achei usar um item não fazia muito sentido , tomei a liberdade de fazer uma talkaction.
  11. Primeiramente Poste sua Script de transformar para que alguem possa te ajudar.
  12. Alguem sabe alguma forma de fazer com que o Summon não ataque o target do player ?
  13. Acho que não da pra converter mapa da 8.00 pra 8.60
  14. Porque teria um config.lua na pasta mods se ele tem que ficar na principal ??
  15. Se você estiver na conta de ADM e falar !jutsu vai dar Debug
  16. Pra alterar a mensagem de login: data/creaturescripts/login.lua Alterar mensagem do piso ( Terá de achar o nome da script ) data/movements/
  17. Ela só funciona em player ( Remove a mana do target , se for player)
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo