- Хроники
- Prelude
- Harbingers of War
- Age of Splendor
- Rise of Darkness
- Scions of Destiny
- Oath of Blood
- Interlude
- The 1st Throne: The Kamael
- The 1st Throne: Hellbound
- The 2nd Throne: Gracia
- The 2nd Throne: Freya
- Chaotic Throne: High Five
- Goddess of Destruction Awakening
- Goddess of Destruction Harmony
- Goddess of Destruction Tauti
- Goddess of Destruction Glory Days
- Goddess of Destruction Lindvior
- Valliance / Epeisodion / Raiders
- Ertheia / Dimensional Strangers
- Infinite Odyssey
- Helios
- Grand Cursade
- Salvation
- Fafurion
- Shadow of the Kamael
- Исходники
- Отсутствуют
- Сборка
- Mobius Sources
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
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.
Hope it helps cya!!
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.
Hope it helps cya!!