Yoko

All sides of Injection
It is currently 2026-01-16 13:57:00

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: FindType()
PostPosted: 2004-08-17 21:46:19 
Offline

Joined: 2004-08-13 00:00:02
Posts: 14
exists some way to get every object which i found with findtype??

(findtype returns first (or last) object of this type, but i need get every object in sequence)


Top
   
 Post subject:
PostPosted: 2004-08-18 00:47:25 
Offline

Joined: 2004-07-28 12:39:29
Posts: 22
Use uo.ignore('finditem') in cycle.


Top
   
 Post subject:
PostPosted: 2004-08-18 16:30:33 
Offline

Joined: 2004-08-13 00:00:02
Posts: 14
thanks, this is result of my reserch:

Code:
sub FindSequence(type,color,container)
   UO.FindType(type,color,container);
   if (UO.FindCount() > 0) then
      UO.Ignore("finditem");
      return UO.GetSerial("finditem");
   else
      UO.IgnoreReset();
      UO.FindType(type,color,container);
      UO.Ignore("finditem");
      return UO.GetSerial("finditem");
   endif
end sub


calling this function in sequence returns ID (serial) every object of assigned type / color / container...

after minor repair get same set of serials, but last call of function returns serial "0x00000000" (empty result -> e.g. for finishing cycles):

Code:
sub FindSequence(type,color,container)
   UO.FindType(type,color,container);
   if (UO.FindCount() > 0) then
      UO.Ignore("finditem");
      return UO.GetSerial("finditem");
   else
      UO.IgnoreReset();
      return UO.GetSerial("finditem");
   endif
end sub


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

All times are UTC+02:00


Who is online

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