Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] did you add the html tag?

[DiscordArchive] did you add the html tag?

[DiscordArchive] did you add the html tag?

Pages (5): Previous 1 2 3 4 5 Next
rektbyfaith
Administrator
0
01-19-2023, 11:09 PM
#11
Archived author: Foe • Posted: 2023-01-19T23:09:25.199000+00:00
Original source

```The remainder of the file can be straight text or simple, properly formed html (one or the other, but not both). The file should always end with a carriage return of the last character will not be processed (and in the case of html data, this will invalidate the html).```
rektbyfaith
01-19-2023, 11:09 PM #11

Archived author: Foe • Posted: 2023-01-19T23:09:25.199000+00:00
Original source

```The remainder of the file can be straight text or simple, properly formed html (one or the other, but not both). The file should always end with a carriage return of the last character will not be processed (and in the case of html data, this will invalidate the html).```

rektbyfaith
Administrator
0
01-19-2023, 11:09 PM
#12
Archived author: Foe • Posted: 2023-01-19T23:09:34.655000+00:00
Original source

See the carriage return specifically
rektbyfaith
01-19-2023, 11:09 PM #12

Archived author: Foe • Posted: 2023-01-19T23:09:34.655000+00:00
Original source

See the carriage return specifically

rektbyfaith
Administrator
0
01-19-2023, 11:10 PM
#13
Archived author: Anchy • Posted: 2023-01-19T23:10:36.430000+00:00
Original source

okay it works now
rektbyfaith
01-19-2023, 11:10 PM #13

Archived author: Anchy • Posted: 2023-01-19T23:10:36.430000+00:00
Original source

okay it works now

rektbyfaith
Administrator
0
01-19-2023, 11:10 PM
#14
Archived author: Anchy • Posted: 2023-01-19T23:10:52.739000+00:00
Original source


[Image: image.png?ex=690bd97c&is=690a87fc&hm=362...4e14fc5f3&]
rektbyfaith
01-19-2023, 11:10 PM #14

Archived author: Anchy • Posted: 2023-01-19T23:10:52.739000+00:00
Original source


[Image: image.png?ex=690bd97c&is=690a87fc&hm=362...4e14fc5f3&]

rektbyfaith
Administrator
0
01-19-2023, 11:10 PM
#15
Archived author: Foe • Posted: 2023-01-19T23:10:58.319000+00:00
Original source

Nice
rektbyfaith
01-19-2023, 11:10 PM #15

Archived author: Foe • Posted: 2023-01-19T23:10:58.319000+00:00
Original source

Nice

rektbyfaith
Administrator
0
01-19-2023, 11:11 PM
#16
Archived author: Anchy • Posted: 2023-01-19T23:11:08.711000+00:00
Original source

```cpp
class MyServerScript : ServerScript
{
public:
MyServerScript() : ServerScript("MyServerScript") { }

bool CanPacketSend(WorldSession* session, WorldPacket& packet) override
{
if (packet.GetOpcode() == SMSG_CHAR_ENUM)
{
WardenWin* warden = (WardenWin*)session->GetWarden();
if (!warden)
{
return true;
}

std:Confusedtring alertHtml = "<html><body><h1 align=\"left\">Test</h1><p>body text here</p></body></html>";
std:Confusedtring breakingNewsPayload = Acore::StringFormatFmt("local saf = ServerAlertFrame;saf:SetParent(CharacterSelect);ServerAlertText:SetText('{}');saf:Show();", alertHtml);
warden->SendChunkedPayload(breakingNewsPayload, 64);
}
return true;
}
}```
rektbyfaith
01-19-2023, 11:11 PM #16

Archived author: Anchy • Posted: 2023-01-19T23:11:08.711000+00:00
Original source

```cpp
class MyServerScript : ServerScript
{
public:
MyServerScript() : ServerScript("MyServerScript") { }

bool CanPacketSend(WorldSession* session, WorldPacket& packet) override
{
if (packet.GetOpcode() == SMSG_CHAR_ENUM)
{
WardenWin* warden = (WardenWin*)session->GetWarden();
if (!warden)
{
return true;
}

std:Confusedtring alertHtml = "<html><body><h1 align=\"left\">Test</h1><p>body text here</p></body></html>";
std:Confusedtring breakingNewsPayload = Acore::StringFormatFmt("local saf = ServerAlertFrame;saf:SetParent(CharacterSelect);ServerAlertText:SetText('{}');saf:Show();", alertHtml);
warden->SendChunkedPayload(breakingNewsPayload, 64);
}
return true;
}
}```

rektbyfaith
Administrator
0
01-19-2023, 11:11 PM
#17
Archived author: Foe • Posted: 2023-01-19T23:11:57.288000+00:00
Original source

Pretty sure it also defaults center the headers
rektbyfaith
01-19-2023, 11:11 PM #17

Archived author: Foe • Posted: 2023-01-19T23:11:57.288000+00:00
Original source

Pretty sure it also defaults center the headers

rektbyfaith
Administrator
0
01-19-2023, 11:12 PM
#18
Archived author: Anchy • Posted: 2023-01-19T23:12:12.362000+00:00
Original source

SendChunkedPayload Forces behind the scenes btw
rektbyfaith
01-19-2023, 11:12 PM #18

Archived author: Anchy • Posted: 2023-01-19T23:12:12.362000+00:00
Original source

SendChunkedPayload Forces behind the scenes btw

rektbyfaith
Administrator
0
01-19-2023, 11:12 PM
#19
Archived author: Anchy • Posted: 2023-01-19T23:12:20.321000+00:00
Original source

it might make sense to force it here since sometimes the payloads are slow
rektbyfaith
01-19-2023, 11:12 PM #19

Archived author: Anchy • Posted: 2023-01-19T23:12:20.321000+00:00
Original source

it might make sense to force it here since sometimes the payloads are slow

rektbyfaith
Administrator
0
01-19-2023, 11:12 PM
#20
Archived author: Foe • Posted: 2023-01-19T23:12:32.141000+00:00
Original source

Yeah I would definitely do that for this use case
rektbyfaith
01-19-2023, 11:12 PM #20

Archived author: Foe • Posted: 2023-01-19T23:12:32.141000+00:00
Original source

Yeah I would definitely do that for this use case

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