diff options
author | Emistry Haoyan <equinox1991@gmail.com> | 2020-03-07 22:41:10 +0800 |
---|---|---|
committer | Emistry Haoyan <equinox1991@gmail.com> | 2020-03-07 22:41:10 +0800 |
commit | f90a00bc8fdec4d2a0386dfcc1bea86210f9714e (patch) | |
tree | 435a398fac84c81c28a8435b46a7d2a4db375b8f /src/map | |
parent | 9106bbab19b4feaa4623a3b8e5d59e08ef73b640 (diff) | |
download | hercules-f90a00bc8fdec4d2a0386dfcc1bea86210f9714e.tar.gz hercules-f90a00bc8fdec4d2a0386dfcc1bea86210f9714e.tar.bz2 hercules-f90a00bc8fdec4d2a0386dfcc1bea86210f9714e.tar.xz hercules-f90a00bc8fdec4d2a0386dfcc1bea86210f9714e.zip |
Item with favorite flag can't sell to NPC.
- disable selling of favorite item to NPC.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 660c516d7..00cc4a3c4 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -2179,6 +2179,9 @@ static void clif_selllist(struct map_session_data *sd) if( !itemdb_cansell(&sd->status.inventory[i], pc_get_group_level(sd)) ) continue; + if (sd->status.inventory[i].favorite != 0) + continue; // Cannot Sell Favorite item + if( sd->status.inventory[i].expire_time ) continue; // Cannot Sell Rental Items |