Hey guys, yesterday i make a small modification in my source to be able to show X npc only for Y player. Probably there is better yes but at least work now in mobius.
In WorldObject.java add
Java:
/**
* Sets this object as invisible or not
* @param player
*/
public void setVisibleForPlayerOnly(Player player)
{
_isInvisible = false;
World.getInstance().forEachVisibleObject(this, Player.class, nearPlayers ->
{
if ((nearPlayers.getId() == player.getId()) && isVisibleFor(nearPlayers))
{
sendInfo(nearPlayers);
}
});
}
Before unhide, remember to use setInvisible true to make npc invisible to all, then use this code with player ref to show the npc only to him.