View Single Post
  #1  
Old 04-24-2010, 02:07 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

The thing with particles is that they are easy to get crazy with because they have so much visual potential. I have added a ton of particles on my server but most of them are on walk-up scenarios. Hopefully that gives some of you ideas who create invisible NPC's for particles...

This is for non static particles, limits the amount of packet spam to the entire zone of clients. I do the same thing for NPC scenes. Just an idea, you can do whatever you please. Hopefully that helps!
This is actually
Examples as follows:





Code:
sub EVENT_SPAWN {

    my $x = $npc->GetX();
	my $y = $npc->GetY();
	my $z = $npc->GetZ();
	my $range = (80);
	quest::set_proximity($x - $range, $x + $range, $y - $range, $y + $range, $z - 40, $z + 20);
}


sub EVENT_ENTER
{
			quest::settimer(effect,1);	
}

sub EVENT_EXIT
{
			quest::stoptimer("effect");
}


sub EVENT_TIMER
{
	if($timer eq "effect"){
		$npc->CastToMob()->SendAppearanceEffect(201,189);
			quest::stoptimer("effect");
			quest::settimer("effect",1);

}
}

Last edited by Secrets; 04-24-2010 at 11:50 PM..
Reply With Quote