Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 06:45

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Question] Nick Change

Discussion on [Question] Nick Change within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2007
Posts: 18
Received Thanks: 0
Exclamation [Question] Nick Change

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 . 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();
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!
spiga is offline  
Old 01/09/2012, 07:35   #2
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
If the charactername is too long, then it will not show up.
I don't have a username is offline  
Old 01/09/2012, 13:40   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
As for your other issue (not sure if intended or not), you're continually adding names together instead of continuing to hold onto the original name.

EG: Pro4Never is name and then you have a seperate name to hold nickname which is added on.


If you do something like..


string Name = Pro4Never
Name += [X] [Y];
Name += [X] [Y];

You're obviously going to end up with Pro4Never [X] [Y] [X] [Y]
Instead I'd do something like...

string charName pro4Never;
string nickName = [x];
string Name { get{ return charName + nickName;}}

Now Name cannot be altered, instead you change the nickname as needed (no +=)
pro4never is offline  
Old 01/09/2012, 14:11   #4
 
elite*gold: 0
Join Date: Jan 2007
Posts: 18
Received Thanks: 0
Quote:
Originally Posted by I don't have a username View Post
If the charactername is too long, then it will not show up.
Thax MAN!! Max is 15 caracteres! Problem Solved, and Pro4never that was just an example im not that noob, thx anyway!!!

Is there any way to make a highter then 15 caracteres nickname to show?
spiga is offline  
Old 01/09/2012, 23:06   #5
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by spiga View Post
Thax MAN!! Max is 15 caracteres! Problem Solved, and Pro4never that was just an example im not that noob, thx anyway!!!

Is there any way to make a highter then 15 caracteres nickname to show?
Max name length is 16, and no.
.Kinshi is offline  
Old 01/10/2012, 19:40   #6
 
elite*gold: 0
Join Date: Jan 2007
Posts: 18
Received Thanks: 0
PROBLEM ALREADY SOLVED!

#REQUEST CLOSE

PROBLEM ALREADY SOLVED!

#REQUEST CLOSE
spiga is offline  
Closed Thread

Tags
npc nick change


Similar Threads Similar Threads
LVL 30, 1650 elo, EU NE with Transfer option (+free nick change if used).
01/05/2012 - League of Legends Trading - 9 Replies
Selling League of Legends Acc lvl 30 EU NE (got free transfer option) with 570 rp 5000 ip 3 rune pages Current solo elo is ~1650 (it's about < 2k position in the ladder). Got gold badge and frame from Season 1. About 800 wins in normal and 750 loses. CHAMPIONS : Ahri Akali
ELITEPVPER ACHTUNG TheSteam! der scammer hat nick change.
07/07/2011 - Trading - 2 Replies
So als ich heute mal geguckt hab nach paar profilen ist mir ein alter kollege eingefallen der mir damasl 25 euro psc abgezockt hat .. dann hab ich halt in google eingegbeen Elitepvpers TheSteam! profil (so hieß der früher) dann kam ich zu dieser seite: http://www.elitepvpers.com/forum/warrock-trading/ 1248235-ank-ndigung-thesteam-ist-ein-scammer.html dann klickte ich auf sein profil et voila was sahen meine augen da EpîcFaîl© ist TheSteam! und scammt bestimmt auch daher handelt mit ihn nur...
Nick change in forum please?
01/09/2011 - Technical Support - 3 Replies
Hi i would like to change my nickname to another one. I want to be active now on that cool community i joined in the 2008 but now i changed nick so i would like to be contacted from any admins for change it to see if that nick is available too Thanks!
Where can I request a nick -name change?
12/29/2008 - Off Topic - 1 Replies
Hello,I was wondering if a nickname change is possible here,and if so,where I can request it. Thanks :)
Nick change in forum
07/28/2008 - Technical Support - 1 Replies
Hi can you change my nickname of the forum in L ?



All times are GMT +1. The time now is 06:47.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.