[DiscordArchive] Do you know if there is a way to check if a cooldown is ready?
[DiscordArchive] Do you know if there is a way to check if a cooldown is ready?
Archived author: Deleted User • Posted: 2023-02-12T01:59:31.069000+00:00
Original source
<@456226577798135808> Starting up anti-freeze thread (60 seconds max stuck time)...
TrinityCore rev. eb55c8680342+ 2022-08-05 01:48:46 +0000 (master branch) (Win64, Release, Static) (worldserver-daemon) ready...
World Thread hangs, kicking out server!
Archived author: Deleted User • Posted: 2023-02-12T02:01:24.561000+00:00
Original source
You must use SpellMgr
Archived author: Deleted User • Posted: 2023-02-12T02:01:45.549000+00:00
Original source
Again, no idea. You can try debug
Archived author: Deleted User • Posted: 2023-02-12T02:02:05.986000+00:00
Original source
can you point me to a tutorial ? im novice in this things
Archived author: Drikish • Posted: 2023-02-12T02:06:35.323000+00:00
Original source
Can i ask one more question, all the scripts i've seen so far in the core use scheduling of events which are fixed time intervals. As such they ignore GCD requirements of spells, this is notable if you have lots of things happening and times overlap.
One could write it so that things dont overlap with repeats at times that don't overlap but...
I noticed in PlayerAI that there was a function where you could PUSH a spell to be used and it would just be used at the next oppertunity following GCD rules etc.
So within CreatureAI what's the best way to achieve this and is it even possible?
Archived author: Drikish • Posted: 2023-02-12T02:07:57.109000+00:00
Original source
From PlayerAI:
```c++
VerifyAndPushSpellCast(spells, SPELL_CHARGE, TARGET_VICTIM, 15);
```
Archived author: Drikish • Posted: 2023-02-12T02:08:18.554000+00:00
Original source
Linking back to a vector holding 'possibleSpells'