Yoko
http://forum.yoko.com.ua/

COUNT items in a corpose
http://forum.yoko.com.ua/viewtopic.php?f=3&t=1834
Page 1 of 1

Author:  creaturez [ 2004-11-03 20:48:38 ]
Post subject:  COUNT items in a corpose

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

Author:  drcrazy [ 2004-11-03 20:50:07 ]
Post subject: 

Maybe uo.GetQuantity ??

Author:  creaturez [ 2004-11-03 21:04:37 ]
Post subject: 

thanks drcrasy

Author:  AGRS [ 2004-11-03 23:00:16 ]
Post subject: 

Code:
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()

Author:  Yoko [ 2004-11-04 10:30:25 ]
Post subject: 

AGRS wrote:
Code:
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:
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

Author:  drcrazy [ 2004-11-04 11:01:32 ]
Post subject: 

creaturez wrote:
thanks drcrasy


U welcome

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/