How to make the NPC name part of the received info!

06/27/2014 14:21 C# Coder#1
Is there a way to make the NPC name = to the NPC dialogue(SERVER TO CLIENT) in the way it's setup ?

Discussion:
I mean the dialogue is a data that is received from the server it dosnt have to be implemented in the client so I thought if there is away to do that with the NPC names? I mean if I want to change an NPC name from "1" to "2" I think a patch isn't necessary for a small thing like that?

EDIT:
That thing is available in Albetros source made by Pro4Never.
I can't get that NPC system to work, still waiting for help!
06/27/2014 16:18 Wolfy.#2
You can't do that because the file for npc mesh, name etc. is located in the client.
06/27/2014 17:52 Spirited#3
It depends on the patch, but yes - you can do this. I believe Pro4Never has an example of doing this in one of his sources. There's a string at the end of the NPC spawn packet that sets the NPC's name.
06/27/2014 17:57 turk55#4
Quote:
Originally Posted by Spirited View Post
It depends on the patch, but yes - you can do this. I believe Pro4Never has an example of doing this in one of his sources. There's a string at the end of the NPC spawn packet that sets the NPC's name.
That is correct. If I am correct the public version of the ProjectX source has this implemented as well. (Since it got the packets from Albetros)
06/27/2014 17:59 Wolfy.#5
So i am wrong, sorry c# coder.
06/27/2014 23:27 C# Coder#6
It would be nice if someone posted an example cause it's mid night here and I am bored to the max and I can't get it to work, tried figuring it from P4N's source but can't...Help!
06/28/2014 01:12 Aceking#7
Looks like offset 18 is the beginning of the npc name in packet 2030 for patch 5065.
06/30/2014 10:44 jackpotsvr#8
Afaik on patch 5017, which I am on you can indeed set it just like the packets on Korvac's wiki, though if you don't manually sent it, it takes the default name.
07/01/2014 04:16 CptSky#9
Quote:
Originally Posted by Spirited View Post
It depends on the patch, but yes - you can do this. I believe Pro4Never has an example of doing this in one of his sources. There's a string at the end of the NPC spawn packet that sets the NPC's name.
You can for almost all patches, send the "optional" name at the end of the spawn packet.
07/01/2014 14:15 abdoumatrix#10
does anyone achieved it at higher patchs?
07/01/2014 17:52 C# Coder#11
Quote:
Originally Posted by abdoumatrix View Post
does anyone achieved it at higher patchs?
It'd work on almost all patches once you can code it :D
07/01/2014 22:24 abdoumatrix#12
xD i was wrong now it don't disconnect but it appeared with no name
i breakpoint it and tested every offset from 22+

still not working
but i will keep diging
07/01/2014 23:54 EpvpIsAJoke#13
Wow, noobs. It works for all newer patches, including the most recent (5918), you're using the wrong offset.

07/02/2014 00:52 abdoumatrix#14
Quote:
Originally Posted by EpvpIsAJoke View Post
Wow, noobs. It works for all newer patches, including the most recent (5918), you're using the wrong offset.

xD

the funny thing i was going to try that but i prefere to use 1109 instead of 2030

anyway ty for sharing :D
07/02/2014 01:05 EpvpIsAJoke#15
Quote:
Originally Posted by abdoumatrix View Post
xD

the funny thing i was going to try that but i prefere to use 1109 instead of 2030

anyway ty for sharing :D