Aller au contenu

Photo

Shout Disable


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
BelowTheBelt

BelowTheBelt
  • Members
  • 394 messages

I disabled shout in my module's ini, which causes the following not to work:

AssignCommand(GetModule(), SpeakString(sMessage, TALKVOLUME_SHOUT));

 

Is there a workaround to allow the module to send shouts despite the disabled channel?

 

As a temporary solution, I'm just doing a loop through the PCs to send them the message.  I'm thinking that is all the command is doing anyway.

 

 



#2
Shadooow

Shadooow
  • Members
  • 4 471 messages

I disabled shout in my module's ini, which causes the following not to work:

AssignCommand(GetModule(), SpeakString(sMessage, TALKVOLUME_SHOUT));

 

Is there a workaround to allow the module to send shouts despite the disabled channel?

 

As a temporary solution, I'm just doing a loop through the PCs to send them the message.  I'm thinking that is all the command is doing anyway.

And this worked before? I was under impression that you need creature to use speakstring



#3
BelowTheBelt

BelowTheBelt
  • Members
  • 394 messages

Definitely.  Works fine as long as you allow shouting.  Been using it for years and just made the ini change this past week.



#4
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

You should allow shout and put your restrictions in module event onplayerchat. This way you control who can shout in server.


  • BelowTheBelt et Shadooow aiment ceci

#5
xa0t3k

xa0t3k
  • Members
  • 9 messages

mod_chat

//disable shout for players
if(GetPCChatVolume() == TALKVOLUME_SHOUT && GetIsPC(oChater) && !GetIsDM(oChater))
{
    SendColorMessageToPC(oChater,"Shout channel disabled.",TXT_COLOR_RED);
    SetPCChatVolume(TALKVOLUME_TALK);
}


and enable shout in .ini


  • BelowTheBelt aime ceci

#6
BelowTheBelt

BelowTheBelt
  • Members
  • 394 messages

Thanks WhiteTiger and xa0t3k.  This worked well.  No need for a workaround any longer.



#7
_Guile

_Guile
  • Members
  • 685 messages
Sure, don't disable shout, apply a variable to the PC's via the OnClientEnter event script, then in the OnPlayerChat Event script, check the channel, if shout and the PC has the variable, then set their chat channel to talk .... (for that pc only)...