Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.33 KB | None | 0 0
  1. Program AMMH;
  2. var www,y1,x1,hitcount,z,w,HitCountReset,Facing,TargetDir,people,monster,
  3. hpcolor,x,y,monstercount,monsters,Ice_cold,Icyhawt,exp,clicker,Facing,Tapped:integer;
  4. const
  5. user=''; //username
  6. pass=''; //password
  7. Procedure ReadString(str: String);{by rena: START}
  8. var
  9. i,strLength :Integer;
  10. goer: Boolean;
  11. begin
  12. i:=1
  13. strLength:=Length(str)
  14. goer:=False
  15. while(i<strLength+1) do
  16. begin
  17. if(GetKeyCode(StrGet(str,i))=191)then
  18. begin
  19. KeyDown(16)
  20. goer:=True
  21. i:=i+1
  22. end;
  23. KeyDown(GetKeyCode(StrGet(str,i)))
  24. wait(50)
  25. KeyUp(GetKeyCode(StrGet(str,i)))
  26. wait(100)
  27. KeyUp(GetKeyCode(StrGet(str,i)))
  28. wait(50)
  29. i:=i+1
  30. if(goer=True)then
  31. begin
  32. KeyUp(16)
  33. wait(600)
  34. end;
  35. end;
  36. wait(300)
  37. end;{by rena: END}
  38. procedure w2(ww:integer); //1=butterflys
  39. begin //2=nutvipers1
  40. www:=ww*100 //3=nutvipers2
  41. repeat
  42. www:=www-100
  43. cleardebug
  44. writeln('Waiting: '+ inttostr(www/100))
  45. wait(210)
  46. until www=0
  47. end;
  48. procedure check_clock;
  49. begin
  50. findwindowtitlepart('date and time properties', false);
  51. activateclient
  52. writeln('resetting clock')
  53. w2(1)
  54. keyup(17)
  55. wait(250)
  56. keyup(17)
  57. writeln('now clicking *9* on clock')
  58. clickmouse(261,239,true)
  59. wait(50)
  60. clickmouse(261,239,true)
  61. wait(1500)
  62. ReadString('9')
  63. w2(1)
  64. ReadString('9')
  65. w2(5)
  66. clickmouse(356,324,true)
  67. wait(1000)
  68. findwindowtitlepart('endless online',false)
  69. activateclient
  70. wait(1000)
  71. keydown(17)
  72. wait(150)
  73. end;
  74. procedure onme; // tells if monster is ontop of you
  75. begin
  76. If Findcolor(x,y,Monster,306,173,312,189)
  77. then
  78. begin
  79. keydown(123)
  80. wait(10)
  81. keyup(123)
  82. wait(10)
  83. keydown(40)
  84. wait(500)
  85. keyup(40)
  86. wait(500)
  87. end
  88. end;
  89. procedure relog;//relog procedure/////////////////////
  90. begin
  91. if (not(user='no relog')) then
  92. begin
  93. writeln('wat?')
  94. w2(2)
  95. keyup(50)
  96. wait(20)
  97. clickmouse(600,50,true)
  98. wait(200)
  99. clickmouse(323,224,true)
  100. wait(1500)
  101. begin
  102. clicker:=0;
  103. keydown(120)
  104. wait(50)
  105. keyup(120)
  106. wait(100)
  107. keyup(120)
  108. wait(100)
  109. check_clock
  110. wait(200)
  111. findwindowtitlepart('endless online', false);
  112. activateclient
  113. wait(500)
  114. repeat
  115. clickmouse(110,369,true)
  116. w2(2)
  117. clickmouse(434, 235,true)
  118. until(FindColorspiral2(x,y,255,370, 335,370, 355))
  119. or
  120. (findcolorspiral(x,y,10276608,435,317,435,317))
  121. end
  122. begin
  123. if(findcolorspiral(x,y,10276608,435,317,435,317))then
  124. clickmouse(435,317,true)
  125. wait(500)
  126. end
  127. if(findcolorspiral(x,y,255,18,382,19,382)=false)
  128. then
  129. repeat
  130. clickmouse(110,369,true)
  131. w2(2)
  132. until(FindColorspiral2(x,y,255,370, 335,370, 355)) or
  133. (findcolorspiral(x,y,10276608,435,317,435,317))
  134. begin if(findcolorspiral(x,y,10276608,435,317,435,317))then
  135. clickmouse(435,317,true)
  136. wait(500)
  137. clickmouse(110,369,true)
  138. w2(2)
  139. end
  140. begin
  141. repeat
  142. w2(2)
  143. clickmouse(184,370,true)
  144. clickmouse(413,351,true)
  145. wait(20)
  146. ReadString(user)
  147. wait(1500)
  148. clickmouse(430,391,true)
  149. w2(2)
  150. wait(1500);
  151. ReadString(pass)
  152. clickmouse(408,435,true)
  153. wait(300)
  154. clickmouse(371,318,true)
  155. wait(500)
  156. until(findcolorspiral(x,y,people,402,143,402,143))
  157. end
  158. begin
  159. repeat
  160. clickmouse(408,435,true)
  161. w2(2)
  162. until(findcolorspiral(x,y,people,402,143,402,143))
  163. end
  164. repeat
  165. w2(5)
  166. until(findcolorspiral(x,y,people,402,143,402,143))
  167. clickmouse(540,130,true)
  168. w2(5)
  169. keyup(17)
  170. Ice_cold:=Icyhawt
  171. monsters:=monstercount+1
  172. end
  173. end;
  174. //end relog procedure////////////////////////////////////
  175.  
  176. var mode:string;
  177. procedure ScriptStatus2;
  178. begin
  179. cleardebug;
  180. writeln(mode)
  181. writeln('Hits:'+ inttostr(hitcount)+' - Facing:'+inttostr(facing)+' - Target:'+
  182. inttostr(TargetDir)+' - Monsters:'+ inttostr(monsters)+' - Antifreeze:'+ inttostr(Ice_cold))
  183. if(clicker=0)and(findcolorspiral(x,y,255,41,490,41,490))
  184. then
  185. begin
  186. wait(500)
  187. clickmouse(79,468,true)
  188. clicker:=1
  189. end
  190. if findwindowtitlepart ('endless online', false)then begin activateclient;wait(500)end
  191. else
  192. end;
  193. procedure check_dc;
  194. begin
  195. if(FindColorSpiral(x1, y1, 10276608, 30, 55, 619, 328))then
  196. begin
  197. wait(500)
  198. clickmouse(434,235,true)
  199. relog
  200. keydown(120)
  201. wait(20)
  202. keyup(120)
  203. wait(120)
  204. end
  205. end;
  206. procedure ScriptStatus;
  207. begin
  208. cleardebug;
  209. writeln(mode)
  210. writeln('Hits:'+ inttostr(hitcount)+' - Facing:'+inttostr(facing)+' - Target:'+
  211. inttostr(TargetDir)+' - Monsters:'+ inttostr(monsters)+' - Antifreeze:'+ inttostr(Ice_cold)
  212. +' - Script Made By Yupe')
  213. check_dc
  214. if(clicker=0)and(findcolorspiral(x,y,255,41,490,41,490))
  215. then
  216. begin
  217. wait(300)
  218. end
  219. if (user='no relog')
  220. then
  221. begin
  222. writeln('Might as well terminate script, no relog available')
  223. writeln('Terminating script, KBAI')
  224. terminatescript
  225. end
  226. if findwindowtitlepart ('endless online', false)then begin activateclient;wait(500)end
  227. else
  228. end;
  229. Procedure Monstercounter;
  230. begin
  231. monsters:=monsters-1
  232. scriptstatus
  233. if monsters<1 then begin
  234. keydown(49)
  235. wait(50)
  236. keyup(49)
  237. Wait(50)
  238. keyup(120)
  239. wait(200)
  240. keyup(120)
  241. relog
  242. keydown(120)
  243. wait(200)
  244. keyup(120)
  245. wait(200)
  246. keyup(120)
  247. Ice_cold:=Icyhawt
  248. monsters:=monstercount
  249. end
  250. end;
  251. Procedure NextArrow;
  252. begin
  253. hitcount:=hitcount-1
  254. wait(5)
  255. if hitcount<0 then begin
  256. Keyup(17);wait(50);Keyup(17);wait(200);
  257. sendarrowwait(TargetDir, 200) Facing:=TargetDir
  258. hitcount:=HitCountReset keydown(17) end
  259. end;
  260. Procedure Antifreeze;
  261. begin
  262. Ice_cold:=Ice_cold-1
  263. wait(50)
  264. scriptstatus
  265. if Ice_cold<0 then begin
  266. keyup(50)
  267. wait(50)
  268. keydown(49)
  269. wait(50)
  270. keyup(49)
  271. wait(199)
  272. keyup(120)
  273. wait(200)
  274. keyup(120)
  275. relog
  276. keydown(120)
  277. wait(200)
  278. keyup(120)
  279. wait(200)
  280. keyup(120)
  281. monsters:=monstercount
  282. Ice_cold:=Icyhawt
  283. monsters:=monsters+1
  284. end
  285. end;
  286. procedure autopot;
  287. begin
  288. If findcolorspiral(x, y, hpcolor, 150, 24, 153, 40) then begin
  289. clickmouse(78, 364, true);wait(200)
  290. if findcolorspiral(x, y, 33412,114, 364, 476, 468)then begin
  291. clickmouse(x, y, true)
  292. wait(8)
  293. clickmouse(x, y, true)
  294. sleep (1)
  295. end
  296. end
  297. end;
  298. Procedure heal;
  299. begin
  300. if(findcolorspiral(x,y,hpcolor,158,35,197,35))
  301. and(findcolorspiral(x,y,monster,240,140,406,231)=false)
  302. then
  303. begin
  304. wait(1000)
  305. repeat
  306. keydown(114)
  307. Wait(50)
  308. keyup(114)
  309. wait(50)
  310. scriptstatus
  311. until(findcolorspiral(x,y,hpcolor,58,35,199,35)=false)
  312. or(findcolorspiral(x,y,monster,240,140,406,231))
  313. end
  314. end;
  315. procedure left;
  316. begin
  317. If FindColor(x,y,Monster,288,158,292,162)
  318. then
  319. begin
  320. TargetDir:=3
  321. If not(Facing=TargetDir) then begin sendarrowwait(TargetDir,100) Facing:=TargetDir end
  322. keydown(17)
  323. repeat
  324. keydown(50)
  325. nextarrow;
  326. scriptstatus;
  327. keydown(50)
  328. antifreeze;
  329. autopot;
  330. Until (Not(FindColor(x,y,Monster,288,158,292,162)))
  331. wait(10)
  332. Keyup(17);
  333. wait(50);
  334. Keyup(17);
  335. wait(50);
  336. keyup(49);
  337. hitcount:=hitcountreset
  338. wait(100);
  339. ice_cold:=icyhawt
  340. keydown(49)
  341. wait(10)
  342. keyup(49)
  343. monstercounter
  344. end;
  345. end;
  346. procedure right;
  347. begin
  348. If (FindColor(x,y,Monster,342,188,348,194))
  349. then
  350. begin
  351. TargetDir:=1
  352. If not(Facing=TargetDir) then begin sendarrowwait(TargetDir, 100) Facing:=TargetDir end
  353. keydown(17)
  354. repeat
  355. keydown(50)
  356. nextarrow;
  357. scriptstatus;
  358. keydown(50)
  359. antifreeze;
  360. autopot;
  361. Until (Not(FindColor(x,y,Monster,342,188,348,194)))
  362. Keyup(17);
  363. wait(50);
  364. Keyup(17);
  365. wait(50)
  366. keyup(50)
  367. hitcount:=hitcountreset
  368. wait(50);
  369. keydown(49)
  370. ice_cold:=icyhawt
  371. monstercounter
  372. keydown(49)
  373. keyup(49)
  374. end
  375. end;
  376. procedure up;
  377. begin
  378. If FindColor(x,y,Monster,343,158,347,162)
  379. then
  380. begin
  381. TargetDir:=0
  382. If not(Facing=TargetDir) then begin sendarrowwait(TargetDir, 100) Facing:=TargetDir end
  383. keydown(17)
  384. repeat
  385. keydown(50)
  386. nextarrow;
  387. scriptstatus;
  388. keydown(50)
  389. antifreeze;
  390. autopot;
  391. Until (Not(FindColor(x,y,Monster,343,158,347,162)))
  392. Keyup(17);
  393. wait(50);
  394. Keyup(17);wait(50);keyup(50)
  395. hitcount:=hitcountreset
  396. wait(50);
  397. keydown(49)
  398. ice_cold:=icyhawt
  399. monstercounter
  400. keydown(49)
  401. keyup(49)
  402. end
  403. end;
  404. procedure down;
  405. begin
  406. If FindColor(x,y,Monster,288,195,292,196)
  407. then
  408. begin
  409. TargetDir:=2
  410. If not(Facing=TargetDir) then begin sendarrowwait(TargetDir, 100) Facing:=TargetDir end
  411. keydown(17)
  412. repeat
  413. keydown(50)
  414. nextarrow;
  415. scriptstatus;
  416. keydown(50)
  417. antifreeze;
  418. autopot;
  419. Until (Not(FindColor(x,y,Monster,288,189,292,193)))
  420. Keyup(17);wait(50);Keyup(17);wait(50);keyup(50) hitcount:=hitcountreset wait(50);
  421. keydown(49)
  422. ice_cold:=icyhawt
  423. monstercounter
  424. keydown(49)
  425. keyup(49)
  426. end
  427. end;
  428. procedure Mage;
  429. begin
  430. If FindColorSpiral(x,y,Monster,15,65,625,332)then
  431. begin
  432. KeyUp(117)
  433. KeyDown(113)
  434. Wait(50)
  435. KeyUp(113)
  436. Wait(10)
  437. ClickMouse(x,y,True)
  438. Wait(10)
  439. end
  440. end;
  441. procedure settings; begin end;{v---Down below(settings)}
  442. begin
  443. writeln(' Yupe Hs Script ')
  444. wait(1000)
  445. findwindowtitlepart('endless online',false)
  446. activateclient
  447. {MAKE SURE DATE/TIME PROPERTIES IS OPEN!!!!!}
  448. {---Hotkeys should be
  449. {Hotkey #1 should be +1 and set on "1"}
  450. {Hotkey #2 should be +Whatever and set on "2"}
  451. {Hotkey #3 should be +5.27 and set on "f7"}
  452. {----------------------------------------------------------------}
  453. //Personal settings
  454. HitCountReset:=14
  455. Monstercount:=20 //How many monsters to kill before automatically relogging
  456. Icyhawt:=20 //Anti-freeze, justify how long of a wait it is,
  457. //and enter how long you would like it to be, etc
  458. people:=55287;//Yellow stuff that is on people in the eobots client, or w/e
  459. hpcolor:=16236180; //The blue HP bar stuff
  460. monster:=1638350; //You know this.
  461. //Username/Password input can be found at top
  462. {---------------------------------------------------------------}
  463. {What may need editing:
  464. Check_dc
  465. Potions
  466. Heal
  467. Relog
  468. Mabye a few other things
  469. }
  470. targetdir:=5
  471. Facing:=5
  472. Ice_cold:=Icyhawt;
  473. monsters:=monstercount
  474. hitcount:=hitcountreset
  475. scriptstatus
  476. repeat
  477. left
  478. right
  479. up
  480. down
  481. Mage
  482. autopot
  483. heal
  484. onme
  485. scriptstatus
  486. check_dc
  487. until(false)
  488. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement