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",
|
||||
'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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user