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 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)