Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Is ```player:GetQuest():GetName()``` correct, if I want to broadcast the player's current quest?

[DiscordArchive] Is ```player:GetQuest():GetName()``` correct, if I want to broadcast the player's current quest?

[DiscordArchive] Is ```player:GetQuest():GetName()``` correct, if I want to broadcast the player's current quest?

Pages (5): Previous 1 2 3 4 5 Next
rektbyfaith
Administrator
0
02-07-2023, 09:03 PM
#31
Archived author: Foe • Posted: 2023-02-07T21:03:14.264000+00:00
Original source

I didnt test it, so let me know if there's any errors
rektbyfaith
02-07-2023, 09:03 PM #31

Archived author: Foe • Posted: 2023-02-07T21:03:14.264000+00:00
Original source

I didnt test it, so let me know if there's any errors

rektbyfaith
Administrator
0
02-07-2023, 09:09 PM
#32
Archived author: adm • Posted: 2023-02-07T21:09:07.823000+00:00
Original source

yup, works like a charm
rektbyfaith
02-07-2023, 09:09 PM #32

Archived author: adm • Posted: 2023-02-07T21:09:07.823000+00:00
Original source

yup, works like a charm

rektbyfaith
Administrator
0
02-07-2023, 09:10 PM
#33
Archived author: adm • Posted: 2023-02-07T21:10:40.442000+00:00
Original source

is that better performance wise than simply making a single query in the same file, like:
``` local result = WorldDBQuery("SELECT LogTitle, QuestLevel FROM quest_template WHERE ID = " .. questId)```
rektbyfaith
02-07-2023, 09:10 PM #33

Archived author: adm • Posted: 2023-02-07T21:10:40.442000+00:00
Original source

is that better performance wise than simply making a single query in the same file, like:
``` local result = WorldDBQuery("SELECT LogTitle, QuestLevel FROM quest_template WHERE ID = " .. questId)```

rektbyfaith
Administrator
0
02-07-2023, 09:11 PM
#34
Archived author: Foe • Posted: 2023-02-07T21:11:06.021000+00:00
Original source

Yes, because this runs the query once on startup, then caches the info for *all* quests
rektbyfaith
02-07-2023, 09:11 PM #34

Archived author: Foe • Posted: 2023-02-07T21:11:06.021000+00:00
Original source

Yes, because this runs the query once on startup, then caches the info for *all* quests

rektbyfaith
Administrator
0
02-07-2023, 09:11 PM
#35
Archived author: Foe • Posted: 2023-02-07T21:11:16.021000+00:00
Original source

So every time you use GetInfo, you're just reading from memory
rektbyfaith
02-07-2023, 09:11 PM #35

Archived author: Foe • Posted: 2023-02-07T21:11:16.021000+00:00
Original source

So every time you use GetInfo, you're just reading from memory

rektbyfaith
Administrator
0
02-07-2023, 09:11 PM
#36
Archived author: Foe • Posted: 2023-02-07T21:11:18.203000+00:00
Original source

and not the database
rektbyfaith
02-07-2023, 09:11 PM #36

Archived author: Foe • Posted: 2023-02-07T21:11:18.203000+00:00
Original source

and not the database

rektbyfaith
Administrator
0
02-07-2023, 09:11 PM
#37
Archived author: adm • Posted: 2023-02-07T21:11:29.412000+00:00
Original source

right
rektbyfaith
02-07-2023, 09:11 PM #37

Archived author: adm • Posted: 2023-02-07T21:11:29.412000+00:00
Original source

right

rektbyfaith
Administrator
0
02-07-2023, 09:11 PM
#38
Archived author: adm • Posted: 2023-02-07T21:11:46.508000+00:00
Original source

will this cost a lot a memory, what do you think?
rektbyfaith
02-07-2023, 09:11 PM #38

Archived author: adm • Posted: 2023-02-07T21:11:46.508000+00:00
Original source

will this cost a lot a memory, what do you think?

rektbyfaith
Administrator
0
02-07-2023, 09:11 PM
#39
Archived author: Foe • Posted: 2023-02-07T21:11:55.793000+00:00
Original source

Not a lot, a negligible amount
rektbyfaith
02-07-2023, 09:11 PM #39

Archived author: Foe • Posted: 2023-02-07T21:11:55.793000+00:00
Original source

Not a lot, a negligible amount

rektbyfaith
Administrator
0
02-07-2023, 09:12 PM
#40
Archived author: Foe • Posted: 2023-02-07T21:12:15.343000+00:00
Original source

It's much better for performance at least than querying the database every time
rektbyfaith
02-07-2023, 09:12 PM #40

Archived author: Foe • Posted: 2023-02-07T21:12:15.343000+00:00
Original source

It's much better for performance at least than querying the database every time

Pages (5): Previous 1 2 3 4 5 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)