Skip to content
Outlands Hub

Razor script

Lazy Gardener

by singsingfan · 444 lines
Download

Buffs

Lazy Gardener.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/9e54b744-6f26-4019-a201-749e4bbe6a9a for latest2# Automation by Jaseowns3## Script: Lazy Gardener4## Created by: singsingfan#05#############################################6 7    #Buffs8    gumpresponse 2 32246083759    wait 45010    gumpresponse 2 322460837511    wait 45012clearlist "GardeningPots"13if not listexists "GardeningPots"14    createlist "GardeningPots"15endif16 17clearignore 18 19while findtype "planter" ground 0 0 2 as fc20    overhead "trough Found"21    wait 45022    pushlist "GardeningPots" fc23    @ignore fc24endwhile25 26while findtype "trough" ground 0 0 2 as fc27    overhead "trough Found"28    wait 45029    pushlist "GardeningPots" fc30    @ignore fc31endwhile32 33while findtype "flower pot" ground 0 0 2 as fc34    overhead "flower pot Found"35    wait 45036    pushlist "GardeningPots" fc37    @ignore fc38endwhile39 40overhead "Done"41 42foreach "trough|planter|flower pot" in "GardeningPots"43    getlabel "trough|flower pot|planter" potLabel44    overhead potLabel45    dclick "trough|planter|flower pot"46    wait 35047 48if "grown" in potLabel49    //gardeningstuff50    gumpresponse 251    wait 45052    53    overhead "Gardening"54    if findtype 20502 backpack as soluGard55        overhead "Applying Superior purified water solution"56        gumpresponse 2 322460837557        wft58        target soluGard59        wait 45060    elseif findtype 20501 backpack as soluGard61        overhead "Applying purified water solution"62        gumpresponse 2 322460837563        wft64        target soluGard65        wait 45066    endif67    68    if findtype 20499 backpack as growthGard69        overhead "Applying Superior Growth Serum"70        gumpresponse 2 322460837571        wft72        target growthGard73        wait 45074    elseif findtype 20498 backpack as growthGard75        overhead "Applying Growth Serum"76        gumpresponse 2 322460837577        wft78        target growthGard79        wait 45080    endif81 82    if findtype 11942 backpack as heatGard83        overhead "Applying Superior Heat Filter"84        gumpresponse 2 322460837585        wft86        target heatGard87        wait 45088    elseif findtype 28741 backpack as heatGard89        overhead "Applying Heat Filter"90        gumpresponse 2 322460837591        wft92        target heatGard93        wait 45094    endif95    96    if findtype 19403 backpack as fertilizerGard97        overhead "Applying Superior Fertilizer"98        gumpresponse 2 322460837599        wft100        target fertilizerGard101        wait 450102    elseif findtype 4154 backpack as fertilizerGard103        overhead "Applying Fertilizer"104        gumpresponse 2 3224608375105        wft106        target fertilizerGard107        wait 450108    endif    109 110    #Water111    gumpresponse 4 3224608375112    wait 450113    gumpresponse 2 3224608375114    wft115    if findtype "watering can" backpack as wCan116        target wCan117        wait 450118        gumpresponse 2 3929333591119        wait 450120        dclick wCan121        wait 450122    endif123    gumpclose 3929333591124    125    #Soil126    gumpresponse 5 3224608375127    wait 450128    gumpresponse 2 3224608375129    wft130    if findtype "dirt patch" backpack as dPatch131        target dPatch132        wait 450133        gumpresponse 2 4024474571134        wait 450135    endif136    gumpclose 4024474571137    wait 450138    clearsysmsg139    gumpresponse 10 3224608375140    wait 450141 142    while insysmsg "Reduces"143       overhead "Debuff Detected"144 145        wait 450146        gumpresponse 10 3224608375147        wait 450148        if insysmsg "Increases"149            break150            151        elseif insysmsg "Creature Effect"152            overhead "Creature Effect"153            if findtype 29343 backpack as solution154                gumpresponse 2 3224608375155                wft156                target solution157                wait 450158            endif159        elseif insysmsg "Pestilent effect"160            overhead "Pestilent Effect"161            if findtype 6187 backpack as solution162                gumpresponse 2 3224608375163                wft164                target solution165                wait 450166            endif167        elseif insysmsg "Fungal effect"168            overhead "Fungal Effect"169            if findtype 6193 backpack as solution170                gumpresponse 2 3224608375171                wft172                target solution173                wait 450174            endif175            176            177        endif178    gumpresponse 10 3224608375179    wait 450180    endwhile181    182    if insysmsg "The world will save in 15 seconds"183        while not insysmsg "World ssave complete"184            wait 550185        endwhile186    clearsysmsg 187    endif188    189elseif "harvest" in potLabel190    191    overhead "Harvesting"192    gumpresponse 2 3224608375193    wait 450194    gumpresponse 2 3224608375195    wait 450    196    overhead "planting"197    #plant seeds198    while not targetexists 199        gumpresponse 2 3224608375200        wait 450    201    endwhile202    203       if findtype "dungeon seed" backpack as seedtype204            target seedtype205        elseif findtype "bag of seeds" backpack as seedtype206            target seedtype207        elseif findtype "seed of renewal" backpack as seedtype208            target seedtype209        endif210 211    wait 450212        #Buffs213    overhead "Gardening"214    if findtype 20502 backpack as soluGard215        overhead "Applying Superior purified water solution"216        gumpresponse 2 3224608375217        wft218        target soluGard219        wait 450220    elseif findtype 20501 backpack as soluGard221        overhead "Applying purified water solution"222        gumpresponse 2 3224608375223        wft224        target soluGard225        wait 450226    endif227    228    if findtype 20499 backpack as growthGard229        overhead "Applying Superior Growth Serum"230        gumpresponse 2 3224608375231        wft232        target growthGard233        wait 450234    elseif findtype 20498 backpack as growthGard235        overhead "Applying Growth Serum"236        gumpresponse 2 3224608375237        wft238        target growthGard239        wait 450240    endif241 242    if findtype 11942 backpack as heatGard243        overhead "Applying Superior Heat Filter"244        gumpresponse 2 3224608375245        wft246        target heatGard247        wait 450248    elseif findtype 28741 backpack as heatGard249        overhead "Applying Heat Filter"250        gumpresponse 2 3224608375251        wft252        target heatGard253        wait 450254    endif255    256    if findtype 19403 backpack as fertilizerGard257        overhead "Applying Superior Fertilizer"258        gumpresponse 2 3224608375259        wft260        target fertilizerGard261        wait 450262    elseif findtype 4154 backpack as fertilizerGard263        overhead "Applying Fertilizer"264        gumpresponse 2 3224608375265        wft266        target fertilizerGard267        wait 450268    endif    269 270    #Water271    gumpresponse 4 3224608375272    wait 450273    gumpresponse 2 3224608375274    wft275    if findtype "watering can" backpack as wCan276        target wCan277        wait 450278        gumpresponse 2 3929333591279        wait 450280        dclick wCan281        wait 450282    endif283    gumpclose 3929333591284    285    #Soil286    gumpresponse 5 3224608375287    wait 450288    gumpresponse 2 3224608375289    wft290    if findtype "dirt patch" backpack as dPatch291        target dPatch292        wait 450293        gumpresponse 2 4024474571294        wait 450295    endif296    gumpclose 4024474571297    else 298        overhead "Incorrect plant label detected"299    wait 450300        overhead "planting"301    #plant seeds302    gumpresponse 2 3224608375303    wait 450304    gumpresponse 2 3224608375305    wait 450306 307 308        if findtype "dungeon seed" backpack as seedtype309            target seedtype310        elseif findtype "bag of seeds" backpack as seedtype311            target seedtype312        elseif findtype "seed of renewal" backpack as seedtype313            target seedtype314        endif315 316    wait 450317        #Buffs318    overhead "Gardening"319    if findtype 20501 backpack as soluGard320        overhead "Applying purified water solution"321        gumpresponse 2 3224608375322        wft323        target soluGard324        wait 450325    endif326    327    if findtype 20499 backpack as growthGard328        overhead "Applying Growth Serum"329        gumpresponse 2 3224608375330        wft331        target growthGard332        wait 450333    elseif findtype 20498 backpack as growthGard334        overhead "Applying Growth Serum"335        gumpresponse 2 3224608375336        wft337        target growthGard338        wait 450339    endif340 341    if findtype 28741 backpack as heatGard342        overhead "Applying Heat Filter"343        gumpresponse 2 3224608375344        wft345        target heatGard346        wait 450347    endif348    349    if findtype 4154 backpack as fertilizerGard350        overhead "Applying Fertilizer"351        gumpresponse 2 3224608375352        wft353        target fertilizerGard354        wait 450355    endif    356 357    #Water358    gumpresponse 4 3224608375359    wait 450360    gumpresponse 2 3224608375361    wft362    if findtype "watering can" backpack as wCan363        target wCan364        wait 450365        gumpresponse 2 3929333591366        wait 450367        dclick wCan368        wait 450369    endif370    gumpclose 3929333591371    372    #Soil373    gumpresponse 5 3224608375374    wait 450375    gumpresponse 2 3224608375376    wft377    if findtype "dirt patch" backpack as dPatch378        target dPatch379        wait 450380        gumpresponse 2 4024474571381        wait 450382    endif383 384clearsysmsg385gumpresponse 10 3224608375386wait 450387 388while insysmsg "Reduces"389   overhead "Debuff Detected"390 391    wait 450392    gumpresponse 10 3224608375393    wait 450394    if insysmsg "Increases"395        break396        397    elseif insysmsg "Creature Effect"398        overhead "Creature Effect"399        if findtype 29343 backpack as solution400            gumpresponse 2 3224608375401            wft402            target solution403            wait 450404        endif405    elseif insysmsg "Pestilent effect"406        overhead "Pestilent Effect"407        if findtype 6187 backpack as solution408            gumpresponse 2 3224608375409            wft410            target solution411            wait 450412        endif413    elseif insysmsg "Fungal effect"414        overhead "Fungal Effect"415        if findtype 6193 backpack as solution416            gumpresponse 2 3224608375417            wft418            target solution419            wait 450420        endif421        422    endif423gumpresponse 10 3224608375424wait 450425endwhile426    427endif428 429#Labor and Toil430if findtype "spade" backpack as toolGard431    gumpresponse 2 3224608375432    wft433    target toolGard434    wait 450435    gumpresponse 6 1429840072436    wait 450437endif438    if insysmsg "The world will save in 15 seconds"439        while not insysmsg "World save complete"440            wait 550441        endwhile442    clearsysmsg 443    endif444endfor