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  



NWN2 SCRIPTS

- Jump to comments -
Name  Dethia Shop
Author  Dethia
Submitted / Updated  03-21-2011 / 02-26-2012
Category  Entire Module/PW systems
Type  Type - Merchant
Format  Code Only
Patch  1.23
NWN2Game  NWN2:SoZ
Description
This is a custom shop system I have written for nwn2. It should be easy to implement (add the hak, import-compile the shop scripts and add some variables to the shops.)

The screenshots speak for themselves on the changes and additions. If you have questions don't hesitate to ask, you can find my contact information in the read-me file.

I have also written a trade-hub system (which includes an Auction, Bountyand Warehouse system) geared towards PW's. This system is optional and requires NWNX. Check the read-me file for some more details.
======================================
Older version notes are now in the read-me file as the last section. It is always the latest version that is available here, please report bugs or problems if you find any.

-2.11- Fixed an issue where the ds_sell_mod and ds_buy_mod were interchanged.

* Added a feature whereby now users can double click to buy/sell items. When doing so only one item is bought/purchased unless the item is ammunition in which case a whole stack is exchanged. Also added right click support for examining items.

Files

NameTypeSizeDownloads
alternate_icons.zipalternate_icons.zip
Submitted: 03-21-2011 / Last Updated:
zip--35
Alternate icons for the 3 main buttons

http://dl.dropbox.com/u/11050518/nwn2/dethia_shop/alternate_icons.jpg External Website Beyond Our Control
dethia_shop_scripts.erfdethia_shop_scripts.erf
Submitted: 03-21-2011 / Last Updated:
erf--109
The erf with the 3 scripts

dethia_shop_sys - include file with various constants and functions
gui_dethia_shop - the script that manages the xml (gui) file
ga_store_open - an override of the default ga_store_open script that uses the shop system. External Website Beyond Our Control
dethia_tradehub_scripts.erfdethia_tradehub_scripts.erf
Submitted: 03-21-2011 / Last Updated:
erf--41
Scripts (3) used by the auction/warehouse/bounty system.

dethia_tradehub_sys
dethia_tradehub_open
gui_dethia_tradehub External Website Beyond Our Control
nwnx_scripts_w_scorgo.erfnwnx_scripts_w_scorgo.erf
Submitted: 03-21-2011 / Last Updated:
erf--41
NWNX scripts with the SCORCO functions (all credit goes to the nwnx team: http://www.nwnx.org/ )
I am merely making these scripts easily available as they are used by this system. External Website Beyond Our Control
READ_ME.txtREAD_ME.txt
Submitted: 03-21-2011 / Last Updated:
txt--150
Read me file with instructions on installation and a brief overview of some constants and functions External Website Beyond Our Control
dethia_tradehub.hakdethia_tradehub.hak
Submitted: 03-21-2011 / Last Updated:
hak--50
The hak file containing the xml (gui files) and the tga (icon) files External Website Beyond Our Control
SCORE OUT OF 10
9.88
6 votes
View Stats
Cast Your Vote!
Voting FAQ

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

look of coins in the inventory


How the shop looks


Auction item window


Available bounties window


Buy auctioned items window


Warehouse window





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

Posted by Dethia at 2012-02-24 15:38:39    
Himmelweiss to use actual currency gold/silver/copper is possible (and you can use platinum but as you said you'd have to adjust positions of things).

I would rather take this conversation via e-mail or possibly an instant messenger if you don't mind though. If you go with this route it will automatically take care of the problem about the acquire message. Other than that, I found it is impossible to change the on acquire message without some nwnx patch which sadly I don't know how to do. If I did, I would do away with the use of variables and retract the data using code. Elven has a ruby nwn library that actually facilitates that but I was unable to get it to work in nwn2. I will add the double click to purchase things over the weekend, it will only purchase 1 item or a stack if the selection is ammo.

Posted by Himmelweiss at 2012-02-23 14:32:22    Voted 9.50 on 02/18/12
Yep you interchanged the use of the variables. Was quite funny i could buy low, sell high :p So i figured something was wrong in the scripts.

Awesome system btw. However i changed everything to make only use of the default gold. Also had to change all the .xml files to display only gold. Was a bit of work, but nothing serious.

I really would like to use, gold, silver, copper and maybe even platinum but i ran into various cosmetic issues when i thought of it:
- gold drop on mobs, not really sure how to make it clear that there is now some silver, copper, gold coins on the corpse.
- Acquiring message, when i pick up a bag of 10000GP (or loot from a mob) it says "Acquired 10000 GP" but with your system this is actually 10000 Copper.

Not really sure how to adjust the entire game to give 100% correct feedback to the player in various situations in the game when actually using the "gold, silver and copper pieces" system.

Posted by Dethia at 2012-02-21 10:07:31    
Thanks for the feedback I'll have these things fixed up asap.

About the nw_it_gold001.uti, it is not necessary for the system but what it does is change the color of the gold coin to copper. I will re-add it back into the hack (don't know how it keeps disappearing from there).

I'll rename the store-open script and about the variables I'm guessing you mean I have interchanged their use in the script somehow I'll take a look at it.

Posted by Himmelweiss at 2012-02-18 14:51:28    Voted 9.50 on 02/18/12
one more thing,

in the readme you mentioned:

V1.02
--I have also now included the modified nw_it_gold001.uti file, it seems I forgot to include it in the HAK sorry about that.


The V1.02 entry is quite old, but int the .hak there is no nw_it_gold001.uti , do i still need it?

Posted by Himmelweiss at 2012-02-18 14:24:24    Voted 9.50 on 02/18/12
You mixed up some stuff in your scripts.

- in the "gui_dethia_shop" script you used the variable "DS_SELL_MOD" instead of "DS_BUY_MOD".

- in "dethia_shop_sys" script you used the variable "DS_BUY_MOD" instead of "DS_SELL_MOD"


- "ga_open_store" is the default script, you named yours "ga_store_open"

- maybe add buy/sell items with doubleclicking on the row

Posted by Dethia at 2011-08-07 13:14:16    
In regards to the bartering system, I've taken a look at some videos for gothic 3. I don't think I can make the system as smooth as in that game. It would really be just *select all items you wish to sell* - *select all items you wish to buy* and either pay or get paid the difference. But a player can do that same thing albeit with twice as many clicks (have to hit the sell button).

Posted by DannJ at 2011-07-25 20:25:23    Voted 10.00 on 03/27/11
The only way I can see to improve the system further would be to introduce a bartering system like in Gothic III. In NWN2 you are limited both by your own amount of gold and by that of the merchant. If you both have something ridiculously expensive, but the merchant lacks the cash to buy your item first, then you can't buy that special something you don't have the gold for.

In Gothic III, you added items to buy and sell into separate windows, then the difference between the two was calculated and change given to whomever necessary (a true bartering system). Sometimes no gold changed hands at all, if the buying and selling items were of equal value.

Posted by Arvirago at 2011-03-28 10:07:54    Voted 8.50 on 03/28/11
Very nice.
_________________________
Reino de Aldor

Posted by DannJ at 2011-03-27 14:26:21    Voted 10.00 on 03/27/11
Damn impressive.

Posted by Dethia at 2011-03-23 07:54:48    
A small update has been made to the scripts, fixed a bug where I forgot to divide the black market modifier by 100 (woops). So D/L the latest version or you can just change line 435 in dethia_shop_sys to:

{ fCostMod *= (iBlackMarket/100.0f); }

Posted by kamal at 2011-03-23 07:16:10    
This is a 10.
_________________________
Shadow Thief: Crimmor and Path of Evil blog Link

Posted by Banshe at 2011-03-23 02:28:40    Voted 10.00 on 03/23/11
Nice! You implemented a gold/silver/bronze system as well it seems.

Posted by nicethugbert at 2011-03-23 02:12:28    Voted 10.00 on 03/23/11
NEAT!
_________________________
NTB's Hills and Valleys Vol. 00

Posted by EvilShade at 2011-03-22 23:10:36    Voted 10.00 on 03/22/11
Very nice indeed. You put quite some effort in this system. Gonna take a deeper look into it later.
_________________________
Level Designer - Ossian Studios
NWN2: Mysteries of Westgate - NWN2's only Adventure Pack

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

10 - A Masterpiece, Genuinely Groundbreaking
9 - Outstanding, a Must Have
8 - Excellent, Recommended to Anyone
7 - Very Good, Deserves a Look
6 - Good, Qualified Recommendation
5 - Fair, Solid yet Unremarkable
4 - Some Merit, Requires Improvements
3 - Poor Execution, Potential Unrealized
2 - Very Little Appeal
1 - Not Recommended to Anyone

 
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 UI


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