Advertisement
Guest User

Untitled

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