Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Could you count the amount of entries loaded from DB when inserting it into the vector?

[DiscordArchive] Could you count the amount of entries loaded from DB when inserting it into the vector?

[DiscordArchive] Could you count the amount of entries loaded from DB when inserting it into the vector?

Pages (4): 1 2 3 4 Next
rektbyfaith
Administrator
0
02-18-2023, 08:50 PM
#1
Archived author: Revision • Posted: 2023-02-18T20:50:05.135000+00:00
Original source

Could you count the amount of entries loaded from DB when inserting it into the vector?
rektbyfaith
02-18-2023, 08:50 PM #1

Archived author: Revision • Posted: 2023-02-18T20:50:05.135000+00:00
Original source

Could you count the amount of entries loaded from DB when inserting it into the vector?

rektbyfaith
Administrator
0
02-18-2023, 08:50 PM
#2
Archived author: Honey • Posted: 2023-02-18T20:50:20.226000+00:00
Original source

Trying to explain it:
```cpp
AddGossipItemFor(player, GOSSIP_ICON_CHAT, gossip, GOSSIP_SENDER_MAIN, 100000 + (1000 * category) + (100 * itemtype) + counter);
```
I code category, itemtype and counter into the action
Then i decode it in the next OnGossipSelect with the `while` loops.
rektbyfaith
02-18-2023, 08:50 PM #2

Archived author: Honey • Posted: 2023-02-18T20:50:20.226000+00:00
Original source

Trying to explain it:
```cpp
AddGossipItemFor(player, GOSSIP_ICON_CHAT, gossip, GOSSIP_SENDER_MAIN, 100000 + (1000 * category) + (100 * itemtype) + counter);
```
I code category, itemtype and counter into the action
Then i decode it in the next OnGossipSelect with the `while` loops.

rektbyfaith
Administrator
0
02-18-2023, 08:50 PM
#3
Archived author: Revision • Posted: 2023-02-18T20:50:59.840000+00:00
Original source

The loop through the vector is fine, the way it's built.
rektbyfaith
02-18-2023, 08:50 PM #3

Archived author: Revision • Posted: 2023-02-18T20:50:59.840000+00:00
Original source

The loop through the vector is fine, the way it's built.

rektbyfaith
Administrator
0
02-18-2023, 08:51 PM
#4
Archived author: Revision • Posted: 2023-02-18T20:51:30.493000+00:00
Original source

I mean you can't improve the for part of it and I know it's not that specific line
rektbyfaith
02-18-2023, 08:51 PM #4

Archived author: Revision • Posted: 2023-02-18T20:51:30.493000+00:00
Original source

I mean you can't improve the for part of it and I know it's not that specific line

rektbyfaith
Administrator
0
02-18-2023, 08:51 PM
#5
Archived author: Revision • Posted: 2023-02-18T20:51:54.449000+00:00
Original source

I'm curious though if it adds the same entries more than once when pushing to the vector or if it's later
rektbyfaith
02-18-2023, 08:51 PM #5

Archived author: Revision • Posted: 2023-02-18T20:51:54.449000+00:00
Original source

I'm curious though if it adds the same entries more than once when pushing to the vector or if it's later

rektbyfaith
Administrator
0
02-18-2023, 08:53 PM
#6
Archived author: Nyeriah • Posted: 2023-02-18T20:53:54.099000+00:00
Original source

I've identified an issue though
rektbyfaith
02-18-2023, 08:53 PM #6

Archived author: Nyeriah • Posted: 2023-02-18T20:53:54.099000+00:00
Original source

I've identified an issue though

rektbyfaith
Administrator
0
02-18-2023, 08:53 PM
#7
Archived author: Honey • Posted: 2023-02-18T20:53:54.843000+00:00
Original source


[Image: image.png?ex=690c6222&is=690b10a2&hm=99b...c2e1ed804&]
rektbyfaith
02-18-2023, 08:53 PM #7

Archived author: Honey • Posted: 2023-02-18T20:53:54.843000+00:00
Original source


[Image: image.png?ex=690c6222&is=690b10a2&hm=99b...c2e1ed804&]

rektbyfaith
Administrator
0
02-18-2023, 08:53 PM
#8
Archived author: Honey • Posted: 2023-02-18T20:53:58.521000+00:00
Original source

It is just doomed
rektbyfaith
02-18-2023, 08:53 PM #8

Archived author: Honey • Posted: 2023-02-18T20:53:58.521000+00:00
Original source

It is just doomed

rektbyfaith
Administrator
0
02-18-2023, 08:54 PM
#9
Archived author: Nyeriah • Posted: 2023-02-18T20:54:09.776000+00:00
Original source

the vector needs to be cleared on reload config, else it will keep pilling up data
rektbyfaith
02-18-2023, 08:54 PM #9

Archived author: Nyeriah • Posted: 2023-02-18T20:54:09.776000+00:00
Original source

the vector needs to be cleared on reload config, else it will keep pilling up data

rektbyfaith
Administrator
0
02-18-2023, 08:54 PM
#10
Archived author: Honey • Posted: 2023-02-18T20:54:19.008000+00:00
Original source


[Image: image.png?ex=690c623a&is=690b10ba&hm=090...f4f25eece&]
rektbyfaith
02-18-2023, 08:54 PM #10

Archived author: Honey • Posted: 2023-02-18T20:54:19.008000+00:00
Original source


[Image: image.png?ex=690c623a&is=690b10ba&hm=090...f4f25eece&]

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