[DiscordArchive] Okay, but how do you open a dbc in lua?
[DiscordArchive] Okay, but how do you open a dbc in lua?
Archived author: Deleted User • Posted: 2019-12-05T08:34:31.656000+00:00
Original source
Okay, but how do you open a dbc in lua?
How do I check if the spell is a mount?
Archived author: Deleted User • Posted: 2019-12-05T08:38:31.811000+00:00
Original source
My script works as follows:
I have previously listed all mounts in the game, sorted by faction.
When I log out, my script checks my spells to see if they are part of the list, if so, I add them to a table for my other characters.
When I connect I check my level, if I have a spell in the table that concerns the listings of the player's mounts then I learn this mount.
I have to check if the spell is a mount, so I use a filter already filled.
I tried to find another way but I can't find a way to check if the spell is a mount ^^
Archived author: Shard • Posted: 2019-12-05T08:39:59.427000+00:00
Original source
You'll need to patch Eluna engine, likr add a new function that returns a Spell instance, from sSpellMgr (if I remember well)
And then you can know if the spell have the mount attribute. (U probably will need to add this function too)
Archived author: Deleted User • Posted: 2019-12-05T08:41:09.240000+00:00
Original source
Ooooooook x)
For the moment I will stay with the basic eluna module, the script being for the communities
Archived author: Deleted User • Posted: 2019-12-05T08:42:54.282000+00:00
Original source
I had thought about registering the mount from the moment the player is on it, because I would use the player:IsMounted(), but it would have been necessary for the player to get on all his mounts to link them to the account
Archived author: Deleted User • Posted: 2019-12-05T08:43:31.905000+00:00
Original source
this with register player event cast spell
Archived author: Shard • Posted: 2019-12-05T08:43:53.169000+00:00
Original source
Yeah not a good idea haha