Skip to content

Commit

Permalink
fix(DB/acore_string) Replace %u with {} (#39)
Browse files Browse the repository at this point in the history
* fix(DB/acore_string) Replace %u with {}

* update README.md

* delete files

* rename files

* Reverting values ​​of acore_string
  • Loading branch information
pangolp authored Oct 26, 2024
1 parent f061cbc commit d8d4737
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
22 changes: 13 additions & 9 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -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. </br>
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

Expand Down
8 changes: 4 additions & 4 deletions data/sql/db-world/updates/mod_individual_xp_acore_string.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}.', '');
2 changes: 1 addition & 1 deletion src/Individual_XP.cpp → src/individual_xp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
File renamed without changes.

0 comments on commit d8d4737

Please sign in to comment.