ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth scripts => Topic started by: unisharp on December 21, 2020, 06:08:29 AM

Title: [py] Bag of sending + gold send after weight check (example snippet)
Post by: unisharp on December 21, 2020, 06:08:29 AM
Code: [Select]
_bagSending = 0
if Weight() <= MaxWeight():  # if we're at max weight or over
    # find bags
    if FindTypesArrayEx([0x0E76], [0xFFFF], [Backpack()], True):
        _bags = GetFindedList()
        for _bag in _bags:
            # make sure they are bags of sending
            if 'sending' in GetTooltip(_bag).split('|')[0]:
                AddToSystemJournal("Found bag of sending...")
                _bagSending = _bag
    else:
        AddToSystemJournal("No bags found...")
        exit()  # no bags at all found

    # if we made it this far, we have our bag of sending, now look for gold

    if FindTypeEx(0x0EED, 0xFFFF, Backpack(), True):
        _gold = GetFoundList()
        UseObject(_bagSending)
        Wait(1500)
        WaitTargetObject(_gold[0])
    else:
        AddToSystemJournal("Can't find gold...")
Title: Re: [py] Bag of sending + gold send after weight check (example snippet)
Post by: dawids212 on December 21, 2020, 08:58:30 AM
is this script looting gold too ? Can i use it as separate script or need to paste to fandancer script ?
Title: Re: [py] Bag of sending + gold send after weight check (example snippet)
Post by: unisharp on December 21, 2020, 09:41:27 AM
is this script looting gold too ? Can i use it as separate script or need to paste to fandancer script ?

Added to dancer dojo example
Title: Re: [py] Bag of sending + gold send after weight check (example snippet)
Post by: dawids212 on December 21, 2020, 10:07:44 AM
ok, thanks for good work !  8)