diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-27 16:02:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-27 16:02:54 +0300 |
commit | fc2514926927b709dd59325e83b7da9fd10fa36e (patch) | |
tree | 97acbd471a5780177495f006e4e87ca94fe087a9 /src/commands.cpp | |
parent | fda230f1a8a6399c2507c7e39cd714d8aefc712d (diff) | |
download | manaverse-fc2514926927b709dd59325e83b7da9fd10fa36e.tar.gz manaverse-fc2514926927b709dd59325e83b7da9fd10fa36e.tar.bz2 manaverse-fc2514926927b709dd59325e83b7da9fd10fa36e.tar.xz manaverse-fc2514926927b709dd59325e83b7da9fd10fa36e.zip |
Move chat command /createitems into actions.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index fcc5eff26..960e35994 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -106,38 +106,6 @@ impHandler(hack) return true; } -impHandler0(createItems) -{ - BuyDialog *const dialog = new BuyDialog(); - const ItemDB::ItemInfos &items = ItemDB::getItemInfos(); - FOR_EACH (ItemDB::ItemInfos::const_iterator, it, items) - { - const ItemInfo *const info = (*it).second; - const int id = info->getId(); - if (id <= 500) - continue; - - int colors = info->getColorsSize(); - if (colors >= 255) - colors = 254; - - if (!colors) - { - dialog->addItem(id, 1, 100, 0); - } - else - { - for (unsigned char f = 0; f < colors; f ++) - { - if (!info->getColor(f).empty()) - dialog->addItem(id, f, 100, 0); - } - } - } - dialog->sort(); - return true; -} - impHandler(talkRaw) { Net::getChatHandler()->talkRaw(event.args); |