I need some help here. I'm working with the 194 server and I believe most wL at the basic level do this, and I'm unable to find a fix.
Obviously the other players in the area don't add the new player into the region/their playerList. How can I fix this?
It does this when two players teleport to the same region.
Player 1 teleports to Varrock
Player 2 teleports to Varrock
Player 1 cannot see Player 2
Player 2 can see Player 1
http://img708.imageshack.us/img708/4492/helpmet.png
Code:
if(!plr.playerList[i].didTeleport && plr.withinDistance(plr.playerList[i])) {
plr.playerList[i].updatePlayerMovement(str);
plr.playerList[i].appendPlayerUpdateBlock(updateBlock);
plr.playerList[plr.playerListSize++] = plr.playerList[i];
}
else {
int id = plr.playerList[i].playerId;
plr.playerInListBitmap[id>>3] &= ~(1 << (id&7)); // clear the flag
str.writeBits(1, 1);
str.writeBits(2, 3); // tells Client to remove this char from list
}