Advertisement
Guest User

cabbit hop lua

a guest
Jul 28th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.28 KB | None | 0 0
  1. acc=0
  2. crit=0
  3. send_command("exec dnc.txt")
  4. bunnymode = "blank_hop"
  5.  
  6. function get_sets()
  7. adhemar_body_acc={ name="Adhemar Jacket", augments={'DEX+10','AGI+10','Accuracy+15',}}
  8. adhemar_body_atk={ name="Adhemar Jacket", augments={'STR+10','DEX+10','Attack+15',}}
  9. senuna_mantle_crit={ name="Senuna's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Crit.hit rate+10',}}
  10. senuna_mantle_da={ name="Senuna's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}
  11. senuna_mantle_dw={ name="Senuna's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','"Dual Wield"+10',}}
  12. senuna_mantle_ws={ name="Senuna's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Weapon skill damage +10%',}}
  13. senuna_mantle_fc_macc={}
  14. senuna_mantle_eva={}
  15. dnc_back_rf={ name="Toetapper Mantle", augments={'"Store TP"+3','"Dual Wield"+4','"Rev. Flourish"+30',}}
  16. dnc_back_dw={ name="Toetapper Mantle", augments={'"Store TP"+5','"Dual Wield"+5',}}
  17. herc_trousers_dw={ name="Herculean Trousers", augments={'Accuracy+16','"Dual Wield"+6','DEX+4','Attack+12',}}
  18. herc_trousers_macc={ name="Herculean Trousers", augments={'Mag. Acc.+18 "Mag.Atk.Bns."+18','Mag. Acc.+12',}}
  19. herc_trousers_fc={ name="Herculean Trousers", augments={'"Mag.Atk.Bns."+12','"Fast Cast"+6','STR+6',}}
  20. herc_trousers_tp={ name="Herculean Trousers", augments={'Accuracy+19 Attack+19','"Triple Atk."+4',}}
  21. herc_boots_ws={ name="Herculean Boots", augments={'Attack+23','Weapon skill damage +3%','DEX+13','Accuracy+15',}}
  22. herc_boots_tp={ name="Herculean Boots", augments={'Accuracy+29','"Triple Atk."+4','AGI+2','Attack+5',}}
  23. herc_boots_fc={ name="Herculean Boots", augments={'"Fast Cast"+6','"Mag.Atk.Bns."+2',}}
  24. herc_boots_macc={ name="Herculean Boots", augments={'Mag. Acc.+18 "Mag.Atk.Bns."+18','Mag. Acc.+12','"Mag.Atk.Bns."+13',}}
  25. herc_boots_crit={ name="Herculean Boots", augments={'Attack+27','Crit.hit rate+5','DEX+2','Accuracy+12',}}
  26. herc_gloves_ws={ name="Herculean Gloves", augments={'Accuracy+20','Weapon skill damage +4%','DEX+14',}}
  27. herc_gloves_tp={ name="Herculean Gloves", augments={'Accuracy+23','"Triple Atk."+4','Attack+6',}}
  28. herc_gloves_waltz={ name="Herculean Gloves", augments={'Rng.Atk.+13','"Waltz" potency +10%','INT+10',}}
  29. herc_gloves_crit={ name="Herculean Gloves", augments={'Attack+22','Crit.hit rate+5','DEX+7',}}
  30. herc_helm_fc={ name="Herculean Helm", augments={'"Fast Cast"+6','Mag. Acc.+11',}}
  31. herc_helm_ws={ name="Herculean Helm", augments={'Attack+22','Weapon skill damage +3%','DEX+12','Accuracy+14',}}
  32. herc_helm_crit={ name="Herculean Helm", augments={'Accuracy+27','Crit.hit rate+5','AGI+4',}}
  33. herc_helm_dw={ name="Herculean Helm", augments={'Accuracy+9 Attack+9','"Dual Wield"+5','DEX+9','Accuracy+12','Attack+3',}}
  34. herc_body_tp={}
  35. rawhide_vest_eva = {name="Rawhide Vest", augments={'HP+50','Accuracy+15','Evasion+20',}}
  36. rawhide_vest_tp = {name="Rawhide Vest", augments={'HP+50','"Subtle Blow"+7','"Triple Atk."+2',}}
  37.  
  38. sets.crit = {head=herc_helm_crit, body=rawhide_vest_tp, hands=herc_gloves_crit, legs="Ta'lab Trousers", feet=herc_boots_crit, neck="Nefarious Collar +1", waist="Windbuffet Belt +1", left_ear="Cessance Earring", right_ear="Brutal Earring", left_ring="Hetairoi Ring", right_ring="Begrudging Ring", back=senuna_mantle_crit}
  39.  
  40. if crit==1 then
  41. sets.tp3 = sets.crit
  42. else
  43. sets.tp3 = {head="dampening tam", neck="Clotharius Torque", ear1="Cessance Earring", ear2="Brutal Earring", body=rawhide_vest_tp, hands=herc_gloves_tp, ring1="Epona's Ring", ring2="Hetairoi Ring", back=senuna_mantle_da, waist="Windbuffet Belt +1", legs="Meg. Chausses +1", feet=herc_boots_tp}
  44. end
  45.  
  46. sets.tp2 = set_combine(sets.tp3, {ear1="Eabani Earring", ear2="suppanomimi"})
  47. sets.tp1 = set_combine(sets.tp3, {ear1="Eabani Earring", body="Maculele Casaque +1", back=senuna_mantle_dw})
  48. sets.tp0 = set_combine(sets.tp3, {ear1="Eabani Earring", body="Maculele Casaque +1", ear2="Suppanomimi", back=senuna_mantle_dw, waist="patentia sash"})
  49. sets.weakness = set_combine(sets.tp0, {head=herc_helm_dw, legs=herc_trousers_dw})
  50. sets.accuracyfull = {head="Meghanada Visor +1", neck="ej necklace +1", ear1="dignitary's Earring", ear2="Zennaroi Earring", body="Meg. Cuirie +1", hands="meg. gloves +1", ring1="Ramuh Ring +1", ring2="Ramuh Ring +1", back=senuna_mantle_dw, waist="Olseni Belt", legs="Meg. Chausses +1", feet="meg. jam. +1"}
  51. sets.evasion = {head="taeon chapeau", neck="ej necklace +1", ear1="Eabani Earring", ear2="Infused Earring", body=rawhide_vest_eva, hands="rawhide gloves", ring1="Vengeful Ring", ring2="beeline ring", back="Relucent Cape", waist="Svelt. Gouriz +1", legs="Maculele Tights +1", feet="Rawhide Boots"}
  52. sets.healing = set_combine(sets.evasion, {head="Anwig Salade", legs="dashing subligar"})
  53. sets.waltz = set_combine(sets.evasion, {head="Anwig Salade", body="Maxixi Casaque +1", hands=herc_gloves_waltz, back="Toetapper Mantle", ear1="Roundel Earring", ring1="Asklepian Ring", ring2="Valseur's Ring", feet="maxixi shoes +1", legs="dashing subligar"})
  54. sets.idle = set_combine(sets.evasion, {ring1="Karieyh Ring", feet="Skd. Jambeaux +1", ring2="Warp Ring"})
  55. sets.fastcast = set_combine(sets.evasion, {body="taeon tabard", hands="leyline gloves", legs=herc_trousers_fc, feet=herc_boots_fc, neck="Orunmila's Torque", head=herc_helm_fc, ring1="Prolix Ring", ear1="Loquac. Earring", ear2="Enchntr. Earring +1", waist="moblin cest", ammo="sapience orb"})
  56. sets.utsu = set_combine(sets.fastcast, {neck="Magoraga Beads", back="Mujin Mantle"})
  57. sets.adoulin = {body="councilor's garb"}
  58. sets.samba = {head="Maxixi Tiara +1", back=senuna_mantle_ws}
  59. sets.featherstep = {feet="Maculele Toeshoes +1"}
  60. sets.jig = {feet="Maxixi Shoes +1", legs="Horos Tights +1"}
  61. sets.reverse = {hands="Maculele Bangles +1", back=dnc_back_rf}
  62. sets.trance ={head="Horos Tiara +1"}
  63. sets.violent = set_combine(sets.accuracyfull, {ammo="Pemphredo Tathlum", head="dampening tam", body="Horos Casaque +1", hands="leyline gloves", feet=herc_boots_macc, legs=herc_trousers_macc, back="Izdubar Mantle", ring1="etana ring", ring2="sangoma ring", ear1="dignitary's Earring", waist="eschan stone", neck="Sanctity Necklace", ear2="gwati earring"})
  64. sets.nfr = {body="Horos Casaque +1"}
  65. sets.reive = {neck="Ygnas's Resolve +1"}
  66. sets.pyrrhic = {ammo="Charis Feather", head=herc_helm_ws, neck="fotia Gorget", ear1="jupiter's pearl", ear2="dominance earring +1", body=adhemar_body_atk, hands="Adhemar Wristbands", ring1="Apate Ring", ring2="Rajas Ring", back=senuna_mantle_ws, waist="fotia Belt", legs="Adhemar Kecks", feet=herc_boots_ws}
  67. sets.evisceration = {ammo="Charis Feather", head=herc_helm_ws, neck="fotia Gorget", ear1="jupiter's pearl", ear2="dominance earring +1", body=adhemar_body_atk, hands="Adhemar Wristbands", ring1="Ramuh Ring +1", ring2="Ramuh Ring +1", back=senuna_mantle_crit, waist="fotia Belt", legs="lustratio subligar", feet=herc_boots_ws}
  68. sets.rudra = {ammo="Charis Feather", head=herc_helm_ws, neck="caro necklace", ear1="Moonshade Earring", ear2="ishvara earring", body=adhemar_body_atk, hands="meg. gloves +1", ring1="Karieyh Ring", ring2="Ramuh Ring +1", back=senuna_mantle_ws, waist="artful Belt +1", legs="Lustratio Subligar", feet=herc_boots_ws}
  69. sets.climactic = {head="Maculele Tiara +1", body="Meg. Cuirie +1"}
  70. sets.striking = {body="Maculele Casaque +1"}
  71. end
  72.  
  73. function self_command(str)
  74. if string.find(str, "normalAcc") then
  75. acc=0
  76. elseif string.find(str, "fullAcc") then
  77. acc=1
  78. end
  79. bunnymode = str
  80. windower.add_to_chat(8,'bunnymode: '..bunnymode)
  81. windower.add_to_chat(8,'fullacc: '..acc)
  82. end
  83.  
  84. function tpset(spell, action, spellMap, eventArgs)
  85.  
  86.  
  87. if acc==1 then
  88. equip(sets.accuracyfull)
  89. return
  90. elseif buffactive['Weakness'] and player.equipment.sub ~= "Airy Buckler" then
  91. equip(sets.weakness)
  92. return
  93. elseif oldammo == "Amar Cluster" then
  94. equip(sets.evasion)
  95. return
  96. elseif player.equipment.sub == "Airy Buckler" then
  97. equip(sets.tp3)
  98. return
  99. end
  100.  
  101. local myHaste = 0
  102. local rdmHaste = 0
  103. for i=1,party.count do
  104. if party[i].name == "Koru-Moru" then
  105. rdmHaste = 1
  106. end
  107. end
  108.  
  109. if buffactive['Mighty Guard'] then
  110. myHaste = myHaste +1
  111. end
  112.  
  113. if buffactive[33] then
  114. if rdmHaste == 1 then
  115. myHaste = myHaste +2
  116. else
  117. myHaste = myHaste +1
  118. end
  119. end
  120.  
  121. if buffactive[580] then
  122. myHaste = myHaste +2
  123. end
  124.  
  125. if buffactive.march then
  126. myHaste = myHaste + buffactive.march
  127. end
  128.  
  129. if myHaste >= 3 then
  130. equip(sets.tp3)
  131. elseif myHaste == 2 then
  132. equip(sets.tp2)
  133. elseif myHaste == 1 then
  134. equip(sets.tp1)
  135. elseif myHaste == 0 then
  136. equip(sets.tp0)
  137. end
  138. end
  139.  
  140. function precast(spell, action, spellMap, eventArgs)
  141. if player.equipment.ammo ~= "Sapience Orb" and player.equipment.ammo ~= "Charis Feather" and player.equipment.ammo ~= "Pemphredo Tathlum" then
  142. oldammo = player.equipment.ammo
  143. end
  144.  
  145. if spell.type=="Waltz" then
  146. if spell.english=="Healing Waltz" and player.tp >= 200 then
  147. equip(sets.healing)
  148. else
  149. equip(sets.waltz)
  150. end
  151. elseif spell.type=="Step" and player.tp >= 100 then
  152. if spell.english=="Feather Step" then
  153. equip(set_combine(sets.accuracyfull, sets.featherstep))
  154. else
  155. equip(sets.accuracyfull)
  156. end
  157. elseif spell.type=="Trust" then
  158. equip(sets.fastcast)
  159. elseif spell.type == "Samba" and player.tp >= 350 then
  160. equip(sets.samba)
  161. elseif spell.english=="Reverse Flourish" then
  162. equip(sets.reverse)
  163. elseif spell.english=="Violent Flourish" then
  164. equip(sets.violent)
  165. elseif spell.type == "WeaponSkill" and player.tp >= 1000 then
  166. local wsset = {}
  167. if acc==1 then
  168. if buffactive['Climactic Flourish'] then
  169. send_command('input /echo climactic success')
  170. equip(set_combine(sets.accuracyfull, sets.climactic))
  171. else
  172. equip(sets.accuracyfull)
  173. return
  174. end
  175. end
  176. if spell.english=="Rudra's Storm" or spell.english=="Shark Bite" then
  177. wsset = sets.rudra
  178. if player.tp == 3000 then
  179. wsset = set_combine(sets.wsset, {ear1="dominance earring +1"})
  180. end
  181. elseif spell.english=="Pyrrhic Kleos" then
  182. wsset = sets.pyrrhic
  183. else
  184. wsset = sets.evisceration
  185. end
  186.  
  187. if buffactive['Reive Mark'] then
  188. wsset = set_combine(wsset, sets.reive)
  189. end
  190. if buffactive['Climactic Flourish'] then
  191. send_command('input /echo climactic success')
  192. wsset = set_combine(wsset, sets.climactic)
  193. end
  194. if buffactive['Striking Flourish'] then
  195. send_command('input /echo striking success')
  196. wsset = set_combine(wsset, sets.striking)
  197. end
  198.  
  199. equip(wsset)
  200. elseif spell.type=="Jig" then
  201. equip(sets.jig)
  202. elseif spell.english=="Trance" then
  203. equip(sets.trance)
  204. elseif spell.english=="No Foot Rise" then
  205. equip(sets.nfr)
  206. elseif spell.type=="Ninjutsu" then
  207. equip(sets.utsu)
  208. end
  209. end
  210.  
  211. function idle()
  212. if world.area:contains("Adoulin") then
  213. equip(set_combine(sets.idle, sets.adoulin))
  214. elseif buffactive['Reive Mark'] then
  215. equip(set_combine(sets.idle, sets.reive))
  216. else
  217. equip(sets.idle)
  218. end
  219. end
  220.  
  221. function midcast(spell)
  222. if spell.english=="Apururu (UC)" then
  223. equip({body="Apururu Unity Shirt"})
  224. end
  225. end
  226.  
  227. function aftercast(spell)
  228. if crit==1 then
  229. equip({ammo="charis feather"})
  230. else
  231. equip({ammo=oldammo})
  232. end
  233. if player.status == "Idle" then
  234. idle()
  235. else
  236. tpset(spell, action, spellMap, eventArgs)
  237. end
  238. end
  239.  
  240. function status_change(new,old)
  241. if old == "Idle" and new == "Engaged" then
  242. tpset()
  243. elseif new == "Idle" then
  244. idle()
  245. end
  246. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement