Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] you added a counter?

[DiscordArchive] you added a counter?

[DiscordArchive] you added a counter?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
02-18-2023, 08:31 PM
#1
Archived author: Honey • Posted: 2023-02-18T20:31:56.514000+00:00
Original source

you added a counter?
rektbyfaith
02-18-2023, 08:31 PM #1

Archived author: Honey • Posted: 2023-02-18T20:31:56.514000+00:00
Original source

you added a counter?

rektbyfaith
Administrator
0
02-18-2023, 08:32 PM
#2
Archived author: Kitzunu • Posted: 2023-02-18T20:32:21.712000+00:00
Original source

clicked one gossip and it crashed
rektbyfaith
02-18-2023, 08:32 PM #2

Archived author: Kitzunu • Posted: 2023-02-18T20:32:21.712000+00:00
Original source

clicked one gossip and it crashed

rektbyfaith
Administrator
0
02-18-2023, 08:32 PM
#3
Archived author: Kitzunu • Posted: 2023-02-18T20:32:21.998000+00:00
Original source

<:kek:1065379143887372398>
rektbyfaith
02-18-2023, 08:32 PM #3

Archived author: Kitzunu • Posted: 2023-02-18T20:32:21.998000+00:00
Original source

<:kek:1065379143887372398>

rektbyfaith
Administrator
0
02-18-2023, 08:32 PM
#4
Archived author: Kitzunu • Posted: 2023-02-18T20:32:32.352000+00:00
Original source

```cpp
for (int i = 0; i < sZoneDifficulty->ZoneDifficultyRewards[category][counter].size(); ++i)
{
LOG_ERROR("sql", "ITERATING THROUGH {}", i);

/* // hackfix because this auto iterates twice for no reason.
if (first == 0)
{
first = sZoneDifficulty->ZoneDifficultyRewards[category][counter][i].Entry;
}
else if (first == sZoneDifficulty->ZoneDifficultyRewards[category][counter][i].Entry)
{
break;
} */

LOG_INFO("sql", "Adding gossip option for entry {}", sZoneDifficulty->ZoneDifficultyRewards[category][counter][i].Entry);
ItemTemplate const* proto = sObjectMgr->GetItemTemplate(sZoneDifficulty->ZoneDifficultyRewards[category][counter][i].Entry);
std:Confusedtring name = proto->Name1;
if (ItemLocale const* leftIl = sObjectMgr->GetItemLocale(sZoneDifficulty->ZoneDifficultyRewards[category][counter][i].Entry))
{
ObjectMgr::GetLocaleString(leftIl->Name, player->GetSession()->GetSessionDbcLocale(), name);
}

AddGossipItemFor(player, GOSSIP_ICON_CHAT, name, GOSSIP_SENDER_MAIN, (1000 * category) + (100 * counter) + i);
}
}
```
rektbyfaith
02-18-2023, 08:32 PM #4

Archived author: Kitzunu • Posted: 2023-02-18T20:32:32.352000+00:00
Original source

```cpp
for (int i = 0; i < sZoneDifficulty->ZoneDifficultyRewards[category][counter].size(); ++i)
{
LOG_ERROR("sql", "ITERATING THROUGH {}", i);

/* // hackfix because this auto iterates twice for no reason.
if (first == 0)
{
first = sZoneDifficulty->ZoneDifficultyRewards[category][counter][i].Entry;
}
else if (first == sZoneDifficulty->ZoneDifficultyRewards[category][counter][i].Entry)
{
break;
} */

LOG_INFO("sql", "Adding gossip option for entry {}", sZoneDifficulty->ZoneDifficultyRewards[category][counter][i].Entry);
ItemTemplate const* proto = sObjectMgr->GetItemTemplate(sZoneDifficulty->ZoneDifficultyRewards[category][counter][i].Entry);
std:Confusedtring name = proto->Name1;
if (ItemLocale const* leftIl = sObjectMgr->GetItemLocale(sZoneDifficulty->ZoneDifficultyRewards[category][counter][i].Entry))
{
ObjectMgr::GetLocaleString(leftIl->Name, player->GetSession()->GetSessionDbcLocale(), name);
}

AddGossipItemFor(player, GOSSIP_ICON_CHAT, name, GOSSIP_SENDER_MAIN, (1000 * category) + (100 * counter) + i);
}
}
```

rektbyfaith
Administrator
0
02-18-2023, 08:32 PM
#5
Archived author: Kitzunu • Posted: 2023-02-18T20:32:36.006000+00:00
Original source

this is what I got
rektbyfaith
02-18-2023, 08:32 PM #5

Archived author: Kitzunu • Posted: 2023-02-18T20:32:36.006000+00:00
Original source

this is what I got

rektbyfaith
Administrator
0
02-18-2023, 08:32 PM
#6
Archived author: Kitzunu • Posted: 2023-02-18T20:32:46.026000+00:00
Original source

all i changed was commenting out the hack and adding the error
rektbyfaith
02-18-2023, 08:32 PM #6

Archived author: Kitzunu • Posted: 2023-02-18T20:32:46.026000+00:00
Original source

all i changed was commenting out the hack and adding the error

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

i commiteted a crashfix meanwhile, let me see if i had pushed it
rektbyfaith
02-18-2023, 08:33 PM #7

Archived author: Honey • Posted: 2023-02-18T20:33:15.696000+00:00
Original source

i commiteted a crashfix meanwhile, let me see if i had pushed it

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

BUT
rektbyfaith
02-18-2023, 08:33 PM #8

Archived author: Honey • Posted: 2023-02-18T20:33:17.161000+00:00
Original source

BUT

rektbyfaith
Administrator
0
02-18-2023, 08:33 PM
#9
Archived author: Honey • Posted: 2023-02-18T20:33:28.833000+00:00
Original source

if it iterates once, the vector is filled twice
rektbyfaith
02-18-2023, 08:33 PM #9

Archived author: Honey • Posted: 2023-02-18T20:33:28.833000+00:00
Original source

if it iterates once, the vector is filled twice

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

Line 199 fills the vector. Thre's a log after it. It doesn't happen twice.
rektbyfaith
02-18-2023, 08:34 PM #10

Archived author: Honey • Posted: 2023-02-18T20:34:28.671000+00:00
Original source

Line 199 fills the vector. Thre's a log after it. It doesn't happen twice.

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