Scripting Resources & Utilities > Stealth scripts

[py] Bag of sending + gold send after weight check (example snippet)

(1/1)

unisharp:

--- Code: ---_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...")

--- End code ---

dawids212:
is this script looting gold too ? Can i use it as separate script or need to paste to fandancer script ?

unisharp:

--- Quote from: 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 ?

--- End quote ---

Added to dancer dojo example

dawids212:
ok, thanks for good work !  8)

Navigation

[0] Message Index

Go to full version