Jump to content

Divon

Members
  • Posts

    5
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Divon

  1. Hello guys.

    Here a simple Script for Rebuff with L2Adrenaline (Same procedure from my 2 last topics for L2Tower and L2Project).

    This script is simple, but works trying to identify the Song of Wind buff (with not in the buff bar, rebuff):

    //Divon Augusto® - L2Toggle 2020
    var Figth_Flag:boolean;
         Item: TL2Item;
         Npc: TL2Npc;
         Obj: TL2Buff;
         IdBuff: integer;
         Buffs:TL2Buff;
    var L2Skill: TL2Skill;
    
    procedure buff;
    begin
    delay(500);
         Engine.BypassToServer('_bbshome');
         delay(500);
         Engine.BypassToServer('12');
         delay(500);
         Engine.BypassToServer('1b');
    	 delay(500);
    	 Engine.BypassToServer('13');
    end;
    
    
    procedure toBuff;
      begin
      IdBuff:=268 ;  //Song of Wind
       while not User.Buffs.ById(IdBuff,obj) do begin
            Print('Checking Buffs Buffs!');
            buff;
       end;
    end;
    
    //-----------------------------------------------------------------------------
    begin    //repeat the script
    Print('Repeating !!!');
      repeat
       toBuff;
       until Engine.Status = lsOffline;
      Delay(5000);
    end.

    Hope it helps.

    You're free for modify or increment this Script.

    Best regards.

    • Like 1
    • Thanks 1
  2. Hello.

    I made this Script for L2Tower usage. It will rebuff with L2Toggle Community Board (Alt + B) (Like other scripts like L2Adrenaline and L2Project).

    This script Check the Song of Wind buff (most common between all chars). If it is below 5 minutes or do not found the buff, will automatically Open Community and Rebuff with the First Buff Macro created for the char.

     

    --Divon Augusto® - 2020
    function ClickAndWait(link)
    	QuestReply(link);
    	Sleep(1100)
    end;
    
    BuffID = 268;
    
    function rebuff()
    	if (not GetMe():GotBuff(BuffID)
    	or (GetMe():GotBuff(BuffID) 
    	and (GetMe():GetBuff(BuffID).endTime < GetTime() + 119*60*1000))) then
    	ClearTargets()
    	SetPause(true);
    	Sleep(10000);
    	ClickAndWait("_bbshome");
    	ClickAndWait("12");
    	ClickAndWait("1b");
    	ClickAndWait("13");
    	SetPause(false)
    	end;
    end;
    
    repeat
    rebuff()
    until false;

    Put this into a file called Auto-Rebuff-Alt-B-toggle.lua inside your L2tower scripts folder.

    Feel free for modify and increment this script.

    • Thanks 1
  3. Wow, very nice, Mantosh. Thank You.

    Simplifying:

    Send.ReqBypassToServer("_bbshome");
    Send.ReqBypassToServer("12");
    Send.ReqBypassToServer("1b");
    Send.ReqBypassToServer("13");


     

    • Thanks 1
  4. Hello.

    Thanx for this awesome tool.

    I was looking at the code for this script and want to ask you something:

    How can i discover the IDs of buttons inside Community?

    I have a buff-macro previously created and wanted to use it.

    My char is getting just de default classes buffs. Can i use the created (defined) buff macro?

     

    Best regards,

×
×
  • Create New...