mod-mxwow-token low level content token
This commit is contained in:
parent
c61c671ecc
commit
38a7fad6d6
|
@ -11,8 +11,9 @@ MxWoW_Token.Enabled = 1 #
|
|||
# #
|
||||
# MxWoW - Token (Enable / Disable) #
|
||||
# Description: Specified amount of token given on each boss type kill. #
|
||||
# Exemple: "MxWoW_Token.Raid.Normal = 300" will give 300 token on heroic boss kill. #
|
||||
# #
|
||||
# Exemple: "MxWoW_Token.Raid.Normal = 300" will give 300 token on raid normal boss kill. #
|
||||
# #
|
||||
MxWoW_Token.Dungeon.LowLevel = 50 #
|
||||
MxWoW_Token.Raid.Heroic = 400 #
|
||||
MxWoW_Token.Raid.Normal = 300 #
|
||||
MxWoW_Token.Dungeon.Heroic = 200 #
|
||||
|
|
|
@ -35,6 +35,7 @@ public:
|
|||
void OnCreatureKill(Player* player, Creature* boss)
|
||||
{
|
||||
if (sConfigMgr->GetOption<bool>("MxWoW_Token.Enabled", true)) {
|
||||
uint32 tokenQtyDungeonLowLevel = sConfigMgr->GetOption<int>("MxWoW_Token.Dungeon.LowLevel", true);
|
||||
uint32 tokenQtyRaidHeroic = sConfigMgr->GetOption<int>("MxWoW_Token.Raid.Heroic", true);
|
||||
uint32 tokenQtyRaidNormal = sConfigMgr->GetOption<int>("MxWoW_Token.Raid.Normal", true);
|
||||
uint32 tokenQtyDungeonHeroic = sConfigMgr->GetOption<int>("MxWoW_Token.Dungeon.Heroic", true);
|
||||
|
@ -49,11 +50,16 @@ public:
|
|||
}
|
||||
}
|
||||
else if (boss->IsDungeonBoss()) {
|
||||
if (player->GetMap()->IsHeroic()) {
|
||||
GiveToken(player, tokenQtyDungeonHeroic);
|
||||
if (player->GetLevel() < 80) {
|
||||
GiveToken(player, tokenQtyDungeonLowLevel);
|
||||
}
|
||||
else {
|
||||
GiveToken(player, tokenQtyDungeonNormal);
|
||||
if (player->GetMap()->IsHeroic()) {
|
||||
GiveToken(player, tokenQtyDungeonHeroic);
|
||||
}
|
||||
else {
|
||||
GiveToken(player, tokenQtyDungeonNormal);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue