mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
NPCs/DetailPage
* added item to infobox when npc is a spirit (only visible when dead)
This commit is contained in:
@@ -1018,6 +1018,7 @@ $lang = array(
|
|||||||
'resistances' => "Widerstände",
|
'resistances' => "Widerstände",
|
||||||
'foundIn' => "Dieser NPC befindet sich in",
|
'foundIn' => "Dieser NPC befindet sich in",
|
||||||
'tameable' => "Zähmbar (%s)",
|
'tameable' => "Zähmbar (%s)",
|
||||||
|
'spirit' => "[tooltip name=spirit]Nur für tote Spieler sichtbar[/tooltip][span class=tip tooltip=spirit]Geist[/span]",
|
||||||
'waypoint' => "Wegpunkt",
|
'waypoint' => "Wegpunkt",
|
||||||
'wait' => "Wartezeit",
|
'wait' => "Wartezeit",
|
||||||
'respawnIn' => "Respawn in: %s",
|
'respawnIn' => "Respawn in: %s",
|
||||||
|
|||||||
@@ -1019,6 +1019,7 @@ $lang = array(
|
|||||||
'resistances' => "Resistances",
|
'resistances' => "Resistances",
|
||||||
'foundIn' => "This NPC can be found in",
|
'foundIn' => "This NPC can be found in",
|
||||||
'tameable' => "Tameable (%s)",
|
'tameable' => "Tameable (%s)",
|
||||||
|
'spirit' => "[tooltip name=spirit][Only visible to dead players][/tooltip][span class=tip tooltip=spirit][Spirit][/span]",
|
||||||
'waypoint' => "Waypoint",
|
'waypoint' => "Waypoint",
|
||||||
'wait' => "Wait",
|
'wait' => "Wait",
|
||||||
'respawnIn' => "Respawn in: %s",
|
'respawnIn' => "Respawn in: %s",
|
||||||
|
|||||||
@@ -1018,6 +1018,7 @@ $lang = array(
|
|||||||
'resistances' => "Resitencias",
|
'resistances' => "Resitencias",
|
||||||
'foundIn' => "Este PNJ se puede encontrar en",
|
'foundIn' => "Este PNJ se puede encontrar en",
|
||||||
'tameable' => "Domesticable (%s)",
|
'tameable' => "Domesticable (%s)",
|
||||||
|
'spirit' => "[tooltip name=spirit]Only visible to dead players[/tooltip][span class=tip tooltip=spirit]Spirit[/span]",
|
||||||
'waypoint' => "punto de recorrido",
|
'waypoint' => "punto de recorrido",
|
||||||
'wait' => "Tiempo de espera",
|
'wait' => "Tiempo de espera",
|
||||||
'respawnIn' => "Reingreso en: %s",
|
'respawnIn' => "Reingreso en: %s",
|
||||||
|
|||||||
@@ -1018,6 +1018,7 @@ $lang = array(
|
|||||||
'resistances' => "Résistances",
|
'resistances' => "Résistances",
|
||||||
'foundIn' => "Ce PNJ se trouve dans",
|
'foundIn' => "Ce PNJ se trouve dans",
|
||||||
'tameable' => "Domptable (%s)",
|
'tameable' => "Domptable (%s)",
|
||||||
|
'spirit' => "[tooltip name=spirit][Only visible to dead players][/tooltip][span class=tip tooltip=spirit][Spirit][/span]",
|
||||||
'waypoint' => "Point de route",
|
'waypoint' => "Point de route",
|
||||||
'wait' => "Période d'attente",
|
'wait' => "Période d'attente",
|
||||||
'respawnIn' => "Rentrée en : %s",
|
'respawnIn' => "Rentrée en : %s",
|
||||||
|
|||||||
@@ -1018,6 +1018,7 @@ $lang = array(
|
|||||||
'resistances' => "Сопротивление",
|
'resistances' => "Сопротивление",
|
||||||
'foundIn' => "Этот объект может быть найден в следующих зонах:",
|
'foundIn' => "Этот объект может быть найден в следующих зонах:",
|
||||||
'tameable' => "Можно приручить (%s)",
|
'tameable' => "Можно приручить (%s)",
|
||||||
|
'spirit' => "[tooltip name=spirit][Only visible to dead players][/tooltip][span class=tip tooltip=spirit][Spirit][/span]",
|
||||||
'waypoint' => "Путевой точки",
|
'waypoint' => "Путевой точки",
|
||||||
'wait' => "Период ожидания",
|
'wait' => "Период ожидания",
|
||||||
'respawnIn' => "Reentry in: %s",
|
'respawnIn' => "Reentry in: %s",
|
||||||
|
|||||||
@@ -1018,6 +1018,7 @@ $lang = array(
|
|||||||
'resistances' => "韧性",
|
'resistances' => "韧性",
|
||||||
'foundIn' => "这个NPC能在以下地区找到:",
|
'foundIn' => "这个NPC能在以下地区找到:",
|
||||||
'tameable' => "可驯服的(%s)",
|
'tameable' => "可驯服的(%s)",
|
||||||
|
'spirit' => "[tooltip name=spirit][Only visible to dead players][/tooltip][span class=tip tooltip=spirit][Spirit][/span]",
|
||||||
'waypoint' => "路径点",
|
'waypoint' => "路径点",
|
||||||
'wait' => "等待",
|
'wait' => "等待",
|
||||||
'respawnIn' => "重生:%s",
|
'respawnIn' => "重生:%s",
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ class NpcPage extends GenericPage
|
|||||||
// Tameable
|
// Tameable
|
||||||
if ($_typeFlags & 0x1)
|
if ($_typeFlags & 0x1)
|
||||||
if ($_ = $this->subject->getField('family'))
|
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
|
// Wealth
|
||||||
if ($_ = intVal(($this->subject->getField('minGold') + $this->subject->getField('maxGold')) / 2))
|
if ($_ = intVal(($this->subject->getField('minGold') + $this->subject->getField('maxGold')) / 2))
|
||||||
@@ -184,6 +184,10 @@ class NpcPage extends GenericPage
|
|||||||
if ($this->subject->getField('vehicleId'))
|
if ($this->subject->getField('vehicleId'))
|
||||||
$infobox[] = Lang::npc('vehicle');
|
$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))
|
if (User::isInGroup(U_GROUP_EMPLOYEE))
|
||||||
{
|
{
|
||||||
// AI
|
// AI
|
||||||
|
|||||||
Reference in New Issue
Block a user