Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] leaving every map or just specific ones?

[DiscordArchive] leaving every map or just specific ones?

[DiscordArchive] leaving every map or just specific ones?

rektbyfaith
Administrator
0
06-25-2019, 01:29 PM
#1
Archived author: MR.MUSTACHE • Posted: 2019-06-25T13:29:36.735000+00:00
Original source

leaving every map or just specific ones?
rektbyfaith
06-25-2019, 01:29 PM #1

Archived author: MR.MUSTACHE • Posted: 2019-06-25T13:29:36.735000+00:00
Original source

leaving every map or just specific ones?

rektbyfaith
Administrator
0
06-25-2019, 01:30 PM
#2
Archived author: MR.MUSTACHE • Posted: 2019-06-25T13:30:05.587000+00:00
Original source

for example I needed to handle Dungeon Leaving
rektbyfaith
06-25-2019, 01:30 PM #2

Archived author: MR.MUSTACHE • Posted: 2019-06-25T13:30:05.587000+00:00
Original source

for example I needed to handle Dungeon Leaving

rektbyfaith
Administrator
0
06-25-2019, 01:30 PM
#3
Archived author: MR.MUSTACHE • Posted: 2019-06-25T13:30:09.828000+00:00
Original source

so I made it like this
rektbyfaith
06-25-2019, 01:30 PM #3

Archived author: MR.MUSTACHE • Posted: 2019-06-25T13:30:09.828000+00:00
Original source

so I made it like this

rektbyfaith
Administrator
0
06-25-2019, 01:30 PM
#4
Archived author: MR.MUSTACHE • Posted: 2019-06-25T13:30:13.828000+00:00
Original source

```cpp
void Map::RemovePlayerFromMap(Player* player, bool remove)
{
// Before leaving map, update zone/area for stats
player->UpdateZone(MAP_INVALID_ZONE, 0);
sScriptMgr->OnPlayerLeaveMap(this, player);
if (IsDungeon() && CreatureMod::HasCreatureMods(this))
CreatureMod:Big GrinestroyMapCreature(this);
```
rektbyfaith
06-25-2019, 01:30 PM #4

Archived author: MR.MUSTACHE • Posted: 2019-06-25T13:30:13.828000+00:00
Original source

```cpp
void Map::RemovePlayerFromMap(Player* player, bool remove)
{
// Before leaving map, update zone/area for stats
player->UpdateZone(MAP_INVALID_ZONE, 0);
sScriptMgr->OnPlayerLeaveMap(this, player);
if (IsDungeon() && CreatureMod::HasCreatureMods(this))
CreatureMod:Big GrinestroyMapCreature(this);
```

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)