Jump to content
  • 0

Custom NPC


Rage Guy

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  354
  • Reputation:   3
  • Joined:  02/17/13
  • Last Seen:  

How to add a custom NPC

Full Guide Please ^__^

                                            Thanks....

Edited by Rage Guy
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Add your script ( .txt files ) on your npc/custom folder.

 

Then trunk/npc/scripts_custom.conf to make your script work :

npc: npc/custom/<filename>.txt

Then load the script in-game using a GM with authority :

@loadnpc npc/custom/<filename>.txt
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  354
  • Reputation:   3
  • Joined:  02/17/13
  • Last Seen:  

i mean a npc Style not a script ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

like this one? http://enzo0714.tk/rathena/npclist.php

 

prontera,155,170,3    script    sample    1015,{

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  354
  • Reputation:   3
  • Joined:  02/17/13
  • Last Seen:  

yes but custom one's

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   349
  • Joined:  11/20/11
  • Last Seen:  

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).

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   3
  • Joined:  04/12/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

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?

Link to comment
Share on other sites

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.

×
×
  • Create New...