Цитата:
Сообщение от [STIGMATED]
Для повтора вопроса надо было создавать новую тему?
Я вам писал, что, как и где. Дальше всё зависит только от вас и от ваших мозгов.
|
Я был в L2NpcInstance,скажите,какую строчку надо править?
Код:
@Override
public boolean isAttackable(L2Character attacker)
{
if (Config.NPC_ATTACKABLE)
{
return true;
}
else
{
return false;
}
}
/**
* Return the faction Identifier of this L2NpcInstance contained in the L2NpcTemplate.<BR><BR>
*
* <B><U> Concept</U> :</B><BR><BR>
* If a NPC belows to a Faction, other NPC of the faction inside the Faction range will help it if it's attacked<BR><BR>
*
*/
public final String getFactionId()
{
return getTemplate().factionId;
}
/**
* Return the Level of this L2NpcInstance contained in the L2NpcTemplate.<BR><BR>
*/
@Override
public final int getLevel()
{
return getTemplate().level;
}