Aller au contenu

Photo

PW - making shout be the same as "talk"


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

#1
Alice24

Alice24
  • Members
  • 19 messages

Hi guys. 

I tried googling the answer but no luck.

 

I don't want players to be able to use "shout" mode in my PW. If they use "shout" I'd like it to be automatically converted to "talk" mode after the player "enter". Can I do that? 



#2
GhostOfGod

GhostOfGod
  • Members
  • 863 messages

Sure can. In your modules OnPlayerChat event script have it look something like so:

 

 

void main()
{

    string sMessage = GetPCChatMessage();
    object oPC = GetPCChatSpeaker();
    int iVolume = GetPCChatVolume();

    if (iVolume == TALKVOLUME_SHOUT)
    {
        SetPCChatVolume(TALKVOLUME_TALK);
        SendMessageToPC(oPC, "SHOUTING is not permitted on this server.");
    }
}

 

 

The message to PC is optional of course. Just an example. Good luck.


  • Squatting Monk aime ceci

#3
Alice24

Alice24
  • Members
  • 19 messages

Thank you very much, GhostofGod :) 



#4
Thayan

Thayan
  • Members
  • 244 messages

Or you can just modify the nwnplayer.ini on your server and change Disallow Shouting to 1. That will convert any non DM or DM possessed character's shout to standard chat.


  • Squatting Monk aime ceci