Advertisement
Guest User

Untitled

a guest
Nov 27th, 2016
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. program new;
  2. {$DEFINE SMART}
  3. {$i AeroLib/AeroLib.Simba}
  4. {$i Reflection/Reflection.Simba}
  5.  
  6. var
  7. MyPlayer: TReflectLocalPlayer;
  8.  
  9. procedure take_fish;
  10. var
  11. x,y,y2 : integer;
  12.  
  13. begin
  14. if FindColorSpiralTolerance(x,y,859169,6, 7,511, 336,1) then
  15. begin
  16. MoveMouse(x,y);
  17. wait(1000);
  18. ClickMouse(x,y,1);
  19. wait(1000);
  20. y2:=y+30;
  21. MoveMouse(x,y2);
  22. ClickMouse(x,y+2,0);
  23. end;
  24.  
  25. end;
  26.  
  27. procedure Open_bank;
  28. var
  29. banker : TReflectNPC;
  30. location : TPoint;
  31. x,y : integer;
  32. begin
  33. repeat
  34. if banker.Find('Banker') then writeln('atradu bankieri');
  35. location := banker.GetMSPoint;
  36. reflect.Mouse.Move(location,8,8);
  37. wait(300);
  38. reflect.Mouse.Click(MOUSE_RIGHT);
  39. GetMousePos(x,y);
  40. MoveMouse(x,y+40);
  41. wait(500);
  42. location := reflect.Mouse.Getpoint;
  43. writeln(location);
  44. reflect.Mouse.Click(MOUSE_LEFT);
  45. wait(3000);
  46. if not Reflect.Bank.IsOpen then Reflect.Interfaces.CloseAll;
  47. until Reflect.Bank.IsOpen;
  48. end;
  49.  
  50. Procedure Take_items;
  51. var
  52. bankas_itemi : TReflectBankItemArray;
  53. wood : TReflectBankItem;
  54. fish : TReflectBankItem;
  55. begin
  56. wood.Find('Oak logs');
  57. wood.Withdraw(1);
  58.  
  59. fish.Find('Raw trout');
  60. fish.Withdraw(20);
  61. wait(1000);
  62.  
  63. end;
  64.  
  65. Procedure Close_bank;
  66. begin
  67. Reflect.Bank.Close;
  68. wait(500);
  69. end;
  70.  
  71. Procedure Fire;
  72. var
  73. wood : TReflectInvItem;
  74. tinderbox : TReflectInvItem;
  75. begin
  76. wood.Find('Oak logs');
  77. tinderbox.Find('Tinderbox');
  78.  
  79. MoveMouse(210+random(50)-random(50),229+random(50)-random(25));
  80. wait(50);
  81. reflect.Mouse.Click(MOUSE_LEFT);
  82. wait(3000);
  83.  
  84. reflect.Mouse.Move(wood.GetMSPoint,2,2);
  85. wait(50);
  86. reflect.Mouse.Click(MOUSE_LEFT);
  87. wait(50);
  88. reflect.Mouse.Move(tinderbox.GetMSPoint,2,2);
  89. wait(50);
  90. reflect.Mouse.Click(MOUSE_LEFT);
  91. wait(7000);
  92.  
  93. end;
  94.  
  95. procedure Cook_fish;
  96. var
  97. fish : TReflectInvItem;
  98. x,y :integer;
  99. fire : TReflectObject;
  100. point1 : TPoint;
  101. begin
  102. repeat
  103. writeln('sakums');
  104. fire.Find(objGame, 'Fire', 7);
  105. fish.Find('Raw trout');
  106. reflect.Mouse.Move(fish.GetMSPoint,2,2);
  107. wait(100);
  108. reflect.Mouse.Click(MOUSE_LEFT); //uzpsiez uz zivs
  109. writeln('debug1');
  110. wait(200);
  111. humanMMouse(fire.GetMSPoint,2,2);
  112. wait(300);
  113. reflect.Mouse.Click(MOUSE_RIGHT); //uz uguni ar labo
  114. wait(500);
  115. if fire.Find(objGame, 'Fire', 7) = false then
  116. exit;
  117. if FindColorSpiralTolerance(x,y,16776960,MSX1,MSY1,MSX2,MSY2,5) = false then
  118. exit;
  119.  
  120. point1.Y := y;
  121. point1.X := x;
  122. humanMMouse(point1,2,2);
  123. wait(1000);
  124. reflect.Mouse.Click(MOUSE_LEFT); // iet uz uguni
  125. wait(5000);
  126.  
  127. point1.Y := 413;
  128. point1.X := 256;
  129.  
  130. humanMMouse(point1,2,2);
  131.  
  132. // MoveMouse(256, 413);
  133. wait(500);
  134. reflect.Mouse.Click(MOUSE_RIGHT);
  135. wait(500);
  136.  
  137. point1.Y := 480;
  138. point1.X := 256;
  139. humanMMouse(point1,2,2);
  140.  
  141. //MoveMouse(256, 480);
  142. wait(500);
  143. reflect.Mouse.Click(MOUSE_LEFT);
  144. wait(50000+random(3000)-random(3000));
  145.  
  146. writeln('beigas');
  147. until fish.Find('Raw trout') = false;
  148. end;
  149.  
  150. procedure Deposit_fish;
  151. var
  152. x,y :integer;
  153. fish : TReflectInvItem;
  154. burnt_fish : TReflectInvItem;
  155. wood : TReflectInvItem;
  156. begin
  157. fish.Find('Trout');
  158. burnt_fish.Find('Burnt fish');
  159. wood.Find('Oak logs');
  160. repeat
  161. humanMMouse(fish.GetMSPoint,2,2);
  162. reflect.Mouse.Click(MOUSE_RIGHT);
  163. wait(300);
  164. GetMousePos(x,y);
  165. MoveMouse(x,y+100);
  166. wait(300);
  167. fastClick(MOUSE_LEFT);
  168. wait(500);
  169. until fish.Find('Trout') = false;
  170.  
  171. wait(1000);
  172.  
  173. repeat
  174. humanMMouse(burnt_fish.GetMSPoint,2,2);
  175. fastClick(MOUSE_RIGHT);
  176. wait(300);
  177. GetMousePos(x,y);
  178. MoveMouse(x,y+100);
  179. wait(200);
  180. fastClick(MOUSE_LEFT);
  181. wait(500);
  182. until fish.Find('Burnt fish') = false;
  183. wait(1000);
  184.  
  185. repeat
  186. humanMMouse(wood.GetMSPoint,2,2);
  187. fastClick(MOUSE_RIGHT);
  188. wait(200);
  189. GetMousePos(x,y);
  190. MoveMouse(x,y+100);
  191. wait(200);
  192. fastClick(MOUSE_LEFT);
  193. wait(500);
  194. until wood.Find('Oak logs') = false;
  195. wait(1000);
  196.  
  197.  
  198. end;
  199.  
  200. begin
  201. InitAL;
  202. Reflect.Setup;
  203. Myplayer.Create;
  204. LoginPlayer(false);
  205. MyPlayer.Username := '';
  206. MyPlayer.Password := '';
  207. MyPlayer.Pin := '';
  208. MyPlayer.Active := true;
  209. MyPlayer.ChangeWorld(382);
  210. MyPlayer.Login;
  211.  
  212. Reflect.Compass.MakePitch(4);
  213.  
  214. Open_bank;
  215. Take_items;
  216. Close_bank;
  217. Fire;
  218. Cook_fish;
  219.  
  220.  
  221. repeat
  222. Open_bank;
  223. Deposit_fish;
  224. Take_items;
  225. Close_bank;
  226. Fire;
  227. Cook_fish;
  228. until false;
  229.  
  230.  
  231.  
  232. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement