Guest User

Untitled

a guest
Jul 20th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. program guard;
  2.  
  3. const
  4. slime = $0000;
  5. elem = $0000;
  6. human = $0190;
  7. human2 = $0191;
  8. heal_pot = $0000;
  9. bandage_type = $0000;
  10.  
  11. procedure CheckHeal;
  12. begin
  13. If Life < MaxHits then
  14. begin
  15. while Life < Str do
  16. begin
  17. if isDead(self) then exit;
  18. if Life < 35 then usetype(heal_pot, $FFFF);
  19. waittargetself();
  20. usetype(bandage_type, $FFFF);
  21. wait(4500);
  22. addtosystemjournal('SYS: Healing.');
  23. end;
  24. end;
  25. end;
  26.  
  27.  
  28. begin
  29. var target_x, target_y : integer;
  30.  
  31. while not Dead do
  32. begin
  33. finddistance := 10;
  34.  
  35. if (findtype(slime, ground) <> 0 OR findtype(elem, ground) <> 0 OR findtype(human, ground) <> 0 OR findtype(human2, ground) <> 0) then
  36. begin
  37. addtosystemjournal('SYS: Found.');
  38. target_x = getX(finditem);
  39. target_y = getY(finditem);
  40. moveXY(target_x, target_y, true, 1, true)
  41. repeat
  42. attack(finditem);
  43. wait(1000);
  44. checkHeal();
  45. until getHP(findtem) = 0;
  46. wait(2000);
  47. moveXY(1656, 2930, true, 0, false);
  48. repeat
  49. useskill(Hiding);
  50. wait(1000);
  51. until isHidden(self) = true;
  52. end;
  53. end;
  54. end.
Add Comment
Please, Sign In to add comment