Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin
- Documentation: https://elanthipedia.play.net/Lich_script_repository#crossing-training
- =end
- custom_require.call(%w(drinfomon spellmonitor common common-arcana drinfomon events))
- class AutoFeast
- include DRC
- include DRCA
- def initialize
- @settings = get_settings
- echo DRStats.mana
- echo DRStats.health
- monitor
- end
- def monitor
- loop do
- pause until DRStats.spirit >= 80
- fix_health if DRStats.health < 55
- fix_mana if DRStats.mana < 20
- end
- end
- def feast(spell, settings)
- prepare?(spell['abbrev'], spell['mana'], spell['symbiosis'])
- find_charge_invoke_stow(settings.cambrinth, settings.stored_cambrinth, settings.cambrinth_cap, settings.dedicated_camb_use, spell['cambrinth'])
- if spell['prep_time']
- pause #{spell['prep_time']}
- else
- waitcastrt?
- end
- cast?(spell['cast'], spell['symbiosis'], spell['before'], spell['after'])
- end
- def fix_health
- heal_spell = @settings.feast_vit
- feast(heal_spell, @settings)
- end
- def fix_mana
- mana_spell = @settings.feast_mana
- feast(mana_spell, @settings)
- end
- end
- AutoFeast.new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement