Here, please do this

Here, for the love of jeebus

using System;

public static class RealmPreferenceManager
{
private const string RealmKey = “LAST_REALM”

private const string DefaultRealm = “Dreamscythe”;

public static void SaveLastRealm(string realmName)
{
if (string.IsNullOrWhiteSpace(realmName))
return;

Properties.Settings.Default[RealmKey] = realmName;
Properties.Settings.Default.Save();
}

public static string LoadLastRealm()
{
object value = Properties.Settings.Default[RealmKey];

if (value == null)
return DefaultRealm;

return value.ToString();
}
}

Oh wow you just learned C#

So what is that supposed to do?

Not sure what the ask is here. The code seems to save and reload the last realm you were on but the game already does this with the last character you logged into. Clearly you’re exasperated but it might help to elaborate on what problem you’re intending to solve.

Also, you can format your code by sandwiching it between triple backtick (```) blocks.

Example:
```
if (isUsingCodeBlocks)
Console.WriteLine(“Super cool and easy to read!”);
else
Console.WriteLine(“Less cool and kinda ugly…”);
```

… turns into …

if (isUsingCodeBlocks)
  Console.WriteLine("Super cool and easy to read!");
else
  Console.WriteLine("Less cool and kinda ugly...");
1 Like

nice.

Well in my game everytime I launch the game it goes to realm selection instead of the character screen.

Its just a cheeky bit of code that would set it to load the realm. Obviously it wont work its in the wrong language and has no real references..

Thanks for the cool tip! “““

1 Like

Thanks guys for looking after one of Anni’s.

Spinning up frankenservers seems to have enabled a host of buggy things like this.

Hmmm yea, I’m not sure why. On Era I’m getting the expected behaviour. Are you on another version and it’s not doing this?

np! yay formatting :slight_smile:

Oh you think this is an issue specific to TBC? Could be…! I’d say try tech support but I feel like they’re unlikely to care :frowning: :cry:

1 Like

So hard to tell anymore

OK, this seems like the right thread to ask.

Since they’ve moved Classic Era towards consolidation with retail UI, my console command to hide the party frame has been rendered impotent.

Does anyone know, and care to share, the new console command to hide the party frame?

TIA

Sorry I dont know, they havent released that information yet.

1 Like