Find a list secure functions
Hi all
I am trying to find a secure function for mounting that I can hook. I have already found some secure functions such as JumpOrAscendStart and CollectionsJournal_UpdateSelectedTab. Is there a way for me to find a list of all of the secure functions, or if one does not already exist, how I can build my own list? |
I'd suggest looking at the source code for the default UI. There are a few online repositories that have this available or you could extract it yourself. It would be a good idea to list all the different ways the game can process mounting to get an idea of what you need to look for. Things like ActionButton, Spell/Item use, CollectionFrame, etc.
This list may get overwhelmingly long, so you may want to consider if your code can support a more focused approach. For example, all these methods send a spellcast request to the server. The way to detect these is to listen for the server to respond with a spellcast start event with the SpellID matching the mount that's being summoned. |
Hi SDPhantom
I have tried tracking the spell via UNIT_SPELLCAST_SENT and it is great to pick out each mount spell and then cancel; however, there are hundreds of mounts that I wish to stop. I want to stop a player from summoning any mount or at worse dismount after they have mounted. Sorry, I always forget to fully explain what my final goal is. :o |
I have now accepted that I will have to dismount after the player has mounted.
To do this I have the following chunk: Lua Code:
I cannot work out why I never print found, but maybe I am too close to see the error. |
Because the spell to mount a thing (spellID) is not the thing itself (mountID).
|
Hi Fizzlemizz
You are right.:) Lua Code:
Thanks for your help. |
Lua Code:
|
All times are GMT -6. The time now is 04:28 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI