;UO.SetReceivingContainer('0x40005077') ; loot store bag
For i=0 to 29 UO.FindType(Loot[i],-1,'lastcorpse') if UO.GetQuantity('finditem') then UO.Grab(STR(0),'finditem') wait(WaitTime) endif
if UO.GetQuantity('lastcorpse') then UO.FindType(Loot[i],-1,'lastcorpse') if UO.GetQuantity('finditem') then if Loot[i]==0x1078 then UO.WaitTargetObject('finditem') UO.UseType('0x0F9E') else UO.Grab(STR(0),'finditem') endif wait(WaitTime) endif endif
;UO.SetReceivingContainer('0x40005077') ; loot store bag
For i=0 to 29 UO.FindType(Loot[i],-1,'lastcorpse') if UO.GetQuantity('finditem') then UO.Grab(STR(0),'finditem') wait(WaitTime) endif
if UO.GetQuantity('lastcorpse') then UO.FindType(Loot[i],-1,'lastcorpse') if UO.GetQuantity('finditem') then if Loot[i]==0x1078 then UO.WaitTargetObject('finditem') UO.UseType('0x0F9E') else UO.Grab(STR(0),'finditem') endif wait(WaitTime) endif endif
next
;UO.UnSetReceivingContainer() wait (1000) wend end sub
будет проверять на возможность лута каждую секунду...
;UO.SetReceivingContainer('0x40005077') ; loot store bag
For i=0 to 29 UO.FindType(Loot[i],-1,'lastcorpse') if UO.GetQuantity('finditem') then UO.Grab(STR(0),'finditem') wait(WaitTime) endif
if UO.GetQuantity('lastcorpse') then UO.FindType(Loot[i],-1,'lastcorpse') if UO.GetQuantity('finditem') then if Loot[i]==0x1078 then UO.WaitTargetObject('finditem') UO.UseType('0x0F9E') else UO.Grab(STR(0),'finditem') endif wait(WaitTime) endif endif
next
;UO.UnSetReceivingContainer() wait (1000) wend end sub