View previous topic :: View next topic |
Author |
Message |
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Feb 18, 2009 22:56 Post subject: |
|
|
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 |
|
|
TroveLord
Joined: 22 Nov 2006 Posts: 136 Location: Italy
|
Posted: Thu Feb 19, 2009 12:23 Post subject: |
|
|
Too bad. Thanks for the explanation. |
|
Back to top |
|
|
LiquidAcid
Joined: 25 Feb 2009 Posts: 2
|
Posted: Wed Feb 25, 2009 15:14 Post subject: |
|
|
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
ty in advance
Dan. |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Wed Feb 25, 2009 15:35 Post subject: |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Feb 25, 2009 16:03 Post subject: |
|
|
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
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 |
|
|
LiquidAcid
Joined: 25 Feb 2009 Posts: 2
|
Posted: Thu Feb 26, 2009 1:36 Post subject: |
|
|
Well, was worth a try anyhow, ty for your help. |
|
Back to top |
|
|
Via Con Diablos
Joined: 23 Nov 2005 Posts: 55
|
Posted: Tue May 12, 2009 9:38 Post subject: |
|
|
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 |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Tue May 12, 2009 20:56 Post subject: |
|
|
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 |
|
|
Via Con Diablos
Joined: 23 Nov 2005 Posts: 55
|
Posted: Tue May 12, 2009 22:23 Post subject: |
|
|
LIve interserver? or just database driven messaging? |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Tue May 12, 2009 23:57 Post subject: |
|
|
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 |
|
|
Kynee
Joined: 27 Jun 2009 Posts: 1
|
Posted: Sat Jun 27, 2009 3:17 Post subject: |
|
|
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 )
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 |
|
|
TroveLord
Joined: 22 Nov 2006 Posts: 136 Location: Italy
|
Posted: Sun Jun 28, 2009 16:19 Post subject: |
|
|
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 |
|
|
dmguild
Joined: 20 Sep 2007 Posts: 15
|
Posted: Sat Jul 25, 2009 21:17 Post subject: |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
|
Back to top |
|
|
dmguild
Joined: 20 Sep 2007 Posts: 15
|
Posted: Mon Jul 27, 2009 4:48 Post subject: |
|
|
Works perfect! Thanks. |
|
Back to top |
|
|
|