Regarding Npcs Names

01/16/2010 05:21 Santa#1
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.
01/16/2010 05:49 spare2#2
NPC names must be changed in the game client.
01/16/2010 06:11 Arcо#3
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.
01/16/2010 06:35 Santa#4
That is not what i am saying, Qonquer said that it was possible to change the npc name through a packet.
01/16/2010 06:37 Arcо#5
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.
01/16/2010 06:47 Santa#6
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.
01/16/2010 06:47 InfamousNoone#7
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)
{
}
01/16/2010 06:50 Arcо#8
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.
01/16/2010 06:59 Santa#9
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.
Damn, 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 shit as everyone else, call them stupid or w/e. But if they are actually trying to do something different don't be a fucking ass hole.

#Mods, none of those curse words were directed to anyone and were not intended to hurt anyone's feelings.
01/16/2010 07:04 Arcо#10
Quote:
Originally Posted by StarBucks View Post
Damn, 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 shit as everyone else, call them stupid or w/e. But if they are actually trying to do something different don't be a fucking ass 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.
01/16/2010 07:09 spare2#11
Quote:
Originally Posted by StarBucks View Post
Damn, 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 shit as everyone else, call them stupid or w/e. But if they are actually trying to do something different don't be a fucking ass 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.
01/16/2010 07:10 Santa#12
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 god thats what i would do. If you had to do the autopatch it would get overwhelming.
01/16/2010 07:13 spare2#13
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.
01/16/2010 07:15 Santa#14
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 shit the simple way, and everyone is to big of an asshole to help. Hybrid i don't mean you, i know your helping by letting me do it on my own :D
01/16/2010 07:17 spare2#15
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..