Concerning StaticEffect

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Concerning StaticEffect

Post by Xuri »

Example:

pUser.StaticEffect( 0x091b, 1, 0 );

What exactly are the two latter numbers for? How are they used? In the docs it says the first is "speed", the second "loop". But why does my effect play for over 10 seconds with the above setting? *puzzled*
-= Ho Eyo He Hum =-
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

In the middle of documenting and updating documentaiton on much of the JS engine.

When I make it to staticeffect, I'll see how it runs, and make sure the doc properly reflects how it should behave. If it, at that point, still isn't behaving properly, it's a bug. ;)
Scott
Maarc
Developer
Posts: 576
Joined: Sat Mar 27, 2004 6:22 am
Location: Fleet, UK
Has thanked: 0
Been thanked: 0
Contact:

Post by Maarc »

StaticEffect( effectID, speed, loop[, explode] );

Explode is only in effect if pUser is an item, not a character. Interestingly, the packet doc sees it as duration, rather than loop. Where 0 == really long, 1 == shortest. But then again, my packet doc is old.

If you want other references, look at spells DFN in the STATFX lines. The first two numbers are the effect ID, the last two are speed and loop, respectively.
mrboris
UOX3 Neophyte
Posts: 28
Joined: Wed Jun 30, 2004 4:00 am
Has thanked: 0
Been thanked: 0
Contact:

Post by mrboris »

xuri, what i personally think it is and i'm pretty sure it works is if you look at inside UO at the start of the static effect, count from that tile to the end of end of the effect from start to finish = loop #, and speed can be adjusted, but i think standard is probably around 5.
Post Reply