Git Product home page Git Product logo

mod-congrats-on-level's Introduction

logo AzerothCore

mod-congrats-on-level

This is a module for AzerothCore

  • Latest build status with azerothcore:

Build Status

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

  1. level: Level that the player must have to get the reward.
  2. money: Amount of money to deliver, it can be 0.
  3. spell: Id of the spell that you want to teach or cast, it can be 0.
  4. learn: If it's 0, the spell is cast. If it is 1, it is learned.
  5. itemId1: Id of the item that you want to deliver, it can be 0.
  6. itemId2: Id of the item that you want to deliver, it can be 0.
  7. race: 0 for all or specify race id.
  8. 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

  1. Simply place the module under the modules folder of your AzerothCore source folder.
  2. Re-run cmake and launch a clean build of AzerothCore
  3. Done :)

Credits

mod-congrats-on-level's People

Contributors

barbzyhool avatar bytesgalore avatar cptcl avatar helias avatar locus313 avatar milestorme avatar mitradis avatar pangolp avatar reydonovan avatar soulseekkor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mod-congrats-on-level's Issues

Bug: Announce is always per level, not per bracket set within table

Current Behaviour

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.

Extra Notes

No response

AC rev. hash/commit

79b39f9655111088a741185c4dabd31dae7d85ea

Operating system

Debian 10

Custom changes or Modules

No response

Feature: Add Spell and not just cast

Describe your feature request or suggestion in detail

I believe adding a spell to the spell book would be more meaningful than a simple spell cast.

Describe a possible solution to your feature or suggestion in detail

No response

Additional context

image

Congrats.Announce in .conf doesn't work

Azerothcore rev. ded199dd7e7b+

issue:
Congrats.Announce in .conf doesn't work

i set it at Congrats.Announce in .conf = 0

still announces after logging in

[Issue] Reward Items for classes

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

CongratsPerLevel.Enable = 0 (Not working)

Updating mod_congratsonlevel.conf, set:

# Enable the Per level congratulations announcement (1: true | 0: false)
CongratsPerLevel.Enable = 0

both set to 0
(Not working)
Still receiving global announcements.

AzerothCore rev. 5cae59e3943b+ 2023-07-09 16:51:30 +0000 (master branch) (Unix, RelWithDebInfo, Static)

Ubuntu 22.04.2 LTS

Bug: While Compiling

Current Behaviour

/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....

Expected Behaviour

No fatal error

Steps to reproduce the problem

  1. Update Acore & Playerbots
  2. Clone git of this bautiful congratz module
  3. Compile
  4. look at around 13% of compiling

Extra Notes

No response

AC rev. hash/commit

Cannot get copiled the server

Operating system

Server Debian 12 latest

Custom changes or Modules

No response

Congrats does not work very well

Description:Congrats on lvl do not work properly

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

Congrats.L10M = 1;
Congrats.L10S = 20217
Congrats.L101 = 3419
Congrats.L102 = 45062

No reward every 10 levels

Expected behaviour:

Reward every 10 levels, instead there is only a chat notification and a notice that there is no room in the players inventory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.