[HowTo] Custom NPCs

02/02/2012 21:46 rpz#16
Hey thank you for the nice tut :)

bat may you tell us how to change the name of the NPC shown ingame?

TY :)
02/02/2012 22:07 haxti#17
The Names are stored in the StringResource BUT CLIENTSIDED. As long as you can not edit those files you cant change the name.
02/02/2012 22:18 rpz#18
Quote:
Originally Posted by haxti View Post
The Names are stored in the StringResource BUT CLIENTSIDED. As long as you can not edit those files you cant change the name.
oh u mean files named like this one...
#tn&3ynw;U]uRE%W4tJnm(U'&h}mJ_xEsEJSxds
right?

u have an unpacker for those files?
02/02/2012 22:33 Xijezu#19
Yup, files like those.
And yup, we (NCarbon) have such tools, but we wont share them. :)
02/03/2012 04:30 SilentBill#20
Technically, you don't need any of nCarbon's tools to do it, but you do need a brain and curiosity. If you have those, then go ahead and change the names.
02/04/2012 18:06 rpz#21
i am sure if u want to change a npc name you have to change it here !PWS)3rDAd3O'`dU+O}deN
but as soon as i change there anything my client stop working...
tell me if i am on the right way ...
there are more things i have to chage right?
02/04/2012 18:13 SilentBill#22
It's just that file, but you can't just change willy-nilly. The game expects a certain number of bytes as separations. And that is all I'm gonna say. You're close though. C'mon, you already used your curiosity. Now use your brain.
02/04/2012 19:23 rpz#23
Quote:
Originally Posted by SilentBill View Post
It's just that file, but you can't just change willy-nilly. The game expects a certain number of bytes as separations. And that is all I'm gonna say. You're close though. C'mon, you already used your curiosity. Now use your brain.
i change a name in that script -> client dont start...
i change it back to the same name it was -> client dont start...
after I changed anything... i have to replace this script with my securety copy to make my client work again :(

may you anwer me 1 more question pls?
are the server/client... or anything else changing these files or are they read only? RAM or ROM ^^

Quote:
Originally Posted by SilentBill View Post
It's just that file, but you can't just change willy-nilly. The game expects a certain number of bytes as separations. And that is all I'm gonna say. You're close though. C'mon, you already used your curiosity. Now use your brain.
okay lets take the name "Aoyee"
Aoyee = ASCII
Aoyee in hex would be 41h 6Fh 79h 65h 65h
Binary=
10000001b = A
01101111b = o
01111001b = y
01100101b = e
01100101b = e

and if i would change "Aoyee" to "Aoyeo" it would be the same amount of byte
only if i would add Aoyee mathematical to a decimal number
i would get an other one if i would add Aoyeo
that would be 2 different decimal numbers ofcourse...
thats the only difference


aww i wam wastig your time ... sorry bro
02/05/2012 10:58 SilentBill#24
Quote:
Originally Posted by rpz View Post
i change a name in that script -> client dont start...
i change it back to the same name it was -> client dont start...
after I changed anything... i have to replace this script with my securety copy to make my client work again :(

may you anwer me 1 more question pls?
are the server/client... or anything else changing these files or are they read only? RAM or ROM ^^



okay lets take the name "Aoyee"
Aoyee = ASCII
Aoyee in hex would be 41h 6Fh 79h 65h 65h
Binary=
10000001b = A
01101111b = o
01111001b = y
01100101b = e
01100101b = e

and if i would change "Aoyee" to "Aoyeo" it would be the same amount of byte
only if i would add Aoyee mathematical to a decimal number
i would get an other one if i would add Aoyeo
that would be 2 different decimal numbers ofcourse...
thats the only difference


aww i wam wastig your time ... sorry bro
I'm not sure if you're giving me attitude or not. But I'll help you, even if epvp is being a bitch as usual with its 504 errors.
Nothing is ROM as far as resources are concerned. And RAM is a completely diffrerent concept than what you're using it for, by the way.

Here's what I meant with my last post. I'd hoped you would be capable of figuring this out by yourself, but alas, I overestimate people yet again.
This is your standard, working resource
Code:
sssssNNNNsssssNNNNNN
where s are the separating bytes between entries. You can't modify these bytes without either making the client stop working or making it truncate your string. In my experience, you can get away with modifying the first few separators, but they won't show up in the string.
N representing the bytes of the actual entry
Here's what you can do to keep it working, make a name for equal or shorter length:
Code:
sssssMMM_sssssZZZZZZ
The underscore is a space in this representation. M and Z represent changed bytes.
Or, and this was what I was hinting at with my post, add a byte before the separation bytes.
Code:
sssssNNNNMMMsssssNNNNNNLLLLsssss
M and L represent added and modified bytes in this case.
And before you say "OH BUT THAT'S WHAT I DID AND MY CLIENT DIDN'T WORK!" This is how I've been renaming my NPCs and my client and my people's work perfectly.
Next time, turn on the brain, it's good for you.
02/05/2012 13:08 rpz#25
Quote:
Originally Posted by SilentBill View Post
I'm not sure if you're giving me attitude or not. But I'll help you, even if epvp is being a bitch as usual with its 504 errors.
Nothing is ROM as far as resources are concerned. And RAM is a completely diffrerent concept than what you're using it for, by the way.

Here's what I meant with my last post. I'd hoped you would be capable of figuring this out by yourself, but alas, I overestimate people yet again.
This is your standard, working resource
Code:
sssssNNNNsssssNNNNNN
where s are the separating bytes between entries. You can't modify these bytes without either making the client stop working or making it truncate your string. In my experience, you can get away with modifying the first few separators, but they won't show up in the string.
N representing the bytes of the actual entry
Here's what you can do to keep it working, make a name for equal or shorter length:
Code:
sssssMMM_sssssZZZZZZ
The underscore is a space in this representation. M and Z represent changed bytes.
Or, and this was what I was hinting at with my post, add a byte before the separation bytes.
Code:
sssssNNNNMMMsssssNNNNNNLLLLsssss
M and L represent added and modified bytes in this case.
And before you say "OH BUT THAT'S WHAT I DID AND MY CLIENT DIDN'T WORK!" This is how I've been renaming my NPCs and my client and my people's work perfectly.
Next time, turn on the brain, it's good for you.
the problem is I open the file: !y+ j0gbY9n2ttgR]jni^`iGv)d!Q& as soon as i save it... (without changes) my clien stop working...
tried it allready with mictosoft editor, Wordpad, SciTE :(
02/05/2012 13:52 ptifou78#26
If you want i can do it for you ;)


I don't give any file ! But if you want i can add text for you ;)
02/05/2012 16:45 rpz#27
Quote:
Originally Posted by ptifou78 View Post
If you want i can do it for you ;)

[Only registered and activated users can see links. Click Here To Register...]

I don't give any file ! But if you want i can add text for you ;)
Thank you verry much for your offer but i am sure there is an other way to change the name of an NPC without such tools :)

i want learn here something...
02/05/2012 17:47 SilentBill#28
Yeah, I don't recommend using text editors for this, a text editor can't insert bytes, well, not at the fine-grained level you need for this kind of thing. You need a Hex Editor. I personally use Hex Workshop, but it's shareware, as in not free. Surely someone here can suggest a decent free alternative.
02/05/2012 17:59 ptifou78#29
Or Eternal tool ;)
[Only registered and activated users can see links. Click Here To Register...]
02/05/2012 18:31 rpz#30
Quote:
Originally Posted by SilentBill View Post
Yeah, I don't recommend using text editors for this, a text editor can't insert bytes, well, not at the fine-grained level you need for this kind of thing. You need a Hex Editor. I personally use Hex Workshop, but it's shareware, as in not free. Surely someone here can suggest a decent free alternative.
thought so ^^
Thank You!

okay finaly i canged a npc name with the prog. NEXT-Soft Hex-Editor MX its a freeware
thank you for your support guys
special thank to silent bill!!

didn 't thought that wordpad would add bytes to my script and make it useless^^