Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] 6969 ?

[DiscordArchive] 6969 ?

[DiscordArchive] 6969 ?

Pages (4): Previous 1 2 3 4 Next
rektbyfaith
Administrator
0
02-03-2023, 11:56 PM
#11
Archived author: Rymercyble • Posted: 2023-02-03T23:56:15.718000+00:00
Original source

isnt that it though ? consider something like this
```cpp
void OnAfterLootStoreLoaded(LootStore *loot_store)
{
auto items_to_remove;
auto items_to_add;

for (auto table : loot_store) {
// remove item from table
for (auto item_to_remove : items_to_remove) {
if (table.contains(item_to_remove)) {
table.erase(item_to_remove);
}
}

// add item to table
for (auto item_to_add : items_to_add) {
if (!table.contains(item_to_add)) {
table.insert(item_to_add);
}
}
}

// remove whole table
loot_store.erase();

// add whole table
loot_store.insert();
}
```
rektbyfaith
02-03-2023, 11:56 PM #11

Archived author: Rymercyble • Posted: 2023-02-03T23:56:15.718000+00:00
Original source

isnt that it though ? consider something like this
```cpp
void OnAfterLootStoreLoaded(LootStore *loot_store)
{
auto items_to_remove;
auto items_to_add;

for (auto table : loot_store) {
// remove item from table
for (auto item_to_remove : items_to_remove) {
if (table.contains(item_to_remove)) {
table.erase(item_to_remove);
}
}

// add item to table
for (auto item_to_add : items_to_add) {
if (!table.contains(item_to_add)) {
table.insert(item_to_add);
}
}
}

// remove whole table
loot_store.erase();

// add whole table
loot_store.insert();
}
```

rektbyfaith
Administrator
0
02-03-2023, 11:58 PM
#12
Archived author: Rymercyble • Posted: 2023-02-03T23:58:40.029000+00:00
Original source

we would just need to have such hook
rektbyfaith
02-03-2023, 11:58 PM #12

Archived author: Rymercyble • Posted: 2023-02-03T23:58:40.029000+00:00
Original source

we would just need to have such hook

rektbyfaith
Administrator
0
02-04-2023, 12:00 AM
#13
Archived author: Rymercyble • Posted: 2023-02-04T00:00:44.629000+00:00
Original source

and if core is not doing checks which i would assume its not then only thing to handle is if reload command is executed
rektbyfaith
02-04-2023, 12:00 AM #13

Archived author: Rymercyble • Posted: 2023-02-04T00:00:44.629000+00:00
Original source

and if core is not doing checks which i would assume its not then only thing to handle is if reload command is executed

rektbyfaith
Administrator
0
02-04-2023, 12:01 AM
#14
Archived author: Revision • Posted: 2023-02-04T00:01:11.070000+00:00
Original source

Maybe I should just say fudge it and implement a patch system into the core or just stick to the SQL approach in the module.
rektbyfaith
02-04-2023, 12:01 AM #14

Archived author: Revision • Posted: 2023-02-04T00:01:11.070000+00:00
Original source

Maybe I should just say fudge it and implement a patch system into the core or just stick to the SQL approach in the module.

rektbyfaith
Administrator
0
02-04-2023, 12:01 AM
#15
Archived author: Rymercyble • Posted: 2023-02-04T00:01:33.378000+00:00
Original source

u dont like hackfixing ?
rektbyfaith
02-04-2023, 12:01 AM #15

Archived author: Rymercyble • Posted: 2023-02-04T00:01:33.378000+00:00
Original source

u dont like hackfixing ?

rektbyfaith
Administrator
0
02-04-2023, 12:02 AM
#16
Archived author: Revision • Posted: 2023-02-04T00:02:53.071000+00:00
Original source

There's just so much to do if this approach would be used. I mean, loot is important but we're talking conditions, disables, dbc data, gossips, transports and so on. I would love to do it but I think it would take so much work.
rektbyfaith
02-04-2023, 12:02 AM #16

Archived author: Revision • Posted: 2023-02-04T00:02:53.071000+00:00
Original source

There's just so much to do if this approach would be used. I mean, loot is important but we're talking conditions, disables, dbc data, gossips, transports and so on. I would love to do it but I think it would take so much work.

rektbyfaith
Administrator
0
02-04-2023, 12:03 AM
#17
Archived author: Remial • Posted: 2023-02-04T00:03:19.559000+00:00
Original source

I checked out reference method, and it works like a charm
[Image: World_of_Warcraft_04.02.2023_3_01_35.png...cd40c7225&]
rektbyfaith
02-04-2023, 12:03 AM #17

Archived author: Remial • Posted: 2023-02-04T00:03:19.559000+00:00
Original source

I checked out reference method, and it works like a charm
[Image: World_of_Warcraft_04.02.2023_3_01_35.png...cd40c7225&]

rektbyfaith
Administrator
0
02-04-2023, 12:08 AM
#18
Archived author: Rymercyble • Posted: 2023-02-04T00:08:43.727000+00:00
Original source

then i probably misunderstood what u meant it seemed to me like u wanted to avoid changing data in core tables
rektbyfaith
02-04-2023, 12:08 AM #18

Archived author: Rymercyble • Posted: 2023-02-04T00:08:43.727000+00:00
Original source

then i probably misunderstood what u meant it seemed to me like u wanted to avoid changing data in core tables

rektbyfaith
Administrator
0
02-04-2023, 12:09 AM
#19
Archived author: Revision • Posted: 2023-02-04T00:09:26.462000+00:00
Original source

I do
rektbyfaith
02-04-2023, 12:09 AM #19

Archived author: Revision • Posted: 2023-02-04T00:09:26.462000+00:00
Original source

I do

rektbyfaith
Administrator
0
02-04-2023, 12:09 AM
#20
Archived author: Revision • Posted: 2023-02-04T00:09:41.291000+00:00
Original source

It's just a lot of work to achieve and I don't know how to do all of it myself
rektbyfaith
02-04-2023, 12:09 AM #20

Archived author: Revision • Posted: 2023-02-04T00:09:41.291000+00:00
Original source

It's just a lot of work to achieve and I don't know how to do all of it myself

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