From 2e8abf6dff67daa4c64d2682933eac274e796420 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 18 Jan 2026 11:27:56 +0100 Subject: [PATCH] PageText/Misc * $t is probably the players HK rank. Fill with name for lowest rank. --- includes/utilities.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/utilities.php b/includes/utilities.php index e6351dda..07681181 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -185,7 +185,7 @@ abstract class Util $from = array( '/\$g\s*([^:;]*)\s*:\s*([^:;]*)\s*(:?[^:;]*);/ui',// directed gender-reference $g:: - '/\$t([^;]+);/ui', // nonsense, that the client apparently ignores + '/\$t([^;]+);/ui', // HK rank. $t:; (maybe male/female if pvp unranked? Gets replaced with current HK rank.) '/<([^\"=\/>]+\s[^\"=\/>]+)>/ui', // emotes (workaround: at least one whitespace and never " or = between brackets) '/\$(\d+)w/ui', // worldState(?)-ref found on some pageTexts $1234w '/\$c/i', // class-ref @@ -196,7 +196,7 @@ abstract class Util $toMD = array( '<\1/\2>', - '', + '<'.implode('/', Lang::game('pvpRank', 1)).'>', '<\1>', '[span class=q0>WorldState #\1[/span]', '<'.Lang::game('class').'>', @@ -207,7 +207,7 @@ abstract class Util $toHTML = array( '<\1/\2>', - '', + '<'.implode('/', Lang::game('pvpRank', 1)).'>', '<\1>', 'WorldState #\1', '<'.Lang::game('class').'>',