Skip to content
Outlands Hub

Razor script

Train all/selected music skills at Prevalia Zoo

by Dextrome · 227 lines
Download

Compatibility unverified

This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.

Stand near the sand crawlers at Prevalia Zoo!

TrainingDiscordancePeacemakingProvocation
Train allselected music skills at Prevalia Zoo.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/d0b4a91f-48b9-49ec-afcd-557bd3be3843 for latest2# Automation by Jaseowns3## Script: Train all/selected music skills at Prevalia Zoo4## Created by: Dextrome#00445#############################################6 7# Stand near the sand crawlers at Prevalia Zoo!8#--------------------------------------------------9 10# Choose which skills to train (1 = true / 0 = false)11@setvar! trainDiscordance 112@setvar! trainPeacemaking 113@setvar! trainPovocation 114 15# Choose at which skill level to stop training16// (script will continue until all enabled skills have reached this level)17@setvar! stopAtSkillLevel 10018#--------------------------------------------------19 20while not dead21    if trainDiscordance = 1 and skill 'Discordance' < stopAtSkillLevel22        if targetexists 23            hotkey 'Cancel Current Target'24        endif25        26        useskill 'Discordance'27        wft 50028        if insysmsg "What instrument"29            if findtype "bamboo flute" backpack as inny30                target inny31            elseif findtype "tambourine" backpack as inny32                target inny33            elseif findtype "drum" backpack as inny34                target inny35            elseif findtype "lute" backpack as inny36                target inny37            elseif findtype "lap harp" backpack as inny38                target inny39            endif40            wft 50041        endif42 43        if findtype "a sand crawler" ground -1 -1 10 as mob44            target mob45        else46            target self47        endif48        49       for 5550            wait 10051            if insysmsg 'world is saving'52                @setvar! saveComplete 053                while saveComplete = 054                    overhead 'Waiting for World Save'55                    wait 50056                    if insysmsg 'save complete'57                        overhead 'World Save complete'58                        @setvar! saveComplete 159                    endif60                endwhile61            endif62       endfor63    endif64 65    if trainPeacemaking = 1 and skill 'Peacemaking' < stopAtSkillLevel 66        if targetexists 67            hotkey 'Cancel Current Target'68        endif69        70        useskill 'Peacemaking'71        wft 50072        if insysmsg "What instrument"73            if findtype "bamboo flute" backpack as inny74                target inny75            elseif findtype "tambourine" backpack as inny76                target inny77            elseif findtype "drum" backpack as inny78                target inny79            elseif findtype "lute" backpack as inny80                target inny81            elseif findtype "lap harp" backpack as inny82                target inny83            endif84            wft 50085        endif86 87        if findtype "a sand crawler" ground -1 -1 10 as mob88            target mob89        else90            target self91        endif92        93        wait 20094        95        if trainPovocation = 1 and skill 'Provocation' < stopAtSkillLevel 96            if insysmsg "You fail to"97                for 5598                    wait 10099                    if insysmsg 'world is saving'100                        @setvar! saveComplete 0101                        while saveComplete = 0102                            overhead 'Waiting for World Save'103                            wait 500104                            if insysmsg 'save complete'105                                overhead 'World Save complete'106                                @setvar! saveComplete 1107                            endif108                        endwhile109                    endif110                endfor111            else112                //we need to wait longer between successful peace & provo attempts113                for 125114                    wait 100115                    if insysmsg 'world is saving'116                        @setvar! saveComplete 0117                        while saveComplete = 0118                            overhead 'Waiting for World Save'119                            wait 500120                            if insysmsg 'save complete'121                                overhead 'World Save complete'122                                @setvar! saveComplete 1123                            endif124                        endwhile125                    endif126                endfor127            endif128        else129            for 55130                wait 100131                if insysmsg 'world is saving'132                    @setvar! saveComplete 0133                    while saveComplete = 0134                        overhead 'Waiting for World Save'135                        wait 500136                        if insysmsg 'save complete'137                            overhead 'World Save complete'138                            @setvar! saveComplete 1139                        endif140                    endwhile141                endif142            endfor 143        endif   144    endif145 146    if trainPovocation = 1 and skill 'Provocation' < stopAtSkillLevel 147        if targetexists 148            hotkey 'Cancel Current Target'149        endif150        151        useskill 'Provocation'152        wft 500153        if insysmsg "What instrument"154            if findtype "bamboo flute" backpack as inny155                target inny156            elseif findtype "tambourine" backpack as inny157                target inny158            elseif findtype "drum" backpack as inny159                target inny160            elseif findtype "lute" backpack as inny161                target inny162            elseif findtype "lap harp" backpack as inny163                target inny164            endif165            wft 500166        endif167 168        if findtype "a sand crawler" ground -1 -1 10 as mob169            target mob170            wft 500171        endif172 173        wft 500174        target self175        176        wait 200177        if trainDiscordance = 1 and skill 'Discordance' < stopAtSkillLevel178            for 55179                wait 100180                if insysmsg 'world is saving'181                    @setvar! saveComplete 0182                    while saveComplete = 0183                        overhead 'Waiting for World Save'184                        wait 500185                        if insysmsg 'save complete'186                            overhead 'World Save complete'187                            @setvar! saveComplete 1188                        endif189                    endwhile190                endif191            endfor 192        else193            if insysmsg "You fail to"194                for 55195                    wait 100196                    if insysmsg 'world is saving'197                        @setvar! saveComplete 0198                        while saveComplete = 0199                            overhead 'Waiting for World Save'200                            wait 500201                            if insysmsg 'save complete'202                                overhead 'World Save complete'203                                @setvar! saveComplete 1204                            endif205                        endwhile206                    endif207                endfor 208            else209                //we need to wait longer between successful peace & provo attempts210                for 125211                    wait 100212                    if insysmsg 'world is saving'213                        @setvar! saveComplete 0214                        while saveComplete = 0215                            overhead 'Waiting for World Save'216                            wait 500217                            if insysmsg 'save complete'218                                overhead 'World Save complete'219                                @setvar! saveComplete 1220                            endif221                        endwhile222                    endif223                endfor224            endif225        endif   226    endif227endwhile