Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azerothcore/mod-chromie-xp
https://github.com/azerothcore/mod-chromie-xp
azerothcore-module hacktoberfest
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/azerothcore/mod-chromie-xp
- Owner: azerothcore
- License: agpl-3.0
- Created: 2021-01-31T13:59:19.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-05T23:12:04.000Z (almost 3 years ago)
- Last Synced: 2024-04-14T02:53:01.096Z (9 months ago)
- Topics: azerothcore-module, hacktoberfest
- Language: C++
- Homepage:
- Size: 43 KB
- Stars: 2
- Watchers: 10
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mode-chromie-xp
This module has been developed for [ChromieCraft](http://chromiecraft.com/) to allow players to use `.beta activate` and go further with their progression.
## SQL Utils
### Flag toggle
```sql
SET @LOCK_FLAG = 33554432;-- Check which players have the XP locked
SELECT * FROM `characters` WHERE playerFlags & @LOCK_FLAG = @LOCK_FLAG;-- Check which players of a certain level have the xp unlocked
SELECT * FROM `characters` WHERE level = 39 AND (playerFlags & @LOCK_FLAG != @LOCK_FLAG);-- Lock character XP - NOTE: the character MUST be offline.
UPDATE `characters` SET `playerFlags` = `playerFlags` | @LOCK_FLAG WHERE `name` = 'Craft';-- Unlock character XP - NOTE: the character MUST be offline.
UPDATE `characters` SET `playerFlags` = `playerFlags` & ~@LOCK_FLAG WHERE `name` = 'Craft';```
### Add beta tester
```sql
SET @CHARACTER_NAME = 'Craft';
INSERT INTO `chromie_beta_testers` (`guid`, `isBetaTester`, `comment`) VALUES
((SELECT `guid` FROM `characters` WHERE `name` = @CHARACTER_NAME), 1, @CHARACTER_NAME);
```