Skip to content

Add currency and red bean exchanges - #57

Open
SzymonKaminski wants to merge 2 commits into
themeldingwars:mainfrom
SzymonKaminski:feature/exchanges
Open

SzymonKaminski wants to merge 2 commits into
themeldingwars:mainfrom
SzymonKaminski:feature/exchanges

Conversation

@SzymonKaminski

Copy link
Copy Markdown
Contributor

PR adds the currency exchange for PIN: 25 crystite for 1 credit, up to 1000 credits a day per character, and the red bean exchange with buy and sell orders at 100 to 500 credits (wiki source).
Orders trade by best price then oldest, at the price of the order already on the book; nothing trades while every sell asks more than any buy offers.
Added trigger on rb_balance announces every red bean change to the game servers.
Signed requests are now checked so the character belongs to the signing account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants