Hi guys. I did something in my 5530 source, i did that to change the character name when it upgrades VIP LEVEL and also REINCARN so it must show those on nick, if it is Mystery, it would be like "Mystery v[6] r[0]", now my question is.
In database it looks ok, but in game it shows no nickname, like if show names is disabled in client. I tried many ways, most of the times it showed only "v[6] r[0]" and i figure out if i use the name field of entities it went well but it bugs on next VIP Level Upgrade it becomes "Mystery v[6] r[0] v[7] r[0]" of course :o. Here is my NPC code part for this. Its for trinity 5530 if u guys can see:
Btw. Namefix is a new field i made that cointains the original nickname so Npcs can use it. Maybe im messing up with some variable declations, i almost got there when i use client.entity.name instead of Namefix.
The weird thing is in entities database it looks OK, but in game i cant see no nickname like i explained b4, i hope any of u guys can help me figure out whats going ON, ill keep trying when i can, thx!
In database it looks ok, but in game it shows no nickname, like if show names is disabled in client. I tried many ways, most of the times it showed only "v[6] r[0]" and i figure out if i use the name field of entities it went well but it bugs on next VIP Level Upgrade it becomes "Mystery v[6] r[0] v[7] r[0]" of course :o. Here is my NPC code part for this. Its for trinity 5530 if u guys can see:
Code:
string namefix = "";
var cmd = new Database.MySqlCommand(Database.MySqlCommandType.SELECT);
cmd.Select("entities").Where("UID", client.Entity.UID);
var r = new Database.MySqlReader(cmd);
if (r.Read())
namefix = r.ReadString("NameFix");
r.Close();
string newname = ""+ namefix + " v[" + (int)client.Entity.VIPLevel + "] r[" + (int)client.Entity.Reincarnations + "]";
Database.MySqlCommand cmd2 = new Database.MySqlCommand(Database.MySqlCommandType.UPDATE);
cmd2.Update("entities").Set("Name", newname).Where("UID", client.Entity.UID).Execute();
client.Disconnect();
The weird thing is in entities database it looks OK, but in game i cant see no nickname like i explained b4, i hope any of u guys can help me figure out whats going ON, ill keep trying when i can, thx!