Author Topic: [py] Bag of sending + gold send after weight check (example snippet)  (Read 3865 times)

0 Members and 1 Guest are viewing this topic.

Offline unisharpTopic starter

  • Elite
  • ***
  • *
  • Posts: 196
  • Activity:
    0%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
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...")
« Last Edit: December 21, 2020, 06:11:40 AM by unisharp »

Offline dawids212

  • Restricted
  • *
  • Posts: 9
  • Activity:
    0%
  • Reputation Power: 1
  • dawids212 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: [py] Bag of sending + gold send after weight check (example snippet)
« Reply #1 on: December 21, 2020, 08:58:30 AM »
0
is this script looting gold too ? Can i use it as separate script or need to paste to fandancer script ?

Offline unisharpTopic starter

  • Elite
  • ***
  • *
  • Posts: 196
  • Activity:
    0%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: [py] Bag of sending + gold send after weight check (example snippet)
« Reply #2 on: December 21, 2020, 09:41:27 AM »
0
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

Offline dawids212

  • Restricted
  • *
  • Posts: 9
  • Activity:
    0%
  • Reputation Power: 1
  • dawids212 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: [py] Bag of sending + gold send after weight check (example snippet)
« Reply #3 on: December 21, 2020, 10:07:44 AM »
0
ok, thanks for good work !  8)

Tags: