Yoko

All sides of Injection
It is currently 2024-04-19 17:38:29

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Containers
PostPosted: 2004-05-03 17:46:16 
Offline

Joined: 2004-05-03 17:30:45
Posts: 32
Location: OR
I'm having problems with some containers, for example the SOS Bottle Treasures. Infact, if I do a UO.GetSerial("_0x0E40"), it works for the first time, but if i do it again, it returns 0x00000000. It seems that when a container of such type is found, the object itself is lost or something similar, so that it can be found again, but it's data (as the serial) is no more foundable.

Also 0x0190 (people) suffer of this problem, and a lot of other things. I post a simple script that cannot work for this problem, so that you can check better and understand.

sub autoguard()
Var i, obj
while (1)
UO.IgnoreReset()
while (UO.CountGround(0x0190) 0)
obj=UO.GetSerial("_0x0190")
if (UO.GetNotoriety(obj) =3) then
UO.msg("guards")
wait(60000)
else
wait(500)
end if
UO.Ignore(obj)
wend
wait(500)
wend
end sub

_________________
OR


Top
   
 Post subject: Re: Containers
PostPosted: 2004-05-04 14:15:32 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
Fonzy wrote:
while (UO.CountGround(0x0190) 0)

) 0) ???
Fonzy wrote:
obj=UO.GetSerial("_0x0190")

people are not bottles in backpack. the underscore "_" mean seeking item by type in backpack and sub bags.
Fonzy wrote:
UO.Ignore(obj)

this removes object found from seeking lists. improper use of this command may result in problems you told.
try to be accurate and attentive


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 43 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited