Yoko

All sides of Injection
It is currently 2026-02-17 22:44:57

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2005-02-04 20:32:27 
Offline

Joined: 2004-09-03 20:25:31
Posts: 3
Lets say you have 10 ppl in a 3x3 square and you want to select those 10 ppl randomly how would you do?


Top
   
 Post subject:
PostPosted: 2005-02-05 09:48:56 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
  • create array for serials (size 200 or more)
  • seek for human
  • if found:
    - ignore finditem
    - check is he in square
    - if yes add in array
    - repeat search
  • now use uo.random to get random object from created array


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 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