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);
}
}