![]() |
TrinityCore
|
#include "ScriptMgr.h"#include "GameObjectAI.h"#include "Item.h"#include "Log.h"#include "Player.h"#include "ScriptedCreature.h"#include "ScriptedGossip.h"#include "SpellInfo.h"#include "SpellMgr.h"#include "WorldSession.h"
Include dependency graph for npc_professions.cpp:Go to the source code of this file.
Classes | |
| class | npc_prof_blacksmith |
| struct | npc_prof_blacksmith::npc_prof_blacksmithAI |
| class | npc_engineering_tele_trinket |
| struct | npc_engineering_tele_trinket::npc_engineering_tele_trinketAI |
| class | go_soothsaying_for_dummies |
| struct | go_soothsaying_for_dummies::go_soothsaying_for_dummiesAI |
| class | npc_prof_leather |
| struct | npc_prof_leather::npc_prof_leatherAI |
| class | npc_prof_tailor |
| struct | npc_prof_tailor::npc_prof_tailorAI |
| class | npc_prof_alchemy |
| struct | npc_prof_alchemy::npc_prof_alchemyAI |
Macros | |
| #define | GOSSIP_SENDER_LEARN 50 |
| #define | GOSSIP_SENDER_UNLEARN 51 |
| #define | GOSSIP_SENDER_CHECK 52 |
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 GOSSIP_SENDER_CHECK 52 |
Definition at line 47 of file npc_professions.cpp.
| #define GOSSIP_SENDER_LEARN 50 |
Definition at line 45 of file npc_professions.cpp.
| #define GOSSIP_SENDER_UNLEARN 51 |
Definition at line 46 of file npc_professions.cpp.
| enum EngineeringTrinkets |
Definition at line 609 of file npc_professions.cpp.
| enum Gossips |
Definition at line 53 of file npc_professions.cpp.
| enum ProfessionQuest |
| Enumerator | |
|---|---|
| Q_MASTER_TRANSMUTE | |
| Q_MASTER_ELIXIR | |
| Q_MASTER_POTION | |
Definition at line 198 of file npc_professions.cpp.
| enum ProfessionSpells |
Definition at line 87 of file npc_professions.cpp.
| Enumerator | |
|---|---|
| GOSSIP_ID | |
| OPTION_UNLEARN_GNOMISH | |
| OPTION_UNLEARN_GOBLIN | |
| OPTION_LEARN_GNOMISH | |
| OPTION_LEARN_GOBLIN | |
| OPTION_LEARN_DRAGONSCALE | |
| OPTION_LEARN_ELEMENTAL | |
| OPTION_LEARN_TRIBAL | |
Definition at line 729 of file npc_professions.cpp.
Definition at line 165 of file npc_professions.cpp.
| void AddSC_npc_professions | ( | ) |
Definition at line 1120 of file npc_professions.cpp.
Referenced by AddWorldScripts().
Definition at line 214 of file npc_professions.cpp.
Referenced by npc_prof_tailor::npc_prof_tailorAI::SendActionMenu(), and npc_prof_alchemy::npc_prof_alchemyAI::SendActionMenu().
Definition at line 209 of file npc_professions.cpp.
Referenced by npc_prof_tailor::npc_prof_tailorAI::SendActionMenu(), and npc_prof_alchemy::npc_prof_alchemyAI::SendActionMenu().
Definition at line 230 of file npc_professions.cpp.
References Unit::GetLevel().
Referenced by npc_prof_blacksmith::npc_prof_blacksmithAI::SendActionMenu().
Definition at line 219 of file npc_professions.cpp.
References Unit::GetLevel().
Referenced by npc_prof_blacksmith::npc_prof_blacksmithAI::SendActionMenu(), and npc_prof_leather::npc_prof_leatherAI::SendActionMenu().
Definition at line 255 of file npc_professions.cpp.
References EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, SpellInfo::GetEffects(), Object::GetEntry(), Player::GetItemByPos(), ItemTemplate::GetRequiredSpell(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, sSpellMgr, and TC_LOG_DEBUG.
Referenced by ProcessUnlearnAction().
| void ProcessCastaction | ( | Player * | player, |
| Creature * | creature, | ||
| uint32 | spellId, | ||
| uint32 | triggeredSpellId, | ||
| int32 | cost | ||
| ) |
Definition at line 239 of file npc_professions.cpp.
References BUY_ERR_NOT_ENOUGHT_MONEY, WorldObject::CastSpell(), CloseGossipMenuFor(), Player::HasEnoughMoney(), Player::HasSpell(), Player::ModifyMoney(), and Player::SendBuyError().
Referenced by npc_prof_tailor::npc_prof_tailorAI::SendActionMenu(), and npc_prof_alchemy::npc_prof_alchemyAI::SendActionMenu().
| void ProcessUnlearnAction | ( | Player * | player, |
| Creature * | creature, | ||
| uint32 | spellId, | ||
| uint32 | alternativeSpellId, | ||
| int32 | cost | ||
| ) |
Definition at line 396 of file npc_professions.cpp.
References BUY_ERR_NOT_ENOUGHT_MONEY, WorldObject::CastSpell(), CloseGossipMenuFor(), EQUIP_ERR_CLIENT_LOCKED_OUT, EquippedOk(), Player::HasEnoughMoney(), Player::ModifyMoney(), ProfessionUnlearnSpells(), Player::SendBuyError(), and Player::SendEquipError().
Referenced by go_soothsaying_for_dummies::go_soothsaying_for_dummiesAI::OnGossipSelect(), npc_prof_blacksmith::npc_prof_blacksmithAI::SendActionMenu(), npc_prof_leather::npc_prof_leatherAI::SendActionMenu(), npc_prof_tailor::npc_prof_tailorAI::SendActionMenu(), and npc_prof_alchemy::npc_prof_alchemyAI::SendActionMenu().
Definition at line 282 of file npc_professions.cpp.
References Player::RemoveSpell(), S_UNLEARN_ARMOR, S_UNLEARN_AXE, S_UNLEARN_DRAGON, S_UNLEARN_ELEMENTAL, S_UNLEARN_GNOMISH, S_UNLEARN_GOBLIN, S_UNLEARN_HAMMER, S_UNLEARN_MOONCLOTH, S_UNLEARN_SHADOWEAVE, S_UNLEARN_SPELLFIRE, S_UNLEARN_SWORD, S_UNLEARN_TRIBAL, and S_UNLEARN_WEAPON.
Referenced by ProcessUnlearnAction().