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 -…
TrainingHealingMagicMeditation
Resist Spells to 80.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/e5303c72-b603-4b99-8ad1-3188173da29c for latest2# Automation by Jaseowns3## Script: Resist Spells to 804## Created by: vizzka#05#############################################6 7// Script to train Resist Spells8// Uses Poison Field for skill < 70 and Energy Bolt for skill >= 709// Reagent requirements:10// - Greater Heal: Garlic, Ginseng, Mandrake Root, Spiders Silk11// - Poison Field: Black Pearl, Nightshade, Spiders Silk12// - Energy Bolt: Black Pearl, Nightshade13 14while skill 'Resisting Spells' < 8015 sysmsg 'Starting new cycle. Resist Spells: ' + skill 'Resisting Spells' 8816 17 // Health check to ensure it never drops below 5018 if hits < 5019 sysmsg 'Health critically low! Healing immediately.' 3320 if mana >= 1121 cast 'Greater Heal' // Cast Greater Heal22 waitfortarget 2000 // Wait for target23 target self // Target self24 pause 500 // Short pause after casting25 sysmsg 'Health restored.' 8826 else27 sysmsg 'Not enough mana for healing. Meditating.' 3328 useskill 'Meditation' // Use Meditation skill29 pause 10000 // Wait for mana regeneration30 endif31 else32 // Check skill level to determine which spell to use33 if skill 'Resisting Spells' < 7034 // Poison Field for skill < 7035 if mana >= 1736 sysmsg 'Casting Poison Field.' 8837 cast 'Poison Field' // Cast Poison Field38 waitfortarget 2000 // Wait for target39 target self // Target self40 pause 500 // Short pause after casting41 sysmsg 'Poison Field set. Waiting for damage.' 8842 43 // Timer-based loop for Poison Field duration44 set %wait_time 90 // Set 90-second timer45 while %wait_time > 046 // Health check during Poison Field47 if hits < 5048 sysmsg 'Health critically low! Healing during Poison Field.' 3349 if mana >= 1150 cast 'Greater Heal'51 waitfortarget 200052 target self53 pause 50054 sysmsg 'Health restored.' 8855 else56 sysmsg 'Not enough mana for healing. Meditating.' 3357 useskill 'Meditation'58 pause 1000059 endif60 endif61 pause 1000 // Wait 1 second before next check62 math %wait_time %wait_time - 1 // Decrement timer63 endwhile64 else65 // Not enough mana for Poison Field, start meditation66 sysmsg 'Not enough mana for Poison Field. Meditating.' 3367 useskill 'Meditation'68 pause 1000069 endif70 else71 // Energy Bolt for skill >= 7072 if mana >= 2573 sysmsg 'Casting Energy Bolt on self.' 8874 cast 'Energy Bolt' // Cast Energy Bolt75 waitfortarget 2000 // Wait for target76 target self // Target self77 pause 500 // Short pause after casting78 sysmsg 'Energy Bolt successfully dealt damage.' 8879 80 // Health check after Energy Bolt81 if hits < 5082 sysmsg 'Health critically low! Healing after Energy Bolt.' 3383 if mana >= 1184 cast 'Greater Heal'85 waitfortarget 200086 target self87 pause 50088 sysmsg 'Health restored.' 8889 else90 sysmsg 'Not enough mana for healing. Meditating.' 3391 useskill 'Meditation'92 pause 1000093 endif94 endif95 else96 // Not enough mana for Energy Bolt, start meditation97 sysmsg 'Not enough mana for Energy Bolt. Meditating.' 3398 useskill 'Meditation'99 pause 10000100 endif101 endif102 endif103endwhile104 105sysmsg 'Resist Spells reached 80. Script completed.' 34106stop107 