Guest User

Untitled

a guest
Jul 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. program melting;
  2.  
  3. const
  4. shield = $1B7B;
  5. tunic = $13BF;
  6.  
  7. function findbs(creatures : array of word) : cardinal;
  8. var
  9. i : integer;
  10. begin
  11. result := 0;
  12.  
  13. for i := 0 to getArrayLength(creatures) - 1 do
  14. begin
  15. result := findType(creatures[i], ground);
  16. if (result <> 0) then exit;
  17. end;
  18. end;
  19.  
  20. begin
  21.  
  22. while not Dead do
  23. begin
  24. finddistance := 5;
  25.  
  26. if findbs([shield, tunic]) <> 0 then
  27. begin
  28. usetype($0FBB, $FFFF);
  29. waittargetobject(finditem);
  30. end;
  31. wait(1000);
  32. end;
  33.  
  34. end.
Add Comment
Please, Sign In to add comment