Jump to content

help with script


Recommended Posts

repeat
    if(GetMe():GetBuffsCount()  >= 1) then    
        if (GetMe():GotBuff(1033) == true) then DeleteMyBuff(1033); -- Poison Resistance
    Sleep(100);
        end;
        if (GetMe():GotBuff(1353) == true) then DeleteMyBuff(1353); -- holy attack resistance bishop
    Sleep(100);
        end;
    end;
until false;

 

 

this script user l2tower need one same with this for l2adrenaline, why  make party for farm have ppl all time give me buff end remover my. the configuration despell,only works if char have the buff.

Link to comment
Share on other sites

32 minutes ago, SkyFielD said:

repeat
    if(GetMe():GetBuffsCount()  >= 1) then    
        if (GetMe():GotBuff(1033) == true) then DeleteMyBuff(1033); -- Poison Resistance
    Sleep(100);
        end;
        if (GetMe():GotBuff(1353) == true) then DeleteMyBuff(1353); -- holy attack resistance bishop
    Sleep(100);
        end;
    end;
until false;

 

 

this script user l2tower need one same with this for l2adrenaline, why  make party for farm have ppl all time give me buff end remover my. the configuration despell,only works if char have the buff.

var
  dispelArray : array of cardinal = [275,274,271,264];
  i:integer;
begin
  while delay(555) do
  begin
    for i := low(dispelArray) to high(dispelArray) do
    begin
      if user.buffs.byid(dispelArray[i], tl2buff) then
      begin
        engine.dispel(dispelArray[i]);
        delay(1000);
      end;
    end;
  end;
end.

 

Link to comment
Share on other sites

5 minutes ago, adr.bot said:

var
  dispelArray : array of cardinal = [275,274,271,264];
  i:integer;
begin
  while delay(555) do
  begin
    for i := low(dispelArray) to high(dispelArray) do
    begin
      if user.buffs.byid(dispelArray[i], tl2buff) then
      begin
        engine.dispel(dispelArray[i]);
        delay(1000);
      end;
    end;
  end;
end.

 

erro  in while delay(555) do

Link to comment
Share on other sites

var
  dispelArray : array of cardinal = [275,274,271,264];
  i:integer;
  buff:tl2buff;
begin
  while engine.delay(555) do
  begin
    for i := low(dispelArray) to high(dispelArray) do
    begin
      if user.buffs.byid(dispelArray[i], buff) then
      begin
        engine.dispel(buff.name);
        delay(1000);
      end;
    end;
  end;
end.

maybe this gonna work, idk, anyways u should have in self buff option for dispel

Link to comment
Share on other sites

4 minutes ago, adr.bot said:

var
  dispelArray : array of cardinal = [275,274,271,264];
  i:integer;
  buff:tl2buff;
begin
  while engine.delay(555) do
  begin
    for i := low(dispelArray) to high(dispelArray) do
    begin
      if user.buffs.byid(dispelArray[i], buff) then
      begin
        engine.dispel(buff.name);
        delay(1000);
      end;
    end;
  end;
end.

maybe this gonna work, idk, anyways u should have in self buff option for dispel

have option for dispel only char have buff not work buff other class.

Link to comment
Share on other sites

6 minutes ago, adr.bot said:

var
  dispelArray : array of cardinal = [275,274,271,264];
  i:integer;
  buff:tl2buff;
begin
  while engine.delay(555) do
  begin
    for i := low(dispelArray) to high(dispelArray) do
    begin
      if user.buffs.byid(dispelArray[i], buff) then
      begin
        engine.dispel(buff.name);
        delay(1000);
      end;
    end;
  end;
end.

maybe this gonna work, idk, anyways u should have in self buff option for dispel

work now very thanks u man :D i am more happy. 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...