TrinityCore
|
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "Player.h"
#include "SpellInfo.h"
#include "WorldSession.h"
Classes | |
class | npc_prof_alchemy |
class | npc_prof_blacksmith |
class | npc_engineering_tele_trinket |
class | npc_prof_leather |
class | npc_prof_tailor |
Macros | |
#define | TALK_MUST_UNLEARN_WEAPON "You must forget your weapon type specialty before I can help you. Go to Everlook in Winterspring and seek help there." |
#define | TALK_HAMMER_LEARN "Ah, a seasoned veteran you once were. I know you are capable, you merely need to ask and I shall teach you the way of the hammersmith." |
#define | TALK_AXE_LEARN "Ah, a seasoned veteran you once were. I know you are capable, you merely need to ask and I shall teach you the way of the axesmith." |
#define | TALK_SWORD_LEARN "Ah, a seasoned veteran you once were. I know you are capable, you merely need to ask and I shall teach you the way of the swordsmith." |
#define | TALK_HAMMER_UNLEARN "Forgetting your Hammersmithing skill is not something to do lightly. If you choose to abandon it you will forget all recipes that require Hammersmithing to create!" |
#define | TALK_AXE_UNLEARN "Forgetting your Axesmithing skill is not something to do lightly. If you choose to abandon it you will forget all recipes that require Axesmithing to create!" |
#define | TALK_SWORD_UNLEARN "Forgetting your Swordsmithing skill is not something to do lightly. If you choose to abandon it you will forget all recipes that require Swordsmithing to create!" |
#define | GOSSIP_SENDER_LEARN 50 |
#define | GOSSIP_SENDER_UNLEARN 51 |
#define | GOSSIP_SENDER_CHECK 52 |
#define | GOSSIP_LEARN_POTION "Please teach me how to become a Master of Potions, Lauranna" |
#define | GOSSIP_UNLEARN_POTION "I wish to unlearn Potion Mastery" |
#define | GOSSIP_LEARN_TRANSMUTE "Please teach me how to become a Master of Transmutations, Zarevhi" |
#define | GOSSIP_UNLEARN_TRANSMUTE "I wish to unlearn Transmutation Mastery" |
#define | GOSSIP_LEARN_ELIXIR "Please teach me how to become a Master of Elixirs, Lorokeem" |
#define | GOSSIP_UNLEARN_ELIXIR "I wish to unlearn Elixir Mastery" |
#define | BOX_UNLEARN_ALCHEMY_SPEC "Do you really want to unlearn your alchemy specialty and lose all associated recipes? \n Cost: " |
#define | GOSSIP_WEAPON_LEARN "Please teach me how to become a Weaponsmith" |
#define | GOSSIP_WEAPON_UNLEARN "I wish to unlearn the art of Weaponsmithing" |
#define | GOSSIP_ARMOR_LEARN "Please teach me how to become a Armorsmith" |
#define | GOSSIP_ARMOR_UNLEARN "I wish to unlearn the art of Armorsmithing" |
#define | GOSSIP_UNLEARN_SMITH_SPEC "I wish to unlearn my blacksmith specialty" |
#define | BOX_UNLEARN_ARMORORWEAPON "Do you really want to unlearn your blacksmith specialty and lose all associated recipes? \n Cost: " |
#define | GOSSIP_LEARN_HAMMER "Please teach me how to become a Hammersmith, Lilith" |
#define | GOSSIP_UNLEARN_HAMMER "I wish to unlearn Hammersmithing" |
#define | GOSSIP_LEARN_AXE "Please teach me how to become a Axesmith, Kilram" |
#define | GOSSIP_UNLEARN_AXE "I wish to unlearn Axesmithing" |
#define | GOSSIP_LEARN_SWORD "Please teach me how to become a Swordsmith, Seril" |
#define | GOSSIP_UNLEARN_SWORD "I wish to unlearn Swordsmithing" |
#define | BOX_UNLEARN_WEAPON_SPEC "Do you really want to unlearn your weaponsmith specialty and lose all associated recipes? \n Cost: " |
#define | GOSSIP_UNLEARN_DRAGON "I wish to unlearn Dragonscale Leatherworking" |
#define | GOSSIP_UNLEARN_ELEMENTAL "I wish to unlearn Elemental Leatherworking" |
#define | GOSSIP_UNLEARN_TRIBAL "I wish to unlearn Tribal Leatherworking" |
#define | BOX_UNLEARN_LEATHER_SPEC "Do you really want to unlearn your leatherworking specialty and lose all associated recipes? \n Cost: " |
#define | GOSSIP_LEARN_SPELLFIRE "Please teach me how to become a Spellcloth tailor" |
#define | GOSSIP_UNLEARN_SPELLFIRE "I wish to unlearn Spellfire Tailoring" |
#define | GOSSIP_LEARN_MOONCLOTH "Please teach me how to become a Mooncloth tailor" |
#define | GOSSIP_UNLEARN_MOONCLOTH "I wish to unlearn Mooncloth Tailoring" |
#define | GOSSIP_LEARN_SHADOWEAVE "Please teach me how to become a Shadoweave tailor" |
#define | GOSSIP_UNLEARN_SHADOWEAVE "I wish to unlearn Shadoweave Tailoring" |
#define | BOX_UNLEARN_TAILOR_SPEC "Do you really want to unlearn your tailoring specialty and lose all associated recipes? \n Cost: " |
#define | GOSSIP_ITEM_ZAP "This Dimensional Imploder sounds dangerous! How can I make one?" |
#define | GOSSIP_ITEM_JHORDY "I must build a beacon for this marvelous device!" |
#define | GOSSIP_ITEM_KABLAM "[PH] Unknown" |
Functions | |
int32 | DoLearnCost (Player *) |
int32 | DoHighUnlearnCost (Player *) |
int32 | DoMedUnlearnCost (Player *player) |
int32 | DoLowUnlearnCost (Player *player) |
void | ProcessCastaction (Player *player, Creature *creature, uint32 spellId, uint32 triggeredSpellId, int32 cost) |
bool | EquippedOk (Player *player, uint32 spellId) |
void | ProfessionUnlearnSpells (Player *player, uint32 type) |
void | ProcessUnlearnAction (Player *player, Creature *creature, uint32 spellId, uint32 alternativeSpellId, int32 cost) |
void | AddSC_npc_professions () |
#define BOX_UNLEARN_ALCHEMY_SPEC "Do you really want to unlearn your alchemy specialty and lose all associated recipes? \n Cost: " |
#define BOX_UNLEARN_ARMORORWEAPON "Do you really want to unlearn your blacksmith specialty and lose all associated recipes? \n Cost: " |
#define BOX_UNLEARN_LEATHER_SPEC "Do you really want to unlearn your leatherworking specialty and lose all associated recipes? \n Cost: " |
#define BOX_UNLEARN_TAILOR_SPEC "Do you really want to unlearn your tailoring specialty and lose all associated recipes? \n Cost: " |
#define BOX_UNLEARN_WEAPON_SPEC "Do you really want to unlearn your weaponsmith specialty and lose all associated recipes? \n Cost: " |
#define GOSSIP_ARMOR_LEARN "Please teach me how to become a Armorsmith" |
#define GOSSIP_ARMOR_UNLEARN "I wish to unlearn the art of Armorsmithing" |
#define GOSSIP_ITEM_JHORDY "I must build a beacon for this marvelous device!" |
#define GOSSIP_ITEM_KABLAM "[PH] Unknown" |
#define GOSSIP_ITEM_ZAP "This Dimensional Imploder sounds dangerous! How can I make one?" |
#define GOSSIP_LEARN_AXE "Please teach me how to become a Axesmith, Kilram" |
#define GOSSIP_LEARN_ELIXIR "Please teach me how to become a Master of Elixirs, Lorokeem" |
#define GOSSIP_LEARN_HAMMER "Please teach me how to become a Hammersmith, Lilith" |
#define GOSSIP_LEARN_MOONCLOTH "Please teach me how to become a Mooncloth tailor" |
#define GOSSIP_LEARN_POTION "Please teach me how to become a Master of Potions, Lauranna" |
#define GOSSIP_LEARN_SHADOWEAVE "Please teach me how to become a Shadoweave tailor" |
#define GOSSIP_LEARN_SPELLFIRE "Please teach me how to become a Spellcloth tailor" |
#define GOSSIP_LEARN_SWORD "Please teach me how to become a Swordsmith, Seril" |
#define GOSSIP_LEARN_TRANSMUTE "Please teach me how to become a Master of Transmutations, Zarevhi" |
#define GOSSIP_SENDER_CHECK 52 |
#define GOSSIP_SENDER_LEARN 50 |
#define GOSSIP_SENDER_UNLEARN 51 |
#define GOSSIP_UNLEARN_AXE "I wish to unlearn Axesmithing" |
#define GOSSIP_UNLEARN_DRAGON "I wish to unlearn Dragonscale Leatherworking" |
#define GOSSIP_UNLEARN_ELEMENTAL "I wish to unlearn Elemental Leatherworking" |
#define GOSSIP_UNLEARN_ELIXIR "I wish to unlearn Elixir Mastery" |
#define GOSSIP_UNLEARN_HAMMER "I wish to unlearn Hammersmithing" |
#define GOSSIP_UNLEARN_MOONCLOTH "I wish to unlearn Mooncloth Tailoring" |
#define GOSSIP_UNLEARN_POTION "I wish to unlearn Potion Mastery" |
#define GOSSIP_UNLEARN_SHADOWEAVE "I wish to unlearn Shadoweave Tailoring" |
#define GOSSIP_UNLEARN_SMITH_SPEC "I wish to unlearn my blacksmith specialty" |
#define GOSSIP_UNLEARN_SPELLFIRE "I wish to unlearn Spellfire Tailoring" |
#define GOSSIP_UNLEARN_SWORD "I wish to unlearn Swordsmithing" |
#define GOSSIP_UNLEARN_TRANSMUTE "I wish to unlearn Transmutation Mastery" |
#define GOSSIP_UNLEARN_TRIBAL "I wish to unlearn Tribal Leatherworking" |
#define GOSSIP_WEAPON_LEARN "Please teach me how to become a Weaponsmith" |
#define GOSSIP_WEAPON_UNLEARN "I wish to unlearn the art of Weaponsmithing" |
#define TALK_AXE_LEARN "Ah, a seasoned veteran you once were. I know you are capable, you merely need to ask and I shall teach you the way of the axesmith." |
#define TALK_AXE_UNLEARN "Forgetting your Axesmithing skill is not something to do lightly. If you choose to abandon it you will forget all recipes that require Axesmithing to create!" |
#define TALK_HAMMER_LEARN "Ah, a seasoned veteran you once were. I know you are capable, you merely need to ask and I shall teach you the way of the hammersmith." |
#define TALK_HAMMER_UNLEARN "Forgetting your Hammersmithing skill is not something to do lightly. If you choose to abandon it you will forget all recipes that require Hammersmithing to create!" |
#define TALK_MUST_UNLEARN_WEAPON "You must forget your weapon type specialty before I can help you. Go to Everlook in Winterspring and seek help there." |
#define TALK_SWORD_LEARN "Ah, a seasoned veteran you once were. I know you are capable, you merely need to ask and I shall teach you the way of the swordsmith." |
#define TALK_SWORD_UNLEARN "Forgetting your Swordsmithing skill is not something to do lightly. If you choose to abandon it you will forget all recipes that require Swordsmithing to create!" |
enum EngineeringTrinkets |
enum ProfessionSpells |
enum SpecializationQuests |
void AddSC_npc_professions | ( | ) |
int32 DoHighUnlearnCost | ( | Player * | ) |
int32 DoLearnCost | ( | Player * | ) |
int32 DoLowUnlearnCost | ( | Player * | player | ) |
int32 DoMedUnlearnCost | ( | Player * | player | ) |
void ProcessCastaction | ( | Player * | player, |
Creature * | creature, | ||
uint32 | spellId, | ||
uint32 | triggeredSpellId, | ||
int32 | cost | ||
) |
void ProcessUnlearnAction | ( | Player * | player, |
Creature * | creature, | ||
uint32 | spellId, | ||
uint32 | alternativeSpellId, | ||
int32 | cost | ||
) |
void ProfessionUnlearnSpells | ( | Player * | player, |
uint32 | type | ||
) |