Quote:
Originally Posted by yoloai
The Entitylist how you do it?
Do you Mind sharing source code?
Snippet will do.
|
Actor list in BDO is probably one of the easiest ones.
Code:
ActorProxy** first;
ActorProxy** last;
You can try finding it using this pattern, have absolutely zero idea if it still works given that it's outdated af, but so are private BDO servers versions...
Code:
48 8D 15 ?? ?? ?? ?? 48 8D 4C 24 ?? E8 ?? ?? ?? ?? 90 4C 8B ?? 24 ?? ?? 8B
To iterate it you can do something like that (not an actually tested code, just an example out of my memory)
Code:
int count = last - first;
for (int i = 0; i < count; i++)
{
if (ActorProxy* actor = first[i])
{
//do stuff
}
}
iirc they are sorted by distance, with self player being zero indexed in most cases.