Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.35 KB | None | 0 0
  1. //Start this in a Tailor shop to turn in a book
  2. if mounted 'self'
  3. useobject 'self'
  4. pause 1000
  5. endif
  6. //list also maintained in BS Loop and Get New Book
  7. //account 1
  8. if serial 'self' == 0x1a299b
  9. @setalias 'beetle' 0x1f99dc
  10. @setalias 'turninrunebook' 0x43a884a3
  11. //account 2
  12. elseif serial 'self' == 0x1a25a8
  13. @setalias 'beetle' 0x130121
  14. @setalias 'turninrunebook' 0x40f824f2
  15. //account 3
  16. elseif serial 'self' == 0x1a2cb4
  17. @setalias 'beetle' 0xe5dbd
  18. @setalias 'turninrunebook' 0x41e4928e
  19. //account 4
  20. elseif serial 'self' == 0x11cfde
  21. @setalias 'beetle' 0x21db66
  22. @setalias 'turninrunebook' 0x40f84da7
  23. //Alternate 1
  24. elseif serial 'self' == 0x2248d
  25. @setalias 'beetle' 0x19bb75
  26. @setalias 'turninrunebook' 0x4089197f
  27. //Alternate 2
  28. elseif serial 'self' == 0x2af85
  29. @setalias 'beetle' 0x11500f
  30. @setalias 'turninrunebook' 0x4086239e
  31. //Alternate 3
  32. elseif serial 'self' == 0x66be5
  33. @setalias 'beetle' 0x87815
  34. @setalias 'turninrunebook' 0x408921cb
  35. //Alternate 4
  36. elseif serial 'self' == 0x4264b
  37. @setalias 'beetle' 0x87612
  38. @setalias 'turninrunebook' 0x408934ee
  39. else
  40. sysmsg 'I dont have your serial for the beetle/runebook list' 34
  41. stop
  42. endif
  43. if not timerexists 'turnin'
  44. createtimer 'turnin'
  45. settimer 'turnin' 10000
  46. endif
  47. if not @findobject 'filledbods' or not @findobject 'newbods'
  48. @unsetalias 'filledbods'
  49. @unsetalias 'newbods'
  50. endif
  51. if serial 'filledbods' == serial 'newbods'
  52. @unsetalias 'filledbods'
  53. @unsetalias 'newbods'
  54. endif
  55. if not @findobject 'filledbods'
  56. sysmsg 'Target the Filled Bods book in your backpack' 167
  57. promptalias 'filledbods'
  58. endif
  59. if not @findobject 'newbods'
  60. sysmsg 'Target the New Bods Book in your backpack' 34
  61. promptalias 'newbods'
  62. endif
  63. while @property 'Deeds in Book' 'filledbods' > 0
  64. while hits < maxhits or poisoned 'self'
  65. msg 'guards'
  66. miniheal 'self'
  67. pause 500
  68. endwhile
  69. if counttype 0x2258 1102 'backpack' > 3
  70. sysmsg 'Looks like you have blacksmith bods at the tailor shop. Stopping!' 34
  71. pause 1000
  72. useobject 'beetle'
  73. stop
  74. endif
  75. //2 left click "Complete Tailor Bods Book"
  76. useobject 'filledbods'
  77. pause 1000
  78. //Take Bod Out of the Book
  79. if not @findtype 0x2258 1155 'backpack'
  80. replygump 0x54f555df 5
  81. endif
  82. pause 1000
  83. //set NPC alias
  84. //Nujelm
  85. if y > 1255 and y < 1271
  86. @setalias 'tailor' 0x7deae
  87. //Jhelom
  88. elseif y > 3775 and y < 3791
  89. @setalias 'tailor' 0x7cdcb
  90. //Moonglow
  91. elseif y > 1055 and y < 1072
  92. @setalias 'tailor' 0x6794f
  93. //serpents hold
  94. elseif y > 3495 and y < 3511
  95. @setalias 'tailor' 0x4c96d
  96. //Trinsic
  97. elseif y > 2833 and y < 2850
  98. @setalias 'tailor' 0x47bc7
  99. //Vesper
  100. elseif y > 866 and y < 888
  101. @setalias 'tailor' 0x801a4
  102. //Delucia
  103. elseif y > 4013 and y < 4033
  104. @setalias 'tailor' 0x7ffaa
  105. //Skara Brae
  106. elseif y > 2176 and y < 2198
  107. @setalias 'tailor' 0x7ea1e
  108. //Zento
  109. elseif y > 1201 and y < 1214
  110. @setalias 'tailor' 0x62a93
  111. endif
  112. //Move Bod on the NPC
  113. while not @inrange 'tailor' 1
  114. while hits < maxhits or poisoned 'self'
  115. msg 'guards'
  116. miniheal 'self'
  117. pause 500
  118. endwhile
  119. if @x 'tailor' > x 'self' and @y 'tailor' > y 'self'
  120. walk 'Southeast'
  121. elseif @x 'tailor' < x 'self' and @y 'tailor' > y 'self'
  122. walk 'Southwest'
  123. elseif @x 'tailor' > x 'self' and @y 'tailor' < y 'self'
  124. walk 'Northeast'
  125. elseif @x 'tailor' < x 'self' and @y 'tailor' < y 'self'
  126. walk 'Northwest'
  127. elseif @x 'tailor' > x 'self' and @y 'tailor' == y 'self'
  128. walk 'East'
  129. elseif @x 'tailor' < x 'self' and @y 'tailor' == y 'self'
  130. walk 'West'
  131. elseif @x 'tailor' == x 'self' and @y 'tailor' > y 'self'
  132. walk 'South'
  133. elseif @x 'tailor' == x 'self' and @y 'tailor' < y 'self'
  134. walk 'North'
  135. endif
  136. pause 500
  137. if @inrange 'tailor' 1
  138. for 3
  139. //NPC name
  140. //Nujelm
  141. if y > 1255 and y < 1271
  142. msg 'Moon'
  143. //Jhelom
  144. elseif y > 3775 and y < 3791
  145. msg 'Annora'
  146. //Moonglow
  147. elseif y > 1055 and y < 1072
  148. msg 'Cain'
  149. //Serpents Hold
  150. elseif y > 3495 and y < 3511
  151. msg 'Jamie'
  152. //Trinsic
  153. elseif y > 2833 and y < 2850
  154. msg 'Caldwell'
  155. //Vesper
  156. elseif y > 866 and y < 888
  157. msg 'Pembroke'
  158. //Delucia
  159. elseif y > 4013 and y < 4033
  160. msg 'Armstrong'
  161. //Skara Brae
  162. elseif y > 2176 and y < 2198
  163. msg 'Ira'
  164. //Zento
  165. elseif y > 1201 and y < 1214
  166. msg 'Chihu'
  167. endif
  168. endfor
  169. endif
  170. endwhile
  171. clearjournal
  172. if @injournal 'world will save'
  173. while not @injournal 'world save complete'
  174. endwhile
  175. @clearjournal
  176. endif
  177. while timer 'turnin' < 9100
  178. while hits < maxhits or poisoned 'self'
  179. msg 'guards'
  180. miniheal 'self'
  181. pause 500
  182. endwhile
  183. endwhile
  184. movetype '0x2258' 'backpack' 'tailor' 0 0 0 '1155' 1
  185. pause 1000
  186. if @injournal 'have to wait a few seconds'
  187. movetype '0x2258' 'backpack' 'tailor' 0 0 0 '1155' 1
  188. pause 1000
  189. endif
  190. @settimer 'turnin' 0
  191. //Ask NPC for a new Bod
  192. waitforcontext 'tailor' 1 15000
  193. pause 750
  194. //stall while GMs around
  195. if @findtype 0x3db 'any' 'ground' 18
  196. while @findtype 0x3db 'any' 'ground' 18
  197. endwhile
  198. //pause 3 minutes after they leave
  199. pause 180000
  200. endif
  201. while hits < maxhits or poisoned 'self'
  202. msg 'guards'
  203. miniheal 'self'
  204. pause 500
  205. endwhile
  206. //Confirm NEW Bod - Small Bod Gump
  207. @replygump 0x9bade6ea 1
  208. //Confirm NEW Bod - Large Bod Gump
  209. @replygump 0xbe0dad1e 1
  210. pause 500
  211. if @injournal 'world will save'
  212. while not @injournal 'world save complete'
  213. endwhile
  214. @clearjournal
  215. endif
  216. //Move NEW Bod to "New Bods Book"
  217. if @findtype '0x2258' 1155 'backpack'
  218. waitforproperties 'found' 5000
  219. if @property 'leather' 'found'
  220. if @property 'Barbed' 'found'
  221. if @property 'exceptional' 'found'
  222. if @property '20' 'found'
  223. if @property 'bone' 'found'
  224. sysmsg 'BRSK' 168
  225. elseif @property 'studded armor' 'found' or @property 'studded bustier' 'found'
  226. sysmsg 'BRSK' 168
  227. elseif @property 'studded' 'found'
  228. sysmsg 'BRSK' 168
  229. elseif @property 'sandals' 'found' or @property 'shoes' 'found'
  230. sysmsg 'HRSK' 34
  231. elseif @property 'boots' 'found'
  232. sysmsg 'HRSK' 34
  233. else
  234. sysmsg 'BRSK' 168
  235. endif
  236. elseif @property '10' 'found' or @property '15' 'found'
  237. if not @property 'bone' 'found'
  238. if @property 'studded armor' 'found' or @property 'studded bustier' 'found'
  239. sysmsg 'BRSK' 168
  240. elseif @property 'sandals' 'found' or @property 'shoes' 'found'
  241. //if not @property '15' 'found'
  242. //no point in saving rarer cbds when already needing to cull the others
  243. //moveitem 'found' 'CBD1'
  244. //sysmsg 'CBD' 53
  245. //endif
  246. sysmsg 'Trash'
  247. elseif @property 'boots' 'found'
  248. //if not @property '15' 'found'
  249. //no point in saving rarer cbds when already needing to cull the others
  250. //moveitem 'found' 'CBD1'
  251. //sysmsg 'CBD' 53
  252. //endif
  253. sysmsg 'Trash'
  254. elseif not @property 'studded' 'found'
  255. sysmsg 'BRSK' 168
  256. else
  257. sysmsg 'Trash'
  258. endif
  259. else
  260. sysmsg 'Trash'
  261. endif
  262. endif
  263. elseif not @property 'exceptional' 'found'
  264. //shouldn't have these
  265. endif
  266. elseif @property 'Horned' 'found'
  267. if @property 'exceptional' 'found' and not @property 'bone' 'found'
  268. if @property '20' 'found'
  269. if @property 'sandals' 'found' or @property 'shoes' 'found'
  270. //no point in saving rarer cbds when already needing to cull the others
  271. //moveitem 'found' 'CBD1'
  272. //sysmsg 'CBD' 53
  273. sysmsg 'Trash'
  274. elseif @property 'boots' 'found'
  275. //no point in saving rarer cbds when already needing to cull the others
  276. //moveitem 'found' 'CBD1'
  277. // sysmsg 'CBD' 53
  278. sysmsg 'Trash'
  279. elseif @property 'studded armor' 'found' or @property 'studded bustier' 'found'
  280. sysmsg 'BRSK' 168
  281. elseif not @property 'studded' 'found'
  282. sysmsg 'BRSK' 168
  283. else
  284. sysmsg 'Trash'
  285. endif
  286. elseif @property '10' 'found' or @property '15' 'found'
  287. if not @property 'sandals' 'found' and not @property 'shoes' 'found'
  288. if not @property 'boots' 'found'
  289. if @property 'studded armor' 'found' or @property 'studded bustier' 'found'
  290. sysmsg 'BRSK' 168
  291. elseif @property 'studded' 'found'
  292. sysmsg 'HRSK' 34
  293. elseif not @property 'studded' 'found'
  294. sysmsg 'BRSK' 168
  295. else
  296. sysmsg 'Trash'
  297. endif
  298. else
  299. sysmsg 'Trash'
  300. endif
  301. else
  302. sysmsg 'Trash'
  303. endif
  304. endif
  305. elseif not @property 'exceptional' 'found'
  306. //shouldn't have these
  307. else
  308. sysmsg 'Trash'
  309. endif
  310. elseif @property 'Spined' 'found'
  311. if not @property 'sandals' 'found' and not @property 'shoes' 'found'
  312. if not @property 'boots' 'found' and not @property 'bone' 'found'
  313. if @property 'exceptional' 'found'
  314. if @property '20' 'found'
  315. if @property 'studded armor' 'found' or @property 'studded bustier' 'found'
  316. sysmsg 'BRSK' 168
  317. elseif @property 'studded' 'found'
  318. sysmsg 'HRSK' 34
  319. elseif not @property 'studded' 'found'
  320. sysmsg 'BRSK' 168
  321. endif
  322. else
  323. sysmsg 'Trash'
  324. endif
  325. elseif not @property 'exceptional' 'found'
  326. //shouldn't have these
  327. endif
  328. else
  329. sysmsg 'Trash'
  330. endif
  331. else
  332. sysmsg 'Trash'
  333. endif
  334. //plain leather
  335. elseif not @property 'bone' 'found'
  336. if @property 'exceptional' 'found'
  337. if @property '20' 'found'
  338. if @property 'studded armor' 'found' or @property 'studded bustier' 'found'
  339. //normally a 120 scroll but can put ex in normal LBOD for cbd
  340. if @property 'large' 'found'
  341. sysmsg '120 Tailor PS'
  342. elseif not @property 'large' 'found'
  343. sysmsg 'CBD' 53
  344. endif
  345. elseif @property 'studded' 'found'
  346. sysmsg 'CBD Reset'
  347. else
  348. if @property 'large' 'found'
  349. sysmsg '120 Tailor PS'
  350. elseif not @property 'large' 'found'
  351. sysmsg 'CBD' 53
  352. endif
  353. endif
  354. elseif @property '10' 'found' or @property '15' 'found'
  355. if @property 'studded armor' 'found' or @property 'studded bustier' 'found'
  356. sysmsg 'HRSK' 34
  357. elseif not @property 'studded' 'found'
  358. sysmsg 'HRSK' 34
  359. elseif not @property 'large' 'found'
  360. sysmsg 'Reset'
  361. else
  362. sysmsg 'Trash'
  363. endif
  364. endif
  365. elseif not @property 'exceptional' 'found'
  366. //shouldn't have these
  367. endif
  368. endif
  369. elseif @property 'studded armor' 'found' or @property 'studded bustier' 'found'
  370. if @property 'exceptional' 'found'
  371. if @property '20' 'found'
  372. if @property 'large' 'found'
  373. sysmsg '120 Tailor PS'
  374. elseif not @property 'large' 'found'
  375. sysmsg 'CBD' 53
  376. endif
  377. elseif @property '10' 'found' or @property '15' 'found'
  378. sysmsg 'HRSK' 34
  379. endif
  380. elseif not @property 'exceptional' 'found'
  381. //shouldn't have these
  382. endif
  383. elseif @property 'shoes' 'found' or @property 'sandals' 'found'
  384. if not @property 'large' 'found'
  385. sysmsg 'Reset'
  386. else
  387. sysmsg 'Trash'
  388. endif
  389. elseif @property 'boots' 'found' and not @property 'thigh' 'found'
  390. if not @property 'large' 'found'
  391. sysmsg 'Reset'
  392. else
  393. sysmsg 'Trash'
  394. endif
  395. //town crier ex 20
  396. elseif @property 'feathered hat' 'found' or @property 'surcoat' 'found'
  397. if @property '20' 'found' and @property 'exceptional' 'found'
  398. sysmsg 'CBD' 53
  399. elseif not @property 'large' 'found'
  400. sysmsg 'Reset'
  401. else
  402. sysmsg 'Trash'
  403. endif
  404. elseif @property 'fancy shirt' 'found' or @property 'short pants' 'found'
  405. if @property '20' 'found' and @property 'exceptional' 'found'
  406. sysmsg 'CBD' 53
  407. elseif not @property 'large' 'found'
  408. sysmsg 'Reset'
  409. else
  410. sysmsg 'Trash'
  411. endif
  412. elseif @property 'thigh boots' 'found' and not @property 'bandana' 'found'
  413. if @property '20' 'found' and @property 'exceptional' 'found'
  414. sysmsg 'CBD' 53
  415. elseif not @property 'large' 'found'
  416. sysmsg 'Reset'
  417. else
  418. sysmsg 'Trash'
  419. endif
  420. elseif not @property 'large' 'found' and not @property 'bone' 'found'
  421. sysmsg 'Reset'
  422. else
  423. sysmsg 'Trash'
  424. endif
  425. endif
  426. movetype '0x2258' 'backpack' 'newbods' 0 0 0 '1155' 1
  427. pause 1000
  428. while hits < maxhits or poisoned 'self'
  429. msg 'guards'
  430. miniheal 'self'
  431. pause 500
  432. endwhile
  433. if @injournal 'world will save'
  434. while not @injournal 'world save complete'
  435. endwhile
  436. @clearjournal
  437. endif
  438. //Move NEW Cloth into Beetle
  439. while @findtype 0x1767 'any' 'backpack'
  440. usetype 0xfab
  441. pause 1000
  442. target! 'found'
  443. pause 1000
  444. if color 'found' == 0
  445. moveitem 'found' 'beetle'
  446. pause 1000
  447. endif
  448. if not @findobject 'beetle'
  449. useskill 'detect'
  450. pause 250
  451. targettilerelative 'self' 1 'true'
  452. endif
  453. endwhile
  454. movetype 0xeed 'backpack' 'beetle' 0 0 0 'any'
  455. pause 1000
  456. while @findtype 0x170d 'any' 'backpack' 1
  457. movetype 0x170d 'backpack' 'beetle' 0 0 0 'any' 1
  458. pause 550
  459. if not @findobject 'beetle'
  460. useskill 'detect'
  461. pause 250
  462. targettilerelative 'self' 1 'true'
  463. endif
  464. endwhile
  465. if @property 'weight' 'beetle' > 1400
  466. while not mounted 'self'
  467. if not @findobject 'beetle'
  468. useskill 'detect'
  469. pause 250
  470. @target 'self'
  471. endif
  472. pause 250
  473. msg 'all follow me'
  474. useobject 'beetle'
  475. pause 750
  476. endwhile
  477. if @injournal 'world will save'
  478. while not @injournal 'world save complete'
  479. endwhile
  480. @clearjournal
  481. endif
  482. while not @gumpexists 0x554b87f3
  483. useobject 'turninrunebook'
  484. waitforgump 0x554b87f3 1500
  485. endwhile
  486. if @findalias 'trashbank3'
  487. @unsetalias 'trashbank1'
  488. @unsetalias 'trashbank2'
  489. @unsetalias 'trashbank3'
  490. endif
  491. if not @findalias 'trashbank1'
  492. replygump 0x554b87f3 53
  493. @setalias 'trashbank1' 'self'
  494. elseif not @findalias 'trashbank2'
  495. replygump 0x554b87f3 59
  496. @setalias 'trashbank2' 'self'
  497. elseif not @findalias 'trashbank3'
  498. replygump 0x554b87f3 65
  499. @setalias 'trashbank3' 'self'
  500. endif
  501. while @inrange 'tailor' 10
  502. while hits < maxhits or poisoned 'self'
  503. msg 'guards'
  504. miniheal 'self'
  505. pause 500
  506. endwhile
  507. //if the rune is blocked, try different rune
  508. if @injournal 'blocked' 'system'
  509. sysmsg 'Rune blocked, different rune in 10 seconds' 33
  510. pause 10000
  511. @clearjournal
  512. while not @gumpexists 0x554b87f3
  513. useobject 'turninrunebook'
  514. waitforgump 0x554b87f3 1500
  515. endwhile
  516. if @findalias 'trashbank3'
  517. @unsetalias 'trashbank1'
  518. @unsetalias 'trashbank2'
  519. @unsetalias 'trashbank3'
  520. endif
  521. if not @findalias 'trashbank1'
  522. replygump 0x554b87f3 53
  523. @setalias 'trashbank1' 'self'
  524. elseif not @findalias 'trashbank2'
  525. replygump 0x554b87f3 59
  526. @setalias 'trashbank2' 'self'
  527. elseif not @findalias 'trashbank3'
  528. replygump 0x554b87f3 65
  529. @setalias 'trashbank3' 'self'
  530. endif
  531. pause 2000
  532. endif
  533. endwhile
  534. msg 'bank'
  535. pause 250
  536. while mounted 'self'
  537. useobject 'self'
  538. pause 550
  539. endwhile
  540. waitforproperties 'beetle' 5000
  541. if @property 'bonded' 'beetle'
  542. waitforcontext 'beetle' 10 15000
  543. else
  544. waitforcontext 'beetle' 9 15000
  545. endif
  546. while @findtype 0xeed 'any' 'beetle'
  547. movetype 0xeed 'beetle' 'bank'
  548. pause 550
  549. endwhile
  550. while hits < maxhits or poisoned 'self'
  551. msg 'guards'
  552. miniheal 'self'
  553. pause 500
  554. endwhile
  555. if counttype 0xeed 0 'bank' > 1000000
  556. msg 'check 1000000'
  557. endif
  558. while @findtype 0x1767 'any' 'beetle'
  559. movetype 0x1767 'beetle' 'bank'
  560. pause 550
  561. endwhile
  562. //Umbra trash
  563. if y > 1338 and y < 1352
  564. @setalias 'banktrash' 0x4009b005
  565. elseif y > 1249 and y < 1259
  566. //Zento trash
  567. @setalias 'banktrash' 0x402eceff
  568. //Jhelom Trash
  569. elseif y > 557 and y < 567
  570. @setalias 'banktrash' 0x4001e289
  571. //Moonglow Trash
  572. elseif y > 1154 and y < 1166
  573. @setalias 'banktrash' 0x4044c11b
  574. //Vesper Trash
  575. elseif y > 673 and y < 688
  576. @setalias 'banktrash' 0x4079cd96
  577. //New Haven Trash
  578. elseif y > 2563 and y < 2576
  579. @setalias 'banktrash' 0x404fcbbc
  580. endif
  581. while @findtype 0x170d 'any' 'beetle'
  582. movetype 0x170d 'beetle' 'banktrash'
  583. pause 550
  584. endwhile
  585. while @findtype 0xfb4 'any' 'beetle'
  586. movetype 0xfb4 'beetle' 'banktrash'
  587. pause 550
  588. endwhile
  589. while @findtype 0xe86 'any' 'beetle'
  590. movetype 0xe86 'beetle' 'banktrash'
  591. pause 550
  592. endwhile
  593. while @findtype 0xe85 'any' 'beetle'
  594. movetype 0xe85 'beetle' 'banktrash'
  595. pause 550
  596. endwhile
  597. while @findtype 0x13d5 'any' 'beetle'
  598. movetype 0x13d5 'beetle' 'banktrash'
  599. pause 550
  600. endwhile
  601. while @findtype 0x13c6 'any' 'beetle'
  602. movetype 0x13c6 'beetle' 'banktrash'
  603. pause 550
  604. endwhile
  605. while @findtype 0xf39 'any' 'beetle'
  606. movetype 0xf39 'beetle' 'banktrash'
  607. pause 550
  608. endwhile
  609. if @injournal 'world will save'
  610. while not @injournal 'world save complete'
  611. endwhile
  612. @clearjournal
  613. endif
  614. while not mounted 'self'
  615. if not @findobject 'beetle'
  616. useskill 'detect'
  617. pause 250
  618. @target 'self'
  619. endif
  620. pause 250
  621. msg 'all follow me'
  622. useobject 'beetle'
  623. pause 750
  624. endwhile
  625. while not @gumpexists 0x554b87f3
  626. useobject 'turninrunebook'
  627. waitforgump 0x554b87f3 1500
  628. endwhile
  629. if @findalias 'tailorshop3'
  630. @unsetalias 'tailorshop1'
  631. @unsetalias 'tailorshop2'
  632. @unsetalias 'tailorshop3'
  633. endif
  634. if not @findalias 'tailorshop1'
  635. @setalias 'tailorshop1' 'self'
  636. replygump 0x554b87f3 17
  637. elseif not @findalias 'tailorshop2'
  638. @setalias 'tailorshop2' 'self'
  639. replygump 0x554b87f3 23
  640. elseif not @findalias 'tailorshop3'
  641. @setalias 'tailorshop3' 'self'
  642. replygump 0x554b87f3 29
  643. endif
  644. while inrange 'banktrash' 10
  645. while hits < maxhits or poisoned 'self'
  646. msg 'guards'
  647. miniheal 'self'
  648. pause 500
  649. endwhile
  650. //if the rune is blocked, try a different rune
  651. if @injournal 'blocked' 'system'
  652. sysmsg 'Rune blocked, trying a different rune in 10 seconds' 33
  653. pause 10000
  654. @clearjournal
  655. while not @gumpexists 0x554b87f3
  656. useobject 'turninrunebook'
  657. waitforgump 0x554b87f3 1500
  658. endwhile
  659. if @findalias 'tailorshop3'
  660. @unsetalias 'tailorshop1'
  661. @unsetalias 'tailorshop2'
  662. @unsetalias 'tailorshop3'
  663. endif
  664. if not @findalias 'tailorshop1'
  665. @setalias 'tailorshop1' 'self'
  666. replygump 0x554b87f3 17
  667. elseif not @findalias 'tailorshop2'
  668. @setalias 'tailorshop2' 'self'
  669. replygump 0x554b87f3 23
  670. elseif not @findalias 'tailorshop3'
  671. @setalias 'tailorshop3' 'self'
  672. replygump 0x554b87f3 29
  673. endif
  674. pause 2000
  675. endif
  676. endwhile
  677. //navigate into shop
  678. //Nujelm
  679. if y > 1255 and y < 1271
  680. while x > 3770
  681. walk 'west'
  682. endwhile
  683. //Jhelom
  684. elseif y > 3775 and y < 3791
  685. while x < 1351
  686. walk 'east'
  687. endwhile
  688. //Moonglow
  689. elseif y > 1055 and y < 1072
  690. while x < 4462
  691. run 'east'
  692. endwhile
  693. while y < 1063
  694. walk 'south'
  695. pause 250
  696. endwhile
  697. //Serpents Hold
  698. elseif y > 3495 and y < 3511
  699. while x < 2884
  700. run 'east'
  701. endwhile
  702. while y > 3504
  703. walk 'north'
  704. endwhile
  705. //Trinsic
  706. elseif y > 2833 and y < 2850
  707. while y > 2844
  708. walk 'north'
  709. pause 250
  710. endwhile
  711. while x > 1984
  712. walk 'west'
  713. pause 250
  714. endwhile
  715. //Vesper
  716. elseif y > 866 and y < 888
  717. while y < 886
  718. run 'south'
  719. endwhile
  720. while x < 2839
  721. walk 'east'
  722. pause 500
  723. endwhile
  724. //Delucia
  725. elseif y > 4013 and y < 4033
  726. while y > 4020
  727. run 'north'
  728. endwhile
  729. //Skara Brae
  730. elseif y > 2176 and y < 2198
  731. while y > 2182
  732. run 'north'
  733. endwhile
  734. while x < 654
  735. run 'east'
  736. endwhile
  737. while y > 2181
  738. walk 'north'
  739. pause 500
  740. endwhile
  741. //Zento
  742. elseif y > 1201 and y < 1214
  743. while y > 1204
  744. run 'north'
  745. endwhile
  746. endif
  747. //set NPC alias
  748. //Nujelm
  749. if y > 1255 and y < 1271
  750. @setalias 'tailor' 0x7deae
  751. //Jhelom
  752. elseif y > 3775 and y < 3791
  753. @setalias 'tailor' 0x7cdcb
  754. //Moonglow
  755. elseif y > 1055 and y < 1072
  756. @setalias 'tailor' 0x6794f
  757. //serpents hold
  758. elseif y > 3495 and y < 3511
  759. @setalias 'tailor' 0x4c96d
  760. //Trinsic
  761. elseif y > 2833 and y < 2850
  762. @setalias 'tailor' 0x47bc7
  763. //Vesper
  764. elseif y > 866 and y < 888
  765. @setalias 'tailor' 0x801a4
  766. //Delucia
  767. elseif y > 4013 and y < 4033
  768. @setalias 'tailor' 0x7ffaa
  769. //Skara Brae
  770. elseif y > 2176 and y < 2198
  771. @setalias 'tailor' 0x7ea1e
  772. //Zento
  773. elseif y > 1201 and y < 1214
  774. @setalias 'tailor' 0x62a93
  775. endif
  776. pause 750
  777. while not @inrange 'tailor' 1
  778. while hits < maxhits or poisoned 'self'
  779. msg 'guards'
  780. miniheal 'self'
  781. pause 500
  782. endwhile
  783. if @x 'tailor' > x 'self' and @y 'tailor' > y 'self'
  784. walk 'Southeast'
  785. elseif @x 'tailor' < x 'self' and @y 'tailor' > y 'self'
  786. walk 'Southwest'
  787. elseif @x 'tailor' > x 'self' and @y 'tailor' < y 'self'
  788. walk 'Northeast'
  789. elseif @x 'tailor' < x 'self' and @y 'tailor' < y 'self'
  790. walk 'Northwest'
  791. elseif @x 'tailor' > x 'self' and @y 'tailor' == y 'self'
  792. walk 'East'
  793. elseif @x 'tailor' < x 'self' and @y 'tailor' == y 'self'
  794. walk 'West'
  795. elseif @x 'tailor' == x 'self' and @y 'tailor' > y 'self'
  796. walk 'South'
  797. elseif @x 'tailor' == x 'self' and @y 'tailor' < y 'self'
  798. walk 'North'
  799. endif
  800. pause 500
  801. if @inrange 'tailor' 1
  802. for 3
  803. //NPC name
  804. //Nujelm
  805. if y > 1255 and y < 1271
  806. msg 'Moon'
  807. //Jhelom
  808. elseif y > 3775 and y < 3791
  809. msg 'Annora'
  810. //Moonglow
  811. elseif y > 1055 and y < 1072
  812. msg 'Cain'
  813. //Serpents Hold
  814. elseif y > 3495 and y < 3511
  815. msg 'Jamie'
  816. //Trinsic
  817. elseif y > 2833 and y < 2850
  818. msg 'Caldwell'
  819. //Vesper
  820. elseif y > 866 and y < 888
  821. msg 'Pembroke'
  822. //Delucia
  823. elseif y > 4013 and y < 4033
  824. msg 'Armstrong'
  825. //Skara Brae
  826. elseif y > 2176 and y < 2198
  827. msg 'Ira'
  828. //Zento
  829. elseif y > 1201 and y < 1214
  830. msg 'Chihu'
  831. endif
  832. endfor
  833. endif
  834. endwhile
  835. useobject 'self'
  836. pause 1000
  837. endif
  838. endwhile
  839. while not mounted 'self'
  840. if not @findobject 'beetle'
  841. useskill 'detect'
  842. pause 250
  843. @target 'self'
  844. endif
  845. pause 250
  846. msg 'all follow me'
  847. useobject 'beetle'
  848. pause 750
  849. endwhile
  850. while not @gumpexists 0x554b87f3
  851. useobject 'turninrunebook'
  852. waitforgump 0x554b87f3 1500
  853. endwhile
  854. if @findalias 'trashbank3'
  855. @unsetalias 'trashbank1'
  856. @unsetalias 'trashbank2'
  857. @unsetalias 'trashbank3'
  858. endif
  859. if not @findalias 'trashbank1'
  860. replygump 0x554b87f3 53
  861. @setalias 'trashbank1' 'self'
  862. elseif not @findalias 'trashbank2'
  863. replygump 0x554b87f3 59
  864. @setalias 'trashbank2' 'self'
  865. elseif not @findalias 'trashbank3'
  866. replygump 0x554b87f3 65
  867. @setalias 'trashbank3' 'self'
  868. endif
  869. while @inrange 'tailor' 10
  870. while hits < maxhits or poisoned 'self'
  871. msg 'guards'
  872. miniheal 'self'
  873. pause 500
  874. endwhile
  875. //if the rune is blocked, try different rune
  876. if @injournal 'blocked' 'system'
  877. sysmsg 'Rune blocked, trying again in 10 seconds' 33
  878. pause 10000
  879. @clearjournal
  880. while not @gumpexists 0x554b87f3
  881. useobject 'turninrunebook'
  882. waitforgump 0x554b87f3 1500
  883. endwhile
  884. if @findalias 'trashbank3'
  885. @unsetalias 'trashbank1'
  886. @unsetalias 'trashbank2'
  887. @unsetalias 'trashbank3'
  888. endif
  889. if not @findalias 'trashbank1'
  890. replygump 0x554b87f3 53
  891. @setalias 'trashbank1' 'self'
  892. elseif not @findalias 'trashbank2'
  893. replygump 0x554b87f3 59
  894. @setalias 'trashbank2' 'self'
  895. elseif not @findalias 'trashbank3'
  896. replygump 0x554b87f3 65
  897. @setalias 'trashbank3' 'self'
  898. endif
  899. pause 2000
  900. endif
  901. endwhile
  902. msg 'bank'
  903. pause 250
  904. while mounted 'self'
  905. useobject 'self'
  906. pause 550
  907. endwhile
  908. waitforproperties 'beetle' 5000
  909. if @property 'bonded' 'beetle'
  910. waitforcontext 'beetle' 10 15000
  911. else
  912. waitforcontext 'beetle' 9 15000
  913. endif
  914. while @findtype 0xeed 'any' 'beetle'
  915. movetype 0xeed 'beetle' 'bank'
  916. pause 550
  917. endwhile
  918. if counttype 0xeed 0 'bank' > 1000000
  919. msg 'check 1000000'
  920. endif
  921. while @findtype 0x1767 'any' 'beetle'
  922. movetype 0x1767 'beetle' 'bank'
  923. pause 550
  924. endwhile
  925. //Umbra trash
  926. if y > 1338 and y < 1352
  927. @setalias 'banktrash' 0x4009b005
  928. elseif y > 1249 and y < 1259
  929. //Zento trash
  930. @setalias 'banktrash' 0x402eceff
  931. //Jhelom Trash
  932. elseif y > 557 and y < 567
  933. @setalias 'banktrash' 0x4001e289
  934. //Moonglow Trash
  935. elseif y > 1154 and y < 1166
  936. @setalias 'banktrash' 0x4044c11b
  937. //Vesper Trash
  938. elseif y > 673 and y < 688
  939. @setalias 'banktrash' 0x4079cd96
  940. //New Haven Trash
  941. elseif y > 2563 and y < 2576
  942. @setalias 'banktrash' 0x404fcbbc
  943. endif
  944. while @findtype 0x170d 'any' 'beetle'
  945. movetype 0x170d 'beetle' 'banktrash'
  946. pause 550
  947. endwhile
  948. while @findtype 0xfb4 'any' 'beetle'
  949. movetype 0xfb4 'beetle' 'banktrash'
  950. pause 550
  951. endwhile
  952. while @findtype 0xe86 'any' 'beetle'
  953. movetype 0xe86 'beetle' 'banktrash'
  954. pause 550
  955. endwhile
  956. while @findtype 0xe85 'any' 'beetle'
  957. movetype 0xe85 'beetle' 'banktrash'
  958. pause 550
  959. endwhile
  960. while @findtype 0x13d5 'any' 'beetle'
  961. movetype 0x13d5 'beetle' 'banktrash'
  962. pause 550
  963. endwhile
  964. while @findtype 0x13c6 'any' 'beetle'
  965. movetype 0x13c6 'beetle' 'banktrash'
  966. pause 550
  967. endwhile
  968. while @findtype 0xf39 'any' 'beetle'
  969. movetype 0xf39 'beetle' 'banktrash'
  970. pause 550
  971. endwhile
  972. clearignorelist
  973. while @findtype 0x14f0 52 'bank'
  974. if not @property '1,000,000' 'found'
  975. useobject 'found'
  976. pause 550
  977. endif
  978. ignoreobject 'found'
  979. endwhile
  980. while counttype 0xeed 0 'bank' > 1000000
  981. msg 'check 1000000'
  982. pause 100
  983. endwhile
  984. clearignorelist
  985. while @findtype 0x14f0 52 'bank'
  986. moveitem 'found' 'backpack'
  987. pause 550
  988. endwhile
  989. if @injournal 'world will save'
  990. while not @injournal 'world save complete'
  991. endwhile
  992. @clearjournal
  993. endif
  994. while not mounted 'self'
  995. if not @findobject 'beetle'
  996. useskill 'detect'
  997. pause 250
  998. @target 'self'
  999. endif
  1000. pause 250
  1001. msg 'all follow me'
  1002. useobject 'beetle'
  1003. pause 750
  1004. endwhile
  1005. //pack up cloth in bank
  1006. if counttype 0x1767 0 'bank' > 180000
  1007. while @findtype 0x14f0 71 'bank' and @findtype 0x1767 0 'bank'
  1008. if @property 'Contents' 'backpack' > 122
  1009. break
  1010. endif
  1011. usetype 0x14f0 71 'bank'
  1012. pause 750
  1013. if @findtype 0x1767 'any' 'bank'
  1014. target! 'found'
  1015. endif
  1016. pause 750
  1017. if @findtype 0x14f0 1426 'bank'
  1018. moveitem 'found' 'backpack'
  1019. pause 750
  1020. endif
  1021. endwhile
  1022. endif
  1023. @playmacro 'Turn In Go Home'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement