[DiscordArchive] You try to make an ItemScript ?
[DiscordArchive] You try to make an ItemScript ?
Archived author: Elmsroth • Posted: 2024-02-19T19:05:00.744000+00:00
Original source
You try to make an ItemScript ?
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
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
Archived author: Qeme • Posted: 2024-02-19T19:06:41.194000+00:00
Original source
Damn, good idea, thanks!
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
Archived author: Elmsroth • Posted: 2024-02-19T19:09:26.724000+00:00
Original source
But i don't find any "OnUnequip" Handler
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.
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 !
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.
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?