Advertisement
Guest User

TEMPLATE.lua

a guest
Jul 23rd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.36 KB | None | 0 0
  1. ----------------------
  2. -- Initial loading. --
  3. ----------------------
  4.  
  5. function get_sets()
  6. mote_include_version = 2
  7.  
  8. include('Mote-Include.lua')
  9. end
  10.  
  11. --------------------------------
  12. -- Initial user configuration --
  13. -------------------------------
  14.  
  15. -- Called whin this file is initially loaded.
  16. function user_setup()
  17. state.CastingMode:options('Normal') -- Cycle through casting modes with Ctrl + F11.
  18. state.IdleMode:options('Normal')
  19. state.OffenseMode:options('Normal') -- Cycle through engaged modes with F9.
  20. state.WeaponskillMode:options('Normal') -- May not come with a default binding.
  21. state.RangedMode:options('Normal') -- Alt + F9 to cycle through modes.
  22. state.PhysicalDefenseMode:options('PDT')
  23. state.MagicalDefenseMode:options('MDT')
  24.  
  25. set_macro_page(1, 1) -- Sets your macro page to the first number and book to the second number in that order.
  26. send_command('wait 9;input /lockstyleset 01') -- Sets your lockstyle set to the two digit number at the end.
  27.  
  28. send_command('gs enable all') -- Unlock any slots that may have been locked before this gearswap was loaded.
  29. send_command('bind %` gs enable all') -- Press ` (Grave key) to unlock all slots.
  30. send_command('bind %^space gs disable main sub range') -- Press ctrl + space to lock weapons.
  31. send_command('bind %!space gs enable main sub range') -- Press alt + space to unlock weapons.
  32.  
  33. end
  34.  
  35. -- Called when this file is unloaded or reloaded.
  36. function user_unload()
  37. -- Remove the bindings set above when this gearswap is unloaded.
  38. send_command('unbind %`')
  39. send_command('unbind %^space')
  40. send_command('unbind %!space')
  41.  
  42. end
  43.  
  44. ----------------
  45. -- Gear sets. --
  46. ----------------
  47.  
  48. function init_gear_sets()
  49.  
  50. -----------------------
  51. -- Job ability sets. --
  52. -----------------------
  53.  
  54. -- You can safely delete these if you don't use dancer.
  55. sets.precast.Waltz = {
  56.  
  57. }
  58.  
  59. -- Same as above.
  60. sets.precast.Waltz['Healing Waltz'] = {} -- Intentionally empty so none of your waltz gear is used.
  61.  
  62. -------------------
  63. -- Casting sets. --
  64. -------------------
  65.  
  66. sets.precast.FC = { -- Benefits from only Fastcast gear and used before every spell cast.
  67. -- ear1 = "Loquacious Earring"
  68. }
  69.  
  70. -- Almost every job has to use it at some point put lots of haste in here.
  71. sets.midcast.Utsusemi = { -- Put in haste, interrupt reduction, and evasion.
  72. head = " ",
  73. neck = " ",
  74. ear1 = " ",
  75. ear2 = " ",
  76. body = " ",
  77. hands = " ",
  78. ring1 = " ",
  79. ring2 = " ",
  80. back = " ",
  81. waist = " ",
  82. legs = " ",
  83. feet = " "
  84. }
  85.  
  86. -------------------
  87. -- Engaged sets. --
  88. -------------------
  89.  
  90. sets.engaged = {
  91. range = " ",
  92. ammo = " ",
  93. head = " ",
  94. neck = " ",
  95. ear1 = " ",
  96. ear2 = " ",
  97. body = " ",
  98. hands = " ",
  99. ring1 = " ",
  100. ring2 = " ",
  101. back = " ",
  102. waist = " ",
  103. legs = " ",
  104. feet = " "
  105. }
  106.  
  107. -- Delete this list if you never use NIN or DNC.
  108. -- A set pinned over your engaged sets while single wielding.
  109. -- If you delete the dual wielding code in customize_melee_set() you can delete this too.
  110. sets.engaged.SW = { -- Put your single wielding weapons in here and pieces used while doing so.
  111. main = " ",
  112. sub = " "
  113. }
  114.  
  115. -- Same as above delete this if you never use NIN or DNC.
  116. -- A set pinned over your engaged sets while dual wielding.
  117. -- If you delete the dual wielding code in customize_melee_set() you can delete this too.
  118. sets.engaged.DW = { -- Put your dual wielding weapons in here and pieces used while doing so.
  119. main = " ",
  120. sub = " "
  121. }
  122.  
  123. ----------------------------------------------------------------------------------
  124. -- Range sets -- Delete this section if your job doesn't have ranged abilities. --
  125. ----------------------------------------------------------------------------------
  126.  
  127. sets.precast.RA = {
  128.  
  129. }
  130.  
  131. sets.midcast.RA = {
  132.  
  133. }
  134.  
  135. ------------------------
  136. -- Weapon skill sets. --
  137. ------------------------
  138.  
  139. sets.precast.WS = {
  140. ammo = " ",
  141. head = " ",
  142. neck = " ",
  143. ear1 = " ",
  144. ear2 = " ",
  145. body = " ",
  146. hands = " ",
  147. ring1 = " ",
  148. ring2 = " ",
  149. back = " ",
  150. waist = " ",
  151. legs = " ",
  152. feet = " "
  153. }
  154.  
  155. ----------------
  156. -- Idle sets. --
  157. ----------------
  158.  
  159. sets.idle = {
  160. range = " ",
  161. ammo = " ",
  162. head = " ",
  163. neck = " ",
  164. ear1 = " ",
  165. ear2 = " ",
  166. body = " ",
  167. hands = " ",
  168. ring1 = " ",
  169. ring2 = " ",
  170. back = " ",
  171. waist = " ",
  172. legs = " ",
  173. feet = " "
  174. }
  175.  
  176. sets.idle.Town = {
  177.  
  178. }
  179.  
  180. sets.idle.Weak = {
  181.  
  182. }
  183.  
  184. -- Delete this code if you never use /NIN or /DNC.
  185. -- A set pinned over your idle sets while single wielding.
  186. -- If you delete the dual wielding code in customize_idle_set() you can delete this too.
  187. sets.idle.SW = { -- Put your single wielding weapons in here and pieces used while doing so.
  188. main = " ",
  189. sub = " "
  190. }
  191.  
  192. -- Same as above you can delete this if you never NIN or DNC.
  193. -- A set pinned over your idle sets while dual wielding.
  194. -- If you delete the dual wielding code in customize_idle_set() you can delete this too.
  195. sets.idle.DW = { -- Put your duel wielding weapons in here and pieces used while doing so.
  196. main = " ",
  197. sub = " "
  198. }
  199.  
  200. sets.resting = {
  201. range = " ",
  202. ammo = " ",
  203. head = " ",
  204. neck = " ",
  205. ear1 = " ",
  206. ear2 = " ",
  207. body = " ",
  208. hands = " ",
  209. ring1 = " ",
  210. ring2 = " ",
  211. back = " ",
  212. waist = " ",
  213. legs = " ",
  214. feet = " "
  215. }
  216.  
  217. ------------------
  218. -- Defense sets --
  219. ------------------
  220.  
  221. sets.Kiting = {}
  222.  
  223. sets.defense.PDT = {}
  224.  
  225. sets.defense.MDT = {}
  226.  
  227. ------------------
  228. -- Manual sets. --
  229. ------------------
  230.  
  231. --[[
  232. These sets can be called in a windower macro using the example script.txt below.
  233. gs enable neck
  234. gs equip manual.whistle
  235. gs disable neck
  236.  
  237. Or used in a standard in game macro with the example below.
  238. /console gs enable neck
  239. /console equip manual.whistle
  240. /console gs disable neck
  241.  
  242. Make sure you enable then equip and then disable all the slots that are used in the sets.
  243. --]]
  244.  
  245. sets.manual = {} -- Creates a empty list for these sets to be a sub list of.
  246.  
  247. sets.manual.whistle = {neck = "Chocobo Whistle"}
  248.  
  249. sets.manual.nexus = {back = "Nexus Cape"}
  250.  
  251. sets.manual.warp = {ring2 = "Warp Ring"}
  252.  
  253. sets.manual.lotus = {main = "Lotus Katana"} -- Delete this if THF.
  254.  
  255. end
  256.  
  257. ----------------------
  258. -- Custom scripting --
  259. ----------------------
  260.  
  261. -- You can delete all this if you don't use NIN or DNC ever.
  262. -- Whenever a engaged set is used this function is called.
  263. function customize_melee_set(meleeSet)
  264. -- Checks if your subjob is DNC or NIN or isn't and uses the right weapons.
  265. -- You can delete this up to 'return meleeSet' if you don't use ninja or dancer.
  266. if player.sub_job ~= "DNC" and player.sub_job ~= "NIN" then
  267. meleeSet = set_combine(meleeSet, sets.engaged.SW)
  268. else
  269. meleeSet = set_combine(meleeSet, sets.engaged.DW)
  270. end
  271.  
  272. return meleeSet
  273. end
  274.  
  275. -- Same as above you can delete this if you never use NIN or DNC.
  276. -- Wenever a idle set is used this fuction is called.
  277. function customize_idle_set(idleSet)
  278. -- Checks if your subjob is DNC or NIN or isn't and uses the right weapons.
  279. -- You can delete this up to 'return idleSet' if you don't use ninja or dancer.
  280. if player.sub_job ~= "DNC" and player.sub_job ~= "NIN" then
  281. idleSet = set_combine(idleSet, sets.idle.SW)
  282. else
  283. idleSet = set_combine(idleSet, sets.idle.DW)
  284. end
  285.  
  286. return idleSet
  287. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement