Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN SCRIPTS

- Jump to comments -
Title  NWNX-Chat Functions
Author  Fireboar
Submitted / Updated  12-07-2007 / 07-20-2008
Category  Scripting routines
Expansions  Works on all versions
Format  Code Only
Type  Type - Listening
Includes  Custom
Description
A powerful set of functions that allow scripters full control over PC chat. Includes hooking, suppression and more. Note: This requires NWNX2.

Included in this package: NWNX-Chat plugin for NWNX, two scripts, and detailed instructions to help you get started. The library (fb_inc_chat.nss) is required for all these functions, the chat script (fb_chat.nss) is a good foundation for a very potent and entirely unique chat system.

Please do edit fb_chat.nss to your heart's content! I am only providing the groundwork for you to easily implement many useful functions; it's your job to code them in.

FEATURES INCLUDED:
- Ability to suppress text spoken with one simple function: fbCHSuppress();
- Ability to identify the target of a tell
- Complete control over every chat channel; every line spoken by every PC.
- A more powerful version of the SpeakString function: fbCHSpeakString. It allows you to speak in any chat channel, and specify a target if the Tell channel is chosen.
- Automatic emote parsing: simple roleplaying emotes such as *bows* will automatically make the PC perform that action visually.
- Anti-death-cheating: blocked talk and whisper messages sent when dead (optional).
- Customisable console: contains the basis for a potent and efficient "console" system, which allows players to enter certain commands to perform special actions (thus eliminating the need for clunky player and DM widgets).


COPYRIGHT NOTICE:
This is released under the GDL (GPL and Drinks License) which includes all the freedom of the GPL, except it also recommends that, if you like this package, you buy the maker a drink (or send some money via paypal to [email protected] so I can buy the drink myself). You are entirely free to distribute, modify, hack, blow to pieces and do whatever with this package as long as you include this statement somewhere in it (preferably somewhere that people will read it). Please give the original author of the scripts (Fireboar) some credit.


CREDITS:
- nwnx_chat.dll plugin for NWNX by dumbo and virusman (http://dumbo.nm.ru/). For linux users, nwnx_chat.so is available from this location.
- fb_chat.nss: Originally based around Gigaschatten's Dynamic Listeners script, but now all that is left of the original are tattered remains. By Fireboar.
- fb_inc_chat.nss: Originally by Dumbo; loads of added extensibility and documentation added by Fireboar.
- NWNX: Not part of the package, but I ought to give them credit anyway. Kudos to the clever people at Avalis for making all of this possible. (http://nwnx.org/)


NOTE FOR NWN 1.69 USERS:

Please see the nwnx.org forums and use the updated chat plugin, since the current one will only work for 1.68 and below. Windows users need nwnx_chat 0.3.4 or later, Linux users need nwnx_chat 0.3.5 or later.

Files

NameTypeSizeDownloads
chat_plugin.zipchat_plugin.zip
Submitted: 12-07-2007 / Last Updated:
zip--328
31KB zip file, includes the chat plugin library, instructions for use and the two .nss script files. External Website Beyond Our Control
SCORE OUT OF 10
10
2 votes
View Stats
Cast Your Vote!

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS
No Images




You Must Be Logged In to Participate.
Comments (8):

Posted by knightmb at 2008-09-01 13:57:27    Voted 10.00 on 09/01/08
Will you update this for v1.69 ? The nwnx_chat crashes the server after a few calls, had to disable it. Yours always worked like a charm.

Posted by Saduj at 2008-08-19 11:33:02    Voted 10.00 on 08/19/08
Very Cool!
_________________________
Carcerian/Saduj's Submissions: (169 Portrait/Soundset Unlocker) (12 NWN Fonts) (30 NWN Fonts) (Auto-Emotes) (Custom Dragon Disciples) (Dynamic Wildshape) (Keyring) (NPC Schedules) (Sacred Shields) (Spawning Undead) (Shayans Subrace Engine for 169)

Posted by ed boar at 2008-03-26 12:29:50    
So it is! How strange... why would I put in a silly error like that I wonder? Well, I'm uploading this minor fix now.

Posted by knightmb at 2008-03-16 13:14:10    Voted 10.00 on 09/01/08
Ok, I found out why this doesn't work, in your fb_inc_chat script, you have the Const of:
const int CHAT_CHANNEL_DM = 7;
which is the wrong number, that channel is actually 14, so to fix this you need to set it like this:
const int CHAT_CHANNEL_DM = 14;

Save and compile all scripts, good to go!

Posted by knightmb at 2008-03-15 01:20:47    Voted 10.00 on 09/01/08
The plugin works mostly great for me, but it doesn't capture the text in the DM channel that comes from players. Everything else it captures just fine. Any ideas why?

Posted by ed boar at 2007-12-15 03:21:39    
Thanks. I've updated it now, so it should work properly.

Posted by Script_Wrecked at 2007-12-11 21:00:20    
There are two errors with the ".nss" scripts supplied.

1) in "fb_inc_chat.nss", there are two places where "oRecipient" is spelt "oRecipent"; change both these to the former.

"fb_inc_chat.nss" affects the three module event scripts that you have to type (OnClientEnter, OnClientLeave, OnModuleLoad) plus "fb_chat.nss". Once this error is fixed, these four scripts need to be compiled.

2) in "fb_chat.nss", all the action strings, such as *kneels*, *threatens*, and so on down to *bows*, are missing their double quotes; they should be "*kneels*", "*threatens*", "*bows*", et cetera.

"fb_chat" will then compile.

And then it works. Whoo-hoo!

Also, looking at the code in "fb_inc_chat.nss", the following two global variables (which, apparently are "at bad thing" in nwscript):

string FB_CH_LIST_ITEM_NAME = "FB_CH_PC_";
string FB_CH_PC_ID_NAME = "FB_CH_ID";

could be constants, given that their values aren't changed:

const string FB_CH_LIST_ITEM_NAME = "FB_CH_PC_";
const string FB_CH_PC_ID_NAME = "FB_CH_ID";

Hope this helps,

Regards,

Script Wrecked.

Posted by ed boar at 2007-12-07 14:23:40    
Hi people, I do check this space so if you've got any problems or need help, post here and I'll see what I can do.

You must be Logged In to post comments in this section.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Prefab Areas


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters