logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Linux nwnx-plugins/ports by dumbo:ODBC2, ResMan, Chat plugin
Goto page Previous  1, 2, 3, 4, 5, 6, 7
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
Epitaffio



Joined: 13 Jul 2010
Posts: 29
Location: Italy

PostPosted: Tue Aug 02, 2011 18:01    Post subject: Reply with quote

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
View user's profile Send private message
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Tue Aug 02, 2011 18:01    Post subject: Reply with quote

Apparently so. :)
Back to top
View user's profile Send private message
Epitaffio



Joined: 13 Jul 2010
Posts: 29
Location: Italy

PostPosted: Tue Aug 02, 2011 23:07    Post subject: Reply with quote

I love you and, obviously virusman Embarassed
Back to top
View user's profile Send private message
Epitaffio



Joined: 13 Jul 2010
Posts: 29
Location: Italy

PostPosted: Thu Oct 13, 2011 15:52    Post subject: Reply with quote

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
View user's profile Send private message
Ravine



Joined: 26 Jul 2006
Posts: 105

PostPosted: Thu Oct 13, 2011 17:13    Post subject: Reply with quote

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
View user's profile Send private message
Epitaffio



Joined: 13 Jul 2010
Posts: 29
Location: Italy

PostPosted: Thu Oct 13, 2011 19:25    Post subject: Reply with quote

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
View user's profile Send private message
acomputerdood



Joined: 30 Nov 2008
Posts: 27

PostPosted: Fri Oct 05, 2012 14:03    Post subject: Reply with quote

just wanted to point out that ResMan is pretty awesome.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7
Page 7 of 7

 
Jump to:  
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