Containers

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
Fonzy
Posts: 32
Joined: 2004-05-03 17:30:45
Location: OR
Contact:

Containers

Post by Fonzy »

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
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Re: Containers

Post by Yoko »

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
Post Reply