SCRIPT UH EM PARTY


pikachu rosa

Recommended Posts

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)

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.. 

  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...