Comments (5)
explain the search command.
from iconomy.
suppose there's 20 auctions up, lasting times from 1 hour to 6 days, selling various items. I want to buy some cloth, without having to look throguh all the other stuff:
/auction search cloth
id | name | type | amt | price
13 | bob912 | cloth | 64 | 1
or, /search bob912 to get all auctions by bob912.
from iconomy.
The only thing preventing this from being made is the timer functionality in Java, I will look into ways to implement multiple Auctions in the future, ideas can continue to be posted as such.
We will be discussing ways to implement them.
from iconomy.
well, the easiest way would be with SQL - handling auctions in a batch on a periodic basis.
Get a user list, and then select all expired and open auctions for online players (have an "active" flag), and award the winner their item.
select * from auctions where active=1 and expire < now() and user in (select * from online_users)
That way you don't have to have a thread for every auction, you just use sql statements to poll, bid, and buyout auctions.
With flat files, it'd be more complicated. You'd have to do it entirely in memory and write out the files after every transaction.
from iconomy.
or have a table for won items which can be managed by an external web based auctioning site. To collect their winnings they just join the server and type "/auction claim" for example.
The web auction of course will fetch the auction data from the mySQL tables for iconomy, this is actually something i was planning on making, but i don't know java and so can't do an in-game command unless i use my slightly slow php server wrapper =/
from iconomy.
Related Issues (20)
- Nobody can stock signs. HOT 1
- I cannot get /shop or /auction to work only /money
- Shop border HOT 2
- Stock goes missing after adding extra
- Unable to load plugin on non-sun JVM
- purchasing from local shop not reducing stock
- Shop owner can't receive what thay sold from their shop HOT 1
- Addon/Plugin help HOT 1
- Shop Owners do not get income from purchases in their shop, even if taxes are set. HOT 1
- Sign shop problem
- Cannot allow more shops.
- Only Admin iCononmy HOT 2
- Selling items gives no money? HOT 1
- Selling items gives no money?
- Settings.properties increasing size DRAMATICALLY
- Icshop New at this please help!
- /shop list function not working HOT 1
- /sell command not working. HOT 1
- can only put so many chest to sell
- Error on /money
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iconomy.