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

Choosing random players from the ground
http://forum.yoko.com.ua/viewtopic.php?f=3&t=2984
Page 1 of 1

Author:  korupt [ 2005-02-04 20:32:27 ]
Post subject:  Choosing random players from the ground

Lets say you have 10 ppl in a 3x3 square and you want to select those 10 ppl randomly how would you do?

Author:  Yoko [ 2005-02-05 09:48:56 ]
Post subject: 

  • 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

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