Skip to content
Outlands Hub

Razor script

Basic Summoner Training Shelter to GM

by nulreth · 651 lines
Download

MAGERY / EVAL INT / NECROMANCY TRAINER UO Outlands Edition  by Nulreth https://wiki.uooutlands.com/TemplatesMage Built for Basic Summoner ALL in one Script Will Train Necromancy, Magery, EvalIntel, Focus, Spirit Speak TrainMode: 1 =…

TrainingMagicMageryNecromancySpirit SpeakFocus
Basic Summoner Training Shelter to GM.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/0393115e-8f5f-4786-a59b-188d257d29e8 for latest2# Automation by Jaseowns3## Script: Basic Summoner Training Shelter to GM4## Created by: nulreth#05#############################################6 7// ==========================================================8// MAGERY / EVAL INT / NECROMANCY TRAINER9// UO Outlands Edition  by Nulreth10// https://wiki.uooutlands.com/TemplatesMage11// Built for Basic Summoner12// ==========================================================13//14// ALL in one Script Will Train Necromancy, Magery, EvalIntel, Focus, Spirit Speak15//16// TrainMode:17//   1 = Magery only18//   2 = Eval Int only19//   3 = Both20//21// EvalTrainMode:22//   1 = Greater Heal spam23//   2 = Water Elemental spam24//25// NecroMode:26//   0 = Off (ignored)27//   1 = Track Necromancy passively (checks book, shows progress, stops at 100)28//29// NecroAbilities:30//   0 = Off31//   1 = Auto-fire SAFE abilities based on your Necromancy skill level32//       Safe = no self-damage (Vengeful Spirit only while training)33//       Requires NecroMode = 134//35//36// ==========================================================37 38 39// =========================40// --- USER SETTINGS ---41// =========================42 43// Master training mode44// 1 = Magery only, 2 = Eval Int only, 3 = Both45@setvar! "TrainMode" 146 47// After Magery 100, Eval training mode:48// 1 = Greater Heal spam, 2 = Water Elemental spam49@setvar! "EvalTrainMode" 150 51// Necromancy passive tracking52// 0 = Off, 1 = On (requires Book of Necromancy in backpack)53@setvar! "NecroMode" 154 55// Auto-fire safe Necromancy abilities during training56// 0 = Off, 1 = Auto-fire Vengeful Spirit when skill is high enough57// Only works if NecroMode = 158@setvar! "NecroAbilities" 059 60// If you are getting "You have not recovered" messages, increase by 10061@setvar! "WaitTimer" 50062 63// If you have already unlocked Spirit Pact for Water Elemental, set to 164@setvar! "WaterEleSpiritPact" 065 66// Set to 1 to train 50-80 outside the New Player Dungeon (not recommended)67@setvar! "ShelterOverride" 068 69// Eat food for mana regen support70@setvar! food 171 72 73// =========================74// --- INTERNAL STATE ---75// =========================76@setvar! "in_shelter" 077@setvar! "restock_method" 078@setvar! "ManaThreshold" 2079 80 81// =========================82// --- NECROMANCY STARTUP CHECK ---83// =========================84if "NecroMode" = 185 86    if skill "Necromancy" < 5087        overhead "Train Necromancy to 50 at an NPC first! (5,000gp or 25,000 fame)" 115988        overhead "Speak to a Necromancer NPC and say 'Necromancy' or 'Book'" 115989        stop90    endif91 92    if not findtype "necromancer book" backpack93        overhead "Book of Necromancy NOT found in backpack!" 115994        overhead "You need the Book in your pack or Necromancy will NOT gain!" 115995        stop96    endif97 98    overhead "Book of Necromancy found! Necromancy will gain passively." 6899 100    if skill "Necromancy" >= 100101        overhead "Necromancy is already at 100!" 68102    endif103 104endif105 106 107// =========================108// --- SHELTER CHECK SETUP ---109// =========================110removelist "shelter_checklist"111createlist "shelter_checklist"112 113// 4150 = hay bale, 3948 = trash barrel, 3703 = moongate114if "TrainMode" = 1115    if skill "Magery" < 80116        if "ShelterOverride" = 1117        elseif findtypelist "shelter_checklist" 4150|3948|3703 "ground" any 1 18118            if atlist "shelter_checklist" 0 and atlist "shelter_checklist" 5 and not atlist "shelter_checklist" 6119                @setvar! "in_shelter" 1120            else121                overhead "Go to the entrance of the New Player Dungeon first!" 1159122                stop123            endif124        else125            overhead "Go to the entrance of the New Player Dungeon first!" 1159126            stop127        endif128    endif129endif130 131if "TrainMode" = 3132    if skill "Magery" < 80133        if "ShelterOverride" = 1134        elseif findtypelist "shelter_checklist" 4150|3948|3703 "ground" any 1 18135            if atlist "shelter_checklist" 0 and atlist "shelter_checklist" 5 and not atlist "shelter_checklist" 6136                @setvar! "in_shelter" 1137            else138                overhead "Go to the entrance of the New Player Dungeon first!" 1159139                stop140            endif141        else142            overhead "Go to the entrance of the New Player Dungeon first!" 1159143            stop144        endif145    endif146endif147 148// Necromancy also gains in the New Player Dungeon (50-80)149// so it lines up perfectly with Magery 50-80 training!150if "NecroMode" = 1151    if skill "Necromancy" < 80152        if "in_shelter" = 0153            if "ShelterOverride" = 0154                if "TrainMode" = 1 or "TrainMode" = 3155                    // Already handled above  shelter check covers both156                endif157            endif158        endif159    endif160endif161 162 163// =========================164// --- RESTOCK SETUP ---165// =========================166if findtype "storage shelf" ground 0 1 2 as myStorageShelf167    @setvar! "restock_method" myStorageShelf168else169    overhead "No storage shelf nearby" 1159170    overhead "Target your restock container" 1159171    overhead "If In shelter target yourself" 1159172    @setvar! "restock_container"173endif174 175 176// =========================177// --- MAIN LOOP ---178// =========================179while not dead180 181    // =========================182    // --- STOP CONDITIONS ---183    // =========================184    if "TrainMode" = 1185        if "NecroMode" = 0186            if skill "Magery" >= 100187                overhead "Magery finished!" 68188                stop189            endif190        else191            if skill "Magery" >= 100 and skill "Necromancy" >= 100192                overhead "Magery and Necromancy finished!" 68193                stop194            elseif skill "Magery" >= 100 and skill "Necromancy" < 100195                overhead "Magery done! Still gaining Necromancy passively..." 68196                // Don't stop  keep casting for Necromancy197            endif198        endif199    endif200 201    if "TrainMode" = 2202        if skill "Evaluating Intelligence" >= 100203            overhead "Evaluating Intelligence finished!" 68204            stop205        endif206    endif207 208    if "TrainMode" = 3209        if "NecroMode" = 0210            if skill "Magery" >= 100 and skill "Evaluating Intelligence" >= 100211                overhead "Magery and Evaluating Intelligence finished!" 68212                stop213            endif214        else215            if skill "Magery" >= 100 and skill "Evaluating Intelligence" >= 100 and skill "Necromancy" >= 100216                overhead "Magery, Eval Int, and Necromancy all finished!" 68217                stop218            endif219        endif220    endif221 222 223    // =========================224    // --- FOOD SUPPORT ---225    // =========================226    if food = 1227        if not findbuff 'Food Satisfaction'228            if findtype 'tray' backpack as foodtray229                dclick foodtray230                wait 300231            endif232        endif233    endif234 235 236    // =========================237    // --- NECROMANCY: ABILITY AUTO-FIRE ---238    // Vengeful Spirit is safe to fire during training 239    // it only makes summons undead (no self-damage).240    // Only fires if NecroMode=1 and NecroAbilities=1.241    // The "[" prefix activates the Outlands ability system.242    // =========================243    if "NecroMode" = 1244        if "NecroAbilities" = 1245            if skill "Necromancy" >= 50246                if not cooldown "necro_vs"247                    say "[VengefulSpirit"248                    cooldown "necro_vs" 32000249                    wait 300250                endif251            endif252        endif253    endif254 255 256    // ==========================================================257    // --- MAGERY TRAINER (TrainMode 1) ---258    // ==========================================================259    if "TrainMode" = 1260 261        // If Necromancy is still gaining but Magery is done,262        // keep casting using EvalTrainMode logic to passively gain Necromancy263        if skill "Magery" >= 100 and "NecroMode" = 1 and skill "Necromancy" < 100264            overhead "Magery done  casting to gain Necromancy passively..." 68265 266            if "EvalTrainMode" = 1267                if mana < 20268                    while diffmana > 3269                        if not findbuff "actively meditating"270                            hotkey "Meditation"271                        endif272                        wait 500273                        if food = 1274                            if not findbuff 'Food Satisfaction'275                                if findtype 'tray' backpack as foodtray276                                    dclick foodtray277                                    wait 300278                                endif279                            endif280                        endif281                    endwhile282                else283                    hotkey "Greater Heal"284                    wft 3500285                    hotkey "Target Self"286                endif287            endif288 289            if "EvalTrainMode" = 2290                if mana < 50291                    while diffmana > 3292                        if not findbuff "actively meditating"293                            hotkey "Meditation"294                        endif295                        wait 500296                        if food = 1297                            if not findbuff 'Food Satisfaction'298                                if findtype 'tray' backpack as foodtray299                                    dclick foodtray300                                    wait 300301                                endif302                            endif303                        endif304                    endwhile305                else306                    if findtype "a water elemental" true307                        say "a water elemental release"308                        wait 100309                    endif310                    hotkey "Water Elemental"311                    if "WaterEleSpiritPact" = 1312                        wait 2500313                    else314                        wait 5000315                    endif316                endif317            endif318 319        elseif skill "Magery" < 100320 321            // --- RESTOCK FOR MAGERY OUTSIDE SHELTER ---322            if "in_shelter" = 0323                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" < 10324                    if "restock_method" = 0325                        restock 10326                        wft 200327                        target "restock_container"328                    else329                        menu "restock_method" 1330                    endif331                endif332            endif333 334            if mana < "ManaThreshold"335                while diffmana > 3336                    if not findbuff "actively meditating"337                        hotkey "Meditation"338                    endif339                    wait 500340                    if food = 1341                        if not findbuff 'Food Satisfaction'342                            if findtype 'tray' backpack as foodtray343                                dclick foodtray344                                wait 300345                            endif346                        endif347                    endif348                endwhile349 350            elseif skill "Magery" < 50351                overhead "Train Magery to 50 at an NPC first!" 1159352                stop353 354            elseif skill "Magery" < 60355                @setvar! "ManaThreshold" 20356                if hp < 40357                    hotkey "Greater Heal"358                else359                    hotkey "lightning"360                endif361                wft 3500362                hotkey "Target Self"363 364            elseif skill "Magery" < 80365                @setvar! "ManaThreshold" 20366                if "in_shelter" = 0367                    if "ShelterOverride" = 0368                        overhead "You need New Player Dungeon for 60-80 unless ShelterOverride = 1" 1159369                        stop370                    endif371                endif372                hotkey "Invisibility"373                wft 5000374                hotkey "Target Self"375 376            else377                if "in_shelter" = 1378                    overhead "Time to leave! Cannot gain Magery over 80 in here" 1159379                    stop380                endif381                @setvar! "ManaThreshold" 50382                if findtype "a water elemental" true383                    say "a water elemental release"384                    wait 100385                endif386                hotkey "Water Elemental"387                if "WaterEleSpiritPact" = 1388                    wait 2500389                else390                    wait 5000391                endif392            endif393        endif394    endif395 396 397    // ==========================================================398    // --- EVAL INT TRAINER (TrainMode 2) ---399    // ==========================================================400    if "TrainMode" = 2401        if skill "Evaluating Intelligence" < 100402 403            if "EvalTrainMode" = 1404                if counttype "Spider's Silk" < 10 or counttype "Garlic" < 10 or counttype "Ginseng" < 10 or counttype "Mandrake Root%s%" < 10405                    if "restock_method" = 0406                        restock 10407                        wft 200408                        target "restock_container"409                    else410                        menu "restock_method" 1411                    endif412                endif413            endif414 415            if "EvalTrainMode" = 2416                if counttype "Blood Moss" < 10 or counttype "Spider's Silk" < 10 or counttype "Mandrake Root%s%" < 10417                    if "restock_method" = 0418                        restock 10419                        wft 200420                        target "restock_container"421                    else422                        menu "restock_method" 1423                    endif424                endif425            endif426 427            if "EvalTrainMode" = 1428                @setvar! "ManaThreshold" 20429                if mana < "ManaThreshold"430                    while diffmana > 3431                        if not findbuff "actively meditating"432                            hotkey "Meditation"433                        endif434                        wait 500435                        if food = 1436                            if not findbuff 'Food Satisfaction'437                                if findtype 'tray' backpack as foodtray438                                    dclick foodtray439                                    wait 300440                                endif441                            endif442                        endif443                    endwhile444                else445                    hotkey "Greater Heal"446                    wft 3500447                    hotkey "Target Self"448                endif449            endif450 451            if "EvalTrainMode" = 2452                @setvar! "ManaThreshold" 50453                if mana < "ManaThreshold"454                    while diffmana > 3455                        if not findbuff "actively meditating"456                            hotkey "Meditation"457                        endif458                        wait 500459                        if food = 1460                            if not findbuff 'Food Satisfaction'461                                if findtype 'tray' backpack as foodtray462                                    dclick foodtray463                                    wait 300464                                endif465                            endif466                        endif467                    endwhile468                else469                    if findtype "a water elemental" true470                        say "a water elemental release"471                        wait 100472                    endif473                    hotkey "Water Elemental"474                    if "WaterEleSpiritPact" = 1475                        wait 2500476                    else477                        wait 5000478                    endif479                endif480            endif481        endif482    endif483 484 485    // ==========================================================486    // --- MAGERY + EVAL INT COMBINED (TrainMode 3) ---487    // ==========================================================488    if "TrainMode" = 3489        if skill "Magery" < 100490 491            // --- RESTOCK FOR MAGERY OUTSIDE SHELTER ---492            if "in_shelter" = 0493                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" < 10494                    if "restock_method" = 0495                        restock 10496                        wft 200497                        target "restock_container"498                    else499                        menu "restock_method" 1500                    endif501                endif502            endif503 504            if mana < "ManaThreshold"505                while diffmana > 3506                    if not findbuff "actively meditating"507                        hotkey "Meditation"508                    endif509                    wait 500510                    if food = 1511                        if not findbuff 'Food Satisfaction'512                            if findtype 'tray' backpack as foodtray513                                dclick foodtray514                                wait 300515                            endif516                        endif517                    endif518                endwhile519 520            elseif skill "Magery" < 50521                overhead "Train Magery to 50 at an NPC first!" 1159522                stop523 524            elseif skill "Magery" < 60525                @setvar! "ManaThreshold" 20526                if hp < 40527                    hotkey "Greater Heal"528                else529                    hotkey "lightning"530                endif531                wft 3500532                hotkey "Target Self"533 534            elseif skill "Magery" < 80535                @setvar! "ManaThreshold" 20536                if "in_shelter" = 0537                    if "ShelterOverride" = 0538                        overhead "You need New Player Dungeon for 60-80 unless ShelterOverride = 1" 1159539                        stop540                    endif541                endif542                hotkey "Invisibility"543                wft 5000544                hotkey "Target Self"545 546            else547                if "in_shelter" = 1548                    overhead "Time to leave! Cannot gain Magery over 80 in here" 1159549                    stop550                endif551                @setvar! "ManaThreshold" 50552                if findtype "a water elemental" true553                    say "a water elemental release"554                    wait 100555                endif556                hotkey "Water Elemental"557                if "WaterEleSpiritPact" = 1558                    wait 2500559                else560                    wait 5000561                endif562            endif563 564        else565            // Magery is 100  switch to Eval Int training566            if skill "Evaluating Intelligence" < 100567 568                if "EvalTrainMode" = 1569                    if counttype "Spider's Silk" < 10 or counttype "Garlic" < 10 or counttype "Ginseng" < 10 or counttype "Mandrake Root%s%" < 10570                        if "restock_method" = 0571                            restock 10572                            wft 200573                            target "restock_container"574                        else575                            menu "restock_method" 1576                        endif577                    endif578                endif579 580                if "EvalTrainMode" = 2581                    if counttype "Blood Moss" < 10 or counttype "Spider's Silk" < 10 or counttype "Mandrake Root%s%" < 10582                        if "restock_method" = 0583                            restock 10584                            wft 200585                            target "restock_container"586                        else587                            menu "restock_method" 1588                        endif589                    endif590                endif591 592                if "EvalTrainMode" = 1593                    @setvar! "ManaThreshold" 20594                    if mana < "ManaThreshold"595                        while diffmana > 3596                            if not findbuff "actively meditating"597                                hotkey "Meditation"598                            endif599                            wait 500600                            if food = 1601                                if not findbuff 'Food Satisfaction'602                                    if findtype 'tray' backpack as foodtray603                                        dclick foodtray604                                        wait 300605                                    endif606                                endif607                            endif608                        endwhile609                    else610                        hotkey "Greater Heal"611                        wft 3500612                        hotkey "Target Self"613                    endif614                endif615 616                if "EvalTrainMode" = 2617                    @setvar! "ManaThreshold" 50618                    if mana < "ManaThreshold"619                        while diffmana > 3620                            if not findbuff "actively meditating"621                                hotkey "Meditation"622                            endif623                            wait 500624                            if food = 1625                                if not findbuff 'Food Satisfaction'626                                    if findtype 'tray' backpack as foodtray627                                        dclick foodtray628                                        wait 300629                                    endif630                                endif631                            endif632                        endwhile633                    else634                        if findtype "a water elemental" true635                            say "a water elemental release"636                            wait 100637                        endif638                        hotkey "Water Elemental"639                        if "WaterEleSpiritPact" = 1640                            wait 2500641                        else642                            wait 5000643                        endif644                    endif645                endif646            endif647        endif648    endif649 650    wait "WaitTimer"651endwhile