From 3ccdb43683c00cbd41920df7f2dd5a194428977e Mon Sep 17 00:00:00 2001 From: Nuno Date: Thu, 20 May 2021 11:47:20 +0200 Subject: [PATCH] Player can't exchanges jewels with allegories --- .../entities_game_service/player_manager/character.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ryzom/server/src/entities_game_service/player_manager/character.cpp b/ryzom/server/src/entities_game_service/player_manager/character.cpp index 7af9dd286..c92903129 100644 --- a/ryzom/server/src/entities_game_service/player_manager/character.cpp +++ b/ryzom/server/src/entities_game_service/player_manager/character.cpp @@ -11442,6 +11442,15 @@ void CCharacter::sellItem(INVENTORIES::TInventory inv, uint32 slot, uint32 quant return; } + // you cannot exchange jewels with non tags allegories + std::vector sheets; + item->getJewelNonTagsEnchantments(sheets); + if (sheets.size() > 0) + { + nlwarning("Character %s tries to sell '%s'", _Id.toString().c_str(), item->getPhraseId().c_str()); + return; + } + if (!ITEMFAMILY::isSellableByPlayer(itemForm->Family)) { nlwarning(