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  NWNXPQJ
Author  Grim Havoc
Submitted / Updated  01-12-2005 / 11-22-2006
Category  Database Related
Expansions  Requires Both Expansions (SoU & HotU)
Format  Module and Code
Type  Type - Quest Tracking
Includes  Custom
Description
This script (4 public functions, 2 private functions) is based on Knat's persistent quest & journal system but includes support for NWNX/ODBC. This script will help you get a persistent journal and manage persistent quest data. The zip files includes two versions, Knat's original bioware db version and my NWNX/ODBC version. Please make sure NWNX/ODBC (www.nwnx.org) is working properly before working with this script. There is are two tutorial modules included that gives you an interactive rundown on this system and quests in general. Very beginner friendly. Check the readme for more information.

Files

NameTypeSizeDownloads
Grim_Havoc1105583608187NWNXpqj.zipGrim_Havoc1105583608187NWNXpqj.zip
Submitted: 01-12-2005 / Last Updated: 01-12-2005
zip43.73Kb474
--
SCORE OUT OF 10
9.92
3 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 (11):

Posted by Get_A_Fix at 2007-03-18 13:58:01    Voted 9.75 on 03/18/07
Get_A_Fix would like to add:
if you use NWNX2 and Fast French, simply paste the following code to the "ff_builtable.nss" script and Fast French will take care of making the correct MySQL table for this system:
(I pasted it right after the similar code that handles the pwdata table for APS)
*******************

SQLExecDirect("CREATE TABLE IF NOT EXISTS `tbl_questdata` ("+
"`ID` int auto_increment,"+
"`player_acct` varchar(64) NOT NULL default '',"+
"`player_character` varchar(64) NOT NULL default '',"+
"`szPlotID` varchar(32) NOT NULL default '',"+
"`szPlotState` varchar(4) NOT NULL default '',"+
"PRIMARY KEY (`ID`,`player_acct`,`player_character`)"+
") TYPE=MyISAM");

***************

Posted by cooldaddyo at 2006-07-11 08:31:59    Voted 10.00 on 07/11/06
I want to have the quest item drop from a mob (randomly would be ideal) rather than just be sitting in a container somewhere.

Am I still going to do that with quest_chest_dist ?

Also, do you need to add a new set of these custom scripts for each quest or is the idea to keep adding new lines inside these:
quest_a_start
quest_a_finish
quest_t_start
quest_t_progress
quest_t_retrieve
quest_t_finish

Posted by RealmsofArion at 2005-01-26 01:03:00    
Sorry, These are old additions to check whether a player has completed a quest before rewarding again..It allows party members to help players in a group even if they have completed the quest before...they just will not get the reward...It is really just a DB check related to quest name.

Reference the previous message:
It should be for all members, I am no scripter, I just pull stuff together and make it work ;-) I have the upmost respect for all you contributors...My Arion scripter has added another function for remove item from all players too.....Which I will add here sometime today too.

Posted by GrimHavoc at 2005-01-25 10:43:00    
Here is yet another set of questions for you. Since you are using FastFrench, what do these calls do?
if (ff_GetPCPersistentInt(oCreatureParty,GetName(OBJECT_SELF)+"ITEM")!= 1)
ff_SetPCPersistentInt(oCreatureParty,GetName(OBJECT_SELF)+"ITEM",1);

I notice you do something similar for both the XP and Gold award.

Posted by Duerfel_Cadarn at 2005-01-22 14:52:59    Voted 10.00 on 01/22/05
An awesome addition to the Vault. I've already seen it in action and think you did a great job. Can't wait to see future updates to this or other scripting efforts from you.

Posted by Makzimia_De_Graf at 2005-01-20 09:12:00    
Just realised after I posted this, this does not use the journal way of getting gold value :| picked the wrong script, but that is easily updated inside the script to use that method also.Makzimia De Graf
DM/Creator
Island of Fredian a PW
Home of ATS/Salandra's crafting

Posted by Makzimia_De_Graf at 2005-01-20 09:10:00    
As Grim mentioned he spoke with me, and at the time he asked me, I was busy with a few different projects, I still am, but, anyway, as a little bit of giving back to the community which I intend to do even more of shortly. Here is a finish script that does a few things. It checks all party is present, it checks for the item carried on each PC, it checks state of quest and it gives an item as well. This relies on the quest maker having made use of the journal to define XP and gold values also. Note this is an action script and would be placed in the conversation where you have just been given a reward. Keeping with Knats original ideals this would be a _a_finish script.

#include "pqj_inc"
#include "nw_i0_tool"


void main()
{
object oPC = GetFactionLeader(GetPCSpeaker());
object oItem;
object oCharacter = GetFirstFactionMember(oPC);
while (oCharacter != OBJECT_INVALID)
{
if (RetrieveQuestState("jt_journalentry", oCharacter) != 3)
{
oItem = GetItemPossessedBy(oPC, "ItemTag");
if (GetIsObjectValid(oItem)) DestroyObject(oItem);
if (GetObjectSeen(oCharacter,oPC) )
{
GiveXPToCreature(oCharacter,GetJournalQuestExperience("jt_journalentry"));
GiveGoldToCreature(oCharacter,1000);
}
}
else SendMessageToPC(oCharacter,"You have already done this quest and therefore will not receive experience");

oCharacter = GetNextFactionMember(oPC);
}
AddPersistentJournalQuestEntry("jt_journalentry",3,oPC);
CreateItemOnObject("itemresref", oPC);

}
Makzimia De Graf
DM/Creator
Island of Fredian a PW
Home of ATS/Salandra's crafting

Posted by GrimHavoc at 2005-01-19 10:06:00    
Thanks for the additions. I just got your email and am eager to look into the things you added. I'm finishing up our persistent bindstone system right now and will look into this as soon as that get's cleaned up. It's about 95% done now.

Posted by RealmsofArion at 2005-01-19 02:25:00    
Thanks for replying

I currently use the FastFrench version of NWNX and have just incorporated your system in successfully. I also made the changes to the inc file to support area checks and Giving gold to all party members etc....I'll send you the inc file along with any other relevant changes made to give this funtionality....then you can re-release it if you decide to use it...you may have to modify it slightly to remove any FastFrench references

Posted by GrimHavoc at 2005-01-18 16:49:00    
In this first release, all I really did was re-write the existing functionality to use NWNX. As far as your specific questions.

"Can I just enquire if it offers the following though: "

"Area checks to ensure all party members are in the same area when receiving the reward? "
-- I'm actually very new to scripting and not well versed in the available function for determining things like this. Assuming that this type of information (same area) is available, then this seems like a logical extension of the function call. I'll put this on my list of things to look at when I look into enhancing the code.

"All party rewards with XP and Gold or items?"
-- I think I understand what you're asking but could you elaborate a bit more?

"Prevention of players doing the same quest again via another party and away from the area?"
-- if I understand this correctly, you should be able to use RetrieveQuestState prior to assigning a quest to a player.

"I hope you get good feedback on this effort you have put in."
--Thanks. I've recently begun digging into the scripting end of things and have a ton to learn, but the database extension came easy given my database experience.

Posted by RealmsofArion at 2005-01-18 10:27:00    
This sounds an excellent extension to an already descent script, thanks for the work on this.

Can I just enquire if it offers the following though:

Area checks to ensure all party members are in the same area when receiving the reward?

All party rewards with XP and Gold or items?

Prevention of players doing the same quest again via another party and away from the area?

I hope you get good feedback on this effort you have put in.




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 Tools


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