diff --git a/localization/locale_dede.php b/localization/locale_dede.php index c9804703..b423c368 100644 --- a/localization/locale_dede.php +++ b/localization/locale_dede.php @@ -1018,6 +1018,7 @@ $lang = array( 'resistances' => "Widerstände", 'foundIn' => "Dieser NPC befindet sich in", 'tameable' => "Zähmbar (%s)", + 'spirit' => "[tooltip name=spirit]Nur für tote Spieler sichtbar[/tooltip][span class=tip tooltip=spirit]Geist[/span]", 'waypoint' => "Wegpunkt", 'wait' => "Wartezeit", 'respawnIn' => "Respawn in: %s", diff --git a/localization/locale_enus.php b/localization/locale_enus.php index 0e5e138a..3dae0f75 100644 --- a/localization/locale_enus.php +++ b/localization/locale_enus.php @@ -1019,6 +1019,7 @@ $lang = array( 'resistances' => "Resistances", 'foundIn' => "This NPC can be found in", 'tameable' => "Tameable (%s)", + 'spirit' => "[tooltip name=spirit][Only visible to dead players][/tooltip][span class=tip tooltip=spirit][Spirit][/span]", 'waypoint' => "Waypoint", 'wait' => "Wait", 'respawnIn' => "Respawn in: %s", diff --git a/localization/locale_eses.php b/localization/locale_eses.php index f3beb028..f62be1db 100644 --- a/localization/locale_eses.php +++ b/localization/locale_eses.php @@ -1018,6 +1018,7 @@ $lang = array( 'resistances' => "Resitencias", 'foundIn' => "Este PNJ se puede encontrar en", 'tameable' => "Domesticable (%s)", + 'spirit' => "[tooltip name=spirit]Only visible to dead players[/tooltip][span class=tip tooltip=spirit]Spirit[/span]", 'waypoint' => "punto de recorrido", 'wait' => "Tiempo de espera", 'respawnIn' => "Reingreso en: %s", diff --git a/localization/locale_frfr.php b/localization/locale_frfr.php index 8e713580..f95fd7d8 100644 --- a/localization/locale_frfr.php +++ b/localization/locale_frfr.php @@ -1018,6 +1018,7 @@ $lang = array( 'resistances' => "Résistances", 'foundIn' => "Ce PNJ se trouve dans", 'tameable' => "Domptable (%s)", + 'spirit' => "[tooltip name=spirit][Only visible to dead players][/tooltip][span class=tip tooltip=spirit][Spirit][/span]", 'waypoint' => "Point de route", 'wait' => "Période d'attente", 'respawnIn' => "Rentrée en : %s", diff --git a/localization/locale_ruru.php b/localization/locale_ruru.php index f57fa81a..faa4be76 100644 --- a/localization/locale_ruru.php +++ b/localization/locale_ruru.php @@ -1018,6 +1018,7 @@ $lang = array( 'resistances' => "Сопротивление", 'foundIn' => "Этот объект может быть найден в следующих зонах:", 'tameable' => "Можно приручить (%s)", + 'spirit' => "[tooltip name=spirit][Only visible to dead players][/tooltip][span class=tip tooltip=spirit][Spirit][/span]", 'waypoint' => "Путевой точки", 'wait' => "Период ожидания", 'respawnIn' => "Reentry in: %s", diff --git a/localization/locale_zhcn.php b/localization/locale_zhcn.php index e2d7be4d..e2090627 100644 --- a/localization/locale_zhcn.php +++ b/localization/locale_zhcn.php @@ -1018,6 +1018,7 @@ $lang = array( 'resistances' => "韧性", 'foundIn' => "这个NPC能在以下地区找到:", 'tameable' => "可驯服的(%s)", + 'spirit' => "[tooltip name=spirit][Only visible to dead players][/tooltip][span class=tip tooltip=spirit][Spirit][/span]", 'waypoint' => "路径点", 'wait' => "等待", 'respawnIn' => "重生:%s", diff --git a/pages/npc.php b/pages/npc.php index 0ee2fb77..0f49318d 100644 --- a/pages/npc.php +++ b/pages/npc.php @@ -174,7 +174,7 @@ class NpcPage extends GenericPage // Tameable if ($_typeFlags & 0x1) if ($_ = $this->subject->getField('family')) - $infobox[] = sprintf(Lang::npc('tameable'), '[url=pet='.$_.']'.Lang::game('fa', $_).'[/url]'); + $infobox[] = Lang::npc('tameable', ['[url=pet='.$_.']'.Lang::game('fa', $_).'[/url]']); // Wealth if ($_ = intVal(($this->subject->getField('minGold') + $this->subject->getField('maxGold')) / 2)) @@ -184,6 +184,10 @@ class NpcPage extends GenericPage if ($this->subject->getField('vehicleId')) $infobox[] = Lang::npc('vehicle'); + // is visible as ghost + if ($this->subject->getField('npcflag') & (NPC_FLAG_SPIRIT_HEALER | NPC_FLAG_SPIRIT_GUIDE)) + $infobox[] = Lang::npc('spirit'); + if (User::isInGroup(U_GROUP_EMPLOYEE)) { // AI