How to install:
1. Download/Get the scripts from link given below
(don't forget to say Thanks)
UPDATED LINK
***Hidden content cannot be quoted.***
2. Import
character_loot_rate.sql and
character_xp_rate.sql in your TC characters database
3. Import
commands.sql in your TC world database (not necessarily needed, used to add help to commands)
4.
If your TrinityCore clone does not contain any custom scripts (original TrinityCoreClonePath\src\server\scripts\Custom\CMa keLists.txt) and you are too lazy to modify scripts/Custom/CMakeLists.txt you can apply
individual_rates.patch to your TrinityCore clone, via
git apply rates.patch or
git patch -p1 < rates.patch (the file must be inside root TrinityCore folder), or GitExtensions. There are a lot of tutorials on how to apply patches via GIT.
OR
If you already have custom scripts (altered TrinityCoreClonePath\src\server\scripts\Custom\CMa keLists.txt)
Apply
invdividual_rates.patch to your TrinityCore clone, then go to
TrinityCoreClonePath\src\server\scripts\Custom and modify
CMakeLists.txt to add custom_rates.cpp script. File should have the following structure:
Code:
set(scripts_STAT_SRCS
${scripts_STAT_SRCS}
Custom/custom script 1.cpp
Custom/custom script 2.cpp
.
.
.
Custom/custom_rates.cpp
)
Note: You will generally want to apply
invdividual_rates.patch because more than sure you already have custom scripts.
5. Copy
custom_rates.cpp to
PathToTrinityCoreClone/src/server/scripts/custom
6. Use
cmake to configure & generate TC project files again, then re-compile
7. Make sure to copy
worldserver.conf.dist in your server's binaries folder, on the bottom it contains different configs for this patch
Patch was successfully applied on TC rev.
Script/SAI: Fix runtime errors * TrinityCore/TrinityCore@35f0318 * GitHub
Credits
silviu2008