Page 1 of 1
Looting regs from bank
Posted: 2004-06-20 11:21:35
by Nazgul
Code: Select all
sub loot()
UO.FindType("0x0F88","-1","container") #NightShade
UO.Grab("0","finditem")
UO.FindType("0x0F85","-1","container") #Gingseng
UO.Grab("0","finditem")
UO.FindType("0x0F7B","-1","container") #BloodMoss
UO.Grab("0","finditem")
UO.FindType("0x0F8C","-1","container") #Sulfour's Ash
UO.Grab("0","finditem")
UO.FindType("0x0F86","-1","container") #Mandrake Roots
UO.Grab("0","finditem")
UO.FindType("0x0F84","-1","container") #Garlic
UO.Grab("0","finditem")
UO.FindType("0x0F8D","-1","container") #Spider's Silk
UO.Grab("0","finditem")
UO.FindType("0x0F7A","-1","container") #Black Pearl's
UO.Grab("0","finditem")
end sub
I'm trying to make a script which would loot 50 of each reg from bank when i open bank and say ,exec loot but it gives me errro "invalid object:0"

Posted: 2004-06-20 11:33:24
by Lord Ruslan Nightmare
maybe you not defined "container" object
And check, what uo.getserial("finditem") is not equal to zero
(i.e. uo.findcount() not equal to zero)
Posted: 2004-06-20 12:29:53
by Nazgul
Lord Ruslan Nightmare wrote:maybe you not defined "container" object
And check, what uo.getserial("finditem") is not equal to zero
(i.e. uo.findcount() not equal to zero)
How to define Bank object?

Posted: 2004-06-20 12:51:09
by Lord Ruslan Nightmare
A know only one way:
get serial of ANY object in bank and then make little temporary script:
sub temp()
uo.addobject("bank",uo.containerof("here serial of any item in bank"))
end sub
Posted: 2004-06-22 01:10:05
by Lord Ruslan Nightmare
Also - there is uo.objatlayer("Bank")
Posted: 2004-06-22 02:28:30
by WeedDevil
or just to complete this list you could also go to bank, say "bank" then
,info lastcontainer
would give you serial of bank...