Advertisement
Guest User

Untitled

a guest
Oct 8th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.79 KB | None | 0 0
  1. program YuffieThievingV4; {99HP} {BREWS}
  2. {$I AeroLib/AeroLib.simba}
  3.  
  4. const
  5.  
  6. USER = 'b';
  7. PASS = 'ohhello123';
  8.  
  9. COL = 3080239;
  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('maQEAAHicpc7BCYAwDIXh1A0c0oujCFKVSmlrVRC6gfv5izl6a+AjISHwWhFxjUhCwIaMQ0VMGJXFjEX7++tRDDusiMg4cZnvVnTekeDhYDGou+9IYyrVV22C3xQPpEEWGA==');
  25. mousespeed := 60;
  26.  
  27. end;
  28.  
  29. procedure proggy;
  30. begin
  31. cleardebug;
  32. writeln('OS-Scape YuffieThieving');
  33. writeln(' Time Running: ' + MsToTime(GetTimeRunning, 3));
  34. Writeln('');
  35. wait(30);
  36. end;
  37.  
  38. procedure free();
  39. begin
  40. freedtm(brew);
  41. end;
  42.  
  43. procedure compass_reset();
  44. begin
  45. mouse(Point(561, 20), 0, 0, mouse_left);
  46. end;
  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. compass_reset;
  79. end;
  80. end;
  81.  
  82. procedure eat();
  83. var
  84. I, x, y: Integer;
  85. spot : Tpoint;
  86. begin
  87. gameTab(TAB_INV);
  88. begin
  89. if (findDTM(brew, x, y, MIX1, MIY1, MIX2, MIY2)) then
  90. begin
  91. Spot := (point(x, y));
  92. AccurateMMouse(Spot, 0, 0);
  93. fastClick(MOUSE_LEFT);
  94. sleep(2000);
  95. end
  96. else
  97. begin
  98. writeln('No brews found');
  99. terminatescript;
  100. end;
  101. end;
  102. end;
  103.  
  104. procedure drink();
  105. var
  106. I, x, y: Integer;
  107. spot : Tpoint;
  108. begin
  109. gameTab(TAB_INV);
  110. begin
  111. if (findDTM(sanfew, x, y, MIX1, MIY1, MIX2, MIY2)) then
  112. begin
  113. Spot := (point(x, y));
  114. AccurateMMouse(Spot, 0, 0);
  115. fastClick(MOUSE_LEFT);
  116. sleep(2000);
  117. end
  118. else
  119. begin
  120. writeln('No Sanfews found');
  121. terminatescript;
  122. end;
  123. end;
  124. end;
  125.  
  126.  
  127. procedure stealNPC();
  128. var
  129. TPA: TPointArray;
  130. ATPA: T2DPointArray;
  131. I: Integer;
  132. spot: TPoint;
  133. t: Timer;
  134. tCol: TColEx;
  135. BOX: TBOX;
  136. begin
  137. if (not isloggedin) then
  138. exit;
  139. tCol.create(COL, TOL, HUE, SAT);
  140. if (not tCol.findAllIn(AREA_MS, TPA)) then
  141. begin
  142. waitfunc(@ isPlayerWalking, 200, 1500) while (isLoggedIn() and isPlayerWalking()) do
  143. sleep(random(5, 20));
  144. exit;
  145. end;
  146. ATPA := FloodFillTPA(TPA);
  147. SortATPAFromMidPoint(ATPA, Point(MSCX, MSCY));
  148. if (length(ATPA) <= 0) then
  149. exit;
  150. for I := 0 to high(ATPA) do
  151. begin
  152. if (length(ATPA[I]) >= 20) then
  153. begin
  154. box := toBox(ATPA[I].getBounds().X1 - 10, ATPA[I].getBounds().Y1 - 35, ATPA[I].getBounds().X2, ATPA[I].getBounds().Y2);
  155. if (box.x1 < 0) then
  156. box.x1 := 0;
  157. if (box.y1 < 0) then
  158. box.y1 := 0;
  159. if (not findColorSpiral(x, y, 255, box.X1, box.Y1, box.X2, box.Y2)) and (not findColorSpiral(x, y, 65280, box.X1, box.Y1, box.X2, box.Y2)) then
  160.  
  161. begin
  162. spot := (MiddleTPA(ATPA[I]));
  163. accurateMMouse(spot, 0, 0);
  164. if (waitUptext('ttack CLOWN', 5)) then
  165. fastClick(MOUSE_LEFT)
  166. else
  167. begin
  168. fastClick(MOUSE_Right);
  169. if not waitOption('ollow CLOWN', 5) then
  170. exit;
  171. end;
  172.  
  173. if (didYellowClick()) then
  174. waitfunc(@ isPlayerWalking, 200, 1500)
  175. while (isLoggedIn() and isPlayerWalking()) do
  176. sleep(random(240, 300));
  177. exit;
  178. end;
  179. end;
  180. end;
  181. end;
  182.  
  183. procedure loop();
  184. begin
  185.  
  186. if (getMiniMapDotsIn('player', Area_MM)) then
  187. if (playerAFK = true) then
  188. while (getMiniMapDotsIn('player', Area_MM)) do
  189. begin
  190. wait(300);
  191. writeln('Player Visible - Pretending to be afk');
  192. end;
  193. if (not isloggedin()) then
  194. login();
  195. begin
  196.  
  197. if FindColor(X,Y,1535,521,54,540,67) then eat(); {1}
  198. if FindColor(X,Y,2815,521,54,540,67) then eat(); {2}
  199. if FindColor(X,Y,4095,521,54,540,67) then eat(); {3}
  200. if FindColor(X,Y,5375,521,54,540,67) then eat(); {4}
  201. if FindColor(X,Y,6911,521,54,540,67) then eat(); {5}
  202. if FindColor(X,Y,8191,521,54,540,67) then eat(); {6}
  203. if FindColor(X,Y,9471,521,54,540,67) then eat(); {7}
  204. if FindColor(X,Y,10751,521,54,540,67) then eat(); {8}
  205. if FindColor(X,Y,12031,521,54,540,67) then eat(); {9}
  206. if FindColor(X,Y,13567,521,54,540,67) then eat(); {10}
  207. if FindColor(X,Y,14847,521,54,540,67) then eat(); {11}
  208. if FindColor(X,Y,16127,521,54,540,67) then eat(); {12}
  209. if FindColor(X,Y,17407,521,54,540,67) then eat(); {13}
  210. if FindColor(X,Y,18687,521,54,540,67) then eat(); {14}
  211. if FindColor(X,Y,20223,521,54,540,67) then eat(); {15}
  212. if FindColor(X,Y,21503,521,54,540,67) then eat(); {16}
  213. if FindColor(X,Y,22783,521,54,540,67) then eat(); {17}
  214. if FindColor(X,Y,24063,521,54,540,67) then eat(); {18}
  215. if FindColor(X,Y,25343,521,54,540,67) then eat(); {19}
  216. if FindColor(X,Y,26879,521,54,540,67) then eat(); {20}
  217. if FindColor(X,Y,28159,521,54,540,67) then eat(); {21}
  218. if FindColor(X,Y,29439,521,54,540,67) then eat(); {22}
  219. if FindColor(X,Y,30719,521,54,540,67) then eat(); {23}
  220. if FindColor(X,Y,31999,521,54,540,67) then eat(); {24}
  221. if FindColor(X,Y,33535,521,54,540,67) then eat(); {25}
  222. if FindColor(X,Y,34815,521,54,540,67) then eat(); {26}
  223. if FindColor(X,Y,36095,521,54,540,67) then eat(); {27}
  224. if FindColor(X,Y,37375,521,54,540,67) then eat(); {28}
  225. if FindColor(X,Y,38655,521,54,540,67) then eat(); {29}
  226. if FindColor(X,Y,40191,521,54,540,67) then eat(); {30}
  227. if FindColor(X,Y,41471,521,54,540,67) then eat(); {31}
  228. if FindColor(X,Y,42751,521,54,540,67) then eat(); {32}
  229. if FindColor(X,Y,44031,521,54,540,67) then eat(); {33}
  230. if FindColor(X,Y,45311,521,54,540,67) then eat(); {34}
  231. if FindColor(X,Y,46847,521,54,540,67) then eat(); {35}
  232. if FindColor(X,Y,48127,521,54,540,67) then eat(); {36}
  233. if FindColor(X,Y,49407,521,54,540,67) then eat(); {37}
  234. if FindColor(X,Y,50687,521,54,540,67) then eat(); {38}
  235. if FindColor(X,Y,51967,521,54,540,67) then eat(); {39}
  236. if FindColor(X,Y,53503,521,54,540,67) then eat(); {40}
  237. if FindColor(X,Y,54783,521,54,540,67) then eat(); {41}
  238. if FindColor(X,Y,56063,521,54,540,67) then eat(); {42}
  239. if FindColor(X,Y,57343,521,54,540,67) then eat(); {43}
  240. if FindColor(X,Y,58623,521,54,540,67) then eat(); {44}
  241. if FindColor(X,Y,60159,521,54,540,67) then eat(); {45}
  242. if FindColor(X,Y,61439,521,54,540,67) then eat(); {46}
  243. if FindColor(X,Y,62719,521,54,540,67) then eat(); {47}
  244. if FindColor(X,Y,63999,521,54,540,67) then eat(); {48}
  245. if FindColor(X,Y,65535,521,54,540,67) then eat(); {49}
  246. if FindColor(X,Y,65530,521,54,540,67) then eat(); {50}
  247. if FindColor(X,Y,65525,521,54,540,67) then eat(); {51}
  248. if FindColor(X,Y,65520,521,54,540,67) then eat(); {52}
  249. if FindColor(X,Y,65515,521,54,540,67) then eat(); {53}
  250. if FindColor(X,Y,65509,521,54,540,67) then eat(); {54}
  251. if FindColor(X,Y,65504,521,54,540,67) then eat(); {55}
  252. if FindColor(X,Y,65499,521,54,540,67) then eat(); {56}
  253. if FindColor(X,Y,65494,521,54,540,67) then eat(); {57}
  254. if FindColor(X,Y,65489,521,54,540,67) then eat(); {58}
  255. if FindColor(X,Y,65483,521,54,540,67) then eat(); {59}
  256. if FindColor(X,Y,65478,521,54,540,67) then eat(); {60}
  257. if FindColor(X,Y,65473,521,54,540,67) then eat(); {61}
  258. if FindColor(X,Y,65468,521,54,540,67) then eat(); {62}
  259. if FindColor(X,Y,65463,521,54,540,67) then eat(); {63}
  260. if FindColor(X,Y,65457,521,54,540,67) then eat(); {64}
  261. if FindColor(X,Y,65452,521,54,540,67) then eat(); {65}
  262. if FindColor(X,Y,65447,521,54,540,67) then eat(); {66}
  263. if FindColor(X,Y,65442,521,54,540,67) then eat(); {67}
  264. if FindColor(X,Y,65437,521,54,540,67) then eat(); {68}
  265. if FindColor(X,Y,65431,521,54,540,67) then eat(); {69}
  266. if FindColor(X,Y,65426,521,54,540,67) then eat(); {70}
  267. if FindColor(X,Y,65421,521,54,540,67) then eat(); {71}
  268. if FindColor(X,Y,65416,521,54,540,67) then eat(); {72}
  269. if FindColor(X,Y,65411,521,54,540,67) then eat(); {73}
  270. if FindColor(X,Y,65405,521,54,540,67) then eat(); {74}
  271. if FindColor(X,Y,65400,521,54,540,67) then eat(); {75}
  272. if FindColor(X,Y,65395,521,54,540,67) then eat(); {76}
  273. if FindColor(X,Y,65390,521,54,540,67) then eat(); {77}
  274. if FindColor(X,Y,65385,521,54,540,67) then eat(); {78}
  275. if FindColor(X,Y,65379,521,54,540,67) then eat(); {79}
  276. if FindColor(X,Y,65374,521,54,540,67) then eat(); {80}
  277. if FindColor(X,Y,65369,521,54,540,67) then eat(); {81}
  278. if FindColor(X,Y,65364,521,54,540,67) then eat(); {82}
  279. if FindColor(X,Y,65359,521,54,540,67) then eat(); {83}
  280. if FindColor(X,Y,65353,521,54,540,67) then eat(); {84}
  281. if FindColor(X,Y,65348,521,54,540,67) then eat(); {85}
  282. if FindColor(X,Y,65343,521,54,540,67) then eat(); {86}
  283. if FindColor(X,Y,65338,521,54,540,67) then eat(); {87}
  284. if FindColor(X,Y,65333,521,54,540,67) then eat(); {88}
  285. if FindColor(X,Y,65327,521,54,540,67) then eat(); {89}
  286. if FindColor(X,Y,65322,521,54,540,67) then eat(); {90}
  287. if FindColor(X,Y,65317,521,54,540,67) then eat(); {91}
  288. if FindColor(X,Y,65312,521,54,540,67) then eat(); {92}
  289. if FindColor(X,Y,65307,521,54,540,67) then eat(); {93}
  290. if FindColor(X,Y,65301,521,54,540,67) then eat(); {94}
  291. if FindColor(X,Y,65296,521,54,540,67) then eat(); {95}
  292. if FindColor(X,Y,65291,521,54,540,67) then eat(); {96}
  293. if FindColor(X,Y,65286,521,54,540,67) then eat(); {97}
  294.  
  295. end;
  296.  
  297. begin
  298.  
  299. if FindColor(X,Y,3327,521,99,540,111) then drink(); {1}
  300. if FindColor(X,Y,6399,521,99,540,111) then drink(); {2}
  301. if FindColor(X,Y,9471,521,99,540,111) then drink(); {3}
  302. if FindColor(X,Y,12543,521,99,540,111) then drink(); {4}
  303. if FindColor(X,Y,15615,521,99,540,111) then drink(); {5}
  304. if FindColor(X,Y,18687,521,99,540,111) then drink(); {6}
  305. if FindColor(X,Y,22015,521,99,540,111) then drink(); {7}
  306. if FindColor(X,Y,25087,521,99,540,111) then drink(); {8}
  307. if FindColor(X,Y,28159,521,99,540,111) then drink(); {9}
  308. if FindColor(X,Y,31231,521,99,540,111) then drink(); {10}
  309. if FindColor(X,Y,34303,521,99,540,111) then drink(); {11}
  310. if FindColor(X,Y,37375,521,99,540,111) then drink(); {12}
  311. if FindColor(X,Y,40447,521,99,540,111) then drink(); {13}
  312. if FindColor(X,Y,43775,521,99,540,111) then drink(); {14}
  313. if FindColor(X,Y,46847,521,99,540,111) then drink(); {15}
  314. if FindColor(X,Y,49919,521,99,540,111) then drink(); {16}
  315. if FindColor(X,Y,52991,521,99,540,111) then drink(); {17}
  316. if FindColor(X,Y,56063,521,99,540,111) then drink(); {18}
  317. if FindColor(X,Y,59135,521,99,540,111) then drink(); {19}
  318. if FindColor(X,Y,59135,521,99,540,111) then drink(); {20}
  319. if FindColor(X,Y,65535,521,99,540,111) then drink(); {21}
  320. if FindColor(X,Y,65523,521,99,540,111) then drink(); {22}
  321. if FindColor(X,Y,65511,521,99,540,111) then drink(); {23}
  322. if FindColor(X,Y,65499,521,99,540,111) then drink(); {24}
  323. if FindColor(X,Y,65487,521,99,540,111) then drink(); {25}
  324. if FindColor(X,Y,65475,521,99,540,111) then drink(); {26}
  325.  
  326.  
  327. stealNPC();
  328. end;
  329. end;
  330.  
  331. begin
  332. initAL();
  333. load();
  334. AddOnTerminate('free');
  335. if (not isloggedin()) then
  336. login();
  337. compass_reset();
  338. setangle(0);
  339. repeat
  340. loop();
  341. stealNPC();
  342. until (false)
  343. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement