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.
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!
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.
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 |
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?
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 |
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 |
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.
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.
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)"
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 |