pikachu rosa Posted April 15, 2020 Report Share Posted April 15, 2020 Esse script do faramir de uh em party nao esta funcionando pra mim, alguem pode corrigir ? Usar UH em jogadores da party com 70%- HP: Hide contents cycleEvent(function() if g_game.isOnline() then local p = g_game.getLocalPlayer() if p:getHealth()/p:getMaxHealth() > 0.5 then for i,v in pairs(g_map.getSpectators(p:getPosition())) do if v:getId() ~= p:getId() and v:getHealthPercent() <= 70 and (v:getShield() == 3 or v:getShield() == 4) then g_game.useInventoryItemWith(3160, v) end end end end end, 500) Quote Link to comment Share on other sites More sharing options...
Mirian Posted April 15, 2020 Report Share Posted April 15, 2020 Esse aqui funciona bem pra mim, não precisa estar em PT. Só alterar o nick e a porcentagem. Talvez dê certo colocar mais de 1 no script manager com outros nicks pra funcionar como se fosse o script de PT, não sei, faz o teste. local name = "NICK DO CHAR" local percent = 85 cycleEvent(function() if g_game.isOnline() then local p = g_game.getLocalPlayer() if p:getHealth()/p:getMaxHealth() > 0.5 then for i,v in pairs(g_map.getSpectators(p:getPosition())) do if v:getId() ~= p:getId() and string.lower(v:getName()) == string.lower(name) then if v:getHealthPercent() <= percent then g_game.useInventoryItemWith(3160, v) end end end end end end, 500) Quote Link to comment Share on other sites More sharing options...
pikachu rosa Posted April 15, 2020 Author Report Share Posted April 15, 2020 preciso de um na party mesmo, sempre to com galera em rift, quest e survival, nao vira ficar editando de um a um Quote Link to comment Share on other sites More sharing options...
ThiagoMetal Posted April 15, 2020 Report Share Posted April 15, 2020 13 horas atrás, No smokingg disse: Esse script do faramir de uh em party nao esta funcionando pra mim, alguem pode corrigir ? Usar UH em jogadores da party com 70%- HP: Ocultar conteúdo cycleEvent(function() if g_game.isOnline() then local p = g_game.getLocalPlayer() if p:getHealth()/p:getMaxHealth() > 0.5 then for i,v in pairs(g_map.getSpectators(p:getPosition())) do if v:getId() ~= p:getId() and v:getHealthPercent() <= 70 and (v:getShield() == 3 or v:getShield() == 4) then g_game.useInventoryItemWith(3160, v) end end end end end, 500) testei aqui e está funcionando normal.. 1 Quote Link to comment Share on other sites More sharing options...
pikachu rosa Posted April 15, 2020 Author Report Share Posted April 15, 2020 2 horas atrás, ThiagoMetal disse: testei aqui e está funcionando normal.. eu to jogando direto no console via CRTL+T como voce fez? Quote Link to comment Share on other sites More sharing options...
ThiagoMetal Posted April 16, 2020 Report Share Posted April 16, 2020 2 horas atrás, No smokingg disse: eu to jogando direto no console via CRTL+T como voce fez? usei no scripts manager e pelo terminal também e funcionou normalmente Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.