summaryrefslogtreecommitdiff
path: root/src/notifications.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-09 15:32:04 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-09 15:32:04 +0300
commitd7e0bbcc76bd6548975dfd30a50910d4967cad55 (patch)
tree4a33874bf1376be8708aaeb3f44cca1cd8279002 /src/notifications.h
parente433cda19d0d1d305a7a069a7930c2c7cf852930 (diff)
downloadmv-d7e0bbcc76bd6548975dfd30a50910d4967cad55.tar.gz
mv-d7e0bbcc76bd6548975dfd30a50910d4967cad55.tar.bz2
mv-d7e0bbcc76bd6548975dfd30a50910d4967cad55.tar.xz
mv-d7e0bbcc76bd6548975dfd30a50910d4967cad55.zip
Add new notifications to tradehandler.
Diffstat (limited to 'src/notifications.h')
-rw-r--r--src/notifications.h57
1 files changed, 40 insertions, 17 deletions
diff --git a/src/notifications.h b/src/notifications.h
index f73651a06..41c0734b4 100644
--- a/src/notifications.h
+++ b/src/notifications.h
@@ -25,6 +25,23 @@
namespace NotifyManager
{
+ enum NotifyFlags
+ {
+ EMPTY,
+ INT,
+ STRING,
+ GUILD,
+ GUILD_STRING,
+ PARTY,
+ PARTY_STRING
+ };
+
+ struct NotificationInfo
+ {
+ const char *text;
+ const NotifyFlags flags;
+ };
+
enum NotifyTypes
{
BUY_DONE,
@@ -72,27 +89,21 @@ namespace NotifyManager
MONEY_SPENT,
SKILL_RAISE_ERROR,
ARROWS_EQUIP_NEEDED,
+ TRADE_FAIL_FAR_AWAY,
+ TRADE_FAIL_CHAR_NOT_EXISTS,
+ TRADE_CANCELLED_ERROR,
+ TRADE_CANCELLED_NAME,
+ TRADE_ERROR_UNKNOWN,
+ TRADE_ADD_PARTNER_OVER_WEIGHT,
+ TRADE_ADD_PARTNER_NO_SLOTS,
+ TRADE_ADD_UNTRADABLE_ITEM,
+ TRADE_ADD_ERROR,
+ TRADE_CANCELLED,
+ TRADE_COMPLETE,
TYPE_END
};
- enum NotifyFlags
- {
- EMPTY,
- INT,
- STRING,
- GUILD,
- GUILD_STRING,
- PARTY,
- PARTY_STRING
- };
-
- struct NotificationInfo
- {
- const char *text;
- const NotifyFlags flags;
- };
-
static const NotificationInfo notifications[] =
{
{N_("Thanks for buying."), EMPTY},
@@ -140,6 +151,18 @@ namespace NotifyManager
{N_("You spent %s."), STRING},
{N_("Cannot raise skill!"), EMPTY},
{N_("Equip arrows first."), EMPTY},
+ {N_("Trading with %s isn't possible. Trade partner is too far away."),
+ STRING},
+ {N_("Trading with %s isn't possible. Character doesn't exist."), STRING},
+ {N_("Trade cancelled due to an unknown reason."), EMPTY},
+ {N_("Trade with %s cancelled."), STRING},
+ {N_("Unhandled trade cancel packet with %s"), STRING},
+ {N_("Failed adding item. Trade partner is over weighted."), EMPTY},
+ {N_("Failed adding item. Trade partner has no free slot."), EMPTY},
+ {N_("Failed adding item. You can't trade this item."), EMPTY},
+ {N_("Failed adding item for unknown reason."), EMPTY},
+ {N_("Trade canceled."), EMPTY},
+ {N_("Trade completed."), EMPTY},
};
}
#endif