Ir para conteúdo

ZeeroBR

Membro
  • Registro em

  • Última visita

Solutions

  1. ZeeroBR's post in (Resolvido) Pedido Spell de invisibilidade was marked as the answer   
    Eu só queria que escondesse a barra de vida, já descobri como faz isso e vou colocar aqui como resolução
    Sistema muito bom e completo! Mas infelizmente não era esse que eu queria, mas mesmo assim obrigado
     
    Bom, a resolução do problema é bem simples, o player não fica invisível de verdade, você só tem que dar uma newtype "invisível" para o player e esconder sua barra de vida. Um exemplo:
     
    local outfit = {lookType = 1703} -- qualquer newtype sem sprite do seu server
    local time = 5 -- tempo em segundos que o player vai ficar "invisível"
     
    doSetCreatureOutfit(cid, outfit, time*1000)
    doCreatureSetHideHealth(cid, true) -- comando que esconde a barra de vida do player e tira ele do battle (não fica invulnerável)
     
    E com um simples addEvent você pode colocar pra a barra de vida do player aparecer novamente:
     
    function hideHealth(cid)
    if isPlayer(cid) then
    doCreatureSetHideHealth(cid, false)
    end
    end
     
    addEvent(hideHealth, time*1000, cid)
     
    OBS: esse exemplo acima não te deixa imortal, se quiser que fique, basta juntar este sistema com o de imortal do xWhiteWolf
     
     
  2. ZeeroBR's post in (Resolvido)[Resolvido] OTClient Lagado was marked as the answer   
    Errinho chato, né mano? mas achei a solução.
     
    1 - Vá na pasta do seu client
     
    2 - Abra o arquivo otclientrc.lua com seu editor de texto
     
    3 - Substitua o que tem lá dentro por isto
     
    -- this file is loaded after all modules are loaded and initialized -- you can place any custom user code here print 'Startup done :]' -- g_game.enableFeature(16) connect(g_game, { onGameStart = function () g_game.enableFeature(GameExtendedClientPing) end }) connect(g_game, { onGameStart = function () g_game.enableFeature(16) end })  
     
  3. ZeeroBR's post in (Resolvido)[Resolvido] Script de speed por vocação. was marked as the answer   
    local t = { [1] = {voc = 1, speed = 120}, [2] = {voc = 2, speed = 130}, [3] = {voc = 3, speed = 140}, [4] = {voc = 4, speed = 150}, [5] = {voc = 5, speed = 160}, [6] = {voc = 6, speed = 100}, [7] = {voc = 7, speed = 100}, [8] = {voc = 8, speed = 100}, [9] = {voc = 9, speed = 100}, [10] = {voc = 10, speed = 100} } function onLogin(cid, speed) local velocidade = getCreatureSpeed(cid) if isPlayer(cid) then doChangeSpeed(cid, -velocidade) end if getPlayerVocation(cid) == t[1].voc then doChangeSpeed(cid, t[1].speed) elseif getPlayerVocation(cid) == t[2].voc then doChangeSpeed(cid, t[2].speed) elseif getPlayerVocation(cid) == t[3].voc then doChangeSpeed(cid, t[3].speed) elseif getPlayerVocation(cid) == t[4].voc then doChangeSpeed(cid, t[4].speed) elseif getPlayerVocation(cid) == t[5].voc then doChangeSpeed(cid, t[5].speed) elseif getPlayerVocation(cid) == t[6].voc then doChangeSpeed(cid, t[6].speed) elseif getPlayerVocation(cid) == t[7].voc then doChangeSpeed(cid, t[7].speed) elseif getPlayerVocation(cid) == t[8].voc then doChangeSpeed(cid, t[8].speed) elseif getPlayerVocation(cid) == t[9].voc then doChangeSpeed(cid, t[9].speed) elseif getPlayerVocation(cid) == t[10].voc then doChangeSpeed(cid, t[10].speed) end return true end  
    Bom, não tinha funcionado, porém arrumei o erro e a script ficou mais ou menos assim, obrigado de verdade, rep+

Informação Importante

Confirmação de Termo