Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] will that work?

[DiscordArchive] will that work?

[DiscordArchive] will that work?

Pages (5): Previous 1 2 3 4 5 Next
rektbyfaith
Administrator
0
04-28-2019, 10:06 PM
#11
Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:06:08.503000+00:00
Original source

I mean if I add to the diff
rektbyfaith
04-28-2019, 10:06 PM #11

Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:06:08.503000+00:00
Original source

I mean if I add to the diff

rektbyfaith
Administrator
0
04-28-2019, 10:06 PM
#12
Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:06:30.398000+00:00
Original source

a check
if(m_queue.size() > 0)
rektbyfaith
04-28-2019, 10:06 PM #12

Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:06:30.398000+00:00
Original source

a check
if(m_queue.size() > 0)

rektbyfaith
Administrator
0
04-28-2019, 10:06 PM
#13
Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:06:37.716000+00:00
Original source

it starts ticking?
rektbyfaith
04-28-2019, 10:06 PM #13

Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:06:37.716000+00:00
Original source

it starts ticking?

rektbyfaith
Administrator
0
04-28-2019, 10:07 PM
#14
Archived author: Rochet2 • Posted: 2019-04-28T22:07:23.045000+00:00
Original source

hmm, not sure what you mean.
rektbyfaith
04-28-2019, 10:07 PM #14

Archived author: Rochet2 • Posted: 2019-04-28T22:07:23.045000+00:00
Original source

hmm, not sure what you mean.

rektbyfaith
Administrator
0
04-28-2019, 10:07 PM
#15
Archived author: Elliot • Posted: 2019-04-28T22:07:29.548000+00:00
Original source

<@248138535968833537> We have the same system as of now
rektbyfaith
04-28-2019, 10:07 PM #15

Archived author: Elliot • Posted: 2019-04-28T22:07:29.548000+00:00
Original source

<@248138535968833537> We have the same system as of now

rektbyfaith
Administrator
0
04-28-2019, 10:09 PM
#16
Archived author: Rochet2 • Posted: 2019-04-28T22:09:22.606000+00:00
Original source

<@477468968559443999> in the previous script you already used the diff. this is not different in any way.
rektbyfaith
04-28-2019, 10:09 PM #16

Archived author: Rochet2 • Posted: 2019-04-28T22:09:22.606000+00:00
Original source

<@477468968559443999> in the previous script you already used the diff. this is not different in any way.

rektbyfaith
Administrator
0
04-28-2019, 10:10 PM
#17
Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:10:06.466000+00:00
Original source

example
```cpp

class checkQueue : public WorldScript
{
public:
checkQueue() : WorldScript("checkQueue")
{
}

void OnUpdate(uint32 diff) override
{
if (m_queue.size() > 0)
{
for (auto it = m_queue.begin(); it != m_queue.end()Wink {
Player* player = ObjectAccessor::FindPlayer(*it);
if (!player)
m_queue.remove(*it);
}
}
}
private:
char msg[500];
};
```
rektbyfaith
04-28-2019, 10:10 PM #17

Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:10:06.466000+00:00
Original source

example
```cpp

class checkQueue : public WorldScript
{
public:
checkQueue() : WorldScript("checkQueue")
{
}

void OnUpdate(uint32 diff) override
{
if (m_queue.size() > 0)
{
for (auto it = m_queue.begin(); it != m_queue.end()Wink {
Player* player = ObjectAccessor::FindPlayer(*it);
if (!player)
m_queue.remove(*it);
}
}
}
private:
char msg[500];
};
```

rektbyfaith
Administrator
0
04-28-2019, 10:10 PM
#18
Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:10:33.975000+00:00
Original source

if (m_queue.size() > 0)
trigger the WorldScript
rektbyfaith
04-28-2019, 10:10 PM #18

Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:10:33.975000+00:00
Original source

if (m_queue.size() > 0)
trigger the WorldScript

rektbyfaith
Administrator
0
04-28-2019, 10:10 PM
#19
Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:10:49.531000+00:00
Original source

I don't really know how WorldScripts are triggered
rektbyfaith
04-28-2019, 10:10 PM #19

Archived author: MR.MUSTACHE • Posted: 2019-04-28T22:10:49.531000+00:00
Original source

I don't really know how WorldScripts are triggered

rektbyfaith
Administrator
0
04-28-2019, 10:12 PM
#20
Archived author: Rochet2 • Posted: 2019-04-28T22:12:10.961000+00:00
Original source

OnUpdate triggers just like UpdateAI, it is run multiple times every second (or as fast as server can keep up).
the code looks fine.
Except that you are currently not doing `else ++it;` after erase
rektbyfaith
04-28-2019, 10:12 PM #20

Archived author: Rochet2 • Posted: 2019-04-28T22:12:10.961000+00:00
Original source

OnUpdate triggers just like UpdateAI, it is run multiple times every second (or as fast as server can keep up).
the code looks fine.
Except that you are currently not doing `else ++it;` after erase

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