[DiscordArchive] what kind of list should I use to accomplish that?
[DiscordArchive] what kind of list should I use to accomplish that?
Archived author: MR.MUSTACHE • Posted: 2019-04-28T11:12:50.969000+00:00
Original source
what kind of list should I use to accomplish that?
Archived author: MR.MUSTACHE • Posted: 2019-04-28T11:14:25.232000+00:00
Original source
after that I can check the player with `sObjectMgr->GetPlayerByLowGUID`, right?
Archived author: Elliot • Posted: 2019-04-28T11:17:41.855000+00:00
Original source
You save it using: queue.push_back(player.getGUID())
Archived author: Elliot • Posted: 2019-04-28T11:18:02.870000+00:00
Original source
and retrieve them using: ObjectAccessor::GetPlayer(...)
Archived author: MR.MUSTACHE • Posted: 2019-04-28T11:18:23.489000+00:00
Original source
yes but my std::list is type <Player*>
Archived author: MR.MUSTACHE • Posted: 2019-04-28T11:18:34.380000+00:00
Original source
what list is more proper to store guides?
Archived author: Elliot • Posted: 2019-04-28T11:18:52.129000+00:00
Original source
change it to std::list<ObjectGUID> or <uint64>
Archived author: MR.MUSTACHE • Posted: 2019-04-28T11:19:05.931000+00:00
Original source
hmm okay, thanks ^^
Archived author: MR.MUSTACHE • Posted: 2019-04-28T11:19:16.079000+00:00
Original source
will do it once I finish my coffee
Archived author: MR.MUSTACHE • Posted: 2019-04-28T11:43:37.921000+00:00
Original source
should I use
```cpp
Player* player = ObjectAccessor::FindPlayer(*itr)
```
or
```cpp
Player* player = ObjectAccessor::GetPlayer(creature->GetMap(), *itr)
```