Skip to content
Outlands Hub

Razor script

Ultimate archer summoner auto script

by botanic · 251 lines
Download

By Botanic of SQzD

Magic
Ultimate archer summoner auto script.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/e9cf2788-ea6a-4a3e-8f88-63b36bba56ce for latest2# Automation by Jaseowns3## Script: Ultimate archer summoner auto script4## Created by: botanic#72035#############################################6 7//By Botanic of SQzD8 9@setvar! heal_pot_hp_trigger 9910@setvar! weapon_equipped 011@setvar! sheild_equipped 012@setvar! earthele 113@setvar! fireele 114 15clearignore 16if findlayer self righthand as found17    @setvar! weapon_equipped found18endif  19 20if findlayer self lefthand as found21    @setvar! sheild_equipped found22endif  23 24while not dead25    26    if poisoned27        if findtype "Orange Potion" as Pots28            getlabel Pots PznPots29            if 'next usable' in PznPots30                sysmsg 'Unable to use Heal Potion Yet!' 33   31                wait 100       32            else33                if findlayer self lefthand as found34                    @setvar! sheild_equipped found35                    lift sheild_equipped36                    drop backpack37                    wait 50038                endif  39                dclick Pots40                wait 50041                if sheild_equipped != 042                    dclick sheild_equipped43                endif44                if weapon_equipped != 045                    dclick weapon_equipped46                endif47            endif48        endif 49    endif50    if hp < heal_pot_hp_trigger51        if findtype "Yellow Potion" backpack as PotsHeal 52            getlabel PotsHeal LabelPotsHeal53            if 'next usable' in LabelPotsHeal54                sysmsg 'Unable to use Heal Potion Yet!' 33   55                wait 100       56            else57                if findlayer self lefthand as found58                    @setvar! sheild_equipped found59                    wait 1060                    lift sheild_equipped61                    drop backpack62                    wait 50063                endif  64                dclick PotsHeal65                wait 50066                if sheild_equipped != 067                    lift sheild_equipped68                    drop 'self' InnerTorso69                endif70            endif71        endif 72    endif73    74    if findtype "Elven Spellblade" backpack 75        if findtype "corpse" ground -1 -1 2  as rip 76            overhead "Skinning"77            dclicktype "Elven Spellblade" backpack78            wait 50079            target 'self'80            wait 200081            if not insysmsg 'You must wait' 82                while findtype "corpse" ground -1 -1 2  as rip2 83                    @ignore! rip284                endwhile85                skill 'spiritspeak'86                wait 50087            endif                88        endif89    else90        overhead 'No Skinning Knife!' 3491        wait 200092    endif93    94    if followers = 4 and mana >= 14  95        96        cast 'Summ. Creature'97        wait 325098        99    endif100    if followers == 2 or followers == 0 or followers == 3 or followers == 1 and mana >= 50 as 'foo'101        102        103    if findtype "rockytheele" ground any any 10 104            if fireele == 1105                hotkey "fire Elemental"106                wait 6000107                if findtype "a fire elemental" ground -1 -1 10 as myPet108                    rename myPet "firetheele"109                endif110            else111                hotkey "air Elemental"112                wait 6000113                if findtype "an air elemental" ground -1 -1 10 as myPet114                    rename myPet "firetheele"115                endif116            endif117        else118            if earthele == 1119               hotkey "earth Elemental"120        wait 3000121               if findtype "an earth elemental" ground -1 -1 10 as myPet122                   rename myPet "rockytheele"123                 endif124             else 125               hotkey "water Elemental"126             wait 3000127               if findtype "a water elemental" ground -1 -1 10 as myPet128                   rename myPet "rockytheele"129               endif130             endif131                 132        endif    133        134    endif135 136    if findlayer self righthand as found137 138    else139        wait 500140        lift weapon_equipped141        drop 'self' InnerTorso142    endif  143    144    if findlayer self lefthand as found145 146    else147        wait 500148        lift sheild_equipped149        drop 'self' InnerTorso150    endif 151 152    //stop if enemy153    hotkey 'Next Criminal Player Target'154    if noto lasttarget = criminal and not self155        overhead "REDS!" 555156        break157    endif158    hotkey 'Next Enemy Player Target'159    if noto lasttarget = enemy and not self160        overhead "REDS!" 555161        break162    endif163    hotkey 'Next Murderer Player Target'164    if noto lasttarget = murderer and not self165        overhead "REDS!" 555166        break167    endif 168    169    if diffweight < 0170        overhead 'Overweight'171        #Bless172        if skill 'Magery' > 50 and not findbuff 'Strength' 173            overhead 'Bless time'174            cast 'Bless'175            wft 2500176            target self177            wait 500178        endif179    endif    180    181endwhile182    183removelist recallScriptList184createlist recallScriptList185 186while not dead187    hotkey 'Cancel Current Target' 188    overhead "REDS! Healing Only!"189    if hp < maxhp190        if findtype "Yellow Potion" backpack as PotsHeal 191            getlabel PotsHeal LabelPotsHeal192            if 'next usable' in LabelPotsHeal193                sysmsg 'Unable to use Heal Potion Yet!' 33   194                wait 100       195            else196                if findlayer self lefthand as found197                    @setvar! sheild_equipped found198                    lift sheild_equipped199                    drop backpack200                    wait 500201                endif  202                dclick PotsHeal203                wait 500204                if sheild_equipped != 0205                    dclick sheild_equipped206                endif207            endif208        endif 209    endif210    211    212    #############213    # Player gates, chiv gate214    #############215    while not gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate216        dclick jGate217    endwhile218 219    if gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate220        gumpresponse 2 3899019871221        stop222    endif223 224    #############225    # Town/Dungeon Moongates - yellow, red, death, blue226    #############227    while not gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate228        dclick jGate229    endwhile230 231    if gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate232        gumpresponse 2 3773199800233        wait 200234        if not dead235            foreach recallScript in recallScriptList236                script recallScript237            endfor238        endif239        stop240    endif241 242    if findtype "blue moongate" ground -1 1 12 as jGate243        overhead "Move closer!" 34244        wait 50245        replay 246    else 247        overhead "No gate nearby!" 34248    endif249endwhile250    251