Register for your free account! | Forgot your password?

You last visited: Today at 20:12

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

Advertisement



Regarding Npcs Names

Discussion on Regarding Npcs Names within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
Regarding Npcs Names

I was informed about a packet that allows you to change the name of the npc. I was just wondering if anyone has got this packet or could assist me with it.
Santa is offline  
Old 01/16/2010, 05:49   #2
 
spare2's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
NPC names must be changed in the game client.
spare2 is offline  
Old 01/16/2010, 06:11   #3
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by StarBucks View Post
I was informed about a packet that allows you to change the name of the npc. I was just wondering if anyone has got this packet or could assist me with it.
I think raidenx123 released a guide on it.
Try searching for it.
Cheers.
Arcо is offline  
Old 01/16/2010, 06:35   #4
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
That is not what i am saying, Qonquer said that it was possible to change the npc name through a packet.
Santa is offline  
Old 01/16/2010, 06:37   #5
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by StarBucks View Post
That is not what i am saying, Qonquer said that it was possible to change the npc name through a packet.

Waste of time.
It's much more simpler to do it yourself via ini editing.
Arcо is offline  
Old 01/16/2010, 06:47   #6
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
Quote:
Originally Posted by Hepatitis C View Post

Waste of time.
It's much more simpler to do it yourself via ini editing.
You honestly think sending a packet from the server to the client stating the name of the npc is a waste of time? Are you high? Dude, anytime you wanted to change the name of a npc you would have to patch it, how stupid is that.
Santa is offline  
Old 01/16/2010, 06:47   #7
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
If your smart enough and can figure it out based on the code below, grats;
* hint
BYTE = byte
WORD = ushort/uint16
char = byte (or a 1-byte char; C# doesn't have this type other than 'byte')

Code:
#include "StdAfx.h"
#include "NpcEntity.h"
#include "Helper.h"

extern char* szConquerPath;

CNpcEntity::CNpcEntity(BYTE* pMsg, int MsgLength)
{
	PACKETREADER rdr;
	CreatePacketReader(&rdr, pMsg, MsgLength);
	StepPacket(&rdr, sizeof(WORD) * 2);
	this->NpcID = ReadPacket<int>(&rdr);
	this->X = ReadPacket<WORD>(&rdr);
	this->Y = ReadPacket<WORD>(&rdr);
	this->NpcType = ReadPacket<WORD>(&rdr);
	this->Interaction = ReadPacket<WORD>(&rdr);
	StepPacket(&rdr, sizeof(WORD));
	if (ReadPacket<BYTE>(&rdr))
	{
		int len = ReadPacket<BYTE>(&rdr);
		for (int i = 0; i < len; i++)
			szName[i] = ReadPacket<char>(&rdr);
		szName[len] = NULL;
	}
	else
	{
		char szNpc[MAX_PATH];
		strcpy(szNpc, szConquerPath);
		strcat(szNpc, "ini\\npc.ini");
		char szLookFor[32];
		sprintf(szLookFor, "NpcType%d", (int)(this->NpcType / 10));
		GetPrivateProfileStringA(szLookFor, "Name", "NPC_ERROR", szName, sizeof(szName), szNpc);
	}
}

CNpcEntity::~CNpcEntity(void)
{
}
InfamousNoone is offline  
Old 01/16/2010, 06:50   #8
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by InfamousNoone View Post
If your smart enough and can figure it out based on the code below, grats;
Code:
#include "StdAfx.h"
#include "NpcEntity.h"
#include "Helper.h"

extern char* szConquerPath;

CNpcEntity::CNpcEntity(BYTE* pMsg, int MsgLength)
{
	PACKETREADER rdr;
	CreatePacketReader(&rdr, pMsg, MsgLength);
	StepPacket(&rdr, sizeof(WORD) * 2);
	this->NpcID = ReadPacket<int>(&rdr);
	this->X = ReadPacket<WORD>(&rdr);
	this->Y = ReadPacket<WORD>(&rdr);
	this->NpcType = ReadPacket<WORD>(&rdr);
	this->Interaction = ReadPacket<WORD>(&rdr);
	StepPacket(&rdr, sizeof(WORD));
	if (ReadPacket<BYTE>(&rdr))
	{
		int len = ReadPacket<BYTE>(&rdr);
		for (int i = 0; i < len; i++)
			szName[i] = ReadPacket<char>(&rdr);
		szName[len] = NULL;
	}
	else
	{
		char szNpc[MAX_PATH];
		strcpy(szNpc, szConquerPath);
		strcat(szNpc, "ini\\npc.ini");
		char szLookFor[32];
		sprintf(szLookFor, "NpcType%d", (int)(this->NpcType / 10));
		GetPrivateProfileStringA(szLookFor, "Name", "NPC_ERROR", szName, sizeof(szName), szNpc);
	}
}

CNpcEntity::~CNpcEntity(void)
{
}
Not trying to flame the OP or anything but seeing as the kind of help he asks for all the time, I don't think he will be able to figure it out based on this fine code.
Arcо is offline  
Old 01/16/2010, 06:59   #9
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
Quote:
Originally Posted by Hepatitis C View Post
Not trying to flame the OP or anything but seeing as the kind of help he asks for all the time, I don't think he will be able to figure it out based on this fine code.
****, so many things i want to say but i would rather not be banned.

If your so smart Hep C, you figure out the freaking thing, and both of us know its easier to change the npc name via packet but you or anyone else can't figure it out so we all go with the old fashion way. The reason i ask so many questions is because i don't like doing stuff the same way as everyone, obviously. The few questions i have asked have been about a different npc system that i bet you couldn't do. So before you start criticizing people you need to look at what he/she is trying to accomplish, and if its the same **** as everyone else, call them stupid or w/e. But if they are actually trying to do something different don't be a ******* *** hole.

#Mods, none of those curse words were directed to anyone and were not intended to hurt anyone's feelings.
Santa is offline  
Old 01/16/2010, 07:04   #10
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by StarBucks View Post
****, so many things i want to say but i would rather not be banned.

If your so smart Hep C, you figure out the freaking thing, and both of us know its easier to change the npc name via packet but you or anyone else can't figure it out so we all go with the old fashion way. The reason i ask so many questions is because i don't like doing stuff the same way as everyone, obviously. The few questions i have asked have been about a different npc system that i bet you couldn't do. So before you start criticizing people you need to look at what he/she is trying to accomplish, and if its the same **** as everyone else, call them stupid or w/e. But if they are actually trying to do something different don't be a ******* *** hole.

#Mods, none of those curse words were directed to anyone and were not intended to hurt anyone's feelings.
I wasn't flaming you at all.
And yes I can configure it to fit the 5165.
But instead of doing something like this I actually spend time working on bugs and attempting to make the source better.
And like I said, its much more simpler just to change the npc name via ini editing. And only thing you would have to worry about ispatching, which is why an autopatcher would come in handy.
Arcо is offline  
Old 01/16/2010, 07:09   #11
 
spare2's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
Quote:
Originally Posted by StarBucks View Post
****, so many things i want to say but i would rather not be banned.

If your so smart Hep C, you figure out the freaking thing, and both of us know its easier to change the npc name via packet but you or anyone else can't figure it out so we all go with the old fashion way. The reason i ask so many questions is because i don't like doing stuff the same way as everyone, obviously. The few questions i have asked have been about a different npc system that i bet you couldn't do. So before you start criticizing people you need to look at what he/she is trying to accomplish, and if its the same **** as everyone else, call them stupid or w/e. But if they are actually trying to do something different don't be a ******* *** hole.

#Mods, none of those curse words were directed to anyone and were not intended to hurt anyone's feelings.

“Appreciation is a wonderful thing: It makes what is excellent in others belong to us as well” - Voltaire


Appreciate what is handed out to you.
spare2 is offline  
Old 01/16/2010, 07:10   #12
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
Quote:
Originally Posted by Hepatitis C View Post
I wasn't flaming you at all.
And yes I can configure it to fit the 5165.
But instead of doing something like this I actually spend time working on bugs and attempting to make the source better.
And like I said, its much more simpler just to change the npc name via ini editing. And only thing you would have to worry about ispatching, which is why an autopatcher would come in handy.
I don't understand why you would think it would be simpler. If all you had to do was "NpcName = BallsLicker" to change the name, by *** thats what i would do. If you had to do the autopatch it would get overwhelming.
Santa is offline  
Old 01/16/2010, 07:13   #13
 
spare2's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
An autopatcher is essential to a private server. So why not just do it the simple way, and work up the ladder and learn while you are doing it.
spare2 is offline  
Old 01/16/2010, 07:15   #14
 
elite*gold: 80
Join Date: Sep 2007
Posts: 642
Received Thanks: 168
Quote:
Originally Posted by spare2 View Post
An autopatcher is essential to a private server. So why not just do it the simple way, and work up the ladder and learn while you are doing it.
Like i had said before, i don't like doing **** the simple way, and everyone is to big of an ******* to help. Hybrid i don't mean you, i know your helping by letting me do it on my own
Santa is offline  
Old 01/16/2010, 07:17   #15
 
spare2's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
Well if you like to hear it from inf, then here's one of his quotes (if you ever bother to read the stickies).
Quote:
Originally Posted by InfamousNoone
... just jumping in doesn't quite cut it, you usually just end up asking for help and usually annoying people. A crucial rule I've always lived by is never ask for help, unless you honestly need it. I usually try at the problem for a few days before I give up..
spare2 is offline  
Reply


Similar Threads Similar Threads
[HELP] NPC Names/Dshop Names
02/21/2010 - Dekaron Private Server - 10 Replies
I need to fix my D-shop and NPC Names as they are all in gibberish This is what they currently look like :D :D http://i167.photobucket.com/albums/u134/Scotticus 22/554433-2.jpg
[Names] All Server Names! Recommended Servers Are Marked!
02/15/2009 - CO2 Private Server - 36 Replies
Hey i saw Many server that are using the same names xD its funny so here is a list to help u out. Later I Will Make A List With Avaible Names And I Will Put In The (Already In Use) Names What Server Is Dead And What Server Is Alive! THE BLUE SERVERS ARE RECOMMENDED! First 1-146 Names That Are In Use! CoEmu PorousCO CoUnleashed TCWNN
Red names
01/07/2009 - Conquer Online 2 - 2 Replies
I don't buy dbs..and I don't really think im planning to anytime soon...so im a lvl 118 fire tao, never rbed, with super +4 heaven fan and elite +4 star towwer........with decent gears......so can someone tell me the most places ppl pk and go red named and black named and stuff? and my nado is fixed btw....so....if u constantly find red names and black names and stuff somewhere...can u please tell me.. :[
Change your NPCs names
08/05/2007 - CO2 Guides & Templates - 8 Replies
hi all In this guide ill show how to change NPCs names, i guess very ppl know how, but i didnt saw one posted here. U can choose any name, just be creative 1- Go to ini folder in ur CO directory, open it 2- Search a file named npc, and open it with Note Pad 3- Now search for a NPC name that u want to change example: &#91;NpcType131&#93;
change color of item names or guild names?
05/07/2006 - Conquer Online 2 - 2 Replies
How can i change the color of the item names or guild names? -- they are both yellow and screw up my bot... so i cant be in a guild to us my bot and pick up items.



All times are GMT +1. The time now is 20:12.


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