Guest User

Untitled

a guest
Jul 17th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. Program Alchemy;
  2.  
  3. {$Include 'skilllogger.inc'}
  4.  
  5. var skills : array of TSkill;
  6.  
  7. const
  8. res_bag = $43EFA77A;
  9. poison_bottle = $0F0A;
  10. emptyBottle_type = $0F0E;
  11. reg_ns = $0F88;
  12.  
  13. procedure grabBottle;
  14. begin
  15. findType(emptyBottle_type, res_bag);
  16.  
  17. if getQuantity(finditem) > 0 then begin
  18. grab(finditem,1);
  19. wait(500);
  20. end;
  21. end;
  22.  
  23. begin
  24.  
  25. skills := [ makeSkill('Poisoning'), makeSkill('Alchemy') ];
  26.  
  27.  
  28. uosay('.macro off');
  29.  
  30. UseObject(res_bag);
  31.  
  32. while not Dead do
  33. begin
  34.  
  35. findType(poison_bottle, res_bag);
  36.  
  37. if getQuantity(finditem) <= 5 then begin
  38.  
  39. useType($0E9B, $0000);
  40.  
  41. grabBottle;
  42.  
  43. FindDistance := 2;
  44. WaitTargetObject(FindType(reg_ns,Ground));
  45. CancelMenu;
  46. AutoMenu('Select a potion to make', '(1)');
  47. wait(7000);
  48. moveItems(backpack, poison_bottle, $0000, res_bag, 0,0,0,500);
  49. skillLogger(skills, @fileLogger);
  50.  
  51. end;
  52.  
  53. end;
  54. end.
Add Comment
Please, Sign In to add comment