Code: Select all
# -*- coding: mbcs -*-
bagContainer = 0x40158A91
regContainer = 0x400D19BE
trashContainer = 0x401451BF
regs = [
            0x0f8d, ## Spider's Silk
            0x0f84, ## Garlic
            0x0f86, ## Mandrake Root
            0x0f8c, ## Sulfurous Ash
            0x0f7b, ## Blood Moss
            0x0f85, ## Ginseng
            0x0f88, ## Night Shade
            0x0f7a  ## Black Pearls  
] 
FindType(0x0E76,bagContainer)
for bag in range(1,FindCount()):
    FindType(0x0E76,bagContainer)
    tmpBag = FindItem()
    for reg in regs:                      
        FindType(reg,tmpBag)
        print(FindCount())
        if FindCount() > 0:
            MoveItem(FindItem(),FindQuantity(),regContainer,0,0,0)
            Wait(1000)
      ##MoveItem(tmpBag,1,trashContainer,0,0,0)
    print('Bag '+str(bag)+' finished')
    Wait(1000)
      




