Lineage 2 Tower Forum

Full Version: Alguem Me Ajude Com Uma Solução ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Estou com um Problema que eu precisava de alguma configuração para meu caracter matar somente um determinado mob, pois o administrador colocou alguns mob com hp infinito no meio dos mobs, por favor eu preciso de ajuda !!!! Uma Print Vê ai !!! //prntscr.com/1675j8
é so pesquisar no forum, usa o do fairy e altera os nomes e id's
pode ser que funcione.

Code:
NpcName1 = "Large Cocoon";
NpcName2 = "Cocoon";
CocconId1 = 32919;
CocconId2 = 32920;
range = 1500;
--------------------------------------------------------------------------------
MakeCancel = false;
--------------------------------------------------------------------------------
function CountMonstersInRange(r)
    local l = GetMonsterList();
    local c = 0;

    for user in l.list do
if ((user:IsAlikeDeath() == false) and (user:GetRangeTo(GetMe()) < r)) then
c = c + 1;
end;
    end;
    return c;
end;
--------------------------------------------------------------------------------
function GetCocon(r)
    local NpcL = GetNpcList();
    local a = {};
    local r1 = r;
    
    for user in NpcL.list do
r2 = GetMe():GetRangeTo(user);
if(r2 <= r) and (r2 <= r1) then
if ((user:GetName() == NpcName1) or (user:GetName() == NpcName2) or (user:GetNpcId() == CocconId1)or (user:GetNpcId() == CocconId2)) then
r1 = r2;
a[0] = user:GetId();
a[1] = user:GetHp();
end;
end;
    end;
    return a;
end;

--------------------------------------------------------------------------------
repeat
    if(IsPaused() == false)then
MyTr = GetTarget();

if(MyTr == nil) and (CountMonstersInRange(range) < 1)then
if(GetCocon(range)[0] ~= nil) and (GetCocon(range)[1] > 1) then
Target(GetCocon(range)[0]); --Target fouded cocon
repeat
Action(22, false, true);    --Summons Attack
Sleep(300);
until GetTarget():GetHp() == 0;

ClearTargets();
CancelTarget(false);
end;
end;
if(MyTr ~= nil) and (MyTr:GetHp() == 0)then
ClearTargets();
CancelTarget(false);
Sleep(500);
end;
    end;
until false;
Depois quando eu falo certas coisas vem um muleque mimado feito esse bothoryu e fala gracinha comigo.

Olha o exemplo: http://forum.l2tower.eu/thread-horyu-7x

Tudo isso porque o cara prefere ficar esperando a boa vontade de alguém do que procurar e resolver o problema de uma vez.

Tente /ignore, mais rápido, prático e funcional.
Ta Bls Obrigado Pela Atenção, Arrumei Um Pluguin Que Deu Certo Aki !! Flww Pode Dar Closed !!
Reference URL's