Guest User

Untitled

a guest
Mar 26th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.52 KB | None | 0 0
  1. program YuffieRagbot; {99HP} {BREWS} {43 PRAYER} {SANFEWS}
  2. {$I AeroLib/AeroLib.simba}
  3.  
  4. const
  5.  
  6. USER = 'b';
  7. PASS = 'o';
  8.  
  9. COL = 1332571;
  10. TOL = 25;
  11. HUE = 0.17;
  12. SAT = 0.24;
  13.  
  14. playerAFK = false; {will afk if a player is visible on map}
  15. RunToNPC = false; {will run to closest npc on minimap if it can't find any}
  16.  
  17. var
  18.  
  19. brew, sanfew, x, y: integer;
  20.  
  21. procedure load();
  22. begin
  23. brew := DTMFromString('mkwEAAHicrc5JCoRADIXhZwmCw0IU2mt5WhEnhB5AvJGg9C+VpcsKfCRVSSC1pNVJPToMmJ3/+2AzP3u/8bW82OyIyXbrSCpQ4YXG3PXdK5EjQQzhJB244KyXYt9aPxBApnAR5iLvIf6PihRh');
  24. sanfew := DTMFromString('mKgEAAHiclc1NCkBQGIXhcy3A6G5GfmKAZCUGNiJFKSkmSrZge14xMbynnsHX+er4kjJPChEhQYwUOUoUqFB/99MHOI20YsGEAR16jJixYTfv7+PA1TasGmdWbrEf96XXPzcizw4X');
  25. mousespeed := 60;
  26.  
  27. end;
  28.  
  29.  
  30.  
  31. procedure proggy;
  32. begin
  33. cleardebug;
  34. writeln('OS-Scape YuffieThieving');
  35. writeln(' Time Running: ' + MsToTime(GetTimeRunning, 3));
  36. Writeln('');
  37. wait(30);
  38. end;
  39.  
  40. procedure free();
  41. begin
  42. freedtm(brew);
  43. freedtm(sanfew)
  44. end;
  45.  
  46.  
  47.  
  48. procedure login();
  49. var
  50. count: integer;
  51. begin
  52. wait(500);
  53. mouse(Point(455, 296), 0, 0, mouse_left);
  54. wait(500);
  55. mouse(Point(340, 259), 0, 0, mouse_left);
  56. wait(500);
  57. count := 0;
  58. repeat
  59. Inc(count);
  60. PressKey(VK_Back);
  61. until count > 25;
  62. wait(200);
  63. sendkeys(user, 50, 10);
  64. wait(200);
  65. mouse(Point(340, 275), 0, 0, mouse_left);
  66. count := 0;
  67. repeat
  68. Inc(count);
  69. PressKey(VK_Back);
  70. until count > 25;
  71. wait(200);
  72. sendkeys(pass, 50, 10);
  73. wait(200);
  74. mouse(Point(294, 320), 0, 0, mouse_left);
  75. waitfunc(@ isloggedin, 100, 10000);
  76. if (isloggedin()) then
  77. begin
  78.  
  79. end;
  80. end;
  81.  
  82.  
  83. procedure eat();
  84. var
  85. I, x, y: Integer;
  86. spot : Tpoint;
  87. begin
  88. gameTab(TAB_INV);
  89. begin
  90. if (findDTM(brew, x, y, MIX1, MIY1, MIX2, MIY2)) then
  91. begin
  92. Spot := (point(x, y));
  93. AccurateMMouse(Spot, 0, 0);
  94. fastClick(MOUSE_LEFT);
  95. SendKeys('Hoooooohoooooo!', 1, 1)
  96.  
  97. begin
  98. PressKey(13)
  99. end;
  100.  
  101. end
  102. else
  103. begin
  104. writeln('No brews found');
  105. terminatescript;
  106. end;
  107. end;
  108. end;
  109.  
  110. procedure drink();
  111. var
  112. I, x, y: Integer;
  113. spot : Tpoint;
  114. begin
  115. gameTab(TAB_INV);
  116. begin
  117. if (findDTM(sanfew, x, y, MIX1, MIY1, MIX2, MIY2)) then
  118. begin
  119. Spot := (point(x, y));
  120. AccurateMMouse(Spot, 0, 0);
  121. fastClick(MOUSE_LEFT);
  122. SendKeys('Heeeeheeeeee!', 1, 1)
  123.  
  124. begin
  125. PressKey(13)
  126. end;
  127.  
  128. end
  129. else
  130. begin
  131. writeln('No Sanfews found');
  132. terminatescript;
  133. end;
  134. end;
  135. end;
  136.  
  137.  
  138.  
  139. procedure loop();
  140. begin
  141.  
  142. if (getMiniMapDotsIn('player', Area_MM)) then
  143. if (playerAFK = true) then
  144. while (getMiniMapDotsIn('player', Area_MM)) do
  145. begin
  146. wait(300);
  147. writeln('Player Visible - Pretending to be afk');
  148. end;
  149. if (not isloggedin()) then
  150. login();
  151. begin
  152.  
  153. if FindColor(X,Y,1535,521,54,540,67) then eat(); {1}
  154. if FindColor(X,Y,2815,521,54,540,67) then eat(); {2}
  155. if FindColor(X,Y,4095,521,54,540,67) then eat(); {3}
  156. if FindColor(X,Y,5375,521,54,540,67) then eat(); {4}
  157. if FindColor(X,Y,6911,521,54,540,67) then eat(); {5}
  158. if FindColor(X,Y,8191,521,54,540,67) then eat(); {6}
  159. if FindColor(X,Y,9471,521,54,540,67) then eat(); {7}
  160. if FindColor(X,Y,10751,521,54,540,67) then eat(); {8}
  161. if FindColor(X,Y,12031,521,54,540,67) then eat(); {9}
  162. if FindColor(X,Y,13567,521,54,540,67) then eat(); {10}
  163. if FindColor(X,Y,14847,521,54,540,67) then eat(); {11}
  164. if FindColor(X,Y,16127,521,54,540,67) then eat(); {12}
  165. if FindColor(X,Y,17407,521,54,540,67) then eat(); {13}
  166. if FindColor(X,Y,18687,521,54,540,67) then eat(); {14}
  167. if FindColor(X,Y,20223,521,54,540,67) then eat(); {15}
  168. if FindColor(X,Y,21503,521,54,540,67) then eat(); {16}
  169. if FindColor(X,Y,22783,521,54,540,67) then eat(); {17}
  170. if FindColor(X,Y,24063,521,54,540,67) then eat(); {18}
  171. if FindColor(X,Y,25343,521,54,540,67) then eat(); {19}
  172. if FindColor(X,Y,26879,521,54,540,67) then eat(); {20}
  173. if FindColor(X,Y,28159,521,54,540,67) then eat(); {21}
  174. if FindColor(X,Y,29439,521,54,540,67) then eat(); {22}
  175. if FindColor(X,Y,30719,521,54,540,67) then eat(); {23}
  176. if FindColor(X,Y,31999,521,54,540,67) then eat(); {24}
  177. if FindColor(X,Y,33535,521,54,540,67) then eat(); {25}
  178. if FindColor(X,Y,34815,521,54,540,67) then eat(); {26}
  179. if FindColor(X,Y,36095,521,54,540,67) then eat(); {27}
  180. if FindColor(X,Y,37375,521,54,540,67) then eat(); {28}
  181. if FindColor(X,Y,38655,521,54,540,67) then eat(); {29}
  182. if FindColor(X,Y,40191,521,54,540,67) then eat(); {30}
  183. if FindColor(X,Y,41471,521,54,540,67) then eat(); {31}
  184. if FindColor(X,Y,42751,521,54,540,67) then eat(); {32}
  185. if FindColor(X,Y,44031,521,54,540,67) then eat(); {33}
  186. if FindColor(X,Y,45311,521,54,540,67) then eat(); {34}
  187. if FindColor(X,Y,46847,521,54,540,67) then eat(); {35}
  188. if FindColor(X,Y,48127,521,54,540,67) then eat(); {36}
  189. if FindColor(X,Y,49407,521,54,540,67) then eat(); {37}
  190. if FindColor(X,Y,50687,521,54,540,67) then eat(); {38}
  191. if FindColor(X,Y,51967,521,54,540,67) then eat(); {39}
  192. if FindColor(X,Y,53503,521,54,540,67) then eat(); {40}
  193. if FindColor(X,Y,54783,521,54,540,67) then eat(); {41}
  194. if FindColor(X,Y,56063,521,54,540,67) then eat(); {42}
  195. if FindColor(X,Y,57343,521,54,540,67) then eat(); {43}
  196. if FindColor(X,Y,58623,521,54,540,67) then eat(); {44}
  197. if FindColor(X,Y,60159,521,54,540,67) then eat(); {45}
  198. if FindColor(X,Y,61439,521,54,540,67) then eat(); {46}
  199. if FindColor(X,Y,62719,521,54,540,67) then eat(); {47}
  200. if FindColor(X,Y,63999,521,54,540,67) then eat(); {48}
  201. if FindColor(X,Y,65535,521,54,540,67) then eat(); {49}
  202. if FindColor(X,Y,65530,521,54,540,67) then eat(); {50}
  203. if FindColor(X,Y,65525,521,54,540,67) then eat(); {51}
  204. if FindColor(X,Y,65520,521,54,540,67) then eat(); {52}
  205. if FindColor(X,Y,65515,521,54,540,67) then eat(); {53}
  206. if FindColor(X,Y,65509,521,54,540,67) then eat(); {54}
  207. if FindColor(X,Y,65504,521,54,540,67) then eat(); {55}
  208. if FindColor(X,Y,65499,521,54,540,67) then eat(); {56}
  209. if FindColor(X,Y,65494,521,54,540,67) then eat(); {57}
  210. if FindColor(X,Y,65489,521,54,540,67) then eat(); {58}
  211. if FindColor(X,Y,65483,521,54,540,67) then eat(); {59}
  212. if FindColor(X,Y,65478,521,54,540,67) then eat(); {60}
  213. if FindColor(X,Y,65473,521,54,540,67) then eat(); {61}
  214. if FindColor(X,Y,65468,521,54,540,67) then eat(); {62}
  215. if FindColor(X,Y,65463,521,54,540,67) then eat(); {63}
  216. if FindColor(X,Y,65457,521,54,540,67) then eat(); {64}
  217. if FindColor(X,Y,65452,521,54,540,67) then eat(); {65}
  218. if FindColor(X,Y,65447,521,54,540,67) then eat(); {66}
  219. if FindColor(X,Y,65442,521,54,540,67) then eat(); {67}
  220. if FindColor(X,Y,65437,521,54,540,67) then eat(); {68}
  221. if FindColor(X,Y,65431,521,54,540,67) then eat(); {69}
  222. if FindColor(X,Y,65426,521,54,540,67) then eat(); {70}
  223. if FindColor(X,Y,65421,521,54,540,67) then eat(); {71}
  224. if FindColor(X,Y,65416,521,54,540,67) then eat(); {72}
  225. if FindColor(X,Y,65411,521,54,540,67) then eat(); {73}
  226. if FindColor(X,Y,65405,521,54,540,67) then eat(); {74}
  227. if FindColor(X,Y,65400,521,54,540,67) then eat(); {75}
  228. if FindColor(X,Y,65395,521,54,540,67) then eat(); {76}
  229. if FindColor(X,Y,65390,521,54,540,67) then eat(); {77}
  230. if FindColor(X,Y,65385,521,54,540,67) then eat(); {78}
  231. if FindColor(X,Y,65379,521,54,540,67) then eat(); {79}
  232. if FindColor(X,Y,65374,521,54,540,67) then eat(); {80}
  233. if FindColor(X,Y,65369,521,54,540,67) then eat(); {81}
  234. if FindColor(X,Y,65364,521,54,540,67) then eat(); {82}
  235. if FindColor(X,Y,65359,521,54,540,67) then eat(); {83}
  236. if FindColor(X,Y,65353,521,54,540,67) then eat(); {84}
  237. if FindColor(X,Y,65348,521,54,540,67) then eat(); {85}
  238. if FindColor(X,Y,65343,521,54,540,67) then eat(); {86}
  239. if FindColor(X,Y,65338,521,54,540,67) then eat(); {87}
  240. if FindColor(X,Y,65333,521,54,540,67) then eat(); {88}
  241. if FindColor(X,Y,65327,521,54,540,67) then eat(); {89}
  242. if FindColor(X,Y,65322,521,54,540,67) then eat(); {90}
  243. if FindColor(X,Y,65317,521,54,540,67) then eat(); {91}
  244. if FindColor(X,Y,65312,521,54,540,67) then eat(); {92}
  245. if FindColor(X,Y,65307,521,54,540,67) then eat(); {93}
  246. if FindColor(X,Y,65301,521,54,540,67) then eat(); {94}
  247. if FindColor(X,Y,65296,521,54,540,67) then eat(); {95}
  248. if FindColor(X,Y,65291,521,54,540,67) then eat(); {96}
  249. if FindColor(X,Y,65286,521,54,540,67) then eat(); {97}
  250.  
  251. end;
  252.  
  253. begin
  254.  
  255. if FindColor(X,Y,3327,521,99,540,111) then drink(); {1}
  256. if FindColor(X,Y,6399,521,99,540,111) then drink(); {2}
  257. if FindColor(X,Y,9471,521,99,540,111) then drink(); {3}
  258. if FindColor(X,Y,12543,521,99,540,111) then drink(); {4}
  259. if FindColor(X,Y,15615,521,99,540,111) then drink(); {5}
  260. if FindColor(X,Y,18687,521,99,540,111) then drink(); {6}
  261. if FindColor(X,Y,22015,521,99,540,111) then drink(); {7}
  262. if FindColor(X,Y,25087,521,99,540,111) then drink(); {8}
  263. if FindColor(X,Y,28159,521,99,540,111) then drink(); {9}
  264. if FindColor(X,Y,31231,521,99,540,111) then drink(); {10}
  265. if FindColor(X,Y,34303,521,99,540,111) then drink(); {11}
  266. if FindColor(X,Y,37375,521,99,540,111) then drink(); {12}
  267. if FindColor(X,Y,40447,521,99,540,111) then drink(); {13}
  268. if FindColor(X,Y,43775,521,99,540,111) then drink(); {14}
  269. if FindColor(X,Y,46847,521,99,540,111) then drink(); {15}
  270. if FindColor(X,Y,49919,521,99,540,111) then drink(); {16}
  271. if FindColor(X,Y,52991,521,99,540,111) then drink(); {17}
  272. if FindColor(X,Y,56063,521,99,540,111) then drink(); {18}
  273. if FindColor(X,Y,59135,521,99,540,111) then drink(); {19}
  274. if FindColor(X,Y,59135,521,99,540,111) then drink(); {20}
  275. if FindColor(X,Y,65535,521,99,540,111) then drink(); {21}
  276. if FindColor(X,Y,65523,521,99,540,111) then drink(); {22}
  277. if FindColor(X,Y,65511,521,99,540,111) then drink(); {23}
  278. if FindColor(X,Y,65499,521,99,540,111) then drink(); {24}
  279. if FindColor(X,Y,65487,521,99,540,111) then drink(); {25}
  280. if FindColor(X,Y,65475,521,99,540,111) then drink(); {26}
  281.  
  282.  
  283.  
  284. end;
  285. end;
  286.  
  287. begin
  288. initAL();
  289. load();
  290. AddOnTerminate('free');
  291. if (not isloggedin()) then
  292. login();
  293. setangle(0);
  294. repeat
  295. loop();
  296.  
  297. until (false)
  298. end.
Add Comment
Please, Sign In to add comment