SphereCommunity
Remove char anim while spell cast - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Remove char anim while spell cast (/Thread-Remove-char-anim-while-spell-cast)

Pages: 1 2


Remove char anim while spell cast - Rizz - 01-20-2013 01:47 AM

Is there a way to remove the caster animation?
Not the animation of the spell but the movement of player himself (i can't remember which animation numbers are... maybe 13 and 14).

I ask this bcuz when you try to cast some spells with a gargoyle player, he disappears for 1 second or land to the ground if he was flying.
This happen bcuz sphere does not read the entire gargoyle animation (just walk, run and fly).

So i thought to use gargoyle only for mage but i need to know how to remove char animation so the player could continue to fly without any effect.

Otherwise is possible to transfer all the gargoyle animations from own files to normal anim.mul?


RE: Remove char anim while spell cast - darksun84 - 01-20-2013 01:56 AM

SPELLFLAG_NO_ANIM should be

Edit : Wrong, it's spellflag_no_castanim


RE: Remove char anim while spell cast - Rizz - 01-20-2013 02:31 AM

mmmh but this will affect all the casters (non gargoyle too) at the same time, may i wrong?


RE: Remove char anim while spell cast - Mordaunt - 01-20-2013 02:33 AM

Yes that would affect all players.


RE: Remove char anim while spell cast - Rizz - 01-20-2013 03:48 AM

mmh so it's not the solution for me. is there another way?


RE: Remove char anim while spell cast - Mordaunt - 01-20-2013 04:42 AM

Unfortunately, I don't think there is. I do recall chatter of this over on the bug tracker so I believe it will be getting fixed in the core at some point


RE: Remove char anim while spell cast - Ben - 01-20-2013 05:00 AM

The issue here is that the gargoyle uses a new packet for movement. ShyriuX said he was working on it... at some point last year...


RE: Remove char anim while spell cast - Rizz - 01-20-2013 11:52 PM

Could we have an override tag to do this?


RE: Remove char anim while spell cast - admin phoenix - 01-21-2013 07:42 PM

I think you can try this one under the @start trigger for the spell

on=@start
if (<obody> == c_gargoyle) // or whatever
serv.spell.<argn1>.flags |= spellflag_no_castanim
endif

maybe then you have to delete the flag then in @effect?
don´t know if this setting will only work for one time.
try and check it


RE: Remove char anim while spell cast - Rizz - 01-21-2013 10:17 PM

(01-21-2013 07:42 PM)admin phoenix Wrote:  I think you can try this one under the @start trigger for the spell

on=@start
if (<obody> == c_gargoyle) // or whatever
serv.spell.<argn1>.flags |= spellflag_no_castanim
endif

maybe then you have to delete the flag then in @effect?
don´t know if this setting will only work for one time.
try and check it

Tested.
With @start, with the first spell you see the animation, after the firt spell the animation disappears but for all players and you need to do something under other trigger.

I think work in this way could not be the best solution for stability but i don't know