The KEMO Auction/Consignment System (hereafter KEMO Auctions) is a GUI-based consignment merchant that allows players to sell goods to other players in a PW.
KEMO Auctions is divided into four major sections: arms, armor, miscellaneous and crafting. Players may have up to ten items listed for sale in each section (for a total of 40 concurrent sales per character).
To sell an item, click on the Sell button and select from the list of items in your inventory. Enter a sale price and click the Sell icon. KEMO Auctions charges a 5% non-refundable commission on every sale posting.
To buy an item, click on one of the section buttons, then select an item and click the Buy icon. If you wish to view the item first (to check its properties, for example), click on the View icon and an Examine window will pop up for that item.
Sales expire 7 days after they have been initiated. Expired items will be returned to their original owners. If one of your items sells, you can retrieve the gold by clicking on the Retrieve button (which you should do any time you have sales running, to check whether any of the items have sold).
KEMO Auctions is persistent across server reboots.
FOR BUILDERS:
* KEMO Auctions requires NWNX4 and the nwnx_clock plugin in order for the sale expiration function to work. (As a result, the demo module works fully except for the expiration function, unless it is loaded as a MP server through NWNX4.)
* If you wish to prevent players from selling certain items, edit the CheckTag function in kemo_auction_includes to add the tags of the items you don't want to allow. (Currently it is set to prevent items with "key" in the tag and all cursed items.)
* To implement, import the ERF and place the auctioneer NPC and the Auction Table together in an area. (The Auction Table is used only to mask temporary items that must be created in order for the View option to work: it is selectable, so that items created "underneath" it cannot be picked up before they are destroyed. It serves no other function.)
* The 5% commission may be changed in the gui_kemo_auction_sellselect script, by changing the line "iCommission = iCommission / 20;" to suit your needs.
* The HAK file contains only the single XML file needed for the GUI to function. This file may be moved to another HAK if desired.
UPDATE 2/14/09 (version 1.01):
* fixed a server crash issue when attempting to sell an already sold item
UPDATE 2/15/09 (version 1.02):
* fixed a pair of scripting errors, one in gui_kemo_auction_retrieve and one in kemo_auction_includes
* removed the demo module from the package until I can rework it to fake having nwnx_clock
UPDATE 2/16/09 (version 1.10):
* added a Search function: type in text to search for and click the Search button and the current auction panel will filter for that text
* added the demo module back in, now with a "dummy" nwnx_clock script
* (late 2/16): uploaded with fixed demo module (now has the HAK correctly attached)
The original version was four separate NPCs who listed the items in the chat window, and used small input boxes to collect sale price info and purchase item numbers. It was ugly, but it worked. When I added the GUI I consolidated the four into one and added the ability to examine the sale items. But since the system was already in place in Haven, I had to make sure it wouldn't mess up existing sales, so all of the variable names are the same, etc. --- hence "Auctioneer" instead of "AuctionPanel" for example. _________________________ KEMO Auctions | KEMO Beds and Tables | KEMO Bio | KEMO Custom Animations | KEMO Custom Chairs | KEMO Jukebox Kingdom of Haven admin
Posted by dmguild at 2009-02-15 19:50:52 Voted 10.00 on 02/15/09
Thanks, I like to know how things work. Makes things easier when players have problems. Like I said outstanding work. _________________________ Keeps calling me it's master, but I feel like it's slave. Haulin me faster and faster to an early early grave. Skullport and the Undermountain PW
NWvault Submissions:|Skullhak_2|---|Skullport PW|---|Waterdeep PW|---|Portrait Pack|
Posted by dmguild at 2009-02-15 14:08:09 Voted 10.00 on 02/15/09
I'm going to go ahead and vote a 10 here. This is outstanding work. I'm about to test it on my PW, all the local testing went pretty good. Keeping my fingers crossed on dynamically created items are stored fine.
It doesn't seem too far of a stretch to take this and convert it into a persistent storage system for players.... _________________________ Keeps calling me it's master, but I feel like it's slave. Haulin me faster and faster to an early early grave. Skullport and the Undermountain PW
NWvault Submissions:|Skullhak_2|---|Skullport PW|---|Waterdeep PW|---|Portrait Pack|
Those errors crept in because the version of KEMO Auctions used in Haven is slightly different (it has more prohibited tags and uses a different database naming setup). When I adjusted them for the Vault release, I mistyped. :( Those should be the only two places where errors crept in. _________________________ KEMO Auctions | KEMO Beds and Tables | KEMO Bio | KEMO Custom Animations | KEMO Custom Chairs | KEMO Jukebox Kingdom of Haven admin
Posted by dmguild at 2009-02-15 12:45:38 Voted 10.00 on 02/15/09
Okay I had to make a couple changes with your last version. Let me know if I did them wrong.
Line 47 of the gui_kemo_auction_retrieve;
sSellerID = GetSellerID(oPC); //added the word string in front of sSellerID
Line 24 of the kemo_auction_includes;
if (FindSubString(sItemTag,key") > -1 || GetItemCursedFlag(oItem)) //Added a " in front of key, not sure if this was your intent or not.
But after adding the nwxx_clock to the scripts and recompiling, everything seems to be working fine. _________________________ Keeps calling me it's master, but I feel like it's slave. Haulin me faster and faster to an early early grave. Skullport and the Undermountain PW
NWvault Submissions:|Skullhak_2|---|Skullport PW|---|Waterdeep PW|---|Portrait Pack|
Posted by dmguild at 2009-02-15 11:32:56 Voted 10.00 on 02/15/09
I must be doing something wrong, when I click the Sell button nothing happens, no selection of items to sell.
Posted by PNJ at 2009-02-14 08:22:46 Voted 9.75 on 02/14/09
To fixe it, open gui_kemo_auction_sellselect, find :
object oItem = GetItemFromList(oPC, sItemNumber); //find the sale item from the list
Add just after : if (!GetIsObjectValid(oItem)) return;
Posted by PNJ at 2009-02-14 08:07:43 Voted 9.75 on 02/14/09
Great, but i got encountered a major issue with it, if you click two time the sell button (clicking again before it refresh after selling the item), the server will crash
Posted by Tilly89 at 2009-02-13 23:15:29 Voted 10.00 on 02/13/09
Oooh it's just like the Auction House in WOW. Nicely done.
Posted by la_crampe at 2009-02-13 21:32:24 Voted 10.00 on 02/13/09
Awsome..!
Posted by la_crampe at 2009-02-13 21:31:46 Voted 10.00 on 02/13/09
Kemo, Everything you do is so...
Posted by MammothTruk at 2009-02-13 14:33:28 Voted 10.00 on 02/13/09
Posted by mcorn at 2009-02-13 12:01:17 Voted 10.00 on 02/13/09
An excellent achievement
Posted by Locutus1546 at 2009-02-13 11:39:11 Voted 10.00 on 02/13/09
Kemo does do nice work...
Posted by DarkMagnolia at 2009-02-13 11:20:52 Voted 10.00 on 02/13/09
This definitely deserves more votes. *nod nods*
Posted by Saphhira at 2009-02-13 00:59:48 Voted 10.00 on 02/13/09
This is a marvellous week for NwN2 PW!!!
At first we receive, finally, a system for managing inventory better than on NwN1 and now we receive this Auctions system!
I think Christmas is back!!!
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone