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 Auction House
Author  ShardFenix
Submitted / Updated  10-05-2009 / 08-11-2012
Category  Database Related
Expansions  Requires Both Expansions (SoU & HotU)
Format  Module Only
Type  Type - Trading
Includes  None
Description
A persistent auction house similar to those in most modern MMORPGs. It consists of various placeables you can talk to which will guide you through the process of putting an item up for other players to bid on or buy.

Features:
- Players can set bid prices and buyout prices.
- Auction length is customizable in the toolset.
- Ability to "preview" items so players can see their stats and properties.
- Comes with persistent account storage.
- Auctions automatically save backups of themselves to databases every few minutes and automatically restore themselves when the module starts. Account storage also does this.

NOTE: YOU MUST READ THE README FILE. If you don't, you will probably have a lot of trouble getting it to work in your module. This is a very complex system and may have compatibility issues with your module, especially involving custom tokens.

I've included a demo mod so you can play around with it and see how everything's set up.

Like all of my scripts, if you have questions, suggestions, or bug reports, email me at [email protected]

Enjoy!

Update 1.1 (current version)
- Fixed a bug that sometimes deleted everything in a player's storage vault when the player would attempt to use the vault but run away from it as it was opening.
- Fixed a bug that sometimes caused a player's auction credits to be reset when closing their storage vault.
- Fixed a bug that sometimes caused items to duplicate when an auction ended and there were no bids.
- Fixed a bug that would cause auction items to be deleted when the item was being sent to a player's storage vault while it was open.
- Fixed a bug that sometimes took extra gold away from the winning bidder when an auction ended.

Files

NameTypeSizeDownloads
AuctionHouse.zipAuctionHouse.zip
Submitted: 10-05-2009 / Last Updated: 08-11-2012
zip66.48Kb260
The erf, demo module, and readme (read the readme or you will be completely lost)
SCORE OUT OF 10
10
4 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

Options when viewing a single item.


Dialogue when browsing items.





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

Posted by Ukiah at 2010-12-31 10:22:23    Voted 10.00 on 12/31/10
It's simply great! It's just what I have in mind for my PW.

I have a little problem. If I want to reset module, I type /.backup and it stores current items in auction board but not saves items which bid time is passed :S

Another thing... just a question. How lagging is this heartbeat system?

Posted by Rosa Mardis at 2009-12-09 13:12:49    Voted 10.00 on 12/09/09
Nice work Shard!
_________________________
Girls play video games too!

Posted by shardfenix at 2009-11-12 21:32:22    
The items in the AH aren't actually put in the DB right away, they stay cached on the server. If they're going into the AH (you can see them once browsing, correct?), you might want to check auctionsubmit line 27 (or somewhere around there) for the local int "AuctionTime." This is the number of heartbeats the item stays in the AH before ending. That's the only way they can disappear, unless something else in your module is conflicting with it. Email me if this doesn't help.

Posted by cebrimal at 2009-11-08 21:11:39    
I'm sure it was just a compatibility issue as I'm already using the Bioware DB for other things, but I found that items would vanish from the auction house after browsing them once, or previewing them.

Posted by Fleshmelter at 2009-10-17 08:32:52    Voted 10.00 on 10/09/09
I'm seriously surprised there aren't more downloads o.O
_________________________
PW Action Server:
| Chaosgate |


Posted by Fleshmelter at 2009-10-13 05:51:52    Voted 10.00 on 10/09/09
Nevermind, I finally figured it out.....I have a script inplace that deletes items as soon as they are sold to store merchants.

Silly me =)
_________________________
PW Action Server:
| Chaosgate |


Posted by shardfenix at 2009-10-12 23:43:06    
It seems like you didn't place the AuctionBase placeable, since that's where it copies all the items. If anyone else is getting this, I might have skipped something in the readme.

Posted by Fleshmelter at 2009-10-12 04:56:46    Voted 10.00 on 10/09/09
Ok, it seems I'm having a bit of trouble with the auction house, whenever I submit an item for auction it gets deleted.

The demo module everything works fine, but with it in my module it seems the script doesn't copy the item, it only destroys it upon placing it into merchant....can you think of any reason for this?




_________________________
PW Action Server:
| Chaosgate |


Posted by shardfenix at 2009-10-09 19:25:10    
The gold players deposit/withdraw is backed up immediately - it does not happen every 10 minutes like everything else. If your server crashes, you will only lose what has changed in the auctions themselves in the last 10 minutes. This is a double-edged sword, though, because it's possible for a player to buy an item (thus losing money from their account), then having the server crash before the game saves their character.

Now that people are critiquing this, I see a few places where I could make the code more customizable. I'll see if I can move some things around sometime next week.

Posted by Fleshmelter at 2009-10-09 13:57:10    Voted 10.00 on 10/09/09
Awesome, I do apologize for the rush to post, and double post. Normally I'm not so quick to post, but it was so awesome to see it work, felt like a little kid running to tell my friends lol....

Anyways I did go through the documentation in the scripting, and observed the autosave functionality so with that I've come across nothing else that I would feel this needs.

I'm sure you may make some cosmetic adjustments in the near future, but it works well.

Although 1 question, is the player gold saved when they submit an item? That would suck if they dropped/server crashed with all their gold off of them.

Anyways my soul has been taken by this script, and I submit to your will....you have my 10!
_________________________
PW Action Server:
| Chaosgate |


Posted by shardfenix at 2009-10-09 10:51:32    
They will back themselves up automatically, but this happens every ten minutes. If I release another version sometime, that will be something you can customize.

Posted by Fleshmelter at 2009-10-09 02:11:38    Voted 10.00 on 10/09/09
I wish to correct my previous statement about the not saving auctions through server resets.

It does with the /.backup command, it however didn't seem to do it automagically (it is possible not enough time was given for that to happen).

I've worked out how to implement it for my server resets, and that should be ok. Just concerned it might lose out should server crash (unlikely, but anything can happen).

Upped vote =) since it does save.
_________________________
PW Action Server:
| Chaosgate |


Posted by Fleshmelter at 2009-10-09 01:49:25    Voted 10.00 on 10/09/09
Seriously good job on the demo, it works neatly. I can vote on it since the submission although maybe edited in the future, can be added as is.

My vote reflects the fact that although it's not a new idea, it's been the only implementation that has worked for me.

I rated it 9.25 because does not store auctions beyond resets/crashes, and items are lost should either happen.

It's still quite a high rating, because I believe it's fixable (which will fix my vote too), even if not it is still a great submission.
_________________________
PW Action Server:
| Chaosgate |


Posted by shardfenix at 2009-10-07 23:59:21    
Just a comment to answer the lats question. I have included both a demo mod and an erf with a readme (I made it as complete as I could). It tells you exactly what you need to do to get it working. I tried to make it as import-friendly as possible. In v1.1 I might add a header script for customizable options (like auction length) that you can do in one place instead of sifting through my comments, but that's about as user-friendly as this system will ever be.

Posted by shardfenix at 2009-10-06 20:08:52    
Yes, the system works with ALL items, not just toolset blueprints. AFAIK (meaning I haven't found a bug to suggest otherwise), it also supports stackable items.

Posted by Raven_Blood at 2009-10-06 14:11:17    
to tell u the truth ShardFenix, there ARE in fact a couple of auction houses out on the vault just by simply typing it in the search bar :] Though i have to say though, only one of them works! and even then it isnt compatible towards a multiplayer world >.<

I look forward to seeing what you have in store for this version! it seems like a workable script. but that leads me to the qusetion: if you ever manage to get this live, will it be a download (like an area or a mod) or will it be an erf? i only want to know in terms of conversion towards my P.W. thanks!

Posted by Saduj at 2009-10-06 13:47:54    Voted 10.00 on 10/06/09
"(they said it couldn't be done, but I found a way)"

My Favorite kind of Mod!
_________________________
Carcerian/Saduj's Submissions: (169 Portrait/Soundset Unlocker) (12 NWN Fonts) (30 NWN Fonts) (Auto-Emotes) (Custom Dragon Disciples) (Dynamic Wildshape) (Keyring) (NPC Schedules) (Sacred Shields) (Spawning Undead) (Shayans Subrace Engine for 169)

Posted by Fleshmelter at 2009-10-06 12:42:14    Voted 10.00 on 10/09/09
Definitely say its still worth the effort put forth, few others just didn't work well at all.

So it'll be good to see some one work to finally pull it off, and it'll be sweeter if it works with random made items, and not just toolset items.
_________________________
PW Action Server:
| Chaosgate |


Posted by Skinker at 2009-10-06 10:48:09    
Even if it isn't straight plug and play, I'm sure many in the community would love to see how you pulled it off.

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 Gameworlds


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