Back to "res" tags

Resist Spells to 80 by vizzka

// Script to train Resist Spells // Uses Poison Field for skill < 70 and Energy Bolt for skill >= 70 // Reagent requirements: // - Greater Heal: Garlic, Ginseng, Mandrake Root, Spiders Silk // - Poison Field: Black Pearl, Nightshade, Spiders Silk // - Energy Bolt: Black Pearl, Nightshade while skill 'Resisting Spells' < 80 sysmsg 'Starting new cycle. Resist Spells: ' + skill 'Resisting Spells' 88 // Health check to ensure it never drops below 50 if hits < 50 sysmsg 'Health critically low! Healing immediately.' 33 if mana >= 11 cast 'Greater Heal' // Cast Greater Heal waitfortarget 2000 // Wait for target target self // Target self pause 500 // Short pause after casting sysmsg 'Health restored.' 88 else sysmsg 'Not enough mana for healing. Meditating.' 33 useskill 'Meditation' // Use Meditation skill pause 10000 // Wait for mana regeneration endif else // Check skill level to determine which spell to use if skill 'Resisting Spells' < 70 // Poison Field for skill < 70 if mana >= 17 sysmsg 'Casting Poison Field.' 88 cast 'Poison Field' // Cast Poison Field waitfortarget 2000 // Wait for target target self // Target self pause 500 // Short pause after casting sysmsg 'Poison Field set. Waiting for damage.' 88 // Timer-based loop for Poison Field duration set %wait_time 90 // Set 90-second timer while %wait_time > 0 // Health check during Poison Field if hits < 50 sysmsg 'Health critically low! Healing during Poison Field.' 33 if mana >= 11 cast 'Greater Heal' waitfortarget 2000 target self pause 500 sysmsg 'Health restored.' 88 else sysmsg 'Not enough mana for healing. Meditating.' 33 useskill 'Meditation' pause 10000 endif endif pause 1000 // Wait 1 second before next check math %wait_time %wait_time - 1 // Decrement timer endwhile else // Not enough mana for Poison Field, start meditation sysmsg 'Not enough mana for Poison Field. Meditating.' 33 useskill 'Meditation' pause 10000 endif else // Energy Bolt for skill >= 70 if mana >= 25 sysmsg 'Casting Energy Bolt on self.' 88 cast 'Energy Bolt' // Cast Energy Bolt waitfortarget 2000 // Wait for target target self // Target self pause 500 // Short pause after casting sysmsg 'Energy Bolt successfully dealt damage.' 88 // Health check after Energy Bolt if hits < 50 sysmsg 'Health critically low! Healing after Energy Bolt.' 33 if mana >= 11 cast 'Greater Heal' waitfortarget 2000 target self pause 500 sysmsg 'Health restored.' 88 else sysmsg 'Not enough mana for healing. Meditating.' 33 useskill 'Meditation' pause 10000 endif endif else // Not enough mana for Energy Bolt, start meditation sysmsg 'Not enough mana for Energy Bolt. Meditating.' 33 useskill 'Meditation' pause 10000 endif endif endif endwhile sysmsg 'Resist Spells reached 80. Script completed.' 34 stop