Fork of upstream mod-congrats-on-level with local fixes for the Mythica playerbots server.
|
Some checks failed
core-build / build (pull_request) Has been cancelled
PlayerbotFactory calls Player::GiveLevel() in six places while randomising a bot, and GiveLevel fires OnPlayerLevelChanged exactly as a real ding does. On a Playerbots realm that means every bot re-roll past level 10/20/.../80 sends a server-wide broadcast plus a raid warning and hands the bot gold and two reward items. Turning off CongratsPerLevel.Enable does not help: the reward-level announcements sit outside that gate. Adds Congrats.SkipBots (default 1). The bot test is guarded by #ifdef MOD_PLAYERBOTS, which the core defines for every module when mod-playerbots is present, so a core built without it is unaffected. Also adds the missing `override` on OnPlayerLogin. The signature already matched the base, so behaviour is unchanged -- it just stops a future signature change from silently detaching the hook. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vTNrJGsprcjdjjjDJD5ZM |
||
|---|---|---|
| .github | ||
| conf | ||
| data | ||
| src | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| include.sh | ||
| LICENSE.md | ||
| pull_request_template.md | ||
| README.md | ||
AzerothCore
mod-congrats-on-level
This is a module for AzerothCore
- Latest build status with azerothcore:
About the module
This module allows you to configure a series of prizes, by class, race and levels. To the extent that players reach these levels, they can obtain gold, spells, or items. If you don't want to deliver any of them, it's always possible to leave it at 0. All items were moved to the database. Inside the table, you could customize the prizes, however you want.
Table structure
level: Level that the player must have to get the reward.money: Amount of money to deliver, it can be 0.spell: Id of the spell that you want to teach or cast, it can be 0.learn: If it's 0, the spell is cast. If it is 1, it is learned.itemId1: Id of the item that you want to deliver, it can be 0.itemId2: Id of the item that you want to deliver, it can be 0.race: 0 for all or specify race id.class: 0 for all, or specify the class id.
| ID | className (enUS) |
|---|---|
| 1 | Warrior |
| 2 | Paladin |
| 3 | Hunter |
| 4 | Rogue |
| 5 | Priest |
| 6 | Death Knight |
| 7 | Shaman |
| 8 | Mage |
| 9 | Warlock |
| 11 | Druid |
| ID | Race .raceName (enUS) | Faction .name (enUS) |
|---|---|---|
| 1 | Human | Alliance |
| 2 | Orc | Horde |
| 3 | Dwarf | Alliance |
| 4 | Night Elf | Alliance |
| 5 | Undead | Horde |
| 6 | Tauren | Horde |
| 7 | Gnome | Alliance |
| 8 | Troll | Horde |
| 10 | Blood Elf | Horde |
| 11 | Draenei | Alliance |
How to install
- Simply place the module under the
modulesfolder of your AzerothCore source folder. - Re-run cmake and launch a clean build of AzerothCore
- Done :)