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].
Posted by Oznog at 2011-05-02 22:54:52 Voted 9.00 on 05/02/11
I've entertained this script for quite some time. Finally, I wined and dined it and settled it into our module. Excellent script.
Posted by wmb1957 at 2011-04-16 19:17:12 Voted 9.75 on 04/16/11
Been using this on a small lan server for friends and it has worked great. Thanks.
Posted by dunahan at 2010-12-19 03:59:13 Voted 10.00 on 12/19/10
Thanks! This system was just that, what i had been searching for =) _________________________ Link
Isladora, an island in the Sea of Swords
Posted by rikki.o at 2009-05-11 08:47:45 Voted 9.50 on 05/11/09
Outstanding work!
rikki.o
Posted by Endoora at 2008-09-06 09:31:10 Voted 9.50 on 09/06/08
Thanks for this awesome system! _________________________ - Endoora -
The Glory and Freedom Chronicles
A Neverwinter Nights Persistent World Project
*****
Development resumed as of 2009-JUN.
Hail all inspirational contributors!
*****
Posted by williamushunteri at 2008-07-09 15:45:25 Voted 10.00 on 07/09/08
A perfect system for those looking to add life to their PWs economy.
For those like me that are having trouble getting this working, I suggest you check your setup. In my case, I had the wrong NWNx plugins installed, preventing it form working properly. Now, all is good. Excellent system and excellent communication from the maker. Thanks, Rami_Ahmed!
Posted by williamushunteri at 2008-07-04 19:01:52 Voted 10.00 on 07/09/08
One issue I am having: The system seems to be converting all items sold to the store by players into something else ( a custom logbook I have on the mod ). When they sell them, things are fine, but once the store building is empty the item in the database is apparently lost and replaced with this log book.
Posted by ramoodmayaan at 2008-05-18 00:25:39 Voted 10.00 on 05/18/08
great idea!
Posted by Ondaderthad at 2008-02-16 07:21:14 Voted 9.50 on 02/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 2007-12-01 15:13:34 Voted 10.00 on 12/01/07
Super idea.
Why not owned more NPC's - stable-boy, harbour master, innkeeper.
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
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.
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.
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
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.
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
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.
One thing I didn't see in the readme that is of interest to me, and possibly others is: When and how does the player owner get the money from their stores' sales? _________________________ OnyxEye - Lead Admin
The Realms of Ghamede Link
Posted by Daijin at 2007-05-22 00:16:07 Voted 10.00 on 05/22/07
Works nice, insofar as i can see! Thanks for the fun! _________________________ Dream Well, Faith, Loyalty, Truth, Honor, Friendship always.....
Daijin Dreamweaver, Leader of the Dream Warriors for 32 years, going strong.
Posted by cowdoc at 2007-05-17 08:51:28 Voted 9.75 on 05/17/07
Excellent script, great for any pw world.
Thanks Remi!
Posted by Manny at 2007-05-02 08:19:48 Voted 10.00 on 05/02/07
Excellent!!
It's very very nice script!!
For my module is perfect!! thanks Remi!
Posted by geojedi73 at 2007-04-26 21:42:49 Voted 10.00 on 04/26/07
That did the trick, thanks again..... _________________________ Today is born the seventh one
Born of woman the seventh son
And he in turn of a seventh son
He has the power to heal
He has the gift of the second sight
He is the chosen one
So it shall be written
So it shall be done
Posted by geojedi73 at 2007-04-26 08:10:27 Voted 10.00 on 04/26/07
I love that you still support and help people with this, If I could give you a higher score than 10 just for that I would do it gladly..... I will test this and let you know, but I think you are right this should take care of it.
THANK YOU _________________________ Today is born the seventh one
Born of woman the seventh son
And he in turn of a seventh son
He has the power to heal
He has the gift of the second sight
He is the chosen one
So it shall be written
So it shall be done
I never thought that would be a problem, but since it is for you and possibly more, he's a slightly difficult fix (Only one I could come up with, though).
1) Open up "shop_inc".
2) a) Scroll down in the script, untill you find a line like this:
void SaveItems(object oArea, object oPC, object oChest, int bDestroy, int iType) (Note, it has to be the one which doesn't have green comments above).
or b) Use the "Find Text" function and type in "Stolen".
3) Now find anywhere where it says:
&& !GetStolenFlag(oLoop)
This checks if oLoop (Which is the item at hand) is stolen, and if it is, it doesn't save the item in the chest. So, you only need to remove this (Remember the 2 && before, but not after).
Note: There should only be this one coincidence, this check is not used anywhere else iirc.
4) Close the script (Remember to save!), open up the Build function in the toolset, check "Compile" and "Scripts" and run the building process.
Posted by geojedi73 at 2007-04-21 21:45:16 Voted 10.00 on 04/26/07
I am giving this a 10, very easy to use, and so far no bugs or glitches. However I found something that i hope you can help me with..... There is probably a way to fix this issue but I overlooked it or missed it.....
The shops do not buy or accept stolen goods. I use UOA crafting and most of the items created ing this system are marked stolen. I dont want to have to go through all the items to alter them. so Is there a script or command that can be changed to make the shops accept stolen goods....? _________________________ Today is born the seventh one
Born of woman the seventh son
And he in turn of a seventh son
He has the power to heal
He has the gift of the second sight
He is the chosen one
So it shall be written
So it shall be done
I've no idea why you're experiencing bugs, it's been a loooong time since I've looked on this too, but last I checked it was working fine. I used it on my own pw for a lot of time too, with no problems. So. If you're still experiencing problems, please email me and we'll figure it out.