Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Okay, but how do you open a dbc in lua?

[DiscordArchive] Okay, but how do you open a dbc in lua?

[DiscordArchive] Okay, but how do you open a dbc in lua?

rektbyfaith
Administrator
0
12-05-2019, 08:34 AM
#1
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?
rektbyfaith
12-05-2019, 08:34 AM #1

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?

rektbyfaith
Administrator
0
12-05-2019, 08:38 AM
#2
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 ^^
rektbyfaith
12-05-2019, 08:38 AM #2

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 ^^

rektbyfaith
Administrator
0
12-05-2019, 08:39 AM
#3
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)
rektbyfaith
12-05-2019, 08:39 AM #3

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)

rektbyfaith
Administrator
0
12-05-2019, 08:41 AM
#4
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 communitiesSmile
rektbyfaith
12-05-2019, 08:41 AM #4

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 communitiesSmile

rektbyfaith
Administrator
0
12-05-2019, 08:42 AM
#5
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
rektbyfaith
12-05-2019, 08:42 AM #5

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

rektbyfaith
Administrator
0
12-05-2019, 08:43 AM
#6
Archived author: Deleted User • Posted: 2019-12-05T08:43:31.905000+00:00
Original source

this with register player event cast spell
rektbyfaith
12-05-2019, 08:43 AM #6

Archived author: Deleted User • Posted: 2019-12-05T08:43:31.905000+00:00
Original source

this with register player event cast spell

rektbyfaith
Administrator
0
12-05-2019, 08:43 AM
#7
Archived author: Shard • Posted: 2019-12-05T08:43:53.169000+00:00
Original source

Yeah not a good idea haha
rektbyfaith
12-05-2019, 08:43 AM #7

Archived author: Shard • Posted: 2019-12-05T08:43:53.169000+00:00
Original source

Yeah not a good idea haha

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)