Jump to content

Adrenaline Switching Weapons When Low Hp


Recommended Posts

How can i set up in adrenaline when my hp is below 40% to change to a meele weapon so i can lifesteal and when my hp is above 80% to change back to crossbow? I tried putting it in both attack and self buff with conditions but it keeps spam equiping the weapon can i do it with a script or is it possible without one?

 

Link to comment
Share on other sites

Check this script and modify id's of your weapons

procedure checkHP;         // PONE DAGA O ARCO DEPENDIENDO DEL HP (Dagger or Bow checking hp)
var
 item:Tl2Item;
 bow,dagger:integer;
begin
dagger:=6591;   //Angel Slayer(HP Drain)
bow:=7577;  //Draco Bow(focus) 
Inventory.User.ByID(dagger, item);
   if ((User.HP < 50) and (item.equipped=false))
    then begin
    Engine.UseItem(dagger);
    Delay(1000) ;
    end;
   if ((User.HP > 70) and (item.equipped=true))
    then begin
    Engine.UseItem(bow);
    Delay(1000) ;
    end;   
end;

begin
while true do begin
delay(2000);
CheckHP;
end;
end.

Credits by me :P

 

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