SphereCommunity
Help with Mute casting spell - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Help with Mute casting spell (/Thread-Help-with-Mute-casting-spell)



Help with Mute casting spell - xtronchox - 04-25-2020 10:59 AM

Hi fliends.

First of all, sorry for my painful English.

I've been trying to muted the players while they are casting spell to prevent them from covering the name of the spell they are casting and I can't find the solution. Someone help me?

Sphere version 56b

Thank!


RE: Help with Mute casting spell - Coruja - 04-25-2020 05:44 PM

You must create a speech template to mute everything, and then set/unset this speech on player when it start/stop magery skill

sphere_skills.scp:
Code:
[SKILL 25]
DEFNAME=Skill_Magery
//...

ON=@Start
DSPEECH +spk_magery

ON=@Abort
DSPEECH -spk_magery

ON=@Success
DSPEECH -spk_magery

ON=@Fail
DSPEECH -spk_magery


[SPEECH spk_magery]
ON=*
return 1



RE: Help with Mute casting spell - xtronchox - 04-25-2020 08:27 PM

Thanks you Coruja !!! it is running!

I have this:

[SPEECH spk_player]
ON=*
IF (<flags>&statf_war)
return 1
else
return 0
end if

but your metod is very welll !!

Thanks !!


RE: Help with Mute casting spell - xtronchox - 05-03-2020 10:10 PM

(04-25-2020 05:44 PM)Coruja Wrote:  You must create a speech template to mute everything, and then set/unset this speech on player when it start/stop magery skill

sphere_skills.scp:
Code:
[SKILL 25]
DEFNAME=Skill_Magery
//...

ON=@Start
DSPEECH +spk_magery

ON=@Abort
DSPEECH -spk_magery

ON=@Success
DSPEECH -spk_magery

ON=@Fail
DSPEECH -spk_magery


[SPEECH spk_magery]
ON=*
return 1


I have realized that if you cast a spell on the ground or an element like a sign, then speech does not reestablish you. The client says you can't cast the spell there, but leaves you unable to speak.


RE: Help with Mute casting spell - xtronchox - 05-08-2020 11:58 AM

(05-03-2020 10:10 PM)xtronchox Wrote:  
(04-25-2020 05:44 PM)Coruja Wrote:  You must create a speech template to mute everything, and then set/unset this speech on player when it start/stop magery skill

sphere_skills.scp:
Code:
[SKILL 25]
DEFNAME=Skill_Magery
//...

ON=@Start
DSPEECH +spk_magery

ON=@Abort
DSPEECH -spk_magery

ON=@Success
DSPEECH -spk_magery

ON=@Fail
DSPEECH -spk_magery


[SPEECH spk_magery]
ON=*
return 1


I have realized that if you cast a spell on the ground or an element like a sign, then speech does not reestablish you. The client says you can't cast the spell there, but leaves you unable to speak.


SOLUCIONADO, gracias !! // RESOLVE THANK!