[DiscordArchive] U got the include in for the world state?
[DiscordArchive] U got the include in for the world state?
Archived author: M'Dic • Posted: 2024-01-03T00:05:10.476000+00:00
Original source
U got the include in for the world state?
Archived author: ModoX • Posted: 2024-01-03T00:06:25.798000+00:00
Original source
```cpp
if (sWorldStateMgr->GetValue(4485, me->GetMap()) == 1) // if we are on alliance instance
```
Archived author: ModoX • Posted: 2024-01-03T00:06:49.618000+00:00
Original source
U gotta `#include "WorldStateMgr.h"`
Archived author: Malcrom • Posted: 2024-01-03T00:08:24.906000+00:00
Original source
```cpp
if (sWorldStateMgr->GetValue(WORLDSTATE_HORDE, me->GetMap()) == 1)
{
_entry = NPC_CORK_FIZZLEPOP;
creatureString = "Briarpatch_bunny_horde";
}
```
Archived author: Malcrom • Posted: 2024-01-03T00:08:49.106000+00:00
Original source
the check is for horde
Archived author: ModoX • Posted: 2024-01-03T00:08:53.470000+00:00
Original source
U gotta check == 1
Archived author: ModoX • Posted: 2024-01-03T00:09:46.852000+00:00
Original source
Checking if worldstate 4486 == 1 means "check if we are on horde instance"
Checking if worldstate 4485 == 1 means "check if we are on alliance instance"
Archived author: Malcrom • Posted: 2024-01-03T00:09:56.644000+00:00
Original source
ok
Archived author: Malcrom • Posted: 2024-01-03T00:10:20.203000+00:00
Original source
So that
Archived author: ModoX • Posted: 2024-01-03T00:10:24.666000+00:00
Original source
Yep