Player Start Helper For TrinityCore

Good day im wrote custom script special for last rev TrinityCore.

Functions:

1 - Create Shaman Totems After Create Character.

2 - Learn Quest Spells After Create Character.

Theme will be updated.

Code: Paste 23aicnca65xc8 - TrinityCore

For Config

[CODE]

###################################################################################################

PLAYER START HELPER SYSTEM

The System automaticaly learning quest spells after creating character.

Функция добавляет квестовые закланинания и тотемы игроку

при создании персонажа.

Shaman [Totems and Totem Spells Rank 1]

Paladin [Resurrection Spell [Redemption Rank 1]

Warrior [Battle.Berserker.Defensive Stances]

Druid [Bear and Dire Bearm Form.Flight Form.Growl and Maul (Rank 1)]

Warlock [Imp.Voidwalker.Succubus.Felhunter]

Hunter [Feed Pet.Revive Pet.Tame Beast.Call Pet.Dismiss Pet]

Player.Start.Helper.Enable

Description: Disable / Enable Player Helper System.

Полное Включение/Выключение системы.

Default: 1 - (Enabled)

0 - (Disabled)

Player.Start.Helper.Enable = 1

###################################################################################################[/CODE]

Nice idea … i like it but i think you should use the “First login flag” … it should be easier dunno … anyway I like it.

Update the first post fix all bugs and added new script

Great idea, but i have some question to script.

This if will be always true:


if (player->GetSession()->GetSecurity() == SEC_PLAYER || SEC_MODERATOR || SEC_GAMEMASTER || SEC_ADMINISTRATOR || SEC_CONSOLE || SEC_DEVELOPER || SEC_TECHSUPPORT)

{

And as hrr_95 says, it’s better to add check:


if (player->HasAtLoginFlag(AT_LOGIN_FIRST))

{

// ....

}

delete || SEC_DEVELOPER || SEC_TECHSUPPORT