editing npc names

11/20/2009 05:06 killerdiggs#1
I've been coding my pserver for a while now and I've started to create NPCs for quests and stuff. the only problem i have at the moment is that i don't know how to edit NPC names (i can only use currently existing NPCs and duplicate them.)

I was wondering if anyone could point in me the right direction as to how to edit their names or show me a thread that gives a walk through(and i don't need my hand held through it just a brief explanation will do xP).

much thanks,

killerdiggs
11/20/2009 13:49 IAmHawtness#2
NPC names are client-sided. Whenever you send a show-NPC packet to the client, it contains an NPC ID and the client then gets the name from npc.ini using the ID.
11/20/2009 15:06 InfamousNoone#3
Quote:
Originally Posted by IAmHawtness View Post
NPC names are client-sided. Whenever you send a show-NPC packet to the client, it contains an NPC ID and the client then gets the name from npc.ini using the ID.
I believe as I'm not sure if TQ removed this functionality of not, but you can extend the structure of the NPC Spawn packet so that you can explicitly send a name of an NPC to the client too (which will override looking up the name in the *.ini file).
11/20/2009 19:00 IAmHawtness#4
Quote:
Originally Posted by InfamousNoone View Post
I believe as I'm not sure if TQ removed this functionality of not, but you can extend the structure of the NPC Spawn packet so that you can explicitly send a name of an NPC to the client too (which will override looking up the name in the *.ini file).
:eek:. Never tried/knew that. You remember what byte location the NPC name starts at? I wanna try it out :D.
11/20/2009 20:39 Basser#5
Quote:
Originally Posted by InfamousNoone View Post
I believe as I'm not sure if TQ removed this functionality of not, but you can extend the structure of the NPC Spawn packet so that you can explicitly send a name of an NPC to the client too (which will override looking up the name in the *.ini file).
Wow, this is useful information.
Never knew this.
Thanks for sharing

~Bas
11/20/2009 22:30 Arcо#6
Quote:
Originally Posted by killerdiggs View Post
I've been coding my pserver for a while now and I've started to create NPCs for quests and stuff. the only problem i have at the moment is that i don't know how to edit NPC names (i can only use currently existing NPCs and duplicate them.)

I was wondering if anyone could point in me the right direction as to how to edit their names or show me a thread that gives a walk through(and i don't need my hand held through it just a brief explanation will do xP).

much thanks,

killerdiggs
raidenx123 made a guide on it.
Here's the link.
[Only registered and activated users can see links. Click Here To Register...]
11/20/2009 23:02 killerdiggs#7
Quote:
Originally Posted by Tiku View Post
raidenx123 made a guide on it.
Here's the link.
[Only registered and activated users can see links. Click Here To Register...]
^^
thanks man you saved me a lot of thinking and trouble
11/21/2009 05:25 killerdiggs#8
i need it for CoEmu V2, this is for LOTF. Someone pls post it if you know it.

Thx

Killerdiggs
11/21/2009 07:01 #*=DarkAngeL=*##9
It works for all.
Open your client and ini folder.
Then click on NPC.ini
Then copy a npc and edit name and UID.
11/21/2009 07:50 killerdiggs#10
Quote:
Originally Posted by #*=DarkAngeL=*# View Post
It works for all.
Open your client and ini folder.
Then click on NPC.ini
Then copy a npc and edit name and UID.
I know that part is right. What I need is to know how to change it in the database. Because if I put in a type that doesn't exist(i created) it turns into a shopkeeper. Any ideas?

thx
Killerdiggs
11/21/2009 11:03 Korvacs#11
[Only registered and activated users can see links. Click Here To Register...]

Is what your looking for, what your struggling with is the last part in this guide.
11/21/2009 16:47 Basser#12
Quote:
Originally Posted by Korvacs View Post
[Only registered and activated users can see links. Click Here To Register...]

Is what your looking for, what your struggling with is the last part in this guide.
Somebody already posted that guide, this isn't really adding anything useful.
11/21/2009 17:01 Korvacs#13
Quote:
Originally Posted by Smythe94 View Post
Somebody already posted that guide, this isn't really adding anything useful.
Appart from the fact that i mentioned that the bit hes having difficulty with is the last stage in the guide.

So hopefully he will revisit and make changes accordingly.
11/22/2009 19:30 killerdiggs#14
Quote:
Originally Posted by Korvacs View Post
[Only registered and activated users can see links. Click Here To Register...]

Is what your looking for, what your struggling with is the last part in this guide.
which part? step 6? were it says:

Code:
Step6. Time to know what ID you are going to use for the NPC, the ID you just put in step above is it, but you gotta multiply by 10. So I am going to choose the ID 1987. And the Type ID I would use would be 19870.
i have tried that but i still think im doing something wrong. pls tell me what the subtype should be cuz i think thats my problem
11/23/2009 00:59 Arcо#15
Quote:
Originally Posted by killerdiggs View Post
which part? step 6? were it says:

Code:
Step6. Time to know what ID you are going to use for the NPC, the ID you just put in step above is it, but you gotta multiply by 10. So I am going to choose the ID 1987. And the Type ID I would use would be 19870.
i have tried that but i still think im doing something wrong. pls tell me what the subtype should be cuz i think thats my problem
Exactly what problems are you coming across?