Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] You try to make an ItemScript ?

[DiscordArchive] You try to make an ItemScript ?

[DiscordArchive] You try to make an ItemScript ?

Pages (5): 1 2 3 4 5 Next
rektbyfaith
Administrator
0
02-19-2024, 07:05 PM
#1
Archived author: Elmsroth • Posted: 2024-02-19T19:05:00.744000+00:00
Original source

You try to make an ItemScript ?
rektbyfaith
02-19-2024, 07:05 PM #1

Archived author: Elmsroth • Posted: 2024-02-19T19:05:00.744000+00:00
Original source

You try to make an ItemScript ?

rektbyfaith
Administrator
0
02-19-2024, 07:05 PM
#2
Archived author: Qeme • Posted: 2024-02-19T19:05:39.252000+00:00
Original source

Sort of, but the item is a variable. The only knowns are slotID and enchantID
rektbyfaith
02-19-2024, 07:05 PM #2

Archived author: Qeme • Posted: 2024-02-19T19:05:39.252000+00:00
Original source

Sort of, but the item is a variable. The only knowns are slotID and enchantID

rektbyfaith
Administrator
0
02-19-2024, 07:05 PM
#3
Archived author: Rymercyble • Posted: 2024-02-19T19:05:44.235000+00:00
Original source

im not sure what u are asking but pro tip u could add bunch of breakpoints to code then unequip item and look where its catched and look through callstack if there is something what suits ur use
rektbyfaith
02-19-2024, 07:05 PM #3

Archived author: Rymercyble • Posted: 2024-02-19T19:05:44.235000+00:00
Original source

im not sure what u are asking but pro tip u could add bunch of breakpoints to code then unequip item and look where its catched and look through callstack if there is something what suits ur use

rektbyfaith
Administrator
0
02-19-2024, 07:06 PM
#4
Archived author: Qeme • Posted: 2024-02-19T19:06:41.194000+00:00
Original source

Damn, good idea, thanks!
rektbyfaith
02-19-2024, 07:06 PM #4

Archived author: Qeme • Posted: 2024-02-19T19:06:41.194000+00:00
Original source

Damn, good idea, thanks!

rektbyfaith
Administrator
0
02-19-2024, 07:08 PM
#5
Archived author: Elmsroth • Posted: 2024-02-19T19:08:52.070000+00:00
Original source

There is a OnEquip event on PlayerScript:
https://github.com/azerothcore/azerothco...t.cpp#L569
[Embed: azerothcore-wotlk/src/server/game/Scripting/ScriptDefines/PlayerScr...]
Complete Open Source and Modular solution for MMO. Contribute to azerothcore/azerothcore-wotlk development by creating an account on GitHub.
https://github.com/azerothcore/azerothco...Script.cpp
rektbyfaith
02-19-2024, 07:08 PM #5

Archived author: Elmsroth • Posted: 2024-02-19T19:08:52.070000+00:00
Original source

There is a OnEquip event on PlayerScript:
https://github.com/azerothcore/azerothco...t.cpp#L569
[Embed: azerothcore-wotlk/src/server/game/Scripting/ScriptDefines/PlayerScr...]
Complete Open Source and Modular solution for MMO. Contribute to azerothcore/azerothcore-wotlk development by creating an account on GitHub.
https://github.com/azerothcore/azerothco...Script.cpp

rektbyfaith
Administrator
0
02-19-2024, 07:09 PM
#6
Archived author: Elmsroth • Posted: 2024-02-19T19:09:26.724000+00:00
Original source

But i don't find any "OnUnequip" Handler
rektbyfaith
02-19-2024, 07:09 PM #6

Archived author: Elmsroth • Posted: 2024-02-19T19:09:26.724000+00:00
Original source

But i don't find any "OnUnequip" Handler

rektbyfaith
Administrator
0
02-19-2024, 07:10 PM
#7
Archived author: Qeme • Posted: 2024-02-19T19:10:25.485000+00:00
Original source

Yeah I am already using OnEquip, that part of the script works fine. But I need to handle "Un-equip" as well.
rektbyfaith
02-19-2024, 07:10 PM #7

Archived author: Qeme • Posted: 2024-02-19T19:10:25.485000+00:00
Original source

Yeah I am already using OnEquip, that part of the script works fine. But I need to handle "Un-equip" as well.

rektbyfaith
Administrator
0
02-19-2024, 07:11 PM
#8
Archived author: Elmsroth • Posted: 2024-02-19T19:11:51.939000+00:00
Original source

Perhaps a new Hook to create for allowing modules to call it !
rektbyfaith
02-19-2024, 07:11 PM #8

Archived author: Elmsroth • Posted: 2024-02-19T19:11:51.939000+00:00
Original source

Perhaps a new Hook to create for allowing modules to call it !

rektbyfaith
Administrator
0
02-19-2024, 07:12 PM
#9
Archived author: Qeme • Posted: 2024-02-19T19:12:51.920000+00:00
Original source

Yeah, that would be awesome. But that's a core mod I am not keen to undertake, if I can avoid it.
rektbyfaith
02-19-2024, 07:12 PM #9

Archived author: Qeme • Posted: 2024-02-19T19:12:51.920000+00:00
Original source

Yeah, that would be awesome. But that's a core mod I am not keen to undertake, if I can avoid it.

rektbyfaith
Administrator
0
02-19-2024, 07:13 PM
#10
Archived author: Honey • Posted: 2024-02-19T19:13:38.500000+00:00
Original source

<https://www.azerothcore.org/pages/eluna/Global/RegisterItemEvent.html>
Does item_remove fire when an item is removed from the inventory or when an item is unequipped?
rektbyfaith
02-19-2024, 07:13 PM #10

Archived author: Honey • Posted: 2024-02-19T19:13:38.500000+00:00
Original source

<https://www.azerothcore.org/pages/eluna/Global/RegisterItemEvent.html>
Does item_remove fire when an item is removed from the inventory or when an item is unequipped?

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