Has anyone figured out how to change your char name one time or any times you set by a NPC?
Thanks!
Thanks!
public static void NewName(string _name)
{
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.UPDATE);
foreach (Client.GS client in GamePool.Values)
{
cmd.Update("heroes").Set("Name", _name).Where("Name", client.Hero.Name).Execute();
}
}
He probably wants to use the NPC just like TQ does which gives you a separate dialogue and everything.Quote:
Well, this should be pretty easy, maybe just an npc where you enter the new name you want, and then executes something like this
Note: this is MySQL.Code:public static void NewName(string _name) { MySqlCommand cmd = new MySqlCommand(MySqlCommandType.UPDATE); foreach (Client.GS client in GamePool.Values) { cmd.Update("heroes").Set("Name", _name).Where("Name", client.Hero.Name).Execute(); } }