Forums WoW Modding Support Archives Azerothcore Discord Archives [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?

[DiscordArchive] Is there a way to set an item in cooldown in the player's inventory?

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
12-18-2022, 07:47 PM
#1
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?
rektbyfaith
12-18-2022, 07:47 PM #1

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?

rektbyfaith
Administrator
0
12-18-2022, 07:49 PM
#2
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.
rektbyfaith
12-18-2022, 07:49 PM #2

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.

rektbyfaith
Administrator
0
12-18-2022, 07:56 PM
#3
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
rektbyfaith
12-18-2022, 07:56 PM #3

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

rektbyfaith
Administrator
0
12-18-2022, 07:58 PM
#4
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
rektbyfaith
12-18-2022, 07:58 PM #4

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

rektbyfaith
Administrator
0
12-18-2022, 07:59 PM
#5
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
rektbyfaith
12-18-2022, 07:59 PM #5

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

rektbyfaith
Administrator
0
12-18-2022, 08:00 PM
#6
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
rektbyfaith
12-18-2022, 08:00 PM #6

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

rektbyfaith
Administrator
0
12-18-2022, 08:01 PM
#7
Archived author: Foe • Posted: 2022-12-18T20:01:09.130000+00:00
Original source

No method to do that currently
rektbyfaith
12-18-2022, 08:01 PM #7

Archived author: Foe • Posted: 2022-12-18T20:01:09.130000+00:00
Original source

No method to do that currently

rektbyfaith
Administrator
0
12-18-2022, 08:01 PM
#8
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>
rektbyfaith
12-18-2022, 08:01 PM #8

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>

rektbyfaith
Administrator
0
12-18-2022, 08:01 PM
#9
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!
rektbyfaith
12-18-2022, 08:01 PM #9

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!

rektbyfaith
Administrator
0
12-18-2022, 08:05 PM
#10
Archived author: Foe • Posted: 2022-12-18T20:05:32.282000+00:00
Original source

Well
rektbyfaith
12-18-2022, 08:05 PM #10

Archived author: Foe • Posted: 2022-12-18T20:05:32.282000+00:00
Original source

Well

Pages (3): 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)