Ok here's whats going on. player.broadcastUserInfo(); basically spreads UserInfo(), charInfo() and extraInfo() onto knownlist players.
So let's say we change title and then name color, we do broadcastTitle(); and broadcastUserInfo();
All players around get the new info BUT if a new player come in town of giran or teleport next to him, he see the old title + old name color cause simply he didn't receive
the packet (cause he wasnt in the knownlist region).
Basically using player.decay(); player.spawn(); works fine after all but i cant really use this for 100 chars every 1 second example..
Is this knownlist problem? I guess no. But how to update properlya player without respawn him or without do a World.getInstance().getAllPlayers() -> sendPacket to all individual. ?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
2 clients:
StyleA: Original client
test1: Unity client
Monster kills are displayed correctly on both clients. Soon it will be possible to kill mobs in a party on 2 different clients
I apologize for my incompetence. The ability to trade is limited only for builder 1. Ordinary characters can trade with each other, and this has nothing to do with auto loot.)
Question
Afou To Patisa
warning: CLICKBAIT title
Ok here's whats going on. player.broadcastUserInfo(); basically spreads UserInfo(), charInfo() and extraInfo() onto knownlist players.
So let's say we change title and then name color, we do broadcastTitle(); and broadcastUserInfo();
All players around get the new info BUT if a new player come in town of giran or teleport next to him, he see the old title + old name color cause simply he didn't receive
the packet (cause he wasnt in the knownlist region).
Basically using player.decay(); player.spawn(); works fine after all but i cant really use this for 100 chars every 1 second example..
Is this knownlist problem? I guess no. But how to update properlya player without respawn him or without do a World.getInstance().getAllPlayers() -> sendPacket to all individual. ?
Tryskell ps. thanks for previous one.
Edited by Afou To Patisa33 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.