Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes regarding storage implementation on ManaMarket #9

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

Meistache
Copy link

Finally.

What's done until now:

  • Storage class for keeping a local storage and manipulating storage;
  • Added storage packets to protocol.py;
  • Added new item trees and their data templates:
    • Delisted tree deals with expired items in the sale tree list;
    • Stack tree allows someone to add an item even that inventory is full, so it will be added to list as soon as it's free;
    • Added changes to main.py to comply with new features.

What needs to be done:

  • storage_open (through @storage command) is kicking MM off;
  • do_delist must take items from stack tree and add to sale tree (my bad; just remembered it now... gotta make a new commit soon)

@Meistache
Copy link
Author

Added a unstack() function since it's done on SMSG_PLAYER_INVENTORY_ADD as well as do_delist, which is making sense now with it.

So now the only thing is about opening storage without a buttkick.

@wushin
Copy link
Member

wushin commented Feb 8, 2015

The kick is from the
clif_validate_chat(): TestRun (ID 2000000) sent a malformed message: spoofed name/invalid format.
The first Open Storage is kicking the bot.

@wushin
Copy link
Member

wushin commented Feb 8, 2015

Figured it out.

@wushin
Copy link
Member

wushin commented Feb 22, 2015

I will try to test this later tonight. unless someone tests this on test first.

@wushin
Copy link
Member

wushin commented Mar 1, 2015

@Meistache this is the current version of Mana Market on the test server.

main.py Outdated
if items_for_sale == False:
mapserv.sendall(whisper(nick, "You have no items for sale."))

items_for_getback == False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

items_for_getback = False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants