Yoko

All sides of Injection
It is currently 2025-12-21 23:52:54

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Looting regs from bank
PostPosted: 2004-06-20 11:21:35 
Offline

Joined: 2004-06-01 12:50:42
Posts: 9
Code:
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" :(


Top
   
 Post subject:
PostPosted: 2004-06-20 11:33:24 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
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)

_________________
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-06-20 12:29:53 
Offline

Joined: 2004-06-01 12:50:42
Posts: 9
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? :(


Top
   
 Post subject:
PostPosted: 2004-06-20 12:51:09 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
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

_________________
Без труда не выловишь и рыбку из пруда,

А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-06-22 01:10:05 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
Also - there is uo.objatlayer("Bank")

_________________
Без труда не выловишь и рыбку из пруда,

А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-06-22 02:28:30 
Offline

Joined: 2004-04-06 12:13:49
Posts: 32
or just to complete this list you could also go to bank, say "bank" then
,info lastcontainer
would give you serial of bank...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited