Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] <@108617457836539904> now you can add WIP and Need tests?

[DiscordArchive] <@108617457836539904> now you can add WIP and Need tests?

[DiscordArchive] <@108617457836539904> now you can add WIP and Need tests?

Pages (3): Previous 1 2 3 Next
rektbyfaith
Administrator
0
08-20-2017, 07:19 PM
#11
Archived author: Viste • Posted: 2017-08-20T19:19:34.279000+00:00
Original source

and preventing to play from same ip
rektbyfaith
08-20-2017, 07:19 PM #11

Archived author: Viste • Posted: 2017-08-20T19:19:34.279000+00:00
Original source

and preventing to play from same ip

rektbyfaith
Administrator
0
08-20-2017, 07:19 PM
#12
Archived author: Barbz • Posted: 2017-08-20T19:19:54.995000+00:00
Original source

hmm
rektbyfaith
08-20-2017, 07:19 PM #12

Archived author: Barbz • Posted: 2017-08-20T19:19:54.995000+00:00
Original source

hmm

rektbyfaith
Administrator
0
08-20-2017, 07:19 PM
#13
Archived author: Viste • Posted: 2017-08-20T19:19:57.492000+00:00
Original source

but i think last is no need
rektbyfaith
08-20-2017, 07:19 PM #13

Archived author: Viste • Posted: 2017-08-20T19:19:57.492000+00:00
Original source

but i think last is no need

rektbyfaith
Administrator
0
08-20-2017, 07:20 PM
#14
Archived author: Viste • Posted: 2017-08-20T19:20:18.837000+00:00
Original source

// Prevent players to log in with the same IP
SessionMap sessions = sWorld->GetAllSessions();
for (SessionMap::iterator itr = sessions.begin(); itr != sessions.end(); ++itr)
{
if (Player* plr = itr->second->GetPlayer())
{
// GMs can log with more that one character
if (player->GetSession()->GetSecurity() >= 3)
return;

// but players are not able to
if (player != plr) // Just in case to not face the same IP as player's IP
{
if (player->GetSession()->GetRemoteAddress() == plr->GetSession()->GetRemoteAddress())
player->GetSession()->KickPlayer();
}
}
}
rektbyfaith
08-20-2017, 07:20 PM #14

Archived author: Viste • Posted: 2017-08-20T19:20:18.837000+00:00
Original source

// Prevent players to log in with the same IP
SessionMap sessions = sWorld->GetAllSessions();
for (SessionMap::iterator itr = sessions.begin(); itr != sessions.end(); ++itr)
{
if (Player* plr = itr->second->GetPlayer())
{
// GMs can log with more that one character
if (player->GetSession()->GetSecurity() >= 3)
return;

// but players are not able to
if (player != plr) // Just in case to not face the same IP as player's IP
{
if (player->GetSession()->GetRemoteAddress() == plr->GetSession()->GetRemoteAddress())
player->GetSession()->KickPlayer();
}
}
}

rektbyfaith
Administrator
0
08-20-2017, 07:20 PM
#15
Archived author: Barbz • Posted: 2017-08-20T19:20:44.851000+00:00
Original source

yeah im looking at it
rektbyfaith
08-20-2017, 07:20 PM #15

Archived author: Barbz • Posted: 2017-08-20T19:20:44.851000+00:00
Original source

yeah im looking at it

rektbyfaith
Administrator
0
08-20-2017, 07:20 PM
#16
Archived author: Barbz • Posted: 2017-08-20T19:20:54.747000+00:00
Original source

well, i guess these things should be divided
rektbyfaith
08-20-2017, 07:20 PM #16

Archived author: Barbz • Posted: 2017-08-20T19:20:54.747000+00:00
Original source

well, i guess these things should be divided

rektbyfaith
Administrator
0
08-20-2017, 07:21 PM
#17
Archived author: Barbz • Posted: 2017-08-20T19:21:02.445000+00:00
Original source

into other modules or a rather general module with config
rektbyfaith
08-20-2017, 07:21 PM #17

Archived author: Barbz • Posted: 2017-08-20T19:21:02.445000+00:00
Original source

into other modules or a rather general module with config

rektbyfaith
Administrator
0
08-20-2017, 07:21 PM
#18
Archived author: Barbz • Posted: 2017-08-20T19:21:08.039000+00:00
Original source

but still nice ty
rektbyfaith
08-20-2017, 07:21 PM #18

Archived author: Barbz • Posted: 2017-08-20T19:21:08.039000+00:00
Original source

but still nice ty

rektbyfaith
Administrator
0
08-20-2017, 07:21 PM
#19
Archived author: Barbz • Posted: 2017-08-20T19:21:30.718000+00:00
Original source

+ it shows how to make a script into a module easily (if it works Tongue)
rektbyfaith
08-20-2017, 07:21 PM #19

Archived author: Barbz • Posted: 2017-08-20T19:21:30.718000+00:00
Original source

+ it shows how to make a script into a module easily (if it works Tongue)

rektbyfaith
Administrator
0
08-20-2017, 07:21 PM
#20
Archived author: Viste • Posted: 2017-08-20T19:21:52.493000+00:00
Original source

comment this
rektbyfaith
08-20-2017, 07:21 PM #20

Archived author: Viste • Posted: 2017-08-20T19:21:52.493000+00:00
Original source

comment this

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