Skip to content
Outlands Hub

Razor script

Magery/Eval Intel 0 to GM

by nulreth · 531 lines
Download

MAGERY / EVAL INT TRAINER Outlands Version - By Nulreth TrainMode: 1 = Magery only 2 = Eval Int only 3 = Both EvalTrainMode: 1 = Greater Heal spam 2 = Water Elemental spam

TrainingHealingMagicMagery
MageryEval Intel 0 to GM.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/9004d8a8-404c-46b5-9aa9-3125b3aa267d for latest2# Automation by Jaseowns3## Script: Magery/Eval Intel 0 to GM4## Created by: nulreth#05#############################################6 7// ==========================================================8// MAGERY / EVAL INT TRAINER9// Outlands Version - By Nulreth10// ==========================================================11//12// TrainMode:13//   1 = Magery only14//   2 = Eval Int only15//   3 = Both16//17// EvalTrainMode:18//   1 = Greater Heal spam19//   2 = Water Elemental spam20//21//22// ==========================================================23 24 25// =========================26// --- USER SETTINGS ---27// =========================28 29// Master training mode30// 1 = Magery only31// 2 = Eval Int only32// 3 = Both33@setvar! "TrainMode" 134 35// After Magery 100, Eval training mode:36// 1 = Greater Heal spam37// 2 = Water Elemental spam38@setvar! "EvalTrainMode" 139 40// If you are getting ^You have not recovered^ messages, increase by 10041@setvar! "WaitTimer" 50042 43// If somehow you have already unlocked Spirit Pact for Water Elemental, set this to 144@setvar! "WaterEleSpiritPact" 045 46// Set this to 1 if you want to train 50 to 80 outside shelter dungeon47@setvar! "ShelterOverride" 048 49// Eat food for mana regen support50@setvar! food 151 52 53// =========================54// --- INTERNAL STATE ---55// =========================56@setvar! "in_shelter" 057@setvar! "restock_method" 058@setvar! "ManaThreshold" 2059 60 61// =========================62// --- SHELTER CHECK SETUP ---63// =========================64removelist "shelter_checklist"65createlist "shelter_checklist"66 67// 4150 hay68// 3948 trash barrel69// 3703 moongate70 71if "TrainMode" = 172    if skill "Magery" < 8073        if "ShelterOverride" = 174        elseif findtypelist "shelter_checklist" 4150|3948|3703 "ground" any 1 1875            if atlist "shelter_checklist" 0 and atlist "shelter_checklist" 5 and not atlist "shelter_checklist" 676                @setvar! "in_shelter" 177            else78                overhead "Go to the entrance of shelter dungeon first for increased skill gain!" 115979                stop80            endif81        else82            overhead "Go to the entrance of shelter dungeon first for increased skill gain!" 115983            stop84        endif85    endif86endif87 88if "TrainMode" = 389    if skill "Magery" < 8090        if "ShelterOverride" = 191        elseif findtypelist "shelter_checklist" 4150|3948|3703 "ground" any 1 1892            if atlist "shelter_checklist" 0 and atlist "shelter_checklist" 5 and not atlist "shelter_checklist" 693                @setvar! "in_shelter" 194            else95                overhead "Go to the entrance of shelter dungeon first for increased skill gain!" 115996                stop97            endif98        else99            overhead "Go to the entrance of shelter dungeon first for increased skill gain!" 1159100            stop101        endif102    endif103endif104 105 106// =========================107// --- RESTOCK SETUP ---108// =========================109if findtype "storage shelf" ground 0 1 2 as myStorageShelf110    @setvar! "restock_method" myStorageShelf111else112    overhead "No storage shelf nearby" 1159113    overhead "Target your restock container" 1159114    @setvar! "restock_container"115endif116 117 118// =========================119// --- MAIN LOOP ---120// =========================121while not dead122 123    // =========================124    // --- STOP CONDITIONS ---125    // =========================126    if "TrainMode" = 1127        if skill "Magery" >= 100128            overhead "Magery finished!" 1159129            stop130        endif131    endif132 133    if "TrainMode" = 2134        if skill "Evaluating Intelligence" >= 100135            overhead "Evaluating Intelligence finished!" 1159136            stop137        endif138    endif139 140    if "TrainMode" = 3141        if skill "Magery" >= 100142            if skill "Evaluating Intelligence" >= 100143                overhead "Magery and Evaluating Intelligence finished!" 1159144                stop145            endif146        endif147    endif148 149 150    // =========================151    // --- FOOD SUPPORT ---152    // =========================153    if food = 1154        if not findbuff 'Food Satisfaction'155            if findtype 'tray' backpack as foodtray156                dclick foodtray157                wait 300158            endif159        endif160    endif161 162 163    // ==========================================================164    // --- MAGERY TRAINER ---165    // ==========================================================166    if "TrainMode" = 1167        if skill "Magery" < 100168 169            // --- RESTOCK FOR MAGERY OUTSIDE SHELTER ---170            if "in_shelter" = 0171                if counttype "Blood Moss" < 10 or counttype "Spider's Silk" < 10 or counttype "Mandrake Root%s%" < 10 or counttype "Nightshade" < 10 or counttype "Sulfurous Ash" < 10 or counttype "Garlic" < 10 or counttype "Ginseng" < 10172                    if "restock_method" = 0173                        restock 10174                        wft 200175                        target "restock_container"176                    else177                        menu "restock_method" 1178                    endif179                endif180            endif181 182            if mana < "ManaThreshold"183                while diffmana > 3184                    if not findbuff "actively meditating"185                        hotkey "Meditation"186                    endif187                    wait 500188 189                    if food = 1190                        if not findbuff 'Food Satisfaction'191                            if findtype 'tray' backpack as foodtray192                                dclick foodtray193                                wait 300194                            endif195                        endif196                    endif197                endwhile198 199            elseif skill "Magery" < 50200                overhead "Train Magery to 50 at an NPC first!" 1159201                stop202 203            elseif skill "Magery" < 60204                @setvar! "ManaThreshold" 20205 206                if hp < 40207                    hotkey "Greater Heal"208                else209                    hotkey "lightning"210                endif211 212                wft 3500213                hotkey "Target Self"214 215            elseif skill "Magery" < 80216                @setvar! "ManaThreshold" 20217 218                if "in_shelter" = 0219                    if "ShelterOverride" = 0220                        overhead "You need Shelter Dungeon for 60-80 unless ShelterOverride = 1" 1159221                        stop222                    endif223                endif224 225                hotkey "Invisibility"226                wft 5000227                hotkey "Target Self"228 229            else230                if "in_shelter" = 1231                    overhead "Time to leave shelter! Cannot gain over 80 in here" 1159232                    stop233                endif234 235                @setvar! "ManaThreshold" 50236 237                if findtype "a water elemental" true238                    say "a water elemental release"239                    wait 100240                endif241 242                hotkey "Water Elemental"243 244                if "WaterEleSpiritPact" = 1245                    wait 2500246                else247                    wait 5000248                endif249            endif250        endif251    endif252 253 254    if "TrainMode" = 3255        if skill "Magery" < 100256 257            // --- RESTOCK FOR MAGERY OUTSIDE SHELTER ---258            if "in_shelter" = 0259                if counttype "Blood Moss" < 10 or counttype "Spider's Silk" < 10 or counttype "Mandrake Root%s%" < 10 or counttype "Nightshade" < 10 or counttype "Sulfurous Ash" < 10 or counttype "Garlic" < 10 or counttype "Ginseng" < 10260                    if "restock_method" = 0261                        restock 10262                        wft 200263                        target "restock_container"264                    else265                        menu "restock_method" 1266                    endif267                endif268            endif269 270            if mana < "ManaThreshold"271                while diffmana > 3272                    if not findbuff "actively meditating"273                        hotkey "Meditation"274                    endif275                    wait 500276 277                    if food = 1278                        if not findbuff 'Food Satisfaction'279                            if findtype 'tray' backpack as foodtray280                                dclick foodtray281                                wait 300282                            endif283                        endif284                    endif285                endwhile286 287            elseif skill "Magery" < 50288                overhead "Train Magery to 50 at an NPC first!" 1159289                stop290 291            elseif skill "Magery" < 60292                @setvar! "ManaThreshold" 20293 294                if hp < 40295                    hotkey "Greater Heal"296                else297                    hotkey "lightning"298                endif299 300                wft 3500301                hotkey "Target Self"302 303            elseif skill "Magery" < 80304                @setvar! "ManaThreshold" 20305 306                if "in_shelter" = 0307                    if "ShelterOverride" = 0308                        overhead "You need Shelter Dungeon for 60-80 unless ShelterOverride = 1" 1159309                        stop310                    endif311                endif312 313                hotkey "Invisibility"314                wft 5000315                hotkey "Target Self"316 317            else318                if "in_shelter" = 1319                    overhead "Time to leave shelter! Cannot gain over 80 in here" 1159320                    stop321                endif322 323                @setvar! "ManaThreshold" 50324 325                if findtype "a water elemental" true326                    say "a water elemental release"327                    wait 100328                endif329 330                hotkey "Water Elemental"331 332                if "WaterEleSpiritPact" = 1333                    wait 2500334                else335                    wait 5000336                endif337            endif338        endif339    endif340 341 342    // ==========================================================343    // --- EVAL INT TRAINER ---344    // ==========================================================345    if "TrainMode" = 2346        if skill "Evaluating Intelligence" < 100347 348            // --- RESTOCK FOR EVAL ---349            if "EvalTrainMode" = 1350                if counttype "Spider's Silk" < 10 or counttype "Garlic" < 10 or counttype "Ginseng" < 10 or counttype "Mandrake Root%s%" < 10351                    if "restock_method" = 0352                        restock 10353                        wft 200354                        target "restock_container"355                    else356                        menu "restock_method" 1357                    endif358                endif359            endif360 361            if "EvalTrainMode" = 2362                if counttype "Blood Moss" < 10 or counttype "Spider's Silk" < 10 or counttype "Mandrake Root%s%" < 10363                    if "restock_method" = 0364                        restock 10365                        wft 200366                        target "restock_container"367                    else368                        menu "restock_method" 1369                    endif370                endif371            endif372 373            if "EvalTrainMode" = 1374                @setvar! "ManaThreshold" 20375 376                if mana < "ManaThreshold"377                    while diffmana > 3378                        if not findbuff "actively meditating"379                            hotkey "Meditation"380                        endif381                        wait 500382 383                        if food = 1384                            if not findbuff 'Food Satisfaction'385                                if findtype 'tray' backpack as foodtray386                                    dclick foodtray387                                    wait 300388                                endif389                            endif390                        endif391                    endwhile392                else393                    hotkey "Greater Heal"394                    wft 3500395                    hotkey "Target Self"396                endif397            endif398 399            if "EvalTrainMode" = 2400                @setvar! "ManaThreshold" 50401 402                if mana < "ManaThreshold"403                    while diffmana > 3404                        if not findbuff "actively meditating"405                            hotkey "Meditation"406                        endif407                        wait 500408 409                        if food = 1410                            if not findbuff 'Food Satisfaction'411                                if findtype 'tray' backpack as foodtray412                                    dclick foodtray413                                    wait 300414                                endif415                            endif416                        endif417                    endwhile418                else419                    if findtype "a water elemental" true420                        say "a water elemental release"421                        wait 100422                    endif423 424                    hotkey "Water Elemental"425 426                    if "WaterEleSpiritPact" = 1427                        wait 2500428                    else429                        wait 5000430                    endif431                endif432            endif433        endif434    endif435 436 437    if "TrainMode" = 3438        if skill "Magery" >= 100439            if skill "Evaluating Intelligence" < 100440 441                // --- RESTOCK FOR EVAL ---442                if "EvalTrainMode" = 1443                    if counttype "Spider's Silk" < 10 or counttype "Garlic" < 10 or counttype "Ginseng" < 10 or counttype "Mandrake Root%s%" < 10444                        if "restock_method" = 0445                            restock 10446                            wft 200447                            target "restock_container"448                        else449                            menu "restock_method" 1450                        endif451                    endif452                endif453 454                if "EvalTrainMode" = 2455                    if counttype "Blood Moss" < 10 or counttype "Spider's Silk" < 10 or counttype "Mandrake Root%s%" < 10456                        if "restock_method" = 0457                            restock 10458                            wft 200459                            target "restock_container"460                        else461                            menu "restock_method" 1462                        endif463                    endif464                endif465 466                if "EvalTrainMode" = 1467                    @setvar! "ManaThreshold" 20468 469                    if mana < "ManaThreshold"470                        while diffmana > 3471                            if not findbuff "actively meditating"472                                hotkey "Meditation"473                            endif474                            wait 500475 476                            if food = 1477                                if not findbuff 'Food Satisfaction'478                                    if findtype 'tray' backpack as foodtray479                                        dclick foodtray480                                        wait 300481                                    endif482                                endif483                            endif484                        endwhile485                    else486                        hotkey "Greater Heal"487                        wft 3500488                        hotkey "Target Self"489                    endif490                endif491 492                if "EvalTrainMode" = 2493                    @setvar! "ManaThreshold" 50494 495                    if mana < "ManaThreshold"496                        while diffmana > 3497                            if not findbuff "actively meditating"498                                hotkey "Meditation"499                            endif500                            wait 500501 502                            if food = 1503                                if not findbuff 'Food Satisfaction'504                                    if findtype 'tray' backpack as foodtray505                                        dclick foodtray506                                        wait 300507                                    endif508                                endif509                            endif510                        endwhile511                    else512                        if findtype "a water elemental" true513                            say "a water elemental release"514                            wait 100515                        endif516 517                        hotkey "Water Elemental"518 519                        if "WaterEleSpiritPact" = 1520                            wait 2500521                        else522                            wait 5000523                        endif524                    endif525                endif526            endif527        endif528    endif529 530    wait "WaitTimer"531endwhile