View previous topic :: View next topic |
Author |
Message |
Epitaffio
Joined: 13 Jul 2010 Posts: 29 Location: Italy
|
Posted: Tue Aug 02, 2011 18:01 Post subject: |
|
|
Yep, the script i use for test it's that without the switch and just with a sendMessage with type and subtype.
So i only need to add "cc_script" line in the ini file? *_* |
|
Back to top |
|
|
elven
Joined: 28 Jul 2006 Posts: 259 Location: Germany
|
Posted: Tue Aug 02, 2011 18:01 Post subject: |
|
|
Apparently so. :) |
|
Back to top |
|
|
Epitaffio
Joined: 13 Jul 2010 Posts: 29 Location: Italy
|
Posted: Tue Aug 02, 2011 23:07 Post subject: |
|
|
I love you and, obviously virusman |
|
Back to top |
|
|
Epitaffio
Joined: 13 Jul 2010 Posts: 29 Location: Italy
|
Posted: Thu Oct 13, 2011 15:52 Post subject: |
|
|
Hi guys, there is a way to identify the message types on the channel chat, like the whisper, the dm and so on?
They give me all the same result, Type 11 and SubType 71 |
|
Back to top |
|
|
Ravine
Joined: 26 Jul 2006 Posts: 105
|
Posted: Thu Oct 13, 2011 17:13 Post subject: |
|
|
Epitaffio wrote: | Hi guys, there is a way to identify the message types on the channel chat, like the whisper, the dm and so on?
They give me all the same result, Type 11 and SubType 71 |
nwnx_chat works nice...what Type and SubType?
Include nwnx_chat.nss, and use like this:
Code: |
#include "nwnx_chat"
void main()
{
object oPC = OBJECT_SELF;
object oPCn;
struct chat_message cmMessage;
cmMessage = NWNXChat_GetMessage();
int nMode = cmMessage.Mode;
object oTo = cmMessage.Recipient;
string sText= cmMessage.Text;
string sSpeaker;
sSpeaker = GetPCPlayerName(oPC);
if (nMode==CHAT_CHANNEL_TALK)
...
else if(nMode == CHAT_CHANNEL_WHISPER)
...
else if(nMode == CHAT_CHANNEL_SHOUT)
...
|
|
|
Back to top |
|
|
Epitaffio
Joined: 13 Jul 2010 Posts: 29 Location: Italy
|
Posted: Thu Oct 13, 2011 19:25 Post subject: |
|
|
Hum.. i'm using these function:
int nType = NWNXChat_GetCCMessageType();
int nSubtype = NWNXChat_GetCCMessagSubtype();
I had not seen the NWNXChat_GetMessage struct -_-"
Shame on me. |
|
Back to top |
|
|
acomputerdood
Joined: 30 Nov 2008 Posts: 27
|
Posted: Fri Oct 05, 2012 14:03 Post subject: |
|
|
just wanted to point out that ResMan is pretty awesome. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|