Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Adding in World.cpp

[DiscordArchive] Adding in World.cpp

[DiscordArchive] Adding in World.cpp

rektbyfaith
Administrator
0
05-02-2023, 06:29 PM
#1
Archived author: LaHonder • Posted: 2023-05-02T18:29:45.544000+00:00
Original source

Adding in World.cpp

```cpp
m_int_configs[CONFIG_REALMID] = sConfigMgr->GetIntDefault("RealmID", 0);
```
Adding in World.h
```cpp
...
CONFIG_REALMID,
...
```

Should make
```cpp
uint8 realmID = sWorld->getIntConfig(CONFIG_REALMID);

if (realmID == 1)
{
player->TeleportTo(1, -8049.123535, -5326.259277, 8.175015, 5.405014);
}

```

Working correct?
rektbyfaith
05-02-2023, 06:29 PM #1

Archived author: LaHonder • Posted: 2023-05-02T18:29:45.544000+00:00
Original source

Adding in World.cpp

```cpp
m_int_configs[CONFIG_REALMID] = sConfigMgr->GetIntDefault("RealmID", 0);
```
Adding in World.h
```cpp
...
CONFIG_REALMID,
...
```

Should make
```cpp
uint8 realmID = sWorld->getIntConfig(CONFIG_REALMID);

if (realmID == 1)
{
player->TeleportTo(1, -8049.123535, -5326.259277, 8.175015, 5.405014);
}

```

Working correct?

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