Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] player->learnSpell(Imp);

[DiscordArchive] player->learnSpell(Imp);

[DiscordArchive] player->learnSpell(Imp);

rektbyfaith
Administrator
0
11-20-2023, 12:36 PM
#1
Archived author: Frost® • Posted: 2023-11-20T12:36:27.095000+00:00
Original source

player->learnSpell(Imp);
player->learnSpell(Voidwalker);
player->learnSpell(Succubus);
player->learnSpell(Felhunter);
player->learnSpell(WANDS);
player->learnSpell(STAVES);
player->learnSpell(SHOOT);
player->learnSpell(ONE_H_SWORDS);
player->learnSpell(DAGGERS);
player->UpdateSkillsToMaxSkillsForLevel();

does not work, it skipps the new learned skills,
but if i use a timer (500ms) for function UpdateSkillsToMaxSkillsForLevel it works?
rektbyfaith
11-20-2023, 12:36 PM #1

Archived author: Frost® • Posted: 2023-11-20T12:36:27.095000+00:00
Original source

player->learnSpell(Imp);
player->learnSpell(Voidwalker);
player->learnSpell(Succubus);
player->learnSpell(Felhunter);
player->learnSpell(WANDS);
player->learnSpell(STAVES);
player->learnSpell(SHOOT);
player->learnSpell(ONE_H_SWORDS);
player->learnSpell(DAGGERS);
player->UpdateSkillsToMaxSkillsForLevel();

does not work, it skipps the new learned skills,
but if i use a timer (500ms) for function UpdateSkillsToMaxSkillsForLevel it works?

rektbyfaith
Administrator
0
11-20-2023, 02:00 PM
#2
Archived author: Nyeriah • Posted: 2023-11-20T14:00:42.131000+00:00
Original source

race condition
rektbyfaith
11-20-2023, 02:00 PM #2

Archived author: Nyeriah • Posted: 2023-11-20T14:00:42.131000+00:00
Original source

race condition

rektbyfaith
Administrator
0
11-20-2023, 03:22 PM
#3
Archived author: Natrist • Posted: 2023-11-20T15:22:56.514000+00:00
Original source

Looks like bad code anyway.
rektbyfaith
11-20-2023, 03:22 PM #3

Archived author: Natrist • Posted: 2023-11-20T15:22:56.514000+00:00
Original source

Looks like bad code anyway.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)