Guest User

Untitled

a guest
May 20th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.51 KB | None | 0 0
  1. function RunesExists: Boolean;
  2. var
  3.   i, ii: Integer;
  4.   RuneArr: Array of ListItem;
  5.   TextArr: TStringArray;
  6.   InvItem: ListItem;
  7. begin
  8.   SetLength(RuneArr, 3);
  9.   SetLength(TextArr, 3);
  10.   RuneArr := [AirRune, WaterRune, LawRune];
  11.   TextArr := [AirRune.UpTextArr, WaterRune.UpTextArr, LawRune.UpTextArr];
  12.   for i := 0 to 2 do
  13.     for ii :=1 to 28 do
  14.     begin
  15.       InvItem := GetInvItem(ii);
  16.       if (CompareBlacklist(InvItem, RuneArr[i], TextArr[i], tab_Inv)) then
  17.         WriteLn('found rune')
  18.     end;
  19. end
Add Comment
Please, Sign In to add comment