Jump to content

Question

Posted (edited)

How to add a custom NPC

Full Guide Please ^__^

                                            Thanks....

Edited by Rage Guy

7 answers to this question

Recommended Posts

Posted

I think he means adding custom npc sprites. The only way for now is to replace existing ones. 2013 clients might have a few IDs available (I'm not too sure though).

Posted

1

// Free ID's 140 - 400

modify const.txt  

add

customname    399
 

 

 

2

modify npc.h

find

#define npcdb_checkid(id) ( ( (id) >= 46 && (id) <= 125) || (id) == HIDDEN_WARP_CLASS || ( (id) > 400 && (id) < MAX_NPC_CLASS ) || (id) == INVISIBLE_CLASS || ( id > MAX_NPC_CLASS2_START && id < MAX_NPC_CLASS2_END ) )

replace to

#define npcdb_checkid(id) ( ( (id) >= 46 && (id) <= 125) || (id) == HIDDEN_WARP_CLASS || ( (id) > 399 && (id) < MAX_NPC_CLASS ) || (id) == INVISIBLE_CLASS || ( id > MAX_NPC_CLASS2_START && id < MAX_NPC_CLASS2_END ) )

then Compile .

 

3

modify lua

find data\luafiles514\lua files\datainfo\npcidentity.lua

add

JT_customname = 399,

 

 

4

copy your customname.spr & customname.act file to data\sprite\npc\

 

/no1

Posted

I don't get it...why would you replace 400 with 399?

And from what I've heard, you can't use the ids between 140 -400. they are being used for some skill animations or something.

Have you tried doing what you've posted?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...