chore(PlayerScript/Hook) : Add CanSetTradeItem Hook in PlayerScript (#18583)

* chore(PlayerScript/Hook) : Add CanSetTradeItem Hook in PlayerScript

* Allowing non traded slots

* Fix typo and codestyle
This commit is contained in:
Elmsroth
2024-03-27 01:28:37 +01:00
committed by GitHub
parent 5b8bc792b8
commit b1cf830009
4 changed files with 33 additions and 0 deletions

View File

@@ -440,6 +440,7 @@ public: /* PlayerScript */
bool CanJoinLfg(Player* player, uint8 roles, lfg::LfgDungeonSet& dungeons, const std::string& comment);
bool CanEnterMap(Player* player, MapEntry const* entry, InstanceTemplate const* instance, MapDifficulty const* mapDiff, bool loginCheck);
bool CanInitTrade(Player* player, Player* target);
bool CanSetTradeItem(Player* player, Item* tradedItem, uint8 tradeSlot);
void OnSetServerSideVisibility(Player* player, ServerSideVisibilityType& type, AccountTypes& sec);
void OnSetServerSideVisibilityDetect(Player* player, ServerSideVisibilityType& type, AccountTypes& sec);
void OnPlayerResurrect(Player* player, float restore_percent, bool applySickness);