absolutehalo

ffx-bst-reward-definition-test

Apr 6th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. -- Pet Definitions
  2. valuablePet = { "BouncingBertha", "DipperYuly" }
  3. normalPet = { "ScissorlegXerin", "WarlikePatrick" }
  4.  
  5. -- Pet Food Definitions
  6. valuablePetFood = { "Peta Food Zeta" }
  7. normalPetFood = { "Pet Food Theta" }
  8.  
  9. function get_sets()
  10.     -- Reward Set
  11.     sets.precast.JA['Reward'] = { ear1 = "Ferine Earring", body = "Monster Jackcoat", hands = "Ogre Gloves" }
  12. end
  13.  
  14. function precast(spell)
  15.    
  16.     -- Equip Reward set
  17.     if spell.english == 'Reward' then
  18.  
  19.         -- If your Pet is High-Quality...
  20.         if pet.name == valuablePet then
  21.  
  22.             -- equip and use High-Quality pet food.
  23.             equip(set_combine(sets.precast.JA['Reward'], {ammo=valuablePetFood}))
  24.  
  25.         -- Otherwise...
  26.         elseif pet.name == normalPet then
  27.  
  28.             -- equip and use normal quality pet food.
  29.             equip(set_combine(sets.precast.JA['Reward'], {ammo=normalPetFood}))
  30.         end
  31.     end
  32. end
Add Comment
Please, Sign In to add comment