Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Err, that'll be for a spellscript with an event like OnCast()?

[DiscordArchive] Err, that'll be for a spellscript with an event like OnCast()?

[DiscordArchive] Err, that'll be for a spellscript with an event like OnCast()?

rektbyfaith
Administrator
0
03-15-2023, 10:07 PM
#1
Archived author: FiftyTifty • Posted: 2023-03-15T22:07:46.310000+00:00
Original source

Err, that'll be for a spellscript with an event like OnCast()?
rektbyfaith
03-15-2023, 10:07 PM #1

Archived author: FiftyTifty • Posted: 2023-03-15T22:07:46.310000+00:00
Original source

Err, that'll be for a spellscript with an event like OnCast()?

rektbyfaith
Administrator
0
03-15-2023, 10:07 PM
#2
Archived author: FiftyTifty • Posted: 2023-03-15T22:07:59.232000+00:00
Original source

Ooh. I'll take a look, see if I find something
rektbyfaith
03-15-2023, 10:07 PM #2

Archived author: FiftyTifty • Posted: 2023-03-15T22:07:59.232000+00:00
Original source

Ooh. I'll take a look, see if I find something

rektbyfaith
Administrator
0
03-15-2023, 10:16 PM
#3
Archived author: FiftyTifty • Posted: 2023-03-15T22:16:43.066000+00:00
Original source

This should be it? `sWorld->GetAllSessions();`
rektbyfaith
03-15-2023, 10:16 PM #3

Archived author: FiftyTifty • Posted: 2023-03-15T22:16:43.066000+00:00
Original source

This should be it? `sWorld->GetAllSessions();`

rektbyfaith
Administrator
0
03-15-2023, 10:17 PM
#4
Archived author: FiftyTifty • Posted: 2023-03-15T22:17:50.557000+00:00
Original source

Though looking a bit more at WorldSession, I'm wondering if I should just edit WorldSession.cpp instead of workarounding with a script...
rektbyfaith
03-15-2023, 10:17 PM #4

Archived author: FiftyTifty • Posted: 2023-03-15T22:17:50.557000+00:00
Original source

Though looking a bit more at WorldSession, I'm wondering if I should just edit WorldSession.cpp instead of workarounding with a script...

rektbyfaith
Administrator
0
03-15-2023, 10:40 PM
#5
Archived author: FiftyTifty • Posted: 2023-03-15T22:40:06.743000+00:00
Original source

Think I got it.
```C++
WorldPacket data(SMSG_TIME_SYNC_REQ, 4);
data << iMilliseconds;

SessionMap Sessions = sWorld->GetAllSessions();

for (SessionMap::const_iterator sessionFound = Sessions.begin(); sessionFound != Sessions.end(); ++sessionFound)
{
sessionFound->second->SendPacket(&data);
}```
rektbyfaith
03-15-2023, 10:40 PM #5

Archived author: FiftyTifty • Posted: 2023-03-15T22:40:06.743000+00:00
Original source

Think I got it.
```C++
WorldPacket data(SMSG_TIME_SYNC_REQ, 4);
data << iMilliseconds;

SessionMap Sessions = sWorld->GetAllSessions();

for (SessionMap::const_iterator sessionFound = Sessions.begin(); sessionFound != Sessions.end(); ++sessionFound)
{
sessionFound->second->SendPacket(&data);
}```

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)