SphereCommunity
Color Of Hits Bar When Poisoned - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Color Of Hits Bar When Poisoned (/Thread-Color-Of-Hits-Bar-When-Poisoned)



Color Of Hits Bar When Poisoned - kduzera - 09-21-2018 11:43 PM

Hi guys! Smile

I have a little problem.

When char reflects the Poison Spell with Magic Reflection, the caster of Poison Spell gets poisoned, but, the Hits Bar don't change the color for green.


How can i solve this problem?


Thank U




//////////////////////SCRIPTS//////////////////////

POISON SCRIPT

[SPELL 20]
DEFNAME=s_poison
NAME=Poison
SOUND=snd_spell_poison
RUNES=IN
CAST_TIME=3.3
RESOURCES=i_reag_nightshade
RUNE_ITEM=i_rune_poison
SCROLL_ITEM=i_scroll_poison
FLAGS=spellflag_dir_anim|spellflag_targ_obj|spellflag_harm|spellflag_fx_targ|spe​llflag_resist
EFFECT_ID=i_fx_curse
EFFECT=300,500
LAYER=layer_flag_poison
DURATION=100.0,150.0
MANAUSE=18
SKILLREQ=MAGERY 30.0
INTERRUPT=100.0,100.0


[SPELL 36]
// NOTE: This is a proactive type of protection that no one wants to see run out. Because of it's level and the amount of reagents I would think this spell last a bit longer in light of it only being a one time reflect as opposed to Reactive and protection. Should it have a duration at all or remain until dispel'ed or hit ???
DEFNAME=s_magic_reflection
NAME=Magic Reflection
SOUND=snd_spell_magic_reflection
RUNES=IJS
CAST_TIME=4.0
RESOURCES=i_reag_garlic,i_reag_mandrake_root,i_reag_spider_silk
RUNE_ITEM=i_rune_magic_reflection
SCROLL_ITEM=i_scroll_magic_reflection
FLAGS=spellflag_dir_anim|spellflag_targ_char|spellflag_fx_targ|spellflag_good|sp​ellflag_playeronly|spellflag_bless
EFFECT_ID=i_fx_bless_effect
EFFECT=0
LAYER=layer_spell_magic_reflect
DURATION=4*60.0,8*60.0
MANAUSE=18
SKILLREQ=MAGERY 50.0
INTERRUPT=100.0,100.0


RE: Color Of Hits Bar When Poisoned - Coruja - 10-01-2018 11:10 AM

what sphere build are you using?

I'm testing here on latest 56d build with default script pach and it's working fine. I casted magic reflection + poison on a NPC, it reflected the spell and I got poisoned with green health bar set properly