The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






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

Posts: 24
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: 987
Likes Given: 5
Likes Received: 226 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: 24
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: 24
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: 24
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)