Register for your free account! | Forgot your password?

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

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

Advertisement



[5065][Redux] How to add prefix or suffix to character name?

Discussion on [5065][Redux] How to add prefix or suffix to character name? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2018
Posts: 3
Received Thanks: 0
Question [5065][Redux] How to add prefix or suffix to character name?

Can anyone help me figure out how to add a prefix or suffix to character name without changing the actual name in database. example the character name in database is "John" and I want to add "[VIP]" to his name when he logged in. So it will look like "[VIP]John". But the database should still remain "John" and accross the server his name should still be equal to "John" only the display name above his character head will have the value "[VIP]". Hope it make sense. Thanks in advance!
rbaguasan123 is offline  
Old 06/28/2023, 23:44   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,213
Received Thanks: 4,116
Quote:
Originally Posted by rbaguasan123 View Post
Can anyone help me figure out how to add a prefix or suffix to character name without changing the actual name in database. example the character name in database is "John" and I want to add "[VIP]" to his name when he logged in. So it will look like "[VIP]John". But the database should still remain "John" and accross the server his name should still be equal to "John" only the display name above his character head will have the value "[VIP]". Hope it make sense. Thanks in advance!
Hey there! The most common way I've seen this handled is by using two separate table columns in your database: one for the character name and one for the VIP status (could be a level or simple flag). In your server's source code, there's probably a property on the Character / Hero class for the name. There, you can concatenate the saved name supplied by the database with a string based on their VIP status. Be careful to check for name references though, just in case there's some code either already handling that concatenation or that'd be incompatible with it. Good luck!
Spirited is offline  
Old 06/29/2023, 19:36   #3
 
elite*gold: 0
Join Date: Nov 2018
Posts: 3
Received Thanks: 0
Quote:
Originally Posted by Spirited View Post
Hey there! The most common way I've seen this handled is by using two separate table columns in your database: one for the character name and one for the VIP status (could be a level or simple flag). In your server's source code, there's probably a property on the Character / Hero class for the name. There, you can concatenate the saved name supplied by the database with a string based on their VIP status. Be careful to check for name references though, just in case there's some code either already handling that concatenation or that'd be incompatible with it. Good luck!
Hello @! Thanks for your response and I really appreciate it.

You mean this one?
rbaguasan123 is offline  
Old 06/29/2023, 20:27   #4
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,213
Received Thanks: 4,116
Quote:
Originally Posted by rbaguasan123 View Post
Hello @! Thanks for your response and I really appreciate it.

You mean this one?
Yup, that's a good reference find. So that packet is the one that gets sent to the player's game client during login to populate their character info in the equipment / character status window. I'm not sure what happens if you add a VIP status there for a longer name. Like if it cuts it off or something. You may have to experiment with that.
Spirited is offline  
Old 06/30/2023, 23:26   #5
 
elite*gold: 0
Join Date: Nov 2018
Posts: 3
Received Thanks: 0
Okay I'll give it a try. Thank you again for your reply sir @
rbaguasan123 is offline  
Old 07/04/2023, 09:20   #6
♥ Yuuki Asuna ♥



 
DarkOPM's Avatar
 
elite*gold: 45
The Black Market: 140/0/0
Join Date: Jun 2005
Posts: 54,476
Received Thanks: 8,539
Arrow CO2 Programming -> CO2 Private Server

#moved
DarkOPM is offline  
Reply

Tags
5065, question, redux


Similar Threads Similar Threads
[help]is there any programs to auto suffix and prefix ?
01/29/2015 - Ace Online / AirRivals - 10 Replies
i have trying using jitbit macro recorder to auto gamble on gamble machine but it doesnt work.. im looking for wizard of wizard suffix, and its kinda hard and im too tired for searching for it on gamble machine.. can anyone help me ? :handsdown:
Can I add Prefix(char-name) on game title ?
10/02/2013 - SRO Private Server - 2 Replies
I run game with multiclient. And auto bot with key presser. but when i run key presser, it will press skill every window of SRO_Client. I want to add prefix on SRO_Client. How to ?
sellItem.lua Werte für Prefix Affix und Suffix
04/26/2008 - Diablo 2 Trading - 2 Replies
Hi, ich bin gerade dabei an der Konfiguration meiner SellItem.lua zu scheitern. :-( Doch mit eurer Hilfe kann ich vllt nochmal die Kurve kriegen und doch nicht scheitern. :-) Problem ist, dass der Bot viel zu schlechte charms und juwelen nicht verkauft. Wie ich das theoretisch aendern kann ist mir klar. Ich weiss aber nicht welche Werte für Affixe Suffixe und Preffixe stehen. Gibt es irgendwo eine Liste, in der ich schauen kann welchen Wert ich zum beispiel für einen kleinen charm mit...



All times are GMT +2. The time now is 15:56.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.