Thread: Levellist
View Single Post
  #7  
Old 11-06-2002, 12:43 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Com013

Sure. And then I'll run to Stefan complaining that the NPC Server is too laggy. In each level with water a fighting fish could apear. That means in each level I need an NPC having constantly timeouts.
Sure, if you wanna tackle the problem in a stupid way. Instead of repeatedly sampling a random number, why not use the Poisson distribution to predict the average time to next spawn and then apply a standard deviation to that? Then simply set timeout to that new quasi-random time and spawn the fish when the period has elapsed.
__________________
Reply With Quote