EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   SendAppearanceEffect (https://www.eqemulator.org/forums/showthread.php?t=30731)

Akkadius 04-24-2010 02:07 PM

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:

http://img.photobucket.com/albums/v4...4/particle.jpg

http://img.photobucket.com/albums/v4.../particle2.jpg

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

}
}



All times are GMT -4. The time now is 04:44 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.