Jump to content
Sign in to follow this  
Billy

User based auction NPC

Recommended Posts

Unlike my other one, this one is based on users rather than admins.

Any player on the server can submit an item to the auction.

Each player can only have 1 auction active.

(Note, in the second video I forgot to enable the seller actually getting their gold, after the auction is over,the seller clicks "claim items" to get their gold.)

 

 

 

 

Features:

"Infinitely" expandable (only limited by table size)

Easy to use

Claiming items requires space in bag

Claiming gold requires less than 2b gold (checks for overflow, will give at most the differance between your gold and 2b)

Currently, the entire system only takes  7  8 pages off the npc (for any amount of auctions running at once)

Supports item attributes

Bought items/gold from selling/refunded gold from not winning are claimed at the npc

 

Future:

Make the next/previous buttons disappear if there isnt a next/previous page (currently they just redirect back to the current page if that is the case)

Allow more than 1 auction per person, and have a menu of all a persons auctions if they want to withdraw. (wont do this, as i think it would be spammed)

Have a menu of bought items to claim, rather than claiming all at once.

Named attributes ( str/acc /con etc )rather than just the ID (26/28/29 etc)

Add different descriptions depending on the item type

 

 

 

 

 

Updated: Tided up the info page a bit:

LKm9wFn.png 

Edited by 7n6
  • Like 7

Share this post


Link to post
Share on other sites

Updated the way to claim: you can now select the items from a menu instead of having to claim all at once in order (unsold items you listed are also added to this menu) :

 

 

 

Share this post


Link to post
Share on other sites

Just couple questions, 
I don't remember correctly but there seems to be a limitation on talk pages. 30 or something right?
If the number of items to be auctioned surpass the page limitation, does the npc acts like some sort of ADT where items that cannot be displayed
will be displayed once there is room.
Also, another thing, attrs such as str/con/agi/acc/spr on non-stapled equipments like non-unseals transfered to new equipments?

and finally, nice system =)

  • Like 1

kong.png

a2.png

Share this post


Link to post
Share on other sites

@KONG

1) The entire system takes 8 pages no matter how many items there are. 

each time you press next/previous a counter is incremented/decremented by 1, and you are redirected back to the same page

Each item has a number (1-6) on each page

when you click the item, if it exists you are redircted to a blank page, if it doesnt exist you are sent back to the list page without changing the counter

On the blank page, your counter is multiplied by 6 and the number assigned to the link you clicked added to it, and then the talk is generated from there.

 

So you can have any number of items in the system (up to whatever the limit in lua tables is)

 

2)It loops onto the "next" page, which is the same page with the counter incremented by 1, items with ID between (counter *6) and ((counter + 1)*6 -1) are displayed at once

 

3)Yes, these are transfered and displayed

 

4) Thanks :)

  • Like 1

Share this post


Link to post
Share on other sites

When the auction ends, the player has to go to the npc and click "Claim a won item", and select the item they want to claim from  a list of all auctions they won.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...