Jump to content

gemisiz1

Members
  • Content Count

    8
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

0 Neutral

About gemisiz1

  • Rank
    Vassal

Profile Information

  • Gender
    Male
  • Country
    Turkey
  1. hi ppl. how do I run it for the party. I can not run function isHaveBuff(BuffArray : array of cardinal) : boolean; var i:integer; buff : tl2buff; begin result := true; for i := 0 to high(BuffArray) do begin if not party.chars.byid(BuffArray[i], buff) then begin result := false; exit; end; end; end; function getItem(id : cardinal) : tl2item; var item : tl2item; begin inventory.user.byid(id, item); result := item; end; var item : tl2item; ItemID_1, ItemID_2: cardinal; begin ItemID_1 :=6313; ItemID_2 :=11101; while delay(555) do begin if not isHaveBuff([1397]) then begin if (getItem(ItemID_1) <> nil) and (not getItem(ItemID_1).equipped) then begin engine.useItem(ItemID_1); end; end else begin if (getItem(ItemID_2) <> nil) and (not getItem(ItemID_2).equipped) then begin engine.useItem(ItemID_2); end; end; end; end.
  2. function isHaveBuff(BuffArray : array of cardinal) : boolean; var i:integer; buff : tl2buff; begin result := true; for i := 0 to high(BuffArray) do begin if not party.chars.items(Index).byid(id, tl2buff) then begin result := false; exit; end; end; end; not working :(
  3. thanks works very well. Can we do it according to the party buff?
  4. hi how can i do it according to buff. for example, when the dance ends, it will be dual. You will use the sword weapon while you have a dance buff
×