Code: Select all
sub Loot()
VAR WaitTime=500
VAR Exit=0, i
DIM Loot[45]
Loot[1] = 0x1086 ;Braclet
Loot[2] = 0x1B77 ;Heater
Loot[3] = 0x1B76 ;Heater
Loot[4] = 0x1415 ;Platemail
Loot[5] = 0x1416 ;Platemail
Loot[6] = 0x1411 ;Legs
Loot[7] = 0x141A ;Legs
Loot[8] = 0x1412 ;Plate Helm
Loot[9] = 0x1419 ;Plate Helm
Loot[10] = 0x1410 ;Platemail Arms
Loot[11] = 0x1414 ;Platemail Gauntlets
Loot[12] = 0x1418 ;Platemail Gauntlets
Loot[13] = 0x1413 ;Platemail Gorget
Loot[14] = 0x13B9 ;Viking
Loot[15] = 0x0F5E ;Broadsword
Loot[16] = 0x1400 ;Kryss
Loot[17] = 0x0F60 ;Longsword
Loot[18] = 0x13FE ;Katana
Loot[19] = 0x13B5 ;Scimitar
Loot[20] = 0x1440 ;Cutlass
Loot[21] = 0x0F45 ;Executioner
Loot[22] = 0x0F49 ;axe
Loot[23] = 0x0F4B ;double axe
Loot[24] = 0x0F47 ;Battle Axe
Loot[25] = 0x13FA ;large battle axe
Loot[26] = 0x13AF ;war axe
Loot[27] = 0x1442 ;two handed axe
Loot[28] = 0x1406 ;War Mace
Loot[29] = 0x143A ;Maul
Loot[30] = 0x13E3 ;Smith's Hammer
Loot[31] = 0x143C ;hammer pick
Loot[32] = 0x0F5C ;mace
Loot[33] = 0x1438 ;war hammer
Loot[34] = 0x0F62 ;Spear
Loot[35] = 0x1402 ;Short Spear
Loot[36] = 0x1404 ;War Fork
Loot[37] = 0x0F51 ;Dagger
Loot[38] = 0x143E ;Halberd
Loot[39] = 0x0F4D ;Bardiche
Loot[40] = 0x13FC ;Heavy Crossbow
Loot[41] = 0x0F4F ;Crossbow
Loot[42] = 0x13B1 ;Bow
Loot[43] = 0x0F3F ;arrows
Loot[44] = 0x1BFB ;crossbow bolt
Loot[45] = 0x0EED ;gold
UO.UseObject('lastcorpse')
if UO.GetQuantity('lastcorpse') then
UO.SetArm('temp')
UO.WaitTargetObject('lastcorpse')
UO.UseType('0x0F4D') ;dagger
UO.Arm('500')
wait(800)
endif
; UO.SetReceivingContainer('0x40476600') ; loot store bag
For i=1 to 45
UO.FindType(Loot[i],-1,'ground')
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()
end sub