[Request] Change Name Codes

05/20/2012 03:23 HerpDerpNigga#1
Has anyone figured out how to change your char name one time or any times you set by a NPC?
Thanks!
05/20/2012 04:12 Spirited#2
Why are you asking this here when someone already helped you on 4botters?
05/20/2012 04:17 -Sensei-#3
Exactly,
05/21/2012 17:37 HerpDerpNigga#4
Nah, it didn't worked...so I requested here.
05/21/2012 18:09 turk55#5
Quote:
Originally Posted by HerpDerpNigga View Post
Nah, it didn't worked...so I requested here.
It does work, you still had to add some stuff to let it work.
05/21/2012 18:17 diedwarrior#6
Well, this should be pretty easy, maybe just an npc where you enter the new name you want, and then executes something like this
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();
            }
        }
Note: this is MySQL.
05/21/2012 18:46 -Sensei-#7
Quote:
Originally Posted by HerpDerpNigga View Post
Nah, it didn't worked...so I requested here.
He gave you the Structure. You need to work on the handler too,
05/21/2012 19:11 Kiyono#8
Quote:
Originally Posted by diedwarrior View Post
Well, this should be pretty easy, maybe just an npc where you enter the new name you want, and then executes something like this
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();
            }
        }
Note: this is MySQL.
He probably wants to use the NPC just like TQ does which gives you a separate dialogue and everything.
05/21/2012 20:56 -Sensei-#9
Just an information window for ChangeName = 489
05/22/2012 01:31 Mr_Hitch#10
thanks Sensei been looking for it :)