Search code examples
azerothcore

Disable in game connection and allow character creation azerothcore


In AzerothCore, how I can allow only character creations and disable in-game character connections?


Solution

  • If you don't want to touch the code, you could implement a mysql trigger that anytime a new character is created in the characters table, inserts a row in the character_banned table with active = 1

    http://www.azerothcore.org/wiki/character_banned

    EXAMPLE:

    delimiter #
    create trigger ban_after_ins after insert on characters
    for each row
    begin
      insert into character_banned values (new.guid, 0, 0 , 'system', 'custom', 1);
    end#