TrinityCore (WoW) script to ban player on upon dying
To add this to your server, follow these instructions:
- Download the script.
- Place it in the directory TrinityCore/src/server/scripts/Custom.
- Open your custom_script_loader.cpp in the same directory (Custom) then where you see
// This is where scripts' loading functions should be declared:add (under it)void AddSC_Player_Ban_On_Death();. - Where it says
void AddCustomScripts() {addAddSC_Player_Ban_On_Death();. - Open CMakeLists.txt (TrinityCore/src/server/scripts/CMakeLists.txt) Where it says (Around line 245)
${scripts_STAT_SRCS}AddCustom/Player_Ban_On_Death.cpp - Recompile your server. That should be all. Enjoy!
For my level reset script as an alternative to this script, go here https://github.com/Techwizz-somboo/Player-Level-Reset-On-Death-TrinityCore
See it in action! https://youtu.be/UTZfX5QIaDM