[DiscordArchive] You try to make an ItemScript ?
[DiscordArchive] You try to make an ItemScript ?
Archived author: Elmsroth • Posted: 2024-02-19T19:13:46.879000+00:00
Original source
I'm thinkin,g about that the server should receive an OPCODE for unequip
Archived author: Qeme • Posted: 2024-02-19T19:14:16.563000+00:00
Original source
Oh yeah sure, that's what I'm going to investigate in the callstack like Rymcycle said.
Archived author: Qeme • Posted: 2024-02-19T19:14:31.539000+00:00
Original source
Problem is that the item is variable in this scenario.
Archived author: Honey • Posted: 2024-02-19T19:14:57.983000+00:00
Original source
Adding a new hook is described in the wiki btw. If you add it in the right place, where the engine is calling said opcode, it shouldn't be too hard.
Archived author: Elmsroth • Posted: 2024-02-19T19:16:20.411000+00:00
Original source
yeah best would be next to the opcode handler
Archived author: Qeme • Posted: 2024-02-19T19:16:42.585000+00:00
Original source
Ah I see
Archived author: Elmsroth • Posted: 2024-02-19T19:17:08.019000+00:00
Original source
there should be a handler for CMSG_ITEM_REMOVE SOmething
Archived author: Elmsroth • Posted: 2024-02-19T19:17:29.307000+00:00
Original source
Try to search in opcode handlers
Archived author: Qeme • Posted: 2024-02-19T19:18:13.517000+00:00
Original source
Hmm.. Okay I'll search a bit. Thanks for the suggestions everyone.
Archived author: Honey • Posted: 2024-02-19T19:18:43.788000+00:00
Original source
While you're at it, let's add the hook as a bool so it can return false to prevent the removal and expose it to eluna as well