- equip-UID.js loads asynchonously after document-end, so dynjs_equip might not exist when init() first runs - Now retries up to 10 times (500ms apart, 5 seconds total) waiting for the store to populate before scraping - Added HV.gearStore() to check whether the store is loaded - If store never loads, falls back to name/ID scrape without stats
48 lines
1.8 KiB
JavaScript
48 lines
1.8 KiB
JavaScript
// ═══════════════════════════════════════════════════════════════════════
|
|
// CONFIG — default settings
|
|
// ═══════════════════════════════════════════════════════════════════════
|
|
|
|
const VERSION = '0.14.15';
|
|
|
|
const CFG = {
|
|
// — Battle automation
|
|
hotkey: 'KeyQ',
|
|
hotkeyMod: '',
|
|
hoverEnabled: true,
|
|
autoBuff: true,
|
|
autoDebuff: true,
|
|
autoCure: true,
|
|
autoSpirit: false, // Manual spirit stance only (auto-disable at 65% SP for Spark)
|
|
|
|
// — Thresholds (simulation-backed)
|
|
cureHP: 0.45, // Cast Cure below this HP
|
|
cureItemHP: 0.50, // Use health items at this HP
|
|
cureRegenHP: 0.65, // Cast Regen below this HP
|
|
manaGemMP: 0.45, // Use mana gems below this MP
|
|
manaPotionMP: 0.25, // Use mana potions at this MP
|
|
spiritPotionSP: 0.60, // Use spirit gems/potions below this SP (Spark costs 50%)
|
|
spiritStanceOC: 80, // Manual spirit stance only (auto-disable at 65% SP for Spark)
|
|
skillOC: 75, // Use weapon skills at this OC
|
|
useAttackSpells: false, // Don't use attack spells (let channel proc naturally)
|
|
|
|
// — Out of battle
|
|
autoSell: true,
|
|
sellQuality: 'Average',
|
|
bulkShrine: true,
|
|
reTimer: true,
|
|
trainingQueue: true,
|
|
|
|
// — UI
|
|
showCooldowns: true,
|
|
showMonsterHP: true,
|
|
showDurations: true,
|
|
alertColours: true,
|
|
showMonsterNumbers: true,
|
|
cfgButton: true,
|
|
showGuidance: true,
|
|
showEquipAdvice: true,
|
|
autoDifficulty: true,
|
|
|
|
// — Combat style
|
|
useAttackSpells: true,
|
|
};
|