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 
 
Chat plugin for NWNX4?
Goto page Previous  1, 2, 3 ... 9, 10, 11
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Feb 18, 2009 22:56    Post subject: Reply with quote

TroveLord wrote:
I'm looping the players and sending them messages. The sender is the PC speaking, the recipients are the looped players. I need to show different texts to players without using the private channel. Is that possible.
No. The game ignores the Recipient parameter unless you're using private channel.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
TroveLord



Joined: 22 Nov 2006
Posts: 136
Location: Italy

PostPosted: Thu Feb 19, 2009 12:23    Post subject: Reply with quote

Too bad. Thanks for the explanation.
Back to top
View user's profile Send private message
LiquidAcid



Joined: 25 Feb 2009
Posts: 2

PostPosted: Wed Feb 25, 2009 15:14    Post subject: Reply with quote

Hey, I've been asked by someone to use this plugin to suppress a hardcoded message of NWN2.

Without documentation, I'm like fumbling in a big way.

I added the following script to the on client enter script

Code:
#include "nwnx_chat"

void main()
{
   object oPC=GetFirstEnteringPC();
   while (oPC!=OBJECT_INVALID)
   {
      NWNXChat_PCEnter(oPC);
      oPC=GetNextEnteringPC();
   }   
}


and a similar to the on client leave.

In a script I am using the following excerpt...

Code:
      effect eHeal=EffectHeal(iDamReduction);
      ApplyEffectToObject(DURATION_TYPE_INSTANT,eHeal,oPC,0.0f);
      string sHealText=NWNXChat_GetMessageText();
      NWNXSetInt("CHAT", "SUPRESS", sHealText, 0, 1);

Anyhow, I can imagine I'm like flying threw the bermuda triangle, and thinking I'm somewhere over paris atm, I wouldn't be surprised however if I am even further off track than that.

If anyone could gimme a hand in how I should actually be doing this - I'd appreciate it Wink

ty in advance
Dan.
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Wed Feb 25, 2009 15:35    Post subject: Reply with quote

You can't use the chat plugin for this, as the heal message isn't a chat message. It might be possible with an entirely new hook, but it might not be possible at all (if the message is displayed by the client whenever it "notices" you've been healed, rather than being a separate request from the server).
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Feb 25, 2009 16:03    Post subject: Reply with quote

LiquidAcid wrote:

In a script I am using the following excerpt...

Code:
      effect eHeal=EffectHeal(iDamReduction);
      ApplyEffectToObject(DURATION_TYPE_INSTANT,eHeal,oPC,0.0f);
      string sHealText=NWNXChat_GetMessageText();
      NWNXSetInt("CHAT", "SUPRESS", sHealText, 0, 1);

Anyhow, I can imagine I'm like flying threw the bermuda triangle, and thinking I'm somewhere over paris atm, I wouldn't be surprised however if I am even further off track than that.

If anyone could gimme a hand in how I should actually be doing this - I'd appreciate it Wink

ty in advance
Dan.
This won't work.
Message manipulation functions work only in the chat event handler script.
Healing message is another type of messages (message by strref) which is not hooked in nwnx_chat.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
LiquidAcid



Joined: 25 Feb 2009
Posts: 2

PostPosted: Thu Feb 26, 2009 1:36    Post subject: Reply with quote

Well, was worth a try anyhow, ty for your help.
Back to top
View user's profile Send private message
Via Con Diablos



Joined: 23 Nov 2005
Posts: 55

PostPosted: Tue May 12, 2009 9:38    Post subject: Reply with quote

Has anyone considered linking this with an IRC lib for live inter server communication via custom channels? I know some functionality would be broken such as click to whisp etc, but everything else seems possible...
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Tue May 12, 2009 20:56    Post subject: Reply with quote

Via Con Diablos wrote:
Has anyone considered linking this with an IRC lib for live inter server communication via custom channels? I know some functionality would be broken such as click to whisp etc, but everything else seems possible...

I know GrinningFool has done some work on the NWN2-IRC front, though I don't think he plans to use it for inter-server communication, on the basis that there are better options for that.
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
Via Con Diablos



Joined: 23 Nov 2005
Posts: 55

PostPosted: Tue May 12, 2009 22:23    Post subject: Reply with quote

LIve interserver? or just database driven messaging?
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Tue May 12, 2009 23:57    Post subject: Reply with quote

At the moment I think it just echoes everything said on the Talk channel to the IRC channel the bot is sitting in.
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
Kynee



Joined: 27 Jun 2009
Posts: 1

PostPosted: Sat Jun 27, 2009 3:17    Post subject: Reply with quote

Please, can you post a demo module or a guide to show how this system works and what i have to download? (a demo module is better Smile )

i have downloaded the lateset version, put the dll in the nwn2 root dir and copy the include script into my module.
but i do not see any event for the onload, i do not understand how this little include can make all the work.
Back to top
View user's profile Send private message
TroveLord



Joined: 22 Nov 2006
Posts: 136
Location: Italy

PostPosted: Sun Jun 28, 2009 16:19    Post subject: Reply with quote

Kynee wrote:
Please, can you post a demo module or a guide to show how this system works and what i have to download?

You don't need this anymore when 1.23 is out since it will include it.
Read this thread.
Back to top
View user's profile Send private message
dmguild



Joined: 20 Sep 2007
Posts: 15

PostPosted: Sat Jul 25, 2009 21:17    Post subject: Reply with quote

I've been using this plugin to capture pc's text for voice command and logging. How is the NWN2 1.23 going to replace that function?

Please update this plugin to work with 1.23 unless someone can help me elseways.

THanks
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Jul 26, 2009 0:13    Post subject: Reply with quote

An update for Chat plugin can be found here:
http://www.nwnx.org/phpBB2/viewtopic.php?t=1334
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
dmguild



Joined: 20 Sep 2007
Posts: 15

PostPosted: Mon Jul 27, 2009 4:48    Post subject: Reply with quote

Works perfect! Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3 ... 9, 10, 11
Page 11 of 11

 
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