[DiscordArchive] You were searching for a way to handle Map leaving, right?
[DiscordArchive] You were searching for a way to handle Map leaving, right?
Archived author: MR.MUSTACHE • Posted: 2019-06-25T14:35:11.769000+00:00
Original source
I believe that this is what you need
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);
```
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
Archived author: MR.MUSTACHE • Posted: 2019-06-25T14:40:11.853000+00:00
Original source
okay tell me if it works or no
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,
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');
```
Archived author: Wpgn (Dâin) • Posted: 2019-06-25T14:52:55.805000+00:00
Original source
here my fix
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
Archived author: MaxtorCoder • Posted: 2019-06-25T15:05:42.171000+00:00
Original source
You can do that much easier btw <@152789156785946634>
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');```