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  Persistent Player Owned Shop v2.1
Author  Rami_Ahmed
Submitted / Updated  05-11-2006 / 06-02-2011
Category  Inventory Item
Expansions  Requires Both Expansions (SoU & HotU)
Format  Module and Code
Type  Type - Store
Includes  Custom
Description
Buy a shop from the goverment, sell your own items to other players and sell the shop again!

* Fully persistent.
* Very easy to set up.
* Very player friendly, easy to use.
* With salesmen, need them to sell your stuff.
* With easy storeage system.
* Comes with small Demo Module.
* Both NWNx2 version & BioWare database version available.
NWN2 version: link

Initial Release: 11/5/2006 (v1.0)
-

Major Update: 12/5/2006 (v1.5)
- Fixed so that when items are sold, they dont reappear.
- Added new options for the owner of a shop (Including name-changing).
- Added new options for the builder in the ModuleLoad script.
- Made a semi-caching system when recovering items for the store.
- Fixed some typo's.
- Other minor bug fixes.
- Added an normal shop to the demo module, for testing reasons.

Medium Update: 12/5/2006 (v1.6)
- Fixed a few typo's.
- Fixed a single semi-bug.
- Added an version using NWNX2/APS.
- Added an option to fire salesmen (doh!).

Minor Update: 13/5/2006 (still v1.6)
- Bug fixes.
- Added an option to disable salary paying totally.

Medium Update: 14/5/2006 (v1.7)
- Fixed critical bugs.
- Added an option for the user to change item prices a bit.
- Cleaned up the conversation a lot.

Minor Update: 15/5/2006 (still v1.7)
- Minor bug fixes.

Minor Update: 15/5/2006 (v1.7b)
- VERY critical bug fix.
* Thanks to Leomist for finding it and solving it!

Major Update: 18/5/2006 (v2.0)
- Now the player can have 2 stores with different items and different prices.
- The shop can both buy and sell items. Added an shop gold vault which the player can add/subtract gold from/to.
- Salesman salary is now set in the module load script (shop_mod_load).
- The chest has been removed - it is now just an invisible object that is spawned when needed.
- Moved the pay salary option to the salesman's dialog and changed the way it works.
- Old owners of the shop now gets all the gold they had in the store.
- Very many and very critical bug fixes.
- Now uses the EDS (Enhanced Delay System) which can be downloaded from here.
¤ The EDS is not made by me ¤
* Many thanks to Leomist for helping with testing the system and coming with very many ideas.

Minor Update: 23/5/2006 (still v2.0)
- Critical bug fixes.

Minor Update: 24/5/2006 (v2.0b)
- Critical bug fix.
* Thanks to BigMacDaddy for finding the bug.

Minor Update: 25/5/2006 (v2.0c)
- Critical bug fix (again).
- Added NWNx2 files for download.
* Thanks (again) to BigMacDaddy for finding the bug.

Medium Update: 1/6/2006 (v2.1)
- Added an item counting script from the chests' OnDisturbed event.
- Fixed a bug with the salesman salary.
- Fixed the salesmans random walk.
- Fixed so that items sold to the shop wont dissappear.
- Fixed so that you can't store (and sell) containers.
- Other bug fixes.

Minor Update: 1/8/2006 (still v2.1)
- Fixed stability so it keeps persistent no matter what.

Minor Update: 8/5/2007 (v2.1b)
- Added an italien version, translated by Manny.

Minor Update: 18/7/2007 (v2.1c)
- Fixed issues with shop vault gold and items not being saved.


This system is aimed for roleplaying modules, to add some fun to the players.
The players can buy a shop (which you'll have to make yourself, visually). The owner of the shop can place items in a chest (which is spawned from the sign only when needed), the owner will need to hire a salesman to sell his/her items. The salesman will sell the players items from the chest (The buyer can choose which store to view, now the player can have 2 stores from same shop), the salesman will also demand salary. The player will earn gold when other players buy his/her items from the shop, and the shop can buy items if the player has put gold into the shop vault. The shop can be sold to other players as well.
There can be unlimited shops througout the module - as long as they each have their own area.

All settings are set in the ModuleLoad script: shop_mod_load.

If you want to use NWNX (which is very much faster and better) but dont know what it is, you can visit their homepage or download the files from this site, there is an included ReadMe for installation.
* The NWNx2 is not made by me!

Always remember to "Build" and "Compile" your module after importing anything.

: Critical Note :
BioWare database-using version might not work on Linux machines, because of a bug in a function used by this system to clean up!

.: Important note :.
You can only have 1 shop per area. And the area must have a module wide unique tag.

If you are experiencing problems, please post them here or send me an email on: [email protected].

I wish anyone using this package - Good luck.

Files

NameTypeSizeDownloads
NWNx2_files.zipNWNx2_files.zip
Submitted: 05-11-2006 / Last Updated: 05-25-2006
zip756.84Kb694
Required NWNx2 files & a ReadMe written by myself. The NWNx2 is not made by me.
Persistent_Player_Owned_Shop_v2.1.zipPersistent_Player_Owned_Shop_v2.1.zip
Submitted: 05-11-2006 / Last Updated: 06-18-2007
zip104.89Kb1363
Persistent Player Owned Shop System v2.1, created by Rami_Ahmed. Uses BioWare database.
Sistema_Negozi_v2.1.rarSistema_Negozi_v2.1.rar
Submitted: 05-11-2006 / Last Updated: 06-18-2007
rar47.62Kb464
Persistent Player Owned Shop System v2.1, created by Rami_Ahmed. Uses BioWare database. Italien version - translated by Manny.
Enhanced_Delay_System_v1.1.zipEnhanced_Delay_System_v1.1.zip
Submitted: 05-11-2006 / Last Updated: 05-18-2006
zip77.79Kb813
Enhanced Delay System v1.1, not made by Rami_Ahmed. Uses BioWare database.
Persistent_Player_Owned_Shop_v2.1_NWNX2.zipPersistent_Player_Owned_Shop_v2.1_NWNX2.zip
Submitted: 05-11-2006 / Last Updated: 06-18-2007
zip159Kb923
Persistent Player Owned Shop System v2.1, created by Rami_Ahmed. Uses NWNX2/APS database.
SCORE OUT OF 10
9.78
25 votes
View Stats
Cast Your Vote!

AWARDS



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

Just before buying the shop...


Talking to hired salesman...


Just bought the shop...





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

1 2 3

Posted by ramoodmayaan at on05/18/08
great idea!

Posted by Ondaderthad at on02/16/08
I just installed this shop system in our server and it works well enough. However i would prefer a system that lets players set their own prices for each item. Although i realize that might not be possible. Still a great set of scripts. _________________________ The Best PW system is getting even better. PLATEMAIL Tech Preview

Posted by PC_Maniac at on12/01/07
Super idea. Why not owned more NPC's - stable-boy, harbour master, innkeeper. 10 points! _________________________ In NWN Vault: Centaurs racialtypes system; Neverwinter Nights Patch 1.69 PL made by PBC; Rideable Pegasi and Winged Unicorns (with script system); Crusade tileset! (tno03 - final version!); 1001 Arabian Nights tileset; DLA HORSES (with Radial menu) and CEP 2.0 Patch; Ravenloft Shard Tileset Hakpack - Gothic City Tileset; CNR 4.02 PL (only Polish version); NWN Models

Posted by Rami_Ahmed at 2007-09-0904:50:11    
Hi! I have been trying to translate the system to NWN2, but I met a problem when trying to use GetNextItemInInventory(), which doesn't work for stores, in NWN2 (yet). Therefore I must wait untill Obsidian fix their bug, and I will then continue my attempt to make the system NWN2 compatible. _________________________ NWN2 stuff: - Persistent Player Owned Shop System Some stuff made by me for NWN: - Persistent Player Owned Shop v2.1 - Item Breakage System (Updated)

Posted by Carlzilla at 2007-08-1213:48:51    
I just tried this in NWN2. shop_inc will not compile. It spits out an error message that reads "shop_inc.nss(261): ERROR: UNDEFINED IDENTIFIER []" *note that isn't actually two brackets but the symbol windows displays when it can't find a character. Everything else seems to work however, you also have to assign a appearance to the sign since the default NWN1 appearance won't work obviously.

Posted by Carlzilla at 2007-08-1213:48:28    
I just tried this in NWN2. shop_inc will not compile. It spits out an error message that reads "shop_inc.nss(261): ERROR: UNDEFINED IDENTIFIER []" *note that isn't actually two brackets but the symbol windows displays when it can't find a character. Everything else seems to work however, you also have to assign a appearance to the sign since the default NWN1 appears won't work obviously.

Posted by Rami_Ahmed at 2007-06-1811:50:32    
My good people! I am so sorry for a critical mistake that I've made a long time ago, but never found. It took me hours looking through my code to find it, and of course, it was just a small oversight. I have updated the vault here, all versions, with the fixed one and it should correct items being saved correctly and gold being stored right. If you want to fix it yourself, it's very easy: Open up the script "shop_store_close" and delete the entire script. Now paste this into the script, instead: /* Script Created By Rami_Ahmed */ #include "shop_inc" void main() { object oArea = GetArea(OBJECT_SELF), oPC = GetLocalObject(OBJECT_SELF, "ShopPCObject"); if (!GetIsObjectValid(oArea)) return; int iType = StringToInt(GetStringRight(GetTag(OBJECT_SELF), 1)); DeleteLocalObject(OBJECT_SELF, "ShopPCObject"); DelayCommand(1.2, SaveItems(oArea, oPC, OBJECT_SELF, FALSE, iType)); DelayCommand(2.2, SetGoldInShopVault(oArea, GetStoreGold(OBJECT_SELF), iType)); } Make sure you get the whole thing. The easiest thing is, of course, to just download the newest version here from the vault - and I will recommend doing that. ¤Plpaododas: I recommend you try using both NWNx2 version and Bioware-database version. The mistake you're having, is caused by your database not working correctly. _________________________ NWN2 stuff: - Persistent Player Owned Shop System Some stuff made by me for NWN: - Persistent Player Owned Shop v2.1 - Item Breakage System (Updated)

Posted by Plpaododas at 2007-06-1621:02:10    
I had the same problem as Leomist did, that the shop says that you bought it but it doesn't recognize that you did. I was wondering if he solved it or if anyone knows how to solve it.

Posted by OnyxEye at 2007-05-2819:22:26    
Rami: That cleared things up a bit. But I obviously have an issue in my mod. When a purchase is made, no gold is going to the shop vault. To fully test it, I had an empty vault when somethings were purchased from the shop. When the owner came back in, there was nothing in the vault. Any ideas where I might look for the issue? _________________________ OnyxEye - Lead Admin The Realms of Ghamede Link

Posted by Rami_Ahmed at 2007-05-2306:17:33    
It works like this: I own the shop. I put an item into one of the shop's invisible chests. You go buy my item. The gold ends up in the "shop vault". The shop can now buy items from anyone, using the shop vault's gold. Or I, the owner, can go and collect some or all the gold from the shop vault. At the same time, I can put gold into the shop vault, so the shop can buy items. Hope that cleared stuff up. _________________________ NWN2 stuff: - Persistent Player Owned Shop System Some stuff made by me for NWN: - Persistent Player Owned Shop v2.1 - Item Breakage System (Updated)

1 2 3

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 Tutorials


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