Advertisement
Guest User

Untitled

a guest
May 11th, 2017
70
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,green,365,310,370,315) then begin
  115. clickmouse(365, 310, true)
  116. relog
  117. end;
  118.  
  119.  
  120.  
  121. var mode:string;
  122. procedure ScriptStatus2;
  123. begin
  124. cleardebug;
  125. writeln(mode)
  126. writeln('Hits:'+ inttostr(hitcount)+' - Facing:'+inttostr(facing)+' - Target:'+
  127. inttostr(TargetDir)+' - Monsters:'+ inttostr(monsters)+' - Antifreeze:'+ inttostr(Ice_cold))
  128. if(clicker=0)and(findcolorspiral(x,y,255,41,490,41,490))
  129. then
  130. begin
  131. wait(500)
  132. clickmouse(79,468,true)
  133. clicker:=1
  134. end
  135. if findwindowtitlepart ('endless online', false)then begin activateclient;wait(500)end
  136. else
  137. end;
  138. procedure check_dc;
  139. begin
  140. if(FindColorSpiral(x1, y1, 10276608, 30, 55, 619, 328))then
  141. begin
  142. wait(500)
  143. clickmouse(434,235,true)
  144. relog
  145. keydown(120)
  146. wait(20)
  147. keyup(120)
  148. wait(120)
  149. end
  150. end;
  151. procedure ScriptStatus;
  152. begin
  153. cleardebug;
  154. writeln(mode)
  155. writeln('Hits:'+ inttostr(hitcount)+' - Facing:'+inttostr(facing)+' - Target:'+
  156. inttostr(TargetDir)+' - Monsters:'+ inttostr(monsters)+' - Antifreeze:'+ inttostr(Ice_cold)
  157. +' - Script Made By Yupe')
  158. check_dc
  159. if(clicker=0)and(findcolorspiral(x,y,255,41,490,41,490))
  160. then
  161. begin
  162. wait(300)
  163. end
  164. if (user='no relog')
  165. then
  166. begin
  167. writeln('Might as well terminate script, no relog available')
  168. writeln('Terminating script, KBAI')
  169. terminatescript
  170. end
  171. if findwindowtitlepart ('endless online', false)then begin activateclient;wait(500)end
  172. else
  173. end;
  174. Procedure Monstercounter;
  175. begin
  176. monsters:=monsters-1
  177. scriptstatus
  178. if monsters<1 then begin
  179. readstring('1')
  180. keyup(120)
  181. wait(200)
  182. keyup(120)
  183. relog
  184. keydown(120)
  185. wait(200)
  186. keyup(120)
  187. wait(200)
  188. keyup(120)
  189. Ice_cold:=Icyhawt
  190. monsters:=monstercount
  191. end
  192. end;
  193. Procedure NextArrow;
  194. begin
  195. hitcount:=hitcount-1
  196. wait(5)
  197. if hitcount<0 then begin
  198. Keyup(17);wait(50);Keyup(17);wait(200);
  199. sendarrowwait(TargetDir, 200) Facing:=TargetDir
  200. hitcount:=HitCountReset keydown(17) end
  201. end;
  202. Procedure Antifreeze;
  203. begin
  204. Ice_cold:=Ice_cold-1
  205. wait(50)
  206. scriptstatus
  207. if Ice_cold<0 then begin
  208. keyup(50)
  209. wait(50)
  210. keydown(49)
  211. wait(50)
  212. keyup(49)
  213. wait(199)
  214. keyup(120)
  215. wait(200)
  216. keyup(120)
  217. relog
  218. keydown(120)
  219. wait(200)
  220. keyup(120)
  221. wait(200)
  222. keyup(120)
  223. monsters:=monstercount
  224. Ice_cold:=Icyhawt
  225. monsters:=monsters+1
  226. end
  227. end;
  228.  
  229. procedure autopot;
  230. begin
  231. If findcolorspiral(x, y, hpcolor, 150, 24, 153, 40) then begin
  232. clickmouse(78, 364, true);wait(200)
  233. if findcolorspiral(x, y, 33412,114, 364, 476, 468)then begin
  234. clickmouse(x, y, true)
  235. wait(8)
  236. clickmouse(x, y, true)
  237. sleep (1)
  238. end
  239. end
  240. end;
  241. Procedure heal;
  242. begin
  243. if(findcolorspiral(x,y,hpcolor,158,35,197,35))
  244. and(findcolorspiral(x,y,monster,240,140,406,231)=false)
  245. then
  246. begin
  247. wait(1000)
  248. repeat
  249. keydown(114)
  250. Wait(50)
  251. keyup(114)
  252. wait(50)
  253. scriptstatus
  254. until(findcolorspiral(x,y,hpcolor,58,35,199,35)=false)
  255. or(findcolorspiral(x,y,monster,240,140,406,231))
  256. end
  257. end;
  258.  
  259. procedure left;
  260. begin
  261. If FindColor(x,y,Monster,288,158,292,162)
  262. then
  263. begin
  264. TargetDir:=3
  265. If not(Facing=TargetDir) then begin sendarrowwait(TargetDir,100) Facing:=TargetDir end
  266. keydown(17)
  267. repeat
  268. keydown(50)
  269. nextarrow;
  270. scriptstatus;
  271. keydown(50)
  272. antifreeze;
  273. autopot;
  274. Until (Not(FindColor(x,y,Monster,288,158,292,162)))
  275. wait(10)
  276. Keyup(17);
  277. wait(50);
  278. Keyup(17);
  279. wait(50);
  280. keyup(49);
  281. hitcount:=hitcountreset
  282. wait(100);
  283. ice_cold:=icyhawt
  284. keydown(49)
  285. wait(10)
  286. keyup(49)
  287. monstercounter
  288. end;
  289. end;
  290. procedure right;
  291. begin
  292. If (FindColor(x,y,Monster,342,188,348,194))
  293. then
  294. begin
  295. TargetDir:=1
  296. If not(Facing=TargetDir) then begin sendarrowwait(TargetDir, 100) Facing:=TargetDir end
  297. keydown(17)
  298. repeat
  299. keydown(50)
  300. nextarrow;
  301. scriptstatus;
  302. keydown(50)
  303. antifreeze;
  304. autopot;
  305. Until (Not(FindColor(x,y,Monster,342,188,348,194)))
  306. Keyup(17);
  307. wait(50);
  308. Keyup(17);
  309. wait(50)
  310. keyup(50)
  311. hitcount:=hitcountreset
  312. wait(50);
  313. keydown(49)
  314. ice_cold:=icyhawt
  315. monstercounter
  316. keydown(49)
  317. keyup(49)
  318. end
  319. end;
  320. procedure up;
  321. begin
  322. If FindColor(x,y,Monster,343,158,347,162)
  323. then
  324. begin
  325. TargetDir:=0
  326. If not(Facing=TargetDir) then begin sendarrowwait(TargetDir, 100) Facing:=TargetDir end
  327. keydown(17)
  328. repeat
  329. keydown(50)
  330. nextarrow;
  331. scriptstatus;
  332. keydown(50)
  333. antifreeze;
  334. autopot;
  335. Until (Not(FindColor(x,y,Monster,343,158,347,162)))
  336. Keyup(17);
  337. wait(50);
  338. Keyup(17);wait(50);keyup(50)
  339. hitcount:=hitcountreset
  340. wait(50);
  341. keydown(49)
  342. ice_cold:=icyhawt
  343. monstercounter
  344. keydown(49)
  345. keyup(49)
  346. end
  347. end;
  348. procedure down;
  349. begin
  350. If FindColor(x,y,Monster,288,195,292,196)
  351. then
  352. begin
  353. TargetDir:=2
  354. If not(Facing=TargetDir) then begin sendarrowwait(TargetDir, 100) Facing:=TargetDir end
  355. keydown(17)
  356. repeat
  357. keydown(50)
  358. nextarrow;
  359. scriptstatus;
  360. keydown(50)
  361. antifreeze;
  362. autopot;
  363. Until (Not(FindColor(x,y,Monster,288,189,292,193)))
  364. Keyup(17);wait(50);Keyup(17);wait(50);keyup(50) hitcount:=hitcountreset wait(50);
  365. keydown(49)
  366. ice_cold:=icyhawt
  367. monstercounter
  368. keydown(49)
  369. keyup(49)
  370. end
  371. end;
  372. procedure Mage;
  373. begin
  374. If FindColorSpiral(x,y,Monster,15,65,625,332)then
  375. begin
  376. KeyUp(117)
  377. KeyDown(113)
  378. Wait(50)
  379. KeyUp(113)
  380. Wait(10)
  381. ClickMouse(x,y,True)
  382. Wait(10)
  383. end
  384. end;
  385.  
  386. procedure settings; begin end;{v---Down below(settings)}
  387.  
  388. begin
  389. writeln(' Yupe Hs Script ')
  390. wait(1000)
  391. findwindowtitlepart('endless online',false)
  392. activateclient
  393. {MAKE SURE DATE/TIME PROPERTIES IS OPEN!!!!!}
  394.  
  395. {---Hotkeys should be
  396. {Hotkey #1 should be +1 and set on "f5"}
  397. {Hotkey #2 should be +Whatever and set on "f6"}
  398. {Hotkey #3 should be +5.27 and set on "f7"}
  399. {----------------------------------------------------------------}
  400. //Personal settings
  401.  
  402. HitCountReset:=14
  403. Monstercount:=15 //How many monsters to kill before automatically relogging
  404. Icyhawt:=20 //Anti-freeze, justify how long of a wait it is,
  405. //and enter how long you would like it to be, etc
  406. people:=55287;//Yellow stuff that is on people in the eobots client, or w/e
  407. hpcolor:=16236180; //The blue HP bar stuff
  408. monster:=1638350; //You know this.
  409.  
  410. //Username/Password input can be found at top
  411. {---------------------------------------------------------------}
  412. {What may need editing:
  413. Check_dc
  414. Potions
  415. Heal
  416. Relog
  417. Mabye a few other things
  418. }
  419. targetdir:=5
  420. Facing:=5
  421. Ice_cold:=Icyhawt;
  422. monsters:=monstercount
  423. hitcount:=hitcountreset
  424. scriptstatus
  425.  
  426. repeat
  427. left
  428. right
  429. up
  430. down
  431. Mage
  432. autopot
  433. heal
  434. onme
  435. scriptstatus
  436. check_dc
  437.  
  438. until(false)
  439. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement