Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] You were searching for a way to handle Map leaving, right?

[DiscordArchive] You were searching for a way to handle Map leaving, right?

[DiscordArchive] You were searching for a way to handle Map leaving, right?

Pages (6): Previous 1 2 3 4 5 6 Next
rektbyfaith
Administrator
0
06-25-2019, 02:35 PM
#21
Archived author: MR.MUSTACHE • Posted: 2019-06-25T14:35:11.769000+00:00
Original source

I believe that this is what you need
rektbyfaith
06-25-2019, 02:35 PM #21

Archived author: MR.MUSTACHE • Posted: 2019-06-25T14:35:11.769000+00:00
Original source

I believe that this is what you need

rektbyfaith
Administrator
0
06-25-2019, 02:36 PM
#22
Archived author: MR.MUSTACHE • Posted: 2019-06-25T14:36:05.971000+00:00
Original source

```cpp

//verify that the player is leaving the area 4254
bool const Normalize = player->GetAreaId() == 4254;
```
you must check the area before
```cpp
if (player->IsInGrid())
player->RemoveFromGrid();
else
ASSERT(remove); //maybe deleted in logoutplayer when player is not in a map

if (remove)
DeleteFromWorld(player);
```
and set the phase after the player has been moved
```cpp

//normalize phase if player is leaving the area 4254
if (player && Normalize)
player->SetPhaseMask(PHASEMASK_NORMAL, true);
```
rektbyfaith
06-25-2019, 02:36 PM #22

Archived author: MR.MUSTACHE • Posted: 2019-06-25T14:36:05.971000+00:00
Original source

```cpp

//verify that the player is leaving the area 4254
bool const Normalize = player->GetAreaId() == 4254;
```
you must check the area before
```cpp
if (player->IsInGrid())
player->RemoveFromGrid();
else
ASSERT(remove); //maybe deleted in logoutplayer when player is not in a map

if (remove)
DeleteFromWorld(player);
```
and set the phase after the player has been moved
```cpp

//normalize phase if player is leaving the area 4254
if (player && Normalize)
player->SetPhaseMask(PHASEMASK_NORMAL, true);
```

rektbyfaith
Administrator
0
06-25-2019, 02:38 PM
#23
Archived author: Hido • Posted: 2019-06-25T14:38:59.910000+00:00
Original source

Well, A big thanks ! I look for that in a while and tell you back on it
rektbyfaith
06-25-2019, 02:38 PM #23

Archived author: Hido • Posted: 2019-06-25T14:38:59.910000+00:00
Original source

Well, A big thanks ! I look for that in a while and tell you back on it

rektbyfaith
Administrator
0
06-25-2019, 02:40 PM
#24
Archived author: MR.MUSTACHE • Posted: 2019-06-25T14:40:11.853000+00:00
Original source

okay tell me if it works or no
rektbyfaith
06-25-2019, 02:40 PM #24

Archived author: MR.MUSTACHE • Posted: 2019-06-25T14:40:11.853000+00:00
Original source

okay tell me if it works or no

rektbyfaith
Administrator
0
06-25-2019, 02:52 PM
#25
Archived author: Wpgn (Dâin) • Posted: 2019-06-25T14:52:28.496000+00:00
Original source

I noticed the Winterfin at the winterfin village dont have there aura around them the blue glow,
rektbyfaith
06-25-2019, 02:52 PM #25

Archived author: Wpgn (Dâin) • Posted: 2019-06-25T14:52:28.496000+00:00
Original source

I noticed the Winterfin at the winterfin village dont have there aura around them the blue glow,

rektbyfaith
Administrator
0
06-25-2019, 02:52 PM
#26
Archived author: Wpgn (Dâin) • Posted: 2019-06-25T14:52:51.380000+00:00
Original source

```sql
insert into `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) values('25216','0','0','0','0','0','0','54262');
insert into `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) values('25217','0','0','0','0','0','0','54262');
insert into `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) values('25215','0','0','0','0','0','0','54262');
```
rektbyfaith
06-25-2019, 02:52 PM #26

Archived author: Wpgn (Dâin) • Posted: 2019-06-25T14:52:51.380000+00:00
Original source

```sql
insert into `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) values('25216','0','0','0','0','0','0','54262');
insert into `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) values('25217','0','0','0','0','0','0','54262');
insert into `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) values('25215','0','0','0','0','0','0','54262');
```

rektbyfaith
Administrator
0
06-25-2019, 02:52 PM
#27
Archived author: Wpgn (Dâin) • Posted: 2019-06-25T14:52:55.805000+00:00
Original source

here my fix
rektbyfaith
06-25-2019, 02:52 PM #27

Archived author: Wpgn (Dâin) • Posted: 2019-06-25T14:52:55.805000+00:00
Original source

here my fix

rektbyfaith
Administrator
0
06-25-2019, 03:00 PM
#28
Archived author: Kitzunu • Posted: 2019-06-25T15:00:01.175000+00:00
Original source

Open an issue on GH with suggested fix, and dont forget to always use DELETE before INSERT
rektbyfaith
06-25-2019, 03:00 PM #28

Archived author: Kitzunu • Posted: 2019-06-25T15:00:01.175000+00:00
Original source

Open an issue on GH with suggested fix, and dont forget to always use DELETE before INSERT

rektbyfaith
Administrator
0
06-25-2019, 03:05 PM
#29
Archived author: MaxtorCoder • Posted: 2019-06-25T15:05:42.171000+00:00
Original source

You can do that much easier btw <@152789156785946634>
rektbyfaith
06-25-2019, 03:05 PM #29

Archived author: MaxtorCoder • Posted: 2019-06-25T15:05:42.171000+00:00
Original source

You can do that much easier btw <@152789156785946634>

rektbyfaith
Administrator
0
06-25-2019, 03:06 PM
#30
Archived author: MaxtorCoder • Posted: 2019-06-25T15:06:00.641000+00:00
Original source

```sql
insert into `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) values
('25216','0','0','0','0','0','0','54262'),
('25217','0','0','0','0','0','0','54262'),
('25215','0','0','0','0','0','0','54262');```
rektbyfaith
06-25-2019, 03:06 PM #30

Archived author: MaxtorCoder • Posted: 2019-06-25T15:06:00.641000+00:00
Original source

```sql
insert into `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) values
('25216','0','0','0','0','0','0','54262'),
('25217','0','0','0','0','0','0','54262'),
('25215','0','0','0','0','0','0','54262');```

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