[9715] Implement required basic elements for dual spec learn gossips.

Required DB data for real work. This is final part required at core side for support.

Also note that commit include

* generic implementation money cost gossip menu items so let
  implement in DB many money cost gossip operations with _fixed_ cost.
* useful CONDITION_SPELL that let implemtn menu item visible if specific
  spell known/don't known also wide used case for diff gossips.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
insider42 2010-04-10 03:01:39 +04:00 committed by VladimirMangos
parent f1af55f162
commit da253087cb
4 changed files with 41 additions and 3 deletions

View file

@ -314,9 +314,10 @@ enum ConditionType
CONDITION_RACE_CLASS = 14, // race_mask class_mask
CONDITION_LEVEL = 15, // player_level 0, 1 or 2 (0: equal to, 1: equal or higher than, 2: equal or less than)
CONDITION_NOITEM = 16, // item_id count
CONDITION_SPELL = 17, // spell_id 0, 1 (0: has spell, 1: hasn't spell)
};
#define MAX_CONDITION 17 // maximum value in ConditionType enum
#define MAX_CONDITION 18 // maximum value in ConditionType enum
struct PlayerCondition
{