Skip to content
Outlands Hub

Razor script

Drop gold on pet and deposit near safe

by special_sy · 76 lines
Download

Script by [DoS] Chumber Dump your gold on your storage pets to go a little bit longer Deposit the gold from pets if you are near a safe Edit the CONFIG section to set your pets You always need one entry in each list pushlist goldAmounts…

TamingOrganizing
Drop gold on pet and deposit near safe.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/653a761b-e270-4217-b5eb-203f89a6b6f0 for latest2# Automation by Jaseowns3## Script: Drop gold on pet and deposit near safe4## Created by: special_sy#05#############################################6 7# Script by [DoS] Chumber8# Dump your gold on your storage pets to go a little bit longer9# Deposit the gold from pets if you are near a safe10# Edit the CONFIG section to set your pets11# You always need one entry in each list12# pushlist goldAmounts <amount of gold the pet can carry>13# pushlist goldPets <the pet serial from >info>14# If you got more than one pet you just add another entry in both lists15# Update goldToStart to the sum of all goldAmounts16 17if not listexists goldAmounts18    createlist goldAmounts19endif20if not listexists 'goldPets'21    createlist goldPets22endif23clearlist goldAmounts24clearlist goldPets25 26# --- CONFIG START ---27@setvar goldToStart 200028pushlist goldAmounts 50029pushlist goldPets 0x57DB0A30 31pushlist goldAmounts 50032pushlist goldPets 0xD2BC933# --- CONFIG END -----34if findtype 'bank deposit safe' 'ground' -1 -1 2 as safe35    overhead "Found a save, depositing from pets!"36    foreach goldPet in goldPets37        getlabel goldPet petLabel38        dclick goldPet39        wait 20040        if findtype 'gold coin' goldPet as gold41            getlabel gold goldLabel42            overhead "Depositing {{goldLabel}} from {{petLabel}}"43            lift gold 100044            wait 25045            drop safe46            wait 25047        else48            overhead "No gold in {{petLabel}}"49        endif50     endfor51     overhead "All done!"52     stop53endif54 55if counttype 'gold coin' 'backpack' < goldToStart56    overhead "Du bist noch zu arm!"57    stop58endif59overhead '$$$'60 61foreach goldAmount in goldAmounts62    if poplist goldPets 'front' as goldPet63        if find goldPet 'ground' -1 -1 2 as currentPet and findtype 'gold coin' backpack as gold64            getlabel currentPet label65            overhead 'Dropping {{goldAmount}} on {{label}}'66            lift gold goldAmount67            wait 25068            drop goldPet -1 -169            wait 25070        else71            overhead "Pet isnt close enough or not present, please check!"72        endif73    endif74endfor75 76overhead 'Done!'