|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include "Containers.h"#include "Group.h"#include "Log.h"#include "LootMgr.h"#include "ObjectMgr.h"#include "Player.h"#include "SharedDefines.h"#include "SpellInfo.h"#include "SpellMgr.h"#include "UnaryFunction.h"#include "Util.h"#include "World.h"Go to the source code of this file.
Classes | |
| struct | LootGroupInvalidSelector |
| class | LootTemplate::LootGroup |
Functions | |
| void | LoadLootTemplates_Creature () |
| void | LoadLootTemplates_Disenchant () |
| void | LoadLootTemplates_Fishing () |
| void | LoadLootTemplates_Gameobject () |
| void | LoadLootTemplates_Item () |
| void | LoadLootTemplates_Mail () |
| void | LoadLootTemplates_Milling () |
| void | LoadLootTemplates_Pickpocketing () |
| void | LoadLootTemplates_Prospecting () |
| void | LoadLootTemplates_Reference () |
| void | LoadLootTemplates_Skinning () |
| void | LoadLootTemplates_Spell () |
Variables | |
| LootStore | LootTemplates_Creature ("creature_loot_template", "creature entry", true) |
| LootStore | LootTemplates_Disenchant ("disenchant_loot_template", "item disenchant id", true) |
| LootStore | LootTemplates_Fishing ("fishing_loot_template", "area id", true) |
| LootStore | LootTemplates_Gameobject ("gameobject_loot_template", "gameobject entry", true) |
| LootStore | LootTemplates_Item ("item_loot_template", "item entry", true) |
| LootStore | LootTemplates_Mail ("mail_loot_template", "mail template id", false) |
| LootStore | LootTemplates_Milling ("milling_loot_template", "item entry (herb)", true) |
| LootStore | LootTemplates_Pickpocketing ("pickpocketing_loot_template", "creature pickpocket lootid", true) |
| LootStore | LootTemplates_Prospecting ("prospecting_loot_template", "item entry (ore)", true) |
| LootStore | LootTemplates_Reference ("reference_loot_template", "reference id", false) |
| LootStore | LootTemplates_Skinning ("skinning_loot_template", "creature skinning id", true) |
| LootStore | LootTemplates_Spell ("spell_loot_template", "spell id (random item creating)", false) |
| static Rates const | qualityToRate [MAX_ITEM_QUALITY] |
| void LoadLootTemplates_Creature | ( | ) |
Definition at line 1606 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootTemplates_Creature, SF_LOG_ERROR, SF_LOG_INFO, and sObjectMgr.
Referenced by reload_commandscript::HandleReloadLootTemplatesCreatureCommand(), and LoadLootTables().
| void LoadLootTemplates_Disenchant | ( | ) |
Definition at line 1640 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), ItemDisenchantLootEntry::Id, LootTemplates_Disenchant, SF_LOG_ERROR, SF_LOG_INFO, and sItemDisenchantLootStore.
Referenced by reload_commandscript::HandleReloadLootTemplatesDisenchantCommand(), and LoadLootTables().
| void LoadLootTemplates_Fishing | ( | ) |
Definition at line 1674 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootTemplates_Fishing, sAreaStore, SF_LOG_ERROR, and SF_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesFishingCommand(), and LoadLootTables().
| void LoadLootTemplates_Gameobject | ( | ) |
Definition at line 1698 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootTemplates_Gameobject, SF_LOG_ERROR, SF_LOG_INFO, and sObjectMgr.
Referenced by reload_commandscript::HandleReloadLootTemplatesGameobjectCommand(), and LoadLootTables().
| void LoadLootTemplates_Item | ( | ) |
Definition at line 1732 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), ITEM_PROTO_FLAG_OPENABLE, LootTemplates_Item, SF_LOG_ERROR, SF_LOG_INFO, and sObjectMgr.
Referenced by reload_commandscript::HandleReloadLootTemplatesItemCommand(), and LoadLootTables().
| void LoadLootTemplates_Mail | ( | ) |
Definition at line 1848 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootTemplates_Mail, SF_LOG_ERROR, SF_LOG_INFO, and sMailTemplateStore.
Referenced by reload_commandscript::HandleReloadLootTemplatesMailCommand(), and LoadLootTables().
| void LoadLootTemplates_Milling | ( | ) |
Definition at line 1756 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), ITEM_PROTO_FLAG_MILLABLE, LootTemplates_Milling, SF_LOG_ERROR, SF_LOG_INFO, and sObjectMgr.
Referenced by reload_commandscript::HandleReloadLootTemplatesMillingCommand(), and LoadLootTables().
| void LoadLootTemplates_Pickpocketing | ( | ) |
Definition at line 1785 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootTemplates_Pickpocketing, SF_LOG_ERROR, SF_LOG_INFO, and sObjectMgr.
Referenced by reload_commandscript::HandleReloadLootTemplatesPickpocketingCommand(), and LoadLootTables().
| void LoadLootTemplates_Prospecting | ( | ) |
Definition at line 1819 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), ITEM_PROTO_FLAG_PROSPECTABLE, LootTemplates_Prospecting, SF_LOG_ERROR, SF_LOG_INFO, and sObjectMgr.
Referenced by reload_commandscript::HandleReloadLootTemplatesProspectingCommand(), and LoadLootTables().
| void LoadLootTemplates_Reference | ( | ) |
Definition at line 1947 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootTemplates_Creature, LootTemplates_Disenchant, LootTemplates_Fishing, LootTemplates_Gameobject, LootTemplates_Item, LootTemplates_Mail, LootTemplates_Milling, LootTemplates_Pickpocketing, LootTemplates_Prospecting, LootTemplates_Reference, LootTemplates_Skinning, and SF_LOG_INFO.
Referenced by reload_commandscript::HandleReloadLootTemplatesReferenceCommand(), and LoadLootTables().
| void LoadLootTemplates_Skinning | ( | ) |
Definition at line 1871 of file LootMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), LootTemplates_Skinning, SF_LOG_ERROR, SF_LOG_INFO, and sObjectMgr.
Referenced by reload_commandscript::HandleReloadLootTemplatesSkinningCommand(), and LoadLootTables().
| void LoadLootTemplates_Spell | ( | ) |
Definition at line 1905 of file LootMgr.cpp.
References SpellInfo::Attributes, getMSTime(), GetMSTimeDiffToNow(), SpellInfo::IsLootCrafting(), LootTemplates_Spell, SF_LOG_ERROR, SF_LOG_INFO, SPELL_ATTR0_NOT_SHAPESHIFT, SPELL_ATTR0_TRADESPELL, and sSpellMgr.
Referenced by reload_commandscript::HandleReloadLootTemplatesSpellCommand(), and LoadLootTables().
| LootStore LootTemplates_Creature("creature_loot_template", "creature entry", true) | ( | "creature_loot_template" | , |
| "creature entry" | , | ||
| true | ) |
| LootStore LootTemplates_Disenchant("disenchant_loot_template", "item disenchant id", true) | ( | "disenchant_loot_template" | , |
| "item disenchant id" | , | ||
| true | ) |
| LootStore LootTemplates_Fishing("fishing_loot_template", "area id", true) | ( | "fishing_loot_template" | , |
| "area id" | , | ||
| true | ) |
| LootStore LootTemplates_Gameobject("gameobject_loot_template", "gameobject entry", true) | ( | "gameobject_loot_template" | , |
| "gameobject entry" | , | ||
| true | ) |
Referenced by GameObject::ActivateToQuest(), reload_commandscript::HandleReloadLootTemplatesGameobjectCommand(), ConditionMgr::isSourceTypeValid(), ConditionMgr::LoadConditions(), ObjectMgr::LoadGameObjectForQuests(), LoadLootTemplates_Gameobject(), LoadLootTemplates_Reference(), and Player::SendLoot().
| LootStore LootTemplates_Item("item_loot_template", "item entry", true) | ( | "item_loot_template" | , |
| "item entry" | , | ||
| true | ) |
| LootStore LootTemplates_Mail("mail_loot_template", "mail template id", false) | ( | "mail_loot_template" | , |
| "mail template id" | , | ||
| false | ) |
| LootStore LootTemplates_Milling("milling_loot_template", "item entry (herb)", true) | ( | "milling_loot_template" | , |
| "item entry (herb)" | , | ||
| true | ) |
| LootStore LootTemplates_Pickpocketing("pickpocketing_loot_template", "creature pickpocket lootid", true) | ( | "pickpocketing_loot_template" | , |
| "creature pickpocket lootid" | , | ||
| true | ) |
| LootStore LootTemplates_Prospecting("prospecting_loot_template", "item entry (ore)", true) | ( | "prospecting_loot_template" | , |
| "item entry (ore)" | , | ||
| true | ) |
| LootStore LootTemplates_Reference("reference_loot_template", "reference id", false) | ( | "reference_loot_template" | , |
| "reference id" | , | ||
| false | ) |
Referenced by ConditionMgr::isSourceTypeValid(), ConditionMgr::LoadConditions(), and LoadLootTemplates_Reference().
| LootStore LootTemplates_Skinning("skinning_loot_template", "creature skinning id", true) | ( | "skinning_loot_template" | , |
| "creature skinning id" | , | ||
| true | ) |
Referenced by AuraEffect::HandlePeriodicTriggerSpellAuraTick(), reload_commandscript::HandleReloadLootTemplatesSkinningCommand(), ConditionMgr::isSourceTypeValid(), ConditionMgr::LoadConditions(), LoadLootTemplates_Reference(), LoadLootTemplates_Skinning(), Player::SendLoot(), and Creature::setDeathState().
| LootStore LootTemplates_Spell("spell_loot_template", "spell id (random item creating)", false) | ( | "spell_loot_template" | , |
| "spell id (random item creating)" | , | ||
| false | ) |
|
static |
Definition at line 19 of file LootMgr.cpp.
Referenced by LootStoreItem::Roll().