View Single Post
  #2  
Old 10-31-2010, 02:08 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
I think this is the problem:
PHP Code:
emitter.addlocalmodifier("once"00"y""replace"player.y-30player.y+30);
emitter.addlocalmodifier("once"00"x""replace"player.x-30player.x+30); 
It forces the particles to spawn around the place where the player last said "/hallo on". If he's at (32, 32), they'll spawn in the range 32-30 to 32+30 or 2 to 62, which will break when you're on a gmap.

Try this instead:
PHP Code:
emitter.addlocalmodifier("once"00"y""add", -30, +30);
emitter.addlocalmodifier("once"00"x""add", -30, +30); 

And unrelated to the problem, you can remove this:
PHP Code:
this.this.dx;
this.this.dy
And a good way to turn on/off particle effects is to toggle the emitter.emitautomatically flag.
Reply With Quote