From 52864b40d6f9df5682b257ac2f36d645895364be Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 6 Nov 2013 22:41:24 -0200 Subject: Update Fix Re-added the changes that were gone in the update conflict. Signed-off-by: shennetsind --- conf/messages.conf | 16 +++++++++++++++- src/common/mmo.h | 2 +- src/map/pc_groups.c | 1 + src/map/pc_groups.h | 1 + 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/conf/messages.conf b/conf/messages.conf index a9f0a5984..3564de043 100644 --- a/conf/messages.conf +++ b/conf/messages.conf @@ -316,6 +316,13 @@ 290: The player is no longer killable. 291: Weather effects will dispell on warp/refresh 292: Killer state reset. +//Item Bind System +293: This bounded item cannot be traded to that character. +294: This bounded item cannot be stored there. +295: Please enter an item name or ID (usage: @itembound ). +296: Please enter all parameters (usage: @itembound2 +297: ). +298: Invalid bound type. Valid types are - 1:Account 2:Guild 3:Party 4:Character // Guild Castles Number // -------------------- //299: ?? Castles @@ -455,6 +462,13 @@ // Messages of others (not for GM commands) // ---------------------------------------- +// Account-Bound Items +497: You cannot distribute this item - it is an account bounded item! + +// @itembound / @itembound2 +498: Cannot create bounded pet eggs or pet armors. +499: Cannot create bounded stackable items. + //500: FREE 501: Your account time limit is: %d-%m-%Y %H:%M:%S. 502: Day Mode is activated @@ -715,7 +729,7 @@ 983: Please enter an item name or ID (usage: @item ). // @item2 -984: Please enter all parameters (usage: @item2 +984: Please enter all parameters (usage: @item2 ). 985: ). // @baselevelup diff --git a/src/common/mmo.h b/src/common/mmo.h index b1a1caf24..f676893ea 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -222,7 +222,7 @@ struct item { char attribute; short card[MAX_SLOTS]; unsigned int expire_time; - char favorite; + char favorite, bound; uint64 unique_id; }; diff --git a/src/map/pc_groups.c b/src/map/pc_groups.c index 78d111b1c..c44e2634a 100644 --- a/src/map/pc_groups.c +++ b/src/map/pc_groups.c @@ -417,6 +417,7 @@ void do_init_pc_groups(void) { { "disable_pvp", PC_PERM_DISABLE_PVP }, { "disable_commands_when_dead", PC_PERM_DISABLE_CMD_DEAD }, { "hchsys_admin", PC_PERM_HCHSYS_ADMIN }, + { "can_trade_bounded", PC_PERM_TRADE_BOUNDED }, }; unsigned char i, len = ARRAYLENGTH(pc_g_defaults); diff --git a/src/map/pc_groups.h b/src/map/pc_groups.h index 28c82d619..df99b19df 100644 --- a/src/map/pc_groups.h +++ b/src/map/pc_groups.h @@ -30,6 +30,7 @@ enum e_pc_permission { PC_PERM_DISABLE_PVP = 0x080000, // #20 PC_PERM_DISABLE_CMD_DEAD = 0x100000, PC_PERM_HCHSYS_ADMIN = 0x200000, + PC_PERM_TRADE_BOUNDED = 0x400000, }; // Cached config settings for quick lookup -- cgit v1.2.3-70-g09d2