Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Mute casting spell
Author Message
xtronchox
Apprentice
*

Posts: 16
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2020
Reputation: 0



Post: #1
Help with Mute casting spell
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!
04-25-2020 10:59 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 985
Likes Given: 5
Likes Received: 225 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: Help with Mute casting spell
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
04-25-2020 05:44 PM
Find all posts by this user Like Post Quote this message in a reply
xtronchox
Apprentice
*

Posts: 16
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2020
Reputation: 0



Post: #3
RE: Help with Mute casting spell
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 !!
04-25-2020 08:27 PM
Find all posts by this user Like Post Quote this message in a reply
xtronchox
Apprentice
*

Posts: 16
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2020
Reputation: 0



Post: #4
RE: Help with Mute casting spell
(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.
05-03-2020 10:10 PM
Find all posts by this user Like Post Quote this message in a reply
xtronchox
Apprentice
*

Posts: 16
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2020
Reputation: 0



Post: #5
RE: Help with Mute casting spell
(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!
(This post was last modified: 05-08-2020 11:59 AM by xtronchox.)
05-08-2020 11:58 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

This forum uses Lukasz Tkacz MyBB addons.