Skip to content
Outlands Hub

Razor script

D20's Resisting Spells trainer using Flamestrike

by dnd20 · 235 lines
Download

This script will level Resisting Spells using self cast Flamestrikes! If you are a scribe please set useScrolls variable to 1 otherwise youll just need to keep your regs stocked up Im new and dont have a shelf yet but will update to…

TrainingMagicOrganizingResisting Spells
D20s Resisting Spells trainer using Flamestrike.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/20839f63-c8be-4654-acb4-91c876a28129 for latest2# Automation by Jaseowns3## Script: D20's Resisting Spells trainer using Flamestrike4## Created by: dnd20#05#############################################6 7// This script will level Resisting Spells using self cast Flamestrikes!8//9// If you are a scribe please set useScrolls variable to 110//  otherwise youll just need to keep your regs stocked up11//12// Im new and dont have a shelf yet but will update to restock once I have one13// 14// Using Bless or Buff pots kind of mess up my guess math so if you use them it15// works just fine but will be less efficent since it just sits around more often.16//17// This script values your life over your mana and time, keep that in mind.18//19//  D20s  Resisting Spells trainer.20 21@setvar! isSafetoStrike 022@setvar! eatMushrooms 123@setvar! ManaThreshold 4024@setvar! useScrolls 125 26if diffhits > 127    overhead "Whoa buddy, that's dangerous"28    overhead "Let's heal up a bit"29    wait 50030    cast "Greater Heal"31    waitfortarget 32    target self33    wait 50034endif35 36while not dead37   if skill "Resisting Spells" < 9038 39        # Checking HP and Mana for safety sake40        if diffhits = 041            overhead  "HP Full" 6842            @setvar! isSafetoStrike 143            wait 100044        endif45        if diffmana > 8046            overhead "Need Mana" 1247            @setvar! isSafetoStrike 048            wait 100049        endif50        51       # Lets meditate if we have low mana.52       if mana < ManaThreshold53            while diffmana > 354                if not findbuff "actively meditating"55                    @setvar! isSafetoStrike 056                    overhead "*Meditating*" 2457                    hotkey "Meditation"58                endif59                wait 50060            endwhile61        endif62 63        if insysmsg "You are at peace." and diffhits > 1664            cast "Greater Heal"65            waitfortarget 66            target self67            wait 50068        endif69        70        # HPs less than 99 gets a heal71        if hp < 99 and hp > 83 and not findbuff "actively meditating" 72                @setvar! isSafetoStrike 073            74            # If using scrolls75                if useScrolls = 1 76                    if findtype 7985 backpack77                        overhead "*Heal*" 2078                        cast "Heal"79                        waitfortarget 80                        target self81                        pause 80082                    else83                        overhead "Out of Heal Scrolls"84                    stop85                    endif86                 endif87                # If using regs        88                if useScrolls = 089                    if counttype "Garlic" < 1 or counttype "Spider's Silk" < 1 or counttype "Ginseng" < 190                    overhead "*Heal*" 2091                        cast "Heal"92                        waitfortarget 93                        target self94                        pause 80095                    else96                        overhead "Out of regs: Heal"97                    stop98                    endif99                endif100            endif101 102        # HPs less than 70 gets a greater heal103        if hp < 70  and not findbuff "actively meditating"104                @setvar! isSafetoStrike 0105            106            # If using scrolls107                if useScrolls = 1 108                    if findtype 8009 backpack109                        overhead "*Greater Heal*" 20110                        cast "Greater Heal"111                        waitfortarget 112                        target self113                        pause 800114                    else115                        overhead "Out of Greater Heal Scrolls" 33116                    stop117                    endif118                 endif119                # If using regs        120                if useScrolls = 0121                    if counttype "Garlic" < 10 or counttype "Spider's Silk" < 1 or counttype "Mandrake Root%s%" < 1 or counttype "Ginseng" < 1122                        overhead "*Greater heal*" 20123                        cast "Greater Heal"124                        waitfortarget 125                        target self126                        pause 800127                    else128                        overhead "Out of regs: Greater Heal" 33129                    stop130                    endif131                endif132            endif133        134        #if you want to eat mushrooms135    if eatMushrooms = 1136        # Set mushroom cooldown if it somehow gets out of sync.137        if insysmsg "You may now use another magic mushroom."138            cooldown "mushroom" 0139        endif140        # Make mushrooms if you run out.141    if not findtype 29012 backpack 2963142 143        if useScrolls = 1144            if findtype 7983 backpack145               cast "Create Food"146               pause 800147               cast "Create Food"148               pause 800149               cast "Create Food"150               pause 800151               cast "Create Food"152               pause 800   153               cast "Create Food"154               pause 800 155               cast "Create Food"156               pause 800157               cast "Create Food"158               pause 800159               cast "Create Food"160               pause 800161               cast "Create Food"162               pause 800   163               cast "Create Food"164               pause 800165              else166                  overhead "Out of Mushroom Scrolls"167               endif168            endif169        if useScrolls = 0170            if counttype "Garlic" < 1 or counttype "Mandrake Root%s%" < 1 or counttype "Ginseng" < 1171               cast "Create Food"172               pause 800173               cast "Create Food"174               pause 800175               cast "Create Food"176               pause 800177               cast "Create Food"178               pause 800   179               cast "Create Food"180               pause 800 181               cast "Create Food"182               pause 800183               cast "Create Food"184               pause 800185               cast "Create Food"186               pause 800187               cast "Create Food"188               pause 800   189               cast "Create Food"190               pause 800191              else192                 overhead "Out of Mushroom regs"193               endif 194           endif195       endif196           197            if not cooldown "mushroom" and mana < 76 and not findbuff "actively meditating"198                if findtype 29012 backpack 2963 as item199                    dclick item200                    getlabel backpack PingCheck 201                    overhead "I ate a mushroom" 12202                    pause 1000203                endif204            endif205       endif206        207        # Cast Flamestrike on yourself208        if isSafetoStrike = 1 and mana > 40 and hp > 50209            if useScrolls = 1210                if findtype 8031 backpack211                    overhead "Flamestrike, hold on bois!" 48212                    cast "Flamestrike"213                    waitfortarget 214                    target self215                    pause 1000216                 else217                     overhead "Out of Flamestrike scrolls, better check inscription skill!"218                 endif219             endif220            if useScrolls = 0221                if counttype "Sulfurous Ash" < 1 or counttype "Spider's Silk" < 1222                    overhead "Flamestrike, hold on bois!" 48223                    cast "Flamestrike"224                    waitfortarget 225                    target self226                    pause 1000227                 else228                     overhead "Out of Flamestrike Regs!"229                 stop230                 endif231             endif232        endif233            234    endif235endwhile