Dan

Moderator
So is it just me or did they remove a lot of Dungeon clilocs?? Can no longer find Destard, Shame, ect, on new clients


I am trying to make a "PublicDungeonMoongate" off of the Publicmoongate. Has anyone every modified this to use custom names instead of strings?
 
Nevermind Fiddler was pointing to an older client so I have the clilocs again for dungeons.

However still curious if there is an easy way to put in custom names for locations on a publicmoongate.
 
An easy fix would be to change the PMEntry class inside the PublicMoongate.cs so it uses string instead of numbers, then changing the "AddHtmlLocalized(30, 35 + (i * 25), 150, 20, checkLists.Number, false, false);" to make it use the string variable.

Remember that those who use a different language for their game won't have them translated correctly, so using clilocs should be the wanted option if available.

If you want a mix of both, i guess you can simply add two new members to the PMEntry, like:
"private readonly bool m_UseNumber" and "private readonly string m_CustomName" and then adding new parameters in the constructor. That way you can still have translated options, but also custom ones.

I hope that helps.
Let me know if you need any help.
 
Would be better to use TextDefinition in PMEntry instead of an int or a string,Then check if its a Number if so use AddHtmlLocalized if its a string use AddHtml.
 
yeah, anything Localized doesn't support use of a string

public void AddHtml(int x, int y, int width, int height, string text, bool background, bool scrollbar)

public void AddHtmlLocalized(int x, int y, int width, int height, int number, bool background, bool scrollbar)
 
Correct, so if you passed in a TextDefinition to the method that calls either AddHtml or AddHtmlLocalized, you can handle both.

If you change PMEntry to use a TextDefinition instead of int then your constructors can look like
new PMEntry( new Point3D( 270, 628, 15 ), 1063414 )
new PMEntry( new Point3D( 1336, 1997, 5 ), "Donator Mall" )

And down where you use that data
if(checkLists.Number.Number == 0)
AddHtml(30, 35 + (i * 25), 150, 20, checkLists.Number, false, false);
else
AddHtmlLocalized( 30, 35 + (i * 25), 150, 20, checkLists.Number, false, false );
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back