Neverwinter Vault

Expand AllContract All -Site -My Profile -Features -Hosted Sites

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  



NWN2 SCRIPTS

- Jump to comments -
Name  KEMO Auction/Consignment System
Author  KEMO
Submitted / Updated  02-12-2009 / 02-16-2009
Category  Scripting routines
Type  Type - Merchant
Format  Module and Code
Patch  1.21
NWN2Game  All
Description
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)

Files

NameTypeSizeDownloads
KEMO_Auction_110.rarKEMO_Auction_110.rar
Submitted: 02-12-2009 / Last Updated: 02-16-2009
rar55.69Kb33
(2/16/09) Contains the version 1.10 ERF and HAK, plus a demo module
SCORE OUT OF 10
10
14 votes
View Stats
Cast Your Vote!
Voting FAQ

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS

The Examine window that appears when you use the View icon button


The selling panel


One of the four buying panels


Version 1.1 buying panel with search field





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

Posted by kemo at 2009-02-16 05:37:22    
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 kemo at 2009-02-15 16:03:27    
Yes, that's correct: the true Set functions are in gui_kemo_auction_select. The commented line in kemo_auction is a holdover from when there were four separate auctioneer NPCs. It's no longer used.
_________________________
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 15:24:32    Voted 10.00 on 02/15/09
I also noticed you use this GetLocalString in many of your scripts string sTag = GetLocalString(oPC,"Auctioneer");

But you've remarked it out of your kemo_auction script //SetLocalString(oPC,"Auctioneer",GetTag(OBJECT_SELF));

Is that correct?
_________________________
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|

Posted by kemo at 2009-02-15 13:03:44    
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 kemo at 2009-02-15 12:54:05    
Yes, those were my errors, I will update.
_________________________
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.

Also does this use a campaign database? Do you have to setup anything for the database?
_________________________
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 kemo at 2009-02-14 09:26:59    
Ah, thank you for spotting the bug and thank you for identifying the fix! I'll adjust and post an updated script.
_________________________
KEMO Auctions | KEMO Beds and Tables | KEMO Bio | KEMO Custom Animations | KEMO Custom Chairs | KEMO Jukebox
Kingdom of Haven admin

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
sure fire winner in my book. Its freaking amazing.
_________________________
Lost Dungeons of Adventure
The Wyvern's Perch

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

Thanks for sharing this masterpiece.

Posted by Caos81 at 2009-02-13 00:47:27    
Cannot wait to test and try it.
I really hope that localization won't be a pain as usual.
_________________________
DM Client Extension for NwN2- Inventory & Variables Manager
xSoH - eXtended Sleight of Hand System
DragonLance Italia NwN2 Italian Shard
NwN2xLauncher

Posted by Wizbane at 2009-02-12 23:56:48    Voted 10.00 on 02/12/09
This dropped in a PW with an efficient crafting system will be revolutionary! Keep it updated!

Posted by EvilShade at 2009-02-12 23:22:40    Voted 10.00 on 02/12/09
Thats damn impressive, Kemo.
_________________________
Area Designer - Ossian Studios
NWN2: Mysteries of Westgate - NWN2's first Adventure Pack
NWN2: Baldur's Gate - Unsung Legends - My persistent world project.

Posted by Coolty3000 at 2009-02-12 21:19:44    Voted 10.00 on 02/12/09
Excellent! Would also be great to have something similar to this in NWN1.

Posted by nicethugbert at 2009-02-12 17:06:56    Voted 10.00 on 02/12/09
NEAT!

Posted by barfubaz at 2009-02-12 16:58:37    Voted 10.00 on 02/12/09
More excellent KEMO work!

You must be Logged In to post comments in this section.

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

 
Most recent posts on the Neverwinter Nights
New Community Content!
- posted by Vault_News on Feb 16, 2009 05:00 PM
NWN2 Gameworld Database Update
- posted by Vault_News on Feb 16, 2009 04:29 PM
New Community Content!
- posted by Vault_News on Feb 16, 2009 04:00 PM
Official Neverwinter Nights 2 Forum Highli...Official Neverwinter Nights 2 Forum Highlights
- posted by Vault_News on Feb 16, 2009 03:13 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Feb 16, 2009 03:10 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Feb 16, 2009 03:03 PM
New Community Content!
- posted by Vault_News on Feb 15, 2009 01:00 PM
NWN Idea Database Update
- posted by Vault_News on Feb 15, 2009 12:11 PM
NWN Gameworld Database Update
- posted by Vault_News on Feb 15, 2009 12:07 PM
New Community Content!
- posted by Vault_News on Feb 15, 2009 12:00 PM
 

   

IGN.com | GameSpy | Comrade | Arena | FilePlanet | ModCenter | GameSpy Technology
TeamXbox | Planets | Vaults | VE3D | CheatsCodesGuides | GameStats | GamerMetrics
AskMen.com | Rotten Tomatoes | Direct2Drive | Green Pixels
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-2009, IGN Entertainment, Inc.   About Us | Support | Advertise | Privacy Policy | User Agreement | Subscribe to RSS Feeds RSS
IGN's enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Prefab Blueprints


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