PDA

View Full Version : SendAppearanceEffect


RichardoX
03-04-2010, 06:01 PM
Trevius: Added new Perl::Mob quest object SendAppearanceEffect(effect1, effect2, effect3, effect4, effect5) which can send up to 5 particle effects at once.

Trevius, do you have any information on this? What effects are there and where could I get a list of these effects? Is this the same effects that I would add in the zonename_emitter file for a zone?

Also, how would I use it? Like this?

sub EVENT_SPAWN {
$mob->SendAppearanceEffect(effectname, effectname); #in this instance, I'd want 2 effects.
}

??

trevius
03-04-2010, 06:34 PM
You use it like this:

sub EVENT_SPAWN {
$npc->SendAppearanceEffect(90, 91); #lightning and a burst of light.
}

I don't have a full list of descriptions yet as there are hundreds of effects. You can experiment by just plugging in numbers to see what numbers are what effects. I think they go up into the 400s or so.

Here is a list of descriptions I made for the first 100 effects:

1 static tiny lightning bolts along the floor
2 static tiny blue/white ball
3 static tiny blue/white fire
4 static tiny electric field wall
5 static tiny electric bolts going up
6 static tiny electric bursts
7 tiny electric burst particles
8 tiny blue/white ball burst
9 static tiny electricity from the floor
10 Nothing?
11 static tiny electric burst sphere
12 static tiny electric bolts from the floor (nice)
13 static blue/white flame sword effect
14 static green/white flame sword effect
15 static tiny light burst
16 static tiny green/white low density particles
17 static tiny red flame sword effect
18 static tiny 3D rotating light burst
19 static tiny green very low density particles
20 static tiny red very low density particles
21 static tiny blue very low density particles
22 small long and flat golden cloud
23 static Cleric 2.0 effect
24 Ranger 2.0 effect
25 static tiny green drip (rogue 1.0 effect?)
26 static tiny green mist (rogue 2.0 effect?)
27 small green burst of flame
28 small light burst particle
29 small green mist spray
30 small tall smoke
31 small pastel round particles
32 small green circle light bursts
33 small animated vertical light burst
34 small sphere of blue and white particle sprites
35 small vertical flame burst
36 small loose vertical flame burst
37 static small red glowing cloud
38 static tiny yellow particle fire
39 small yellow cloud burst
40 small yellow/orange flame burst
41 yellow flashy light burst
42 static tiny 5 yellow light burst/particles aura
43 static tiny blue vertical lights forming a ring aura
44 static tiny pink/white flame
45 Nothing?
46 Nothing?
47 orange ring light bursts
48 static small vertical black smoke
49 static tiny blowing light black smoke
50 static small orange flame ring sphere
51 static tiny green particles flowing up
52 static small pink/blue flame
53 tiny pink/blue vertical flame slivers
54 static tiny pink/blue flame
55 static small white smoke puffs slow intervals
56 small black smoke ring poof
57 static small fast translucent black smoke clouds
58 small white particle swirl
59 static small yellow/white burst rounded flames
60 small 3 white swirling particle bursts
61 static tiny green/yellow/white high density particle flow
62 static small yellow/white burst flames
63 small white star burst
64 small snowie impact particle burst
65 small blue/white cloud burst
66 flashy rotating star bursts
67 tiny white particle bursts sphere
68 small purple blowing clouds
69 small purple blowing clouds blowing towards you
70 small bubbles
71 small ZZZ
72 small light particle swirl
73 tiny light burst 5 seconds
74 tiny blue/white particle bursts flow
75 small upward rock burst
76 small transparent black cloud burst
77 medium blue vertical cones circling the caster
78 medium large blue vertical cone
79 medium yellow/white flame burst (level up)
80 medium yellow round particles flowing up
81 medium yellow star burst spiral up around caster
82 Nothing?
83 static medium blue/white flowing smoke
84 medium dense black cloud burst
85 medium springs shooting from the ground
86 medium sprockets shooting from the ground
87 medium round electro-static bursts
88 medium black lava chunks shooting from the ground
89 static small vertical electric field
90 large lightning bolt from above to target
91 medium light burst to target
92 small purple cloud burst
93 medium black lava chunks many bursting from the ground
94 medium white particles raising and fading
95 static tiny blue/white sphere of light
96 static tiny white particle bursts sphere
97 static very tiny yellow light burst
98 tiny sideways shooting flame
99 tiny yellow light burst
100 static tiny vertical red flame sword effect

Just playing around, I found that there are some really cool ones in the low to mid 300s, but it will take a while to get a full list. Also, not all of the effects are visible by all clients. SoF goes into the 400s, but I think Titanium stops before the 300s. I haven't fully tested it yet.

RichardoX
03-05-2010, 11:15 AM
If I were impotent, you would be my choice to be a doner to make babies.

steve
03-05-2010, 03:20 PM
Am I correct in assuming these are basically the nimbus effect clickies from Live?

RichardoX
03-06-2010, 12:20 AM
Trevius, I compiled the most recent binaries and tried your example that you just gave me and it didn't work. Gave me the following error:

[Status] Script error: qst999237::EVENT_SPAWN - Perl runtime error: Can't locate object method "SendAppearanceEffect" via package "NPC" at quests/frozenshadow/999237.pl line 2.

Edit: I compiled the latest binaries and it doesn't give this error anymore however now it's a whole different issue; It simply doesn't do anything. Do I need to update something else in plugins or something?

Edit: Ok after prodding around, I remender sendappearance for making an npc lay, or sit doesn't work in EVENT_SPAWN so I tried the following -


sub EVENT_SPAWN {
quest::settimer("pp1", 1);
}

sub EVENT_TIMER {
if($timer eq "pp1") {
$npc->SendAppearanceEffect(55, 33, 52);
}
}

and it worked..

RichardoX
03-15-2010, 01:18 PM
I have some more to add to the list and contribute

#180 = Water Forming on Ground(non-perma)
#185 = Fire Breath (Big)(non-perma)
#186 = Black Fire Breath(non-perma)
#187 = Fire Forming on Ground(non-perma)
#188 = Fire Blasting from Ground(non-perma)
#189 = Electricity Blasting from Ground(non-perma)
#190 = Realistic Burning Fire(non-perma)
#199 = Green Smoke(non-perma)
#200 = Green Smoke Ring at Feet(non-perma)
#201 = White Smoke Ring at Feet(non-perma)
#202 = Slow Blue/Purple/Pink Fading Smoke Cloud (non-perma)
#203 = White Sparkles flying upward (non-perma)
#204 = White Smoke Blast (non-perma)
#205 = Water Forming on Ground (non-perma)
#206 = Ice Forming on Ground (non-perma)
#207 = Ice Floating around Ground (non-perma)
#208 = White Sparkles forming on Ground (non-perma)
#209 = Green Fart(non-perma)
#210 = Yellow Sparkles eminating from Ground (perma)
#211 = White Sparkles eminating from Ground (perma)
#212 = White Smoke Emitting at Feet (perma)
#213 = Black Smoke Emitting at Feet (perma)
#214 = Yellow Sparkle Explosion (non-perma)
#215 = Arora Borealis Effect from Feet (non-perma)
#216 = White Smoke Poof from Ground (non-perma)
#217 = Blue Sparks Ring at Feet (non-perma)
#218 = White Spark at Feet (non-perma)
#219 = Fire Pulse at Feet (non-perma)
#220 = Black Smoke Emitting at Feet (non-perma)
#221 = Electric Shock at Feet (non-perma)
#222 = Electric Strike on Body (non-perma)
#223 = Blue Sparkle at Feet (non-perma)
#224 = Small Sparkle falling from feet into ground (non-perma)
#225 = Small Electric feild at feet (non-perma)
#226 = Small Electric feild at feet (perma)
#227 = Small Directional Gust of Dark Smoke (perma)
#228 = Small Emitting Smoke from Feet (perma)
#229 = Small Fire Embers from Feet (perma)
#230 = Various Yellow Sparkles around Body (perma)
#231 = Gentle Emitting Smoke from Feet (perma)
#232 = Small Red Flame at Feet (non-perma)
#233 = Swirling Gust of Dark Smoke (non-perma)
#234 = Nothing Visible (?)
#235 = Nothing Visible (?)
#236 = Small Electric Pulse at Feet (non-perma)
#237 = Electric Strike at Feet (non-perma)
#238 = Small Random Electric Shock at Feet (non-perma)
#239 = Small Blue Gush of Smoke at Feet (non-perma)
#240 = Small White Gush of Smoke at Feet (non-perma)

Lillu
04-17-2010, 06:19 PM
This is really awesome, it offers intense customization possibility! Thanks a lot for the lists! I'm playing with it for an hour now. :P

proximity works too btw. timers for temp.effects could be set for as long as the effect lasts so they dont overlap. also, perma effects should be set only once, else the effect will slowly become a mess. ;)

Lillu
04-22-2010, 06:18 PM
I might miss something but this seems to work only on NPC that are global (model)?

trevius
04-22-2010, 06:41 PM
All of these effects seem to be based on the size of the NPC. The small effects may be barely noticeable if at all for certain NPCs, but they should all still work just fine. I suspect that the issue you are seeing is probably related to some NPCs in the Database being set to a size of 0, which shows them as size 6 in game, but this effect might still think they are size 0, and thus now show an effect. I haven't tested this yet to verify, but this is my current theory on the issue you are seeing.

For the permanent affects, I suggest you specify a specific $client at the end of the command so it only sends to 1 client at a time. That way, when players zone in, you could send it to them at that time and not again, so everyone sees the effect without the stacking problems.

Lillu
04-23-2010, 05:11 PM
it's definitely not a size issue. I haven't got enough time to try everything, but experiencing the issue in BoThunder with giants and storm riders too. I tried to resize the npcs, the issue is still there.
I'm using the same script and effect which works perfectly in BoT with a global npc model (human).
Will try to test it in other zones and npc to spot the issue.

Kayen
04-23-2010, 07:50 PM
I have discussed with Trev on our server too.

I have noticed many NPC's that will not display appearances. For example the global skeleton model for one. Simply changing the race will allow it work correctly.

Lillu
04-23-2010, 08:18 PM
yep, basically as an ultimate workaround, I'm setting up invisible man NPCs and put them wherever. Can simply change their size and effect with a simple #repop and #reloadquest.

RichardoX
04-23-2010, 08:25 PM
Yeah, the effects can get laggy if you repop too many perma's. which is why I made note of that.. I have the entire list of effects and wether or not their perma on my server box but its down right now as I am in the middle of moving.

trevius
04-24-2010, 02:29 AM
Here are some more to add to the list that I made a while ago and hadn't posted yet:

305-312 class auras
330 static small cloud puff bursts
331 nothing?
332 static small diagonal lightning bolts
333 small white cloud burst
334 static widespread falling snow flakes
335 static widespread shooting up rocks
336 static wide orange shooting up particle ring
337 static wide dark blue shooting up particle ring
338 static wide green shooting up particle ring
339 static wide purple shooting up particle ring
340 static wide gold shooting up particle ring
341 static wide ice blue shooting up particle ring
342 static wide black shooting up particle ring
343 static wide grey shooting up particle ring
344 static wide blood red shooting up particle ring
345 static widespread raining red notes
346 static widespread small slow blue/white falling particles
347 static widespread random ground flame bursts
348 static widespread fast brown ground fog/smoke
349 static widespread fast white ground fog/smoke
350 static widespread fast light black ground fog/smoke
351 static widespread fast black ground fog/smoke
352 static widespread fast purple ground fog/smoke
353 static widespread fast and heavy lightning
354 static widespread white tornado clouds
355 static widespread poison clouds
356 static widespread green bee clouds
357 static widespread blue/white pulsing orbs particles in a ball shape
358 static small fast thick black smoke
359 static small flame sparks
360 static medium tall skinny white flame
361 small pink sparkler bursts
362 nothing?
363 medium flame ring burst
364 medium firework burst
365 medium smoke ring around target
366 static medium flame ring
367 static medium fast flame sparks
368 medium flame burst
369 medium light white smoke
370 medium grey smoke ring around target
371 medium smoke cloud from hands
372 medium quick smoke puffs ring around target
373 medium fast smoke puffs ring around target
374 tiny blue/white spinning smoke ball
375 tiny blue/white spinning smoke ball short duration
376 small blue/white spinning smoke ball short duration
377 small green spinning smoke ball
378 small blue/white spinning smoke ball
379 medium blue/white spinning smoke ball
380 medium light smoke ring around target
381 medium light smoke puffs ring around target
382 medium fire burst
383 medium black smoke cloud burst
384 nothing?
385 medium light smoke ring around target
386 medium flame ring around target
387 medium smoke puff ring around target
388 static small purple cloud puff bursts
389 static widespread overhead swirling black clouds
390 static widespread huge ice shard particles
391 static widespread raining rainbow notes
392 static widespread orange orb particles
393 static widespread green/blue/red orb particles
394 static widespread pink/purple orb particles
395 static widespread grey/white orb particles
396 static widespread brown orb particles
397 static small white ball of dense bubble particles
398 static small blue/white glowing smoke ball
399 static tiny white diagonal shooting particles
400 static small fire
401 nothing?
402 static small fire smoke
403 static small campfire like flame
404 static small campfire sparks
405 static small inner campfire flame
406 static small campfire electric sparks
407 static medium very low density fire sparks that shoot far
408 static small white glowing smoke ball
409 static small purple smoke ball
410 static small ash particles
411 static small white/blue smoke ball
412 static small verticle white smoke
413 static small purple cone shaped smoke
414 static small purple smoke ball
415 static small fast purple shooting particles
416 static small fast smoke
417 static small fire
418 static small pink fire ball
419 static small fire sparks
420 static small very low density fire sparks that shoot far
421 static small aqua/pink/purple/white flame
422 static medium campfire like flame
423 static medium campfire smoke
424 static small diagonal fire particles slow
425 static small diagonal fire particles slower
426 static small bouncy fire particles
427 static small bouncy fire particles
428 static tiny circular Fire ring that is vertical
429 static small circular Fire ring that is vertical
430 static small diagonal fire particles
431 static small ball of fire particles
432 static small blue and yellow rotating smoke rings
433 static small blue and yellow particle rings that loop
434 static small blue and yellow flame sword weapon particles
435 static small blue and yellow flame wall weapon particles
436 static small blue and brown blocky smoke weapon particles


Haven't really tried on SoD yet to see if they added more and what new ones they added.

Kayen
04-24-2010, 11:08 AM
yep, basically as an ultimate workaround, I'm setting up invisible man NPCs and put them wherever. Can simply change their size and effect with a simple #repop and #reloadquest.

Yeah that is what I ended up doing.

But it does limit its function to a certain degree.

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/v450/Blade654/particle.jpg

http://img.photobucket.com/albums/v450/Blade654/particle2.jpg

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

}
}