Git Product home page Git Product logo

Comments (5)

nijikokun avatar nijikokun commented on August 11, 2024

explain the search command.

from iconomy.

rbos avatar rbos commented on August 11, 2024

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.

nijikokun avatar nijikokun commented on August 11, 2024

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.

rbos avatar rbos commented on August 11, 2024

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.

justinsmith2010 avatar justinsmith2010 commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.