[DiscordArchive] Is there a way to set an item in cooldown in the player's inventory?
[DiscordArchive] Is there a way to set an item in cooldown in the player's inventory?
Archived author: Honey • Posted: 2022-12-18T19:47:19.692000+00:00
Original source
Is there a way to set an item in cooldown in the player's inventory?
Archived author: Honey • Posted: 2022-12-18T19:49:15.854000+00:00
Original source
<https://www.azerothcore.org/pages/eluna/Player/GetItemByEntry.html> is obvious, but not how to make the cooldown happen.
Archived author: Foe • Posted: 2022-12-18T19:56:43.025000+00:00
Original source
Item cooldowns are based on the spell cooldowns tied to the item
Archived author: Foe • Posted: 2022-12-18T19:58:10.058000+00:00
Original source
So you can use Item:GetSpellId() to get the spell ID of the item, but there's currently no method to set a spell on cooldown
Archived author: Foe • Posted: 2022-12-18T19:59:00.052000+00:00
Original source
If you just want to reset the specific items cooldown, ie hearthstone, you can use item:GetSpellId() then call player:ResetSpellCooldown() on that ID
Archived author: Honey • Posted: 2022-12-18T20:00:13.281000+00:00
Original source
I want it the exact other way round, put it on CD
Archived author: Foe • Posted: 2022-12-18T20:01:09.130000+00:00
Original source
No method to do that currently
Archived author: Honey • Posted: 2022-12-18T20:01:33.045000+00:00
Original source
I'm forcing a teleport to the home location here. But since it's triggered to be instant, the HS isn't on CD.
<https://github.com/55Honey/Acore_Zonecheck/blob/2a45f8dd681bce4635491fd32d7d6193e3923083/zoneCheck.lua#L96>
Archived author: Honey • Posted: 2022-12-18T20:01:56.589000+00:00
Original source
I guess I'll start digging CPP then, thanks for the help as always!
Archived author: Foe • Posted: 2022-12-18T20:05:32.282000+00:00
Original source
Well