diff --git a/.github/README.md b/.github/README.md index afc4c87..556410f 100644 --- a/.github/README.md +++ b/.github/README.md @@ -1,25 +1,29 @@ # ![logo](https://raw.githubusercontent.com/azerothcore/azerothcore.github.io/master/images/logo-github.png) AzerothCore + ## Individual XP Module -- Latest build status with azerothcore: [![Build Status](https://github.com/azerothcore/mod-individual-xp/workflows/core-build/badge.svg?branch=master&event=push)](https://github.com/azerothcore/mod-individual-xp) +- Latest build status with azerothcore: + +[![Build Status](https://github.com/azerothcore/mod-individual-xp/workflows/core-build/badge.svg?branch=master&event=push)](https://github.com/azerothcore/mod-individual-xp) Allows players to _View, Set, or Toggle_ the rate at which they gain experience individually. # How to install -1) clone this module into the modules directory of the main source -2) apply the provided sql in the character database -3) re-run cmake -4) compile. +1. Clone this module into the modules directory of the main source +2. Re-run cmake +3. Compile. # Config There are two variables to configure in the Config: -1) Max XP Rate -2) Default XP Rate -The Max XP Rate variable dictates how high a player can set their XP rate.
-While the Default XP Rate variable dictates what XP rate players start with and the rate will be set to if the user does '.XP Default' +1. `Max XP Rate` +2. `Default XP Rate` + +The Max XP Rate variable dictates how high a player can set their XP rate. + +While the Default XP Rate variable dictates what XP rate players start with and the rate will be set to if the user does `.xp default` # Player Commands diff --git a/data/sql/db-world/updates/mod_individual_xp_acore_string.sql b/data/sql/db-world/updates/mod_individual_xp_acore_string.sql index 621b268..269a6b0 100644 --- a/data/sql/db-world/updates/mod_individual_xp_acore_string.sql +++ b/data/sql/db-world/updates/mod_individual_xp_acore_string.sql @@ -4,10 +4,10 @@ INSERT INTO `acore_string` (`entry`, `content_default`, `locale_koKR`, `locale_f (@ENTRY+0, 'This server is running the |cff4CFF00IndividualXpRate |rmodule.', '', '', '', '', '', 'Este servidor está ejecutando el módulo |cff4CFF00 mod-individual-xp.', 'Este servidor está ejecutando el módulo |cff4CFF00 mod-individual-xp.', ''), (@ENTRY+1, '[XP] The Individual XP module is deactivated.', '', '', '', '', '', '[XP] El módulo XP individual está desactivado.', '[XP] El módulo XP individual está desactivado.', ''), (@ENTRY+2, '[XP] Your Individual XP is currently disabled. Use .xp enable to re-enable it.', '', '', '', '', '', '[XP] Su XP individual está actualmente desactivado. Utilice .xp enable para volver a activarlo.', '[XP] Su XP individual está actualmente desactivado. Utilice .xp enable para volver a activarlo.', ''), -(@ENTRY+3, '[XP] Your current XP rate is %u.', '', '', '', '', '', '[XP] Su experiencia actual es %u.', '[XP] su experiencia actual es %u.', ''), -(@ENTRY+4, '[XP] The maximum rate limit is %u.', '', '', '', '', '', '[XP] El límite máximo de XP es %u.', '[XP] El límite máximo de XP es %u.', ''), +(@ENTRY+3, '[XP] Your current XP rate is {}.', '', '', '', '', '', '[XP] Su experiencia actual es {}.', '[XP] su experiencia actual es {}.', ''), +(@ENTRY+4, '[XP] The maximum rate limit is {}.', '', '', '', '', '', '[XP] El límite máximo de XP es {}.', '[XP] El límite máximo de XP es {}.', ''), (@ENTRY+5, '[XP] The minimum rate limit is 1.', '', '', '', '', '', '[XP] El límite mínimo de XP es 1.', '[XP] El límite mínimo de XP es 1.', ''), -(@ENTRY+6, '[XP] You have updated your XP rate to %u.', '', '', '', '', '', '[XP] Has actualizado tu XP a %u', '[XP] Has actualizado tu XP a %u', ''), +(@ENTRY+6, '[XP] You have updated your XP rate to {}.', '', '', '', '', '', '[XP] Has actualizado tu XP a {}', '[XP] Has actualizado tu XP a {}', ''), (@ENTRY+7, '[XP] You have disabled your XP gain.', '', '', '', '', '', '[XP] Has desactivado tu ganancia de XP.', '[XP] Has desactivado tu ganancia de XP.', ''), (@ENTRY+8, '[XP] You have enabled your XP gain.', '', '', '', '', '', '[XP] Has activado tu ganancia de XP.', '[XP] Has activado tu ganancia de XP.', ''), -(@ENTRY+9, '[XP] You have restored your XP rate to the default value of %u.', '', '', '', '', '', '[XP] Has restaurado tu tasa de XP al valor por defecto de %u.', '[XP] Has restaurado tu tasa de XP al valor por defecto de %u.', ''); +(@ENTRY+9, '[XP] You have restored your XP rate to the default value of {}.', '', '', '', '', '', '[XP] Has restaurado tu tasa de XP al valor por defecto de {}.', '[XP] Has restaurado tu tasa de XP al valor por defecto de {}.', ''); diff --git a/src/Individual_XP.cpp b/src/individual_xp.cpp similarity index 99% rename from src/Individual_XP.cpp rename to src/individual_xp.cpp index 6c42f3a..8f7a204 100644 --- a/src/Individual_XP.cpp +++ b/src/individual_xp.cpp @@ -34,7 +34,7 @@ class IndividualXPConf : public WorldScript enum IndividualXPAcoreString { - ACORE_STRING_CREDIT = 35411, + ACORE_STRING_CREDIT = 35411, ACORE_STRING_MODULE_DISABLED, ACORE_STRING_RATES_DISABLED, ACORE_STRING_COMMAND_VIEW, diff --git a/src/IXP_loader.cpp b/src/ixp_loader.cpp similarity index 100% rename from src/IXP_loader.cpp rename to src/ixp_loader.cpp