Advertisement
Saintsinner

SamluaLEWheeelp

Nov 27th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.03 KB | None | 0 0
  1. function get_sets()
  2. AccIndex = 1
  3. AccArray = {"LowACC","MidACC","HighACC"} -- 3 Levels Of Accuracy Sets For TP/WS/Hybrid. Default ACC Set Is LowACC. The First TP Set Of Your Main Weapon Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below --
  4. IdleIndex = 1
  5. IdleArray = {"Movement","Regen"} -- Default Idle Set Is Movement --
  6. Armor = 'None'
  7. Twilight = 0
  8. Seigan = 'OFF' -- Set Default Seigan Set ON or OFF Here --
  9. Third_Eye = 'OFF' -- Set Default Third Eye Set ON or OFF Here --
  10. target_distance = 5 -- Set Default Distance Here --
  11. send_command('input /macro book 1;wait .1;input /macro set 1') -- Change Default Macro Book Here --
  12.  
  13. sc_map = {SC1="TachiFudo", SC2="TachiRana", SC3="Meditate"} -- 3 Additional Binds. Can Change Whatever JA/WS/Spells You Like Here. Remember Not To Use Spaces. --
  14.  
  15. -- Idle/Town Sets --
  16. sets.Idle = {
  17. main="Kogarasumaru",
  18. head="Usk. Somen +1",
  19. neck="Da. Nodowa +1",
  20. body="Kyujutsugi",
  21. hands="Wakido kote +1",
  22. ring1="Karieyh Ring",
  23. ring2="Defending Ring",
  24. belt="Windbuffet Belt +1",
  25. back="Takaha mantle",
  26. legs="Hachiryu haidate",
  27. feet="Danzo Sune-Ate"}
  28. sets.Idle.Regen = {
  29. main="Kogarasumaru",
  30. head="Twilight helm",
  31. neck="Wiglen gorget",
  32. body="Kumarbi's akar",
  33. hands="Wakido kote +1",
  34. ring1="Karieyh ring",
  35. ring2="Sheltered Ring",
  36. belt="Windbuffet Belt +1",
  37. back="Takaha mantle",
  38. legs="Hachiryu haidate",
  39. feet="Danzo Sune-Ate"}
  40. sets.Idle.Movement = set_combine(sets.Idle.Regen,{
  41. head="Usk. Somen +1",
  42. ring2="Defending Ring"})
  43.  
  44. sets.Twilight = {head="Twilight Helm",body="Twilight Mail"}
  45.  
  46. -- TP Base Set --
  47. sets.TP = {}
  48.  
  49. -- Kogarasumaru(AM3 Down) TP Sets --
  50. sets.TP.Kogarasumaru = {
  51. main="Kogarasumaru",
  52. sub="Bloodrain Strap",
  53. head="Sakonji kabuto +1",
  54. neck="Ganesha's Mala",
  55. ear1="Tripudio Earring",
  56. ear2="Trux Earring",
  57. body="Sakonji Domaru +1",
  58. hands="Wakido Kote +1",
  59. ring1="K'ayres Ring",
  60. ring2="Rajas Ring",
  61. back="Takaha mantle",
  62. waist="Windbuffet Belt +1",
  63. legs="Otronif Brais +1",
  64. feet="Otronif Boots +1"}
  65. sets.TP.Kogarasumaru.MidACC = set_combine(sets.TP.Kogarasumaru,{
  66. head="Yaoyotl Helm",
  67. neck="Da. Nodowa +1",
  68. ear1="Steelflash Earring",
  69. ear2="Bladeborn Earring",
  70. back="Takaha Mantle",
  71. waist="Dynamic Belt +1"})
  72. sets.TP.Kogarasumaru.HighACC = set_combine(sets.TP.Kogarasumaru.MidACC,{
  73. neck="Da. Nodowa +1",
  74. body="Mes. Haubergeon",
  75. hands="Wakido kote +1",
  76. ear2="Zennaroi earring",
  77. ring1="Oneiros Ring",
  78. ring2="Mars's Ring",
  79. feet="Waki. Sune-Ate +1"})
  80.  
  81. -- Kogarasumaru(AM3 Up) TP Sets --
  82. sets.TP.Kogarasumaru.AM3 = set_combine(sets.TP.Kogarasumaru,{
  83. head="Sakonji Kabuto +1",
  84. ear1="Tripudio Earring",
  85. ear2="Brutal Earring",
  86. back="Takaha Mantle"})
  87. sets.TP.Kogarasumaru.MidACC.AM3 = set_combine(sets.TP.Kogarasumaru.AM3,{
  88. head="Yaoyotl Helm",
  89. ear1="Steelflash Earring",
  90. ear2="Bladeborn Earring",
  91. waist="Dynamic Belt +1",
  92. feet="Whirlpool Greaves"})
  93. sets.TP.Kogarasumaru.HighACC.AM3 = set_combine(sets.TP.Kogarasumaru.MidACC.AM3,{
  94. neck="Da. Nodowa +1",
  95. body="Mes. Haubergeon",
  96. ring1="Patricius Ring",
  97. ring2="Mars's Ring",
  98. feet="Waki. Sune-Ate +1"})
  99.  
  100. -- Kogarasumaru(AM3 Down: Ionis) TP Sets --
  101. sets.TP.Kogarasumaru.Ionis = set_combine(sets.TP.Kogarasumaru,{})
  102. sets.TP.Kogarasumaru.MidACC.Ionis = set_combine(sets.TP.Kogarasumaru.Ionis,{
  103. head="Yaoyotl Helm",
  104. ear1="Steelflash Earring",
  105. ear2="Bladeborn Earring",
  106. back="Takaha Mantle",
  107. waist="Dynamic Belt +1",
  108. feet="Whirlpool Greaves"})
  109. sets.TP.Kogarasumaru.HighACC.Ionis = set_combine(sets.TP.Kogarasumaru.MidACC.Ionis,{
  110. neck="Da. Nodowa +1",
  111. body="Mes. Haubergeon",
  112. ring2="Mars's Ring",
  113. feet="Waki. Sune-Ate +1"})
  114.  
  115. -- Kogarasumaru(AM3 Up: Ionis) TP Sets --
  116. sets.TP.Kogarasumaru.AM3.Ionis = set_combine(sets.TP.Kogarasumaru.AM3,{})
  117. sets.TP.Kogarasumaru.MidACC.AM3.Ionis = set_combine(sets.TP.Kogarasumaru.AM3.Ionis,{
  118. head="Yaoyotl Helm",
  119. ear1="Steelflash Earring",
  120. ear2="Bladeborn Earring",
  121. waist="Dynamic Belt +1",
  122. feet="Whirlpool Greaves"})
  123. sets.TP.Kogarasumaru.HighACC.AM3.Ionis = set_combine(sets.TP.Kogarasumaru.MidACC.AM3.Ionis,{
  124. neck="Da. Nodowa +1",
  125. body="Mes. Haubergeon",
  126. ring1="Patricius Ring",
  127. ring2="Mars's Ring",
  128. feet="Waki. Sune-Ate +1"})
  129.  
  130. -- Tsurumaru TP Sets --
  131. sets.TP.Tsurumaru = {
  132. main="Tsurumaru",
  133. sub="Bloodrain Strap",
  134. head="Otomi Helm",
  135. neck="Ganesha's Mala",
  136. ear1="Trux Earring",
  137. ear2="Brutal Earring",
  138. body="Sakonji Domaru +1",
  139. hands="Wakido Kote +1",
  140. ring1="K'ayres Ring",
  141. ring2="Rajas Ring",
  142. back="Takaha Mantle",
  143. waist="Windbuffet belt +1",
  144. legs="Otronif Brais +1",
  145. feet="Otronif Boots +1"}
  146. sets.TP.Tsurumaru.MidACC = set_combine(sets.TP.Tsurumaru,{
  147. head="Yaoyotl Helm",
  148. ear1="Steelflash Earring",
  149. ear2="Bladeborn Earring"})
  150. sets.TP.Tsurumaru.HighACC = set_combine(sets.TP.Tsurumaru.MidACC,{
  151. neck="Da. Nodowa +1",
  152. body="Mes. Haubergeon",
  153. ring1="Oneiros Ring",
  154. ring2="Rajas Ring",
  155. legs="Otronif brais +1"})
  156.  
  157. -- Tsurumaru(Ionis) TP Sets --
  158. sets.TP.Tsurumaru.Ionis = set_combine(sets.TP.Tsurumaru,{
  159. head="Otomi helm",
  160. sub="Bloodrain Strap",
  161. body="Mes. Haubergeon",
  162. Ring1="Oneiros ring",
  163. Ring2="Rajas ring",
  164. waist="Windbuffet Belt +1"})
  165. sets.TP.Tsurumaru.MidACC.Ionis = set_combine(sets.TP.Tsurumaru.Ionis,{
  166. head="Yaoyotl Helm",
  167. ear1="Trux Earring",
  168. ear2="Brutal Earring",
  169. back="Takaha Mantle"})
  170. sets.TP.Tsurumaru.HighACC.Ionis = set_combine(sets.TP.Tsurumaru.MidACC.Ionis,{
  171. head="Yaoyotl helm",
  172. neck="Da. Nodowa +1",
  173. body="Mes. Haubergeon",
  174. hands="Wakido Kote +1",
  175. ear1="Steelflash earring",
  176. ear2="Bladeborn earring",
  177. ring1="Mars's Ring",
  178. ring2="Rajas Ring",
  179. legs="Xaddi cuisses",
  180. feet="Otronif boots +1"})
  181. -- Amanomurakumo(AM Down) TP Sets --
  182. sets.TP.Amanomurakumo = {
  183. main="Amanomurakumo",
  184. head="Yaoyotl Helm",
  185. neck="Ganesha's mala",
  186. ear1="Tripudio earring",
  187. ear2="Brutal earring",
  188. body="Sakonji domaru +1",
  189. hands="Wakido kote +1",
  190. ring1="K'ayres ring",
  191. ring2="Rajas ring",
  192. back="Takaha mantle",
  193. waist="Windbuffet belt +1",
  194. legs="Otronif Brais +1",
  195. feet="Otronif Boots +1"}
  196. sets.TP.Amanomurakumo.MidACC = set_combine(sets.TP.Amanomurakumo,{
  197. head="Yaoyotl Helm",
  198. ear1="Steelflash Earring",
  199. ear2="Bladeborn Earring",
  200. back="Takaha Mantle",
  201. waist="Dynamic Belt +1"})
  202. sets.TP.Amanomurakumo.HighACC = set_combine(sets.TP.Amanomurakumo.MidACC,{
  203. neck="Iqabi Necklace",
  204. hands="Buremte Gloves",
  205. ring1="Patricius Ring",
  206. ring2="Mars's Ring",
  207. feet="Waki. Sune-Ate +1"})
  208.  
  209. -- Amanomurakumo(AM Up) TP Sets --
  210. sets.TP.Amanomurakumo.AM = set_combine(sets.TP.Amanomurakumo,{})
  211. sets.TP.Amanomurakumo.MidACC.AM = set_combine(sets.TP.Amanomurakumo.AM,{
  212. head="Yaoyotl Helm",
  213. ear1="Steelflash Earring",
  214. ear2="Bladeborn Earring",
  215. back="Takaha Mantle",
  216. waist="Dynamic Belt +1",
  217. feet="Whirlpool Greaves"})
  218. sets.TP.Amanomurakumo.HighACC.AM = set_combine(sets.TP.Amanomurakumo.MidACC.AM,{
  219. neck="Iqabi Necklace",
  220. body="Unkai Domaru +2",
  221. hands="Buremte Gloves",
  222. ring2="Mars's Ring",
  223. feet="Waki. Sune-Ate +1"})
  224.  
  225. -- Amanomurakumo(AM Down: Ionis) TP Sets --
  226. sets.TP.Amanomurakumo.Ionis = set_combine(sets.TP.Amanomurakumo,{})
  227. sets.TP.Amanomurakumo.MidACC.Ionis = set_combine(sets.TP.Amanomurakumo.Ionis,{
  228. head="Yaoyotl Helm",
  229. feet="Whirlpool Greaves"})
  230. sets.TP.Amanomurakumo.HighACC.Ionis = set_combine(sets.TP.Amanomurakumo.MidACC.Ionis,{
  231. neck="Iqabi Necklace",
  232. body="Mes. Haubergeon",
  233. hands="Buremte Gloves",
  234. ring2="Mars's Ring",
  235. feet="Waki. Sune-Ate +1"})
  236.  
  237. -- Amanomurakumo(AM Up: Ionis) TP Sets --
  238. sets.TP.Amanomurakumo.AM.Ionis = set_combine(sets.TP.Amanomurakumo.AM,{})
  239. sets.TP.Amanomurakumo.MidACC.AM.Ionis = set_combine(sets.TP.Amanomurakumo.AM.Ionis,{
  240. head="Yaoyotl Helm",
  241. back="Takaha Mantle",
  242. waist="Dynamic Belt +1",
  243. feet="Whirlpool Greaves"})
  244. sets.TP.Amanomurakumo.HighACC.AM.Ionis = set_combine(sets.TP.Amanomurakumo.MidACC.AM.Ionis,{
  245. neck="Iqabi Necklace",
  246. hands="Buremte Gloves",
  247. ring1="Patricius Ring",
  248. ring2="Mars's Ring",
  249. feet="Waki. Sune-Ate +1"})
  250.  
  251. -- Masamune TP Sets --
  252. sets.TP.Masamune = {
  253. main="Masamune",
  254. sub="Duplus Grip",
  255. ammo="Hagneia Stone",
  256. head="Otomi Helm",
  257. neck="Ganesha's Mala",
  258. ear1="Trux Earring",
  259. ear2="Brutal Earring",
  260. body="Wakido Domaru +1",
  261. hands="Wakido Kote +1",
  262. ring1="K'ayres Ring",
  263. ring2="Rajas Ring",
  264. back="Misuuchi Kappa",
  265. waist="Windbuffet Belt +1",
  266. legs="Otronif Brais +1",
  267. feet="Otronif Boots +1"}
  268. sets.TP.Masamune.MidACC = set_combine(sets.TP.Masamune,{
  269. ammo="Jukukik Feather",
  270. head="Yaoyotl Helm",
  271. back="Takaha Mantle",
  272. waist="Dynamic Belt +1",
  273. feet="Whirlpool Greaves"})
  274. sets.TP.Masamune.HighACC = set_combine(sets.TP.Masamune.MidACC,{
  275. neck="Ziel Charm",
  276. body="Mes. Haubergeon",
  277. hands="Buremte Gloves",
  278. ring1="Patricius Ring",
  279. ring2="Mars's Ring",
  280. feet="Waki. Sune-Ate +1"})
  281.  
  282. -- Masamune(Ionis) TP Sets --
  283. sets.TP.Masamune.Ionis = set_combine(sets.TP.Masamune,{})
  284. sets.TP.Masamune.MidACC.Ionis = set_combine(sets.TP.Masamune.Ionis,{
  285. ammo="Jukukik Feather",
  286. head="Yaoyotl Helm",
  287. ear1="Steelflash Earring",
  288. ear2="Bladeborn Earring",
  289. back="Takaha Mantle",
  290. waist="Dynamic Belt +1",
  291. feet="Whirlpool Greaves"})
  292. sets.TP.Masamune.HighACC.Ionis = set_combine(sets.TP.Masamune.MidACC.Ionis,{
  293. neck="Ziel Charm",
  294. body="Mes. Haubergeon",
  295. hands="Buremte Gloves",
  296. ring1="Patricius Ring",
  297. ring2="Mars's Ring",
  298. feet="Waki. Sune-Ate +1"})
  299.  
  300. -- Seigan TP Set --
  301. sets.TP.Seigan = {head="Unkai Kabuto +2"}
  302.  
  303. -- Third Eye TP Set --
  304. sets.TP['Third Eye'] = {legs="Saotome Haidate +2"}
  305.  
  306. -- PDT/MDT Sets --
  307. sets.PDT = {
  308. head="Otronif Mask +1",
  309. neck="Agitator's Collar",
  310. ear1="Trux Earring",
  311. ear2="Tripudio Earring",
  312. body="Otro. Harness +1",
  313. hands="Otronif Gloves",
  314. ring1="Patricius Ring",
  315. ring2="Defending Ring",
  316. back="Repulse Mantle",
  317. waist="Flume Belt",
  318. legs="Otronif Brais +1",
  319. feet="Otronif Boots +1"}
  320.  
  321. sets.MDT = set_combine(sets.PDT,{
  322. head="Otronif mask +1",
  323. neck="Twilight torque",
  324. ear1="Hearty Earring",
  325. ear2="Sanare Earring",
  326. hands="Wakido kote +1",
  327. body="Nocturnus mail",
  328. ring1="Shadow Ring",
  329. back="Engulfer Cape +1",
  330. legs="Osmium cuisses",
  331. waist="Resolute Belt"})
  332.  
  333. -- Hybrid Sets --
  334. sets.TP.Hybrid = set_combine(sets.PDT,{
  335. ammo="Hagneia stone",
  336. ear1="Brutal Earring",
  337. ear2="Tripudio Earring",
  338. hands="Sakonji Kote +1",
  339. ring1="Dark Ring",
  340. ring2="Defending Ring",
  341. back="Takaha Mantle"})
  342. sets.TP.Hybrid.MidACC = set_combine(sets.TP.Hybrid,{
  343. head="Yaoyotl Helm",
  344. body="Mes. Haubergeon",
  345. waist="Dynamic Belt +1",
  346. feet="Whirlpool Greaves"})
  347. sets.TP.Hybrid.HighACC = set_combine(sets.TP.Hybrid.MidACC,{
  348. neck="Ziel Charm",
  349. back="Takaha Mantle",
  350. feet="Waki. Sune-Ate +1"})
  351.  
  352. -- WS Base Set --
  353. sets.WS = {
  354. head="Gavialis Helm",
  355. neck="Ganesha's Mala",
  356. ear1="Vulcan's Pearl",
  357. ear2="Brutal Earring",
  358. body="Mes. Haubergeon",
  359. hands="Buremte gloves",
  360. ring1="Ifrit Ring +1",
  361. ring2="Karieyh Ring",
  362. back="Letalis Mantle",
  363. waist="Caudata Belt",
  364. legs="Miki. Cuisses",
  365. feet="Sak. Sune-Ate +1"}
  366.  
  367. -- WS Sets --
  368. sets.WS["Tachi: Fudo"] = {
  369. head="Otomi Helm",
  370. neck="Light gorget",
  371. ear1="Vulcan's pearl",
  372. ear2="Moonshade Earring",
  373. body="Phorcys Korazin",
  374. hands="Mikinaak gauntlets",
  375. ring1="Ifrit Ring +1",
  376. ring2="Karieyh Ring",
  377. back="Buquwik Cape",
  378. waist="Metalsinger Belt",
  379. legs="Mikinaak cuisses",
  380. feet="Sak. sune-ate +1"}
  381. sets.WS["Tachi: Fudo"].MidACC = set_combine(sets.WS["Tachi: Fudo"],{
  382. head="Otomi Helm",
  383. hands="Boor bracelets",
  384. waist="Metalsinger belt"})
  385. sets.WS["Tachi: Fudo"].HighACC = set_combine(sets.WS["Tachi: Fudo"].MidACC,{
  386. head="Yayotl helm",
  387. neck="Light Gorget",
  388. waist="Light Belt",
  389. back="Letalis Mantle",
  390. legs="Miki. Cuisses"})
  391.  
  392. sets.WS["Tachi: Shoha"] = {
  393. head="Otomi Helm",
  394. neck="Ganesha's Mala",
  395. ear1="Moonshade Earring",
  396. ear2="Brutal Earring",
  397. body="Phorcys Korazin",
  398. hands="Boor Bracelets",
  399. ring1="Ifrit's Ring",
  400. ring2="Karieyh Ring",
  401. back="Buquwik Cape",
  402. waist="Windbuffet Belt +1",
  403. legs="Wakido Haidate +1",
  404. feet="Ejekamal boots"}
  405. sets.WS["Tachi: Shoha"].MidACC = set_combine(sets.WS["Tachi: Shoha"],{
  406. head="Yaoyotl Helm",
  407. neck="Thunder Gorget",
  408. hands="Miki. Gauntlets",
  409. waist="Thunder Belt"})
  410. sets.WS["Tachi: Shoha"].HighACC = set_combine(sets.WS["Tachi: Shoha"].MidACC,{
  411. body="Sakonji Domaru +1",
  412. back="Takaha Mantle",
  413. legs="Miki. Cuisses",
  414. feet="Waki. Sune-Ate +1"})
  415.  
  416. sets.WS["Tachi: Kaiten"] = {
  417. head="Otomi Helm",
  418. neck="Light Gorget",
  419. ear1="Vulcan's Pearl",
  420. ear2="Brutal Earring",
  421. body="Phorcys Korazin",
  422. hands="Boor Bracelets",
  423. ring1="Ifrit's Ring +1",
  424. ring2="Karieyh Ring",
  425. back="Buquwik Cape",
  426. waist="Light Belt",
  427. legs="Wakido Haidate +1",
  428. feet="Sak. Sune-Ate +1"}
  429. sets.WS["Tachi: Kaiten"].MidACC = set_combine(sets.WS["Tachi: Kaiten"],{
  430. head="Yaoyotl Helm",
  431. hands="Miki. Gauntlets",
  432. feet="Whirlpool Greaves"})
  433. sets.WS["Tachi: Kaiten"].HighACC = set_combine(sets.WS["Tachi: Kaiten"].MidACC,{
  434. body="Mes. Haubergeon",
  435. back="Takaha Mantle",
  436. legs="Miki. Cuisses",
  437. feet="Waki. Sune-Ate +1"})
  438.  
  439. sets.WS["Tachi: Rana"] = {
  440. head="Otomi Helm",
  441. neck="Shadow Gorget",
  442. ear1="Vulcan's Pearl",
  443. ear2="Brutal Earring",
  444. body="Phorcys Korazin",
  445. hands="Boor Bracelets",
  446. ring1="Ifrit's Ring +1",
  447. ring2="Karieyh Ring",
  448. back="Buquwik Cape",
  449. waist="Shadow Belt",
  450. legs="Wakido Haidate +1",
  451. feet="Sak. Sune-Ate +1"}
  452. sets.WS["Tachi: Rana"].MidACC = set_combine(sets.WS["Tachi: Rana"],{
  453. head="Yaoyotl Helm",
  454. hands="Miki. Gauntlets",
  455. feet="Whirlpool Greaves"})
  456. sets.WS["Tachi: Rana"].HighACC = set_combine(sets.WS["Tachi: Rana"].MidACC,{
  457. body="Mes. Haubergeon",
  458. back="Takaha Mantle",
  459. legs="Miki. Cuisses",
  460. feet="Waki. Sune-Ate +1"})
  461.  
  462. sets.WS["Namas Arrow"] = {
  463. ammo="Tulfaire Arrow",
  464. head="Sakonji Kabuto +1",
  465. neck="Light Gorget",
  466. ear1="Vulcan's Pearl",
  467. ear2="Vulcan's Pearl",
  468. body="Phorcys Korazin",
  469. hands="Unkai Kote +2",
  470. ring1="Ifrit's Ring +1",
  471. ring2="Karieyh Ring",
  472. back="Buquwik Cape",
  473. waist="Light Belt",
  474. legs="Wakido Haidate +1",
  475. feet="Waki. Sune-Ate +1"}
  476. sets.WS["Namas Arrow"].MidACC = set_combine(sets.WS["Namas Arrow"],{
  477. body="Kyujutsugi"})
  478. sets.WS["Namas Arrow"].HighACC = set_combine(sets.WS["Namas Arrow"].MidACC,{
  479. ring1="Hajduk Ring",
  480. ring2="Hajduk Ring",
  481. back="Jaeger Mantle"})
  482.  
  483. sets.WS["Apex Arrow"] = {
  484. ammo="Tulfaire Arrow",
  485. head="Sakonji Kabuto +1",
  486. neck="Breeze Gorget",
  487. ear1="Vulcan's Pearl",
  488. ear2="Vulcan's Pearl",
  489. body="Phorcys Korazin",
  490. hands="Unkai Kote +2",
  491. ring1="Bellona's Ring",
  492. ring2="Stormsoul Ring",
  493. back="Buquwik Cape",
  494. waist="Thunder Belt",
  495. legs="Wakido Haidate +1",
  496. feet="Waki. Sune-Ate +1"}
  497. sets.WS["Apex Arrow"].MidACC = set_combine(sets.WS["Apex Arrow"],{
  498. body="Kyujutsugi"})
  499. sets.WS["Apex Arrow"].HighACC = set_combine(sets.WS["Apex Arrow"].MidACC,{
  500. ring1="Hajduk Ring",
  501. ring2="Hajduk Ring"})
  502.  
  503. -- JA Sets --
  504. sets.JA = {}
  505. sets.JA.Meditate = {head="Wakido Kabuto",hands="Sakonji Kote +1",back="Takaha Mantle"}
  506. sets.JA["Warding Circle"] = {head="Wakido Kabuto"}
  507. sets.JA["Sekkanoki"] = {hands="Unkai Kote +2"}
  508. sets.JA["Meikyo Shisui"] = {feet="Sak. Sune-Ate +1"}
  509.  
  510. -- Waltz Set --
  511. sets.Waltz = {}
  512.  
  513. sets.Precast = {}
  514. -- Fastcast Set --
  515. sets.Precast.FastCast = {
  516. neck="Orunmila's torque",
  517. ear1="Loquac. Earring",
  518. ring1="Prolix Ring",}
  519.  
  520. sets.Midcast = {}
  521. -- Magic Haste Set --
  522. sets.Midcast.Haste = set_combine(sets.PDT,{})
  523. end
  524.  
  525. function pretarget(spell,action)
  526. if (spell.type:endswith('Magic') or spell.type == "Ninjutsu") and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
  527. cancel_spell()
  528. send_command('input /item "Echo Drops" <me>')
  529. elseif spell.english == "Berserk" and buffactive.Berserk then -- Change Berserk To Aggressor If Berserk Is On --
  530. cancel_spell()
  531. send_command('Aggressor')
  532. elseif spell.english == "Seigan" and buffactive.Seigan then -- Change Seigan To Third Eye If Seigan Is On --
  533. cancel_spell()
  534. send_command('ThirdEye')
  535. elseif spell.english == "Meditate" and player.tp > 2900 then -- Cancel Meditate If TP Is Above 290 --
  536. cancel_spell()
  537. add_to_chat(123, spell.name .. ' Canceled: ['..player.tp..' TP]')
  538. elseif (spell.english == 'Ranged' and spell.target.distance > 24.9) or (player.status == 'Engaged' and (((spell.english == "Namas Arrow" or spell.english == "Apex Arrow") and spell.target.distance > 16+target_distance) or (spell.type == "WeaponSkill" and spell.english ~= "Namas Arrow" and spell.english ~= "Apex Arrow" and spell.target.distance > target_distance))) then -- Cancel Ranged Attack or WS If You Are Out Of Range --
  539. cancel_spell()
  540. add_to_chat(123, spell.name..' Canceled: [Out of Range]')
  541. return
  542. end
  543. end
  544.  
  545. function precast(spell,action)
  546. if spell.type == "WeaponSkill" then
  547. if player.status ~= 'Engaged' then -- Cancel WS If You Are Not Engaged. Can Delete It If You Don't Need It --
  548. cancel_spell()
  549. add_to_chat(123,'Unable To Use WeaponSkill: [Disengaged]')
  550. return
  551. else
  552. equipSet = sets.WS
  553. if equipSet[spell.english] then
  554. equipSet = equipSet[spell.english]
  555. end
  556. if equipSet[AccArray[AccIndex]] then
  557. equipSet = equipSet[AccArray[AccIndex]]
  558. end
  559. if buffactive.Sekkanoki then -- Equip Unkai Kote +2 When Sekkanoki Is On --
  560. equipSet = set_combine(equipSet,{hands="Unkai Kote +2"})
  561. end
  562. if buffactive.Sengikori then -- Equip Unkai Sune-ate +2 When Sengikori Is On --
  563. equipSet = set_combine(equipSet,{feet="Unkai Sune-ate +2"})
  564. end
  565. if (spell.english == "Tachi: Fudo" or spell.english == "Tachi: Shoha") and (player.tp > 2990 or buffactive.Sekkanoki or (player.tp > 1990 and buffactive.Hagakure)) then -- Equip Vulcan's Pearl When You Have 300 TP or Sekkanoki On or 200+ TP For Hagakure --
  566. equipSet = set_combine(equipSet,{ear1="Vulcan's Pearl"})
  567. end
  568. equip(equipSet)
  569. end
  570. elseif spell.type == "JobAbility" then
  571. if sets.JA[spell.english] then
  572. equip(sets.JA[spell.english])
  573. end
  574. elseif spell.type:endswith('Magic') or spell.type == 'Ninjutsu' then
  575. if string.find(spell.english,'Utsusemi') then
  576. if buffactive['Copy Image (3)'] or buffactive['Copy Image (4)'] then
  577. cancel_spell()
  578. add_to_chat(123, spell.name .. ' Canceled: [3+ Images]')
  579. return
  580. else
  581. equip(sets.Precast.FastCast)
  582. end
  583. else
  584. equip(sets.Precast.FastCast)
  585. end
  586. elseif spell.type == "Waltz" then
  587. equip(sets.Waltz)
  588. elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
  589. cast_delay(0.2)
  590. send_command('cancel Sneak')
  591. end
  592. if Twilight == 1 then
  593. equip(sets.Twilight)
  594. end
  595. end
  596.  
  597. function midcast(spell,action)
  598. if spell.type:endswith('Magic') or spell.type == 'Ninjutsu' then
  599. if string.find(spell.english,'Utsusemi') then
  600. if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)']) then
  601. send_command('@wait 1.7;cancel Copy Image*')
  602. end
  603. equip(sets.Midcast.Haste)
  604. elseif spell.english == 'Monomi: Ichi' then
  605. if buffactive['Sneak'] then
  606. send_command('@wait 1.7;cancel sneak')
  607. end
  608. equip(sets.Midcast.Haste)
  609. else
  610. equip(sets.Midcast.Haste)
  611. end
  612. end
  613. end
  614.  
  615. function aftercast(spell,action)
  616. if spell.type == "WeaponSkill" and not spell.interrupted then
  617. send_command('wait 0.2;gs c TP')
  618. elseif spell.english == "Warding Circle" and not spell.interrupted then -- Warding Circle Countdown --
  619. send_command('wait 260;input /echo '..spell.name..' Effect: [WEARING OFF IN 10 SEC.];wait 10;input /echo '..spell.name..' Effect: [OFF]')
  620. end
  621. status_change(player.status)
  622. end
  623.  
  624. function status_change(new,old)
  625. if player.equipment.range ~= 'empty' then
  626. disable('range','ammo')
  627. else
  628. enable('range','ammo')
  629. end
  630. if Armor == 'PDT' then
  631. equip(sets.PDT)
  632. elseif Armor == 'MDT' then
  633. equip(sets.MDT)
  634. elseif new == 'Engaged' then
  635. equipSet = sets.TP
  636. if Armor == 'Hybrid' and equipSet["Hybrid"] then
  637. equipSet = equipSet["Hybrid"]
  638. end
  639. if equipSet[player.equipment.main] then
  640. equipSet = equipSet[player.equipment.main]
  641. end
  642. if equipSet[AccArray[AccIndex]] then
  643. equipSet = equipSet[AccArray[AccIndex]]
  644. end
  645. if buffactive["Aftermath: Lv.3"] and equipSet["AM3"] then
  646. equipSet = equipSet["AM3"]
  647. end
  648. if buffactive.Aftermath and equipSet["AM"] then
  649. equipSet = equipSet["AM"]
  650. end
  651. if buffactive.Ionis and equipSet["Ionis"] then
  652. equipSet = equipSet["Ionis"]
  653. end
  654. if buffactive.Seigan and Seigan == 'ON' then -- Use Seigan Toggle For Seigan TP Set --
  655. equipSet = set_combine(equipSet,sets.TP.Seigan)
  656. end
  657. if buffactive["Third Eye"] and Third_Eye == 'ON' then -- Use Third Eye Toggle For Third Eye TP Set --
  658. equipSet = set_combine(equipSet,sets.TP["Third Eye"])
  659. end
  660. equip(equipSet)
  661. else
  662. equip(sets.Idle[IdleArray[IdleIndex]])
  663. end
  664. if buffactive.doom then -- Lock Twilight When You Are Doomed --
  665. equip(sets.Twilight)
  666. disable('head','body')
  667. end
  668. if Twilight == 1 then
  669. equip(sets.Twilight)
  670. end
  671. end
  672.  
  673. function buff_change(buff,gain)
  674. buff = string.lower(buff)
  675. if buff == "doom" and not gain then
  676. enable('head','body')
  677. elseif buff == "aftermath: lv.3" then -- AM3 Timer/Countdown --
  678. if gain then
  679. send_command('timers create "Aftermath: Lv.3" 180 down;wait 120;input /echo Aftermath: Lv.3 [WEARING OFF IN 60 SEC.];wait 30;input /echo Aftermath: Lv.3 [WEARING OFF IN 30 SEC.];wait 20;input /echo Aftermath: Lv.3 [WEARING OFF IN 10 SEC.]')
  680. else
  681. send_command('timers delete "Aftermath: Lv.3"')
  682. add_to_chat(123,'AM3: [OFF]')
  683. end
  684. elseif buff == 'weakness' then -- Weakness Timer --
  685. if gain then
  686. send_command('timers create "Weakness" 300 up')
  687. else
  688. send_command('timers delete "Weakness"')
  689. end
  690. end
  691. if buff == "sleep" and gain and player.hp > 200 and player.status == "Engaged" then -- Equip Berserker's Torque When You Are Asleep & Have 200+ HP --
  692. equip({neck="Berserker's Torque"})
  693. else
  694. if not midaction() then
  695. status_change(player.status)
  696. end
  697. end
  698. end
  699.  
  700. -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
  701. function self_command(command)
  702. if command == 'C1' then -- Accuracy Level Toggle --
  703. AccIndex = (AccIndex % #AccArray) + 1
  704. add_to_chat(158,'Accuracy Level: '..AccArray[AccIndex])
  705. status_change(player.status)
  706. elseif command == 'C5' then -- Auto Update Gear Toggle --
  707. status_change(player.status)
  708. add_to_chat(158,'Auto Update Gear')
  709. elseif command == 'C2' then -- Hybrid Toggle --
  710. if Armor == 'Hybrid' then
  711. Armor = 'None'
  712. add_to_chat(123,'Hybrid Set: [Unlocked]')
  713. else
  714. Armor = 'Hybrid'
  715. add_to_chat(158,'Hybrid Set: '..AccArray[AccIndex])
  716. end
  717. status_change(player.status)
  718. elseif command == 'C7' then -- PDT Toggle --
  719. if Armor == 'PDT' then
  720. Armor = 'None'
  721. add_to_chat(123,'PDT Set: [Unlocked]')
  722. else
  723. Armor = 'PDT'
  724. add_to_chat(158,'PDT Set: [Locked]')
  725. end
  726. status_change(player.status)
  727. elseif command == 'C15' then -- MDT Toggle --
  728. if Armor == 'MDT' then
  729. Armor = 'None'
  730. add_to_chat(123,'MDT Set: [Unlocked]')
  731. else
  732. Armor = 'MDT'
  733. add_to_chat(158,'MDT Set: [Locked]')
  734. end
  735. status_change(player.status)
  736. elseif command == 'C9' then -- Seigan Toggle --
  737. if Seigan == 'ON' then
  738. Seigan = 'OFF'
  739. add_to_chat(123,'Seigan Set: [Unlocked]')
  740. else
  741. Seigan = 'ON'
  742. add_to_chat(158,'Seigan Set: [Locked]')
  743. end
  744. status_change(player.status)
  745. elseif command == 'C10' then -- Third Eye Toggle --
  746. if Third_Eye == 'ON' then
  747. Third_Eye = 'OFF'
  748. add_to_chat(123,'Third Eye Set: [Unlocked]')
  749. else
  750. Third_Eye = 'ON'
  751. add_to_chat(158,'Third Eye Set: [Locked]')
  752. end
  753. status_change(player.status)
  754. elseif command == 'C3' then -- Twilight Toggle --
  755. if Twilight == 1 then
  756. Twilight = 0
  757. add_to_chat(123,'Twilight Set: [Unlocked]')
  758. else
  759. Twilight = 1
  760. add_to_chat(158,'Twilight Set: [locked]')
  761. end
  762. status_change(player.status)
  763. elseif command == 'C8' then -- Distance Toggle --
  764. if player.target.distance then
  765. target_distance = math.floor(player.target.distance*10)/10
  766. add_to_chat(158,'Distance: '..target_distance)
  767. else
  768. add_to_chat(123,'No Target Selected')
  769. end
  770. elseif command == 'C6' then -- Idle Toggle --
  771. IdleIndex = (IdleIndex % #IdleArray) + 1
  772. add_to_chat(158,'Idle Set: '..IdleArray[IdleIndex])
  773. status_change(player.status)
  774. elseif command == 'TP' then
  775. add_to_chat(158,'TP Return: ['..tostring(player.tp)..']')
  776. elseif command:match('^SC%d$') then
  777. send_command('//'..sc_map[command])
  778. end
  779. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement