I was trying to count how many Bows were in a corpose but with
number=UO.FindType('robe',-1,'corpose')
i get the number of the nearest corposes only.
What's the right function?
grazie
ciaociao andre
COUNT items in a corpose
Moderators: Murderator+, Murderator
COUNT items in a corpose
dagoFee
Code: Select all
UO.IgnoreReset()
Repeat
UO.FindType(Type, Color, Cont)
If UO.FindCount()>0 Then
DoSomeThingWithObject('finditem')
UO.Ignore('finditem')
EndIf
Until UO.FindCount()<2
UO.IgnoreReset()
AGRS wrote:Code: Select all
UO.IgnoreReset()
Repeat
UO.FindType(Type, Color, Cont)
If UO.FindCount()>0 Then
DoSomeThingWithObject('finditem')
UO.Ignore('finditem')
EndIf
Until UO.FindCount()<2
UO.IgnoreReset()
i mostly use a bit different variant
Code: Select all
UO.IgnoreReset()
UO.FindType(Type, Color, Cont)
while UO.FindCount()
DoSomeThingWithObject('finditem')
UO.Ignore('finditem')
UO.FindType(Type, Color, Cont)
wend
UO.IgnoreReset()
but of course it's kind of personal taste