COUNT items in a corpose

Ask for help

Moderators: Murderator+, Murderator

Post Reply
creaturez
Posts: 9
Joined: 2004-11-02 21:52:22
Contact:

COUNT items in a corpose

Post by creaturez »

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
dagoFee
drcrazy
Junior Expert
Posts: 92
Joined: 2004-10-12 00:48:57
Location: Шард МЕ2

Post by drcrazy »

Maybe uo.GetQuantity ??
The pleasure of satisfying a savage instinct, undomesticated by the ego, is incomparably much more intense then the one of satisfying a tamed instinct. S.Freud.
creaturez
Posts: 9
Joined: 2004-11-02 21:52:22
Contact:

Post by creaturez »

thanks drcrasy
dagoFee
AGRS
Expert!
Posts: 1007
Joined: 2004-04-04 21:40:09
Contact:

Post by AGRS »

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

Post by Yoko »

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
drcrazy
Junior Expert
Posts: 92
Joined: 2004-10-12 00:48:57
Location: Шард МЕ2

Post by drcrazy »

creaturez wrote:thanks drcrasy


U welcome
The pleasure of satisfying a savage instinct, undomesticated by the ego, is incomparably much more intense then the one of satisfying a tamed instinct. S.Freud.
Post Reply