Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Do you see what that code is doing ?

[DiscordArchive] Do you see what that code is doing ?

[DiscordArchive] Do you see what that code is doing ?

Pages (4): 1 2 3 4 Next
rektbyfaith
Administrator
0
04-30-2023, 07:02 PM
#1
Archived author: jackpoz • Posted: 2023-04-30T19:02:43.550000+00:00
Original source

Do you see what that code is doing ?
rektbyfaith
04-30-2023, 07:02 PM #1

Archived author: jackpoz • Posted: 2023-04-30T19:02:43.550000+00:00
Original source

Do you see what that code is doing ?

rektbyfaith
Administrator
0
04-30-2023, 07:03 PM
#2
Archived author: LaHonder • Posted: 2023-04-30T19:03:01.344000+00:00
Original source

yes, it checks if character has the first login
rektbyfaith
04-30-2023, 07:03 PM #2

Archived author: LaHonder • Posted: 2023-04-30T19:03:01.344000+00:00
Original source

yes, it checks if character has the first login

rektbyfaith
Administrator
0
04-30-2023, 07:03 PM
#3
Archived author: LaHonder • Posted: 2023-04-30T19:03:11.435000+00:00
Original source

and if, i set it into guild
rektbyfaith
04-30-2023, 07:03 PM #3

Archived author: LaHonder • Posted: 2023-04-30T19:03:11.435000+00:00
Original source

and if, i set it into guild

rektbyfaith
Administrator
0
04-30-2023, 07:03 PM
#4
Archived author: jackpoz • Posted: 2023-04-30T19:03:16.968000+00:00
Original source

This code
rektbyfaith
04-30-2023, 07:03 PM #4

Archived author: jackpoz • Posted: 2023-04-30T19:03:16.968000+00:00
Original source

This code

rektbyfaith
Administrator
0
04-30-2023, 07:03 PM
#5
Archived author: LaHonder • Posted: 2023-04-30T19:03:23.590000+00:00
Original source

then i remove the flag due to other script does it also
rektbyfaith
04-30-2023, 07:03 PM #5

Archived author: LaHonder • Posted: 2023-04-30T19:03:23.590000+00:00
Original source

then i remove the flag due to other script does it also

rektbyfaith
Administrator
0
04-30-2023, 07:03 PM
#6
Archived author: jackpoz • Posted: 2023-04-30T19:03:23.711000+00:00
Original source

Just this part
rektbyfaith
04-30-2023, 07:03 PM #6

Archived author: jackpoz • Posted: 2023-04-30T19:03:23.711000+00:00
Original source

Just this part

rektbyfaith
Administrator
0
04-30-2023, 07:03 PM
#7
Archived author: LaHonder • Posted: 2023-04-30T19:03:35.084000+00:00
Original source

already changed
rektbyfaith
04-30-2023, 07:03 PM #7

Archived author: LaHonder • Posted: 2023-04-30T19:03:35.084000+00:00
Original source

already changed

rektbyfaith
Administrator
0
04-30-2023, 07:03 PM
#8
Archived author: LaHonder • Posted: 2023-04-30T19:03:40.712000+00:00
Original source

```cpp
#include "ScriptMgr.h"
#include "Player.h"
#include "WorldSession.h"

class GuildJoinScript : public PlayerScript
{
public:
GuildJoinScript() : PlayerScript("GuildJoinScript") { }

void OnLogin(Player* player, bool /**/) override
{
if (player->HasAtLoginFlag(AT_LOGIN_FIRST))
player->SetInGuild(1),
player->SetRank(0);

player->RemoveAtLoginFlag(AT_LOGIN_FIRST);
}
};

void AddSC_guild_join()
{
new GuildJoinScript();
}
```
rektbyfaith
04-30-2023, 07:03 PM #8

Archived author: LaHonder • Posted: 2023-04-30T19:03:40.712000+00:00
Original source

```cpp
#include "ScriptMgr.h"
#include "Player.h"
#include "WorldSession.h"

class GuildJoinScript : public PlayerScript
{
public:
GuildJoinScript() : PlayerScript("GuildJoinScript") { }

void OnLogin(Player* player, bool /**/) override
{
if (player->HasAtLoginFlag(AT_LOGIN_FIRST))
player->SetInGuild(1),
player->SetRank(0);

player->RemoveAtLoginFlag(AT_LOGIN_FIRST);
}
};

void AddSC_guild_join()
{
new GuildJoinScript();
}
```

rektbyfaith
Administrator
0
04-30-2023, 07:04 PM
#9
Archived author: jackpoz • Posted: 2023-04-30T19:04:01.132000+00:00
Original source

Btw you shouldn't remove any flag
rektbyfaith
04-30-2023, 07:04 PM #9

Archived author: jackpoz • Posted: 2023-04-30T19:04:01.132000+00:00
Original source

Btw you shouldn't remove any flag

rektbyfaith
Administrator
0
04-30-2023, 07:04 PM
#10
Archived author: jackpoz • Posted: 2023-04-30T19:04:20.337000+00:00
Original source

You should check first of all how OnLogin is defined
rektbyfaith
04-30-2023, 07:04 PM #10

Archived author: jackpoz • Posted: 2023-04-30T19:04:20.337000+00:00
Original source

You should check first of all how OnLogin is defined

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