mxwow modules
This commit is contained in:
@@ -18,8 +18,7 @@ mxwow_bounty() : PlayerScript("mxwow_bounty") { }
|
||||
|
||||
void OnPlayerLogin(Player* player) override
|
||||
{
|
||||
if (sConfigMgr->GetOption<bool>("MxWoW_Bounty.Enabled", true)) { return; }
|
||||
ChatHandler(player->GetSession()).SendSysMessage("This server is running the |cff4CFF00MxW Bounty |rmodule.");
|
||||
|
||||
}
|
||||
|
||||
void OnPlayerCreatureKill(Player* player, Creature* creature) {
|
||||
@@ -75,10 +74,9 @@ mxwow_bounty() : PlayerScript("mxwow_bounty") { }
|
||||
}
|
||||
if (formatedAmountGold == 0 && formatedAmountSilver == 0 && formatedAmountCopper > 0) {
|
||||
ss << "|cffabeeff[MxW] Vous obtenez une récompense de |cffb87333" << formatedAmountCopper << "c |cffabeeffpour avoir tué " << cName << " (" << cLevel << ").";
|
||||
}
|
||||
ChatHandler(player->GetSession()).PSendSysMessage(ss.str().c_str());
|
||||
|
||||
}
|
||||
player->ModifyMoney(+int32(giveAmount));
|
||||
ChatHandler(player->GetSession()).PSendSysMessage(ss.str().c_str());
|
||||
}
|
||||
else {
|
||||
Group* group = player->GetGroup();
|
||||
@@ -94,12 +92,11 @@ mxwow_bounty() : PlayerScript("mxwow_bounty") { }
|
||||
}
|
||||
if (formatedAmountGold == 0 && formatedAmountSilver == 0 && formatedAmountCopper > 0) {
|
||||
ss << "|cffabeeff[MxW] Vous obtenez une récompense de |cffb87333" << formatedAmountCopper << "c |cffabeeffpour avoir tué " << cName << " (" << cLevel << ").";
|
||||
}
|
||||
ChatHandler(p->GetSession()).PSendSysMessage(ss.str().c_str());
|
||||
|
||||
}
|
||||
p->ModifyMoney(+int32(giveAmount));
|
||||
ChatHandler(p->GetSession()).PSendSysMessage(ss.str().c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user