Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
PlusEMU (Disconnecting client) - Packlogger.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Brad" data-source="post: 358551" data-attributes="member: 17995"><p>Ok here should be a fix for the figure.</p><p>Goto PlusEnvironment and find</p><p>[CODE]Internal static string FilterFigure(string figure)[/CODE]</p><p>Replace it with</p><p>[CODE]internal static string FilterFigure(string figure)</p><p> {</p><p> return figure.Any(character => !IsValid(character))</p><p> ? "lg-3023-1335.hr-828-45.sh-295-1332.hd-180-4.ea-3168-89.ca-1813-62.ch-235-1332"</p><p> : figure;</p><p> }[/CODE]</p><p>Then add this to the bottom of the page</p><p>[CODE]private static bool IsValid(char c)</p><p> {</p><p> return char.IsLetterOrDigit(c) || allowedSpecialChars.Contains(c);</p><p> }[/CODE]</p><p>then add this below </p><p>[CODE]private static readonly HashSet<char> allowedSpecialChars = new HashSet<char>(new[]</p><p> {</p><p> '-', '.', ' ', 'Ã', '©', '¡', '', 'º', '³', 'Ã', '‰', '_'</p><p> });[/CODE]</p><p>[doublepost=1448663425,1448662952][/doublepost]Also forgot.</p><p></p><p>goto habbohotel/misc/antimutan.cs and replace it with this. [CODE]</p><p></p><p>using System.Collections.Generic;</p><p>using System.Linq;</p><p></p><p></p><p>namespace Plus.HabboHotel.Misc</p><p>{</p><p> </p><p> internal class AntiMutant</p><p> {</p><p> </p><p> private readonly Dictionary<string, Dictionary<string, Figure>> _parts;</p><p></p><p> </p><p> public AntiMutant()</p><p> {</p><p> _parts = new Dictionary<string, Dictionary<string, Figure>>();</p><p> }</p><p></p><p> </p><p> private string GetLookGender(string look)</p><p> {</p><p> var figureParts = look.Split('.');</p><p></p><p> foreach (string part in figureParts)</p><p> {</p><p> var tPart = part.Split('-');</p><p> if (tPart.Count() < 2)</p><p> continue;</p><p> var partName = tPart[0];</p><p> var partId = tPart[1];</p><p> if (partName != "hd")</p><p> continue;</p><p> return _parts.ContainsKey(partName) && _parts[partName].ContainsKey(partId)</p><p> ? _parts[partName][partId].Gender</p><p> : "U";</p><p> }</p><p> return "U";</p><p> }</p><p> }</p><p>}[/CODE]</p><p></p><p>Then create a new cs in the same folder called figure.cs Then add this to it.</p><p></p><p>[CODE]namespace Plus.HabboHotel.Misc</p><p>{</p><p> </p><p> internal struct Figure</p><p> {</p><p> </p><p> internal string Part;</p><p></p><p> </p><p> internal string PartId;</p><p></p><p> </p><p> internal string Gender;</p><p></p><p> </p><p> internal string Colorable;</p><p></p><p> </p><p> public Figure(string part, string partId, string gender, string colorable)</p><p> {</p><p> Part = part;</p><p> PartId = partId;</p><p> Gender = gender;</p><p> Colorable = colorable;</p><p> }</p><p> }</p><p>}[/CODE]</p></blockquote><p></p>
[QUOTE="Brad, post: 358551, member: 17995"] Ok here should be a fix for the figure. Goto PlusEnvironment and find [CODE]Internal static string FilterFigure(string figure)[/CODE] Replace it with [CODE]internal static string FilterFigure(string figure) { return figure.Any(character => !IsValid(character)) ? "lg-3023-1335.hr-828-45.sh-295-1332.hd-180-4.ea-3168-89.ca-1813-62.ch-235-1332" : figure; }[/CODE] Then add this to the bottom of the page [CODE]private static bool IsValid(char c) { return char.IsLetterOrDigit(c) || allowedSpecialChars.Contains(c); }[/CODE] then add this below [CODE]private static readonly HashSet<char> allowedSpecialChars = new HashSet<char>(new[] { '-', '.', ' ', 'Ã', '©', '¡', '', 'º', '³', 'Ã', '‰', '_' });[/CODE] [doublepost=1448663425,1448662952][/doublepost]Also forgot. goto habbohotel/misc/antimutan.cs and replace it with this. [CODE] using System.Collections.Generic; using System.Linq; namespace Plus.HabboHotel.Misc { internal class AntiMutant { private readonly Dictionary<string, Dictionary<string, Figure>> _parts; public AntiMutant() { _parts = new Dictionary<string, Dictionary<string, Figure>>(); } private string GetLookGender(string look) { var figureParts = look.Split('.'); foreach (string part in figureParts) { var tPart = part.Split('-'); if (tPart.Count() < 2) continue; var partName = tPart[0]; var partId = tPart[1]; if (partName != "hd") continue; return _parts.ContainsKey(partName) && _parts[partName].ContainsKey(partId) ? _parts[partName][partId].Gender : "U"; } return "U"; } } }[/CODE] Then create a new cs in the same folder called figure.cs Then add this to it. [CODE]namespace Plus.HabboHotel.Misc { internal struct Figure { internal string Part; internal string PartId; internal string Gender; internal string Colorable; public Figure(string part, string partId, string gender, string colorable) { Part = part; PartId = partId; Gender = gender; Colorable = colorable; } } }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
PlusEMU (Disconnecting client) - Packlogger.
Top