ServUO Version
Publish 57
Ultima Expansion
Endless Journey
When a player holds a bow and fires an arrow, the default EffectID of the arrow is "0x0F42"
It is. For example, when you set the color of the arrow to "Hue = 1150;" and you fire the color of the arrow to the default color. Is there a way to set the color of the EffectID when the arrow is fired?
 

There is another overload method for MovingEffect that takes two more arguments; hue and render.

You can add an EffectHue property to match EffectID and then use it;
Code:

attacker.MovingEffect(damageable, EffectID, 18, 1, false, false, EffectHue, 0);
+ Items/Equipment/Weapons/BaseRanged.cs:
CS0103: Line 221: The name 'EffectHue' does not exist in the current context
Scripts: One or more scripts failed to compile or no script files were found.
Thank you for your answer.
I added it as you told me to BaseRanged.cs , but the error as above appears.
 
Back