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 modules folder of your AzerothCore source folder.
Re-run cmake and launch a clean build of AzerothCore
Announce config toggle seems to be on a per level basis only and not how it was previously where only the level brackets set would announce (10,20,30 etc).
Expected Behaviour
Announce per bracket set in table when toggled on.
Steps to reproduce the problem
Enable announce on level and GM level to 9, 10, 11 etc - only 10 would announce normally.
Hello please update the code to support different races.
If human reach lvl 10 reward item that can use him
if orc,elf, and all other to give other item.
Example if i want to award them maunt, only humans can learn horse riding the others cannot.
Need improvement option by race
/root/azerothcore-wotlk/modules/mod-congrats-on-level/src/mod_congratsonlevel.cpp:82:176: fatal error: no member named 'getLevel' in 'Player'; did you mean 'GetLevel'?
QueryResult result = WorldDatabase.Query("SELECT * FROM mod_congrats_on_level_items WHERE level={} AND (race={} OR race=0) AND (class={} OR class=0)", player->getLevel(), player->getRace(), player->getClass());
^~~~~~~~
GetLevel
/root/azerothcore-wotlk/src/server/game/Entities/Unit/Unit.h:1509:25: note: 'GetLevel' declared here
[[nodiscard]] uint8 GetLevel() const { return uint8(GetUInt32Value(UNIT_FIELD_LEVEL)); }
^
1 error generated.
gmake[2]: *** [modules/CMakeFiles/modules.dir/build.make:188: modules/CMakeFiles/modules.dir/mod-congrats-on-level/src/mod_congratsonlevel.cpp.o] Fehler 1
gmake[2]: *** Es wird auf noch nicht beendete Prozesse gewartet....
Current behaviour: The module announce when the player gain a level but there is no reward every 10 lvls.
Expected behaviour:
Set what the player receives at each level
M: Gold
S: SpellID to be cast on the player
1: First ItemID to be given to the player
2: Second ItemID to be given to the player
At lvl 10
Level 10
1 Gold / Blessing of Kings
Red Rose / TCG: Foam Sword Rack