Ir para conteúdo

Crypter

Membro
  • Registro em

  • Última visita

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.uid)..'.') doPlayerSendTextMessage(cid,22,'Free Capacity: '..getPlayerFreeCap(item2.uid)..'.') if getPlayerSex(item2.uid) == 0 then doPlayerSendTextMessage(cid,22,'Sex: Female.') elseif getPlayerSex(item2.uid) == 1 then doPlayerSendTextMessage(cid,22,'Sex: Male.') end doPlayerSendTextMessage(cid,22,'Strenght: '..getPlayerSkill(item2.uid,0)..'.') doPlayerSendTextMessage(cid,22,'Katana Mastery: '..getPlayerSkill(item2.uid,1)..'.') doPlayerSendTextMessage(cid,22,'Respect: '..getPlayerSkill(item2.uid,2)..'.') doPlayerSendTextMessage(cid,22,'Rank: '..getPlayerSkill(item2.uid,3)..'.') doPlayerSendTextMessage(cid,22,'Distanse Mastery: '..getPlayerSkill(item2.uid,4)..'.') doPlayerSendTextMessage(cid,22,'Defence: '..getPlayerSkill(item2.uid,5)..'.') doPlayerSendTextMessage(cid,22,'Chakra Control: '..getPlayerSkill(item2.uid,6)..'.') else doPlayerSendTextMessage(cid,22,'?') end end
  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. Poste seu creaturescripts.xml
  5. <event type="advance" name="Hunt190Block" event="script" value="nomearq.lua"/> registerCreatureEvent(cid, "Hunt190Block") Creaturescripts.xml/Login.lua
  6. 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
  7. 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
  8. 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.
  9. Substitui o final por este.
  10. Você não citou a versão do seu server, portando tente procurar por isso no config.lua checkCorpseOwner Deixe assim checkCorpseOwner = false
  11. 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.
  12. Como achei usar um item não fazia muito sentido , tomei a liberdade de fazer uma talkaction.
  13. Primeiramente Poste sua Script de transformar para que alguem possa te ajudar.
  14. Crypter postou uma resposta no tópico em Suporte Tibia OTServer
    Alguem sabe alguma forma de fazer com que o Summon não ataque o target do player ?
  15. Acho que não da pra converter mapa da 8.00 pra 8.60
  16. Crypter postou uma resposta no tópico em Suporte Tibia OTServer
    Porque teria um config.lua na pasta mods se ele tem que ficar na principal ??
  17. Se você estiver na conta de ADM e falar !jutsu vai dar Debug
  18. Crypter postou uma resposta no tópico em Suporte Tibia OTServer
    Pra alterar a mensagem de login: data/creaturescripts/login.lua Alterar mensagem do piso ( Terá de achar o nome da script ) data/movements/
  19. Se tu quise que suga a mana do target a aumente pro player
  20. Ela só funciona em player ( Remove a mana do target , se for player)

Informação Importante

Confirmação de Termo