Resource icon

C++ Prestige Module 1.0.0

Enable your players to prestige!
Prestige module I created for shits and giggles to learn how to do C++ modules for Azerothcore.

To use it, first go into your "worldserver" config file, and change this line "CharDelete.Method = 0" to "CharDelete.Method = 1".
Now extract the .rar file into your modules folder in the CMake source, then generate and build the core.

Go into your database, create a new table inside the database called "acore_characters", call this table "mod_prestige", and create 2 columns (character_id) and (prestige) and set them to datatype of "INT".
Create code is down below if you want to just copy it straight from what I made.

Code:
CREATE TABLE `mod_prestige` (
    `character_id` INT(10) NOT NULL,
    `prestige` INT(10) NOT NULL
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
;

Remember to add the script to run on an NPC on gossip. You will first need to find the NPC in either your DB or using "Keira" to find the NPC you want to use to make players prestigious. Now add this "PrestigeSystemGossip" into the " ScriptName " field on the NPC.

You can now add new prestige and rewards inside the config file for the mod; this file is called "prestigeconfig.conf.dist"
Remember, it resets the module's config whenever you build the core, so keep a copy somewhere.
Register & Get access to index
Sylian
Author Sylian
Trusted

Posts

86

Likes

199

Resources

9

Version 1.0.0
Downloads 13
Views 817
Last Update
0.00 star(s) 0 ratings

3,376

1,252

9,523

410

Top