Advertisement
Guest User

Untitled

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