Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.65 KB | None | 0 0
  1.  
  2. function get_sets()
  3.  
  4. sets.fashion = {
  5. main = "Wrath Tabar",
  6. sub = "Kabrakan's Axe",
  7. range = "Lightning Bow +1",
  8. ammo = "Bodkin Arrow",
  9. head = "Luisant Salade",
  10. body = "Luisant Haubert",
  11. hands = "Luisant Moufles",
  12. legs = "Luisant Brayettes",
  13. feet = "Gothic Sabatons"
  14. }
  15.  
  16. sets.idle = {
  17. head = "Empress Hairpin",
  18. neck = "Fortified Chain",
  19. left_ear = "Elusive Earring",
  20. right_ear = "Elusive Earring",
  21. body = "Scp. Harness +1",
  22. hands = "Akinji Bazubands",
  23. left_ring = "Wivre Ring +1",
  24. right_ring = "Wivre Ring +1",
  25. back = "Thunderer's Mantle",
  26. waist = "",
  27. legs = "Raven Hose",
  28. feet = "Gothic Sabatons"
  29. }
  30.  
  31. sets.engaged = {
  32. head = "Zeal Cap +1",
  33. neck = "Peacock Amulet",
  34. left_ear = "Spike Earring",
  35. right_ear = "Spike Earring",
  36. body = "Haubergeon +1",
  37. hands = "Akinji Bazubands",
  38. left_ring = "Ecphoria Ring",
  39. right_ring = "Rajas Ring",
  40. back = "Amemet Mantle +1",
  41. waist = "Precise Belt",
  42. legs = "Abtal Zerehs",
  43. feet = "Gothic Sabatons"
  44. }
  45.  
  46. sets.chr = {
  47. neck = "Star Pendant",
  48. left_ear = "Melody Earring +1",
  49. right_ear = "Melody Earring +1",
  50. body = "Brigandine +1",
  51. left_ring = "Allure Ring +1",
  52. right_ring = "Allure Ring +1",
  53. waist = "Corsette +1",
  54. legs = "Dst. Codpiece",
  55. feet = "Ceremonial Boots"
  56. }
  57. -- Rampage
  58. -- Modifiers: STR:50%
  59. -- but a multi-hit, so prolly want to think about acc as well.
  60. sets.str = {
  61. head = "Luisant Salade",
  62. neck = "Chivalrous Chain",
  63. left_ear = "",
  64. right_ear = "",
  65. body = "",
  66. hands = "Pallas's Bracelets",
  67. left_ring = "Puissance Ring +1",
  68. right_ring = "Rajas Ring",
  69. back = "Amemet Mantle +1",
  70. waist = "Jungle Belt",
  71. legs = "Abtal Zerehs",
  72. feet = ""
  73. }
  74.  
  75.  
  76. end
  77.  
  78. --[[********************************************************
  79. functions go here
  80. ********************************************************--]]
  81. -- equip our idle set
  82. function equip_idle()
  83. windower.add_to_chat(8,'[Idle]')
  84. equip(sets.idle)
  85. end
  86. -- equip our engaged set
  87. function equip_engaged()
  88. windower.add_to_chat(8,'[Engaged]')
  89. equip(sets.idle,sets.engaged)
  90. end
  91. -- equip our ws set
  92. function equip_ws()
  93. windower.add_to_chat(8,'[Weapon Skill]')
  94. equip(sets.str)
  95. end
  96. -- equip our resting hMP set
  97. function equip_rest()
  98. windower.add_to_chat(8, '[Resting]')
  99. equip(sets.rest)
  100. end
  101.  
  102. -- the choose_set function figures out whether we're engaged with a
  103. -- mob or not, and passes control to the relevant function above.
  104. function choose_set()
  105. if player.status == "Engaged" then
  106. equip_engaged()
  107.  
  108. else
  109. equip_idle()
  110. end
  111. end
  112.  
  113. --[[ ******************************************************
  114. Casting functions - these functions run automatically when
  115. we cast a spell, use a job ability, rest for MP, and so on
  116. ****************************************************** --]]
  117.  
  118. -- prior to using our ability
  119. function precast(spell)
  120.  
  121. if spell.type == 'WeaponSkill' then
  122. equip_ws()
  123. elseif spell.name == 'Charm' then
  124. equip(sets.chr)
  125. elseif spell.name == 'Ranged' then
  126. am = true
  127. windower.add_to_chat(121, '[Ranged]')
  128. equip(sets.ranged)
  129. end
  130. end
  131.  
  132. -- the midcast function swaps in a new set of gear during
  133. -- the cast, which will make the spell effect more potent.
  134. function midcast(spell)
  135.  
  136.  
  137. end
  138.  
  139. -- after we use an ability, put on either our engaged or
  140. -- idle sets.
  141. function aftercast(spell)
  142. if am == true then
  143. an = player.inventory[player.equipment.ammo].count
  144. windower.add_to_chat(121, '['..player.inventory[player.equipment.ammo].count..']')
  145. am = false
  146. end
  147. choose_set()
  148. end
  149.  
  150. -- when we engage or disengage, sit or stand, put on the
  151. -- correct set of gear.
  152. -- the status_change function runs automatically whenever we
  153. -- engage, disengage, kneel, or stand. As a BLM we use this
  154. -- to equip our +hMP gear when we /heal, and return to our
  155. -- idle gear when we stand up.
  156. function status_change(new,old)
  157. if new == 'Resting' then
  158. equip_rest()
  159. else
  160. choose_set()
  161. end
  162. end
  163.  
  164. -- this posts into chatlog what buffs are added to and removed
  165. -- from you
  166.  
  167. function buff_change(name,gain)
  168. if gain == true then
  169. windower.add_to_chat(130, '['.. name ..' Applied!]')
  170. elseif gain == false then
  171. windower.add_to_chat(130, '['.. name ..' Has Fallen!]')
  172. end
  173. end
  174.  
  175. --[[ ******************************************************
  176. Code that runs once, when we first swap to our drk job
  177. ****************************************************** --]]
  178. -- puts on our fashion set, lockstyle it, then switch to our idle set.
  179. am = false
  180.  
  181.  
  182. send_command('wait 1;gs equip fashion;wait 1;input /lockstyle on;wait 1;gs equip idle;wiat 1;input /macro book 3')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement