Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Updates Item Sell checks (#3491)
* Added config values for `allow_bound_sell` * 0x4 allows bound item to be sold at NPC Shops * 0x8 restrict only guild leader who can sell guild bound item at NPC Shops or Itemshops * Added config to allow rental items can be sold at NPC `rental_transaction` (planned for more config values based on #3490). Default to `yes` allowed to be sold, still can be restricted by item_trade, item id based. * Fixed itemshop which ignores another item stack in inventory even for same item currency * Fixed exploit potential by using Itemshop & Pointshop * Now equipped item cannot be sold at NPC * Typo and grammar fixes. Thanks to @aleos89 and @secretdataz
- Loading branch information
Showing
with
77 additions
and 25 deletions.
- +9 −3 conf/battle/items.conf
- +2 −1 src/map/battle.cpp
- +1 −0 src/map/battle.hpp
- +4 −1 src/map/clif.cpp
- +2 −1 src/map/itemdb.hpp
- +31 −6 src/map/npc.cpp
- +27 −12 src/map/pc.cpp
- +1 −1 src/map/pc.hpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -649,6 +649,7 @@ struct Battle_Config | ||
| int homunculus_autofeed_always; | ||
| int feature_attendance; | ||
| int feature_privateairship; | ||
| int rental_transaction; | ||
|
|
||
| #include "../custom/battle_config_struct.inc" | ||
| }; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -740,7 +740,8 @@ enum e_itemshop_restrictions { | ||
| ISR_NONE = 0x0, | ||
| ISR_BOUND = 0x1, | ||
| ISR_SELLABLE = 0x2, | ||
| ISR_BOUND_SELLABLE = 0x4, | ||
| ISR_BOUND_GUILDLEADER_ONLY = 0x8, | ||
| }; | ||
|
|
||
| ///Item combo struct | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters