Commit graph

34 commits

Author SHA1 Message Date
Claude
0ad5f1d345
fix: skip playerbots so bot re-rolls do not spam the 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
2026-09-03 17:21:11 +00:00
Ludwig
66f9e0a4f5 fix order of language entries 2025-02-28 13:59:52 +01:00
jamssismy
ae5e5d3b28
Update mod_congratsonlevel.cpp
I aligned the code, and actually, our communication is done through AI translation. I initially thought your mention of alignment referred to the unification of the level display function calls. Thank you for the reminder. I'm not a professional programmer and haven't received formal training, so I don't have good code alignment habits. Thanks again for your reminder!~
2025-02-28 11:29:09 +08:00
jamssismy
4fe199845e
Update mod_congratsonlevel.cpp
The calling method for levels has been standardized
<< static_cast<int>(player->GetLevel()) <<
2025-02-27 16:41:14 +08:00
jamssismy
0d233e2c33
Update mod_congratsonlevel.cpp
The software or game now supports user interface prompts in both Simplified Chinese and Traditional Chinese, making it more accessible to a wider range of Chinese-speaking users.
A correction has been made to the on-screen display of currency amounts. Specifically, where small amounts of currency were being shown, the unit was incorrectly displayed as "Gold." This has been corrected so that it now accurately displays "Copper," which is the appropriate unit for smaller denominations in games like World of Warcraft.
2025-02-27 10:02:34 +08:00
Ludwig
239bae9d5b fix messages not showing level correctly 2025-02-26 20:25:04 +01:00
Ludwig
b78a72d5ce Merge remote-tracking branch 'origin/master' into fix-reward-messages-1 2025-02-26 11:18:50 +01:00
Ludwig
d133684206 fix for WorldSessionMgr 2025-02-26 10:12:16 +01:00
Ludwig
b9894eea11 fix reward level up message and CongratsPerLevel.Enable functionality 2025-02-26 08:56:16 +01:00
Ludwig
0f8ee189b1 fix unintended changes 2025-02-26 08:50:31 +01:00
Ludwig
793fc6ade3 restore braces 2025-02-26 08:49:55 +01:00
Ludwig
f444ef80ab fix build and add enabled hook lists for performance improvement 2025-02-26 08:39:57 +01:00
Walter Pagani
668b19995b
fix(build) SendNotification is not a member of WorldSession (#35) 2024-10-24 11:12:36 +02:00
cptcl
58652e93a2
Update mod_congratsonlevel.cpp (#33)
changed getLevel to GetLevel
2024-07-25 22:42:47 +02:00
Walter Pagani
494cde182c
feat. Add option to Learn or cast spells (#30)
* feat. Add option to Learn or cast spells

* boolean learn attribute
2023-09-05 05:17:05 -03:00
Walter Pagani
8e4aef41dc
feat. Move awards to database and enable races/classes (#27)
* feat. Move awards to database and enable races/classes

* feat. Allow multiple records in the table

* feat. Check that the values in the register are greater than zero
2023-07-19 07:17:47 -03:00
Walter Pagani
5961c1bd12
feat. (Repository): Add issue and pull request templates (#26) 2023-07-12 06:30:52 -03:00
Pagani Walter
670a554d50 Adding ident in the Switch 2022-05-19 16:57:51 -03:00
Pagani Walter
c3f5966f5e (Translations/Spanish) Adding Spanish Messages 2022-05-16 17:51:36 -03:00
SoulSeekkor
100ffd3087 Updated README. 2022-04-09 14:23:52 -05:00
SoulSeekkor
c0d6a6af9f Updated to clear compiler warnings. 2022-04-09 12:19:15 -05:00
BytesGalore
9705cfb8ee
refactor: updated module registration to core rev 4++ (#15)
Co-authored-by: BytesGalore <3903215+BytesGalore@users.noreply.github.com>
2021-09-18 21:45:01 +07:00
Stefano Borzì
d931077c99
fix: build and ci (#14) 2021-05-30 22:57:47 -07:00
ReyDonovan
90fad08fa6 fix build 2021-03-31 22:45:06 +03:00
ReyDonovan
754c241066 fix all bug close #9 2021-03-31 22:41:21 +03:00
Vitaliy
78e6452eb2
Update mod_congratsonlevel.cpp 2021-03-02 13:16:56 +03:00
Vitaliy
237793f4ae
Delete after_ws_install.cmake 2021-03-02 13:16:30 +03:00
Micrah
6b35f444d9
update fix config 2019-08-21 10:49:32 +10:00
Micrah
5b985afcb2
add per level announcer 2019-06-09 13:22:17 +10:00
Micrah
d20a2f7c76
update fix travis error 2019-05-26 01:45:22 +10:00
Micrah
3cf92a1f2e
update fix travis error 2019-05-26 01:29:02 +10:00
Micrah
89b128f1de sync with skeleton module and fix announcer 2019-05-26 01:14:47 +10:00
Barbz
d03efd02d1
CONFIG - Fixed
The config should now be read and the module working.
2018-04-18 19:55:21 +02:00
BarbzYHOOL
7bc0035bf0 First commit (separate each module from original repo of StygianTheBest) 2018-03-05 18:02:58 +01:00