Jump to content
  • 0

Question

Posted

i know this is some kind a basic question but i can't find any guide about it, How do we add new npc sprite?

i have the sprites but don't know the steps to do on client side and server side.

thank you.

8 answers to this question

Recommended Posts

Posted

First of all put the .spr and .act in data/sprite/npc/

Then go to lua files/datainfo/jobname.lua

Let's consider you have for example f_npcname.spr and .act

Then at the end add:

   [jobtbl.JT_f_npcname] = "f_npcname",

Then open lua files/datainfo/npcidentity.lua and add at the end:

   ["JT_f_npcname"] = 658,

Why 658? Well there's a gap between 658 and 699 so that way you wont need to replace another npc with your custom one. But still, the ID is up to you, wether you want to replace another one or not, it's fine as long as the ID doesn't go over 999.

And that's all, if you've done all that then #658 will be your new npc.

  • Upvote 7
  • 0
Posted
On 6/17/2012 at 12:41 PM, F0xxy said:

First of all put the .spr and .act in data/sprite/npc/

Then go to lua files/datainfo/jobname.lua

Let's consider you have for example f_npcname.spr and .act

Then at the end add:

 


   [jobtbl.JT_f_npcname] = "f_npcname",
 

 

Then open lua files/datainfo/npcidentity.lua and add at the end:

 


   ["JT_f_npcname"] = 658,
 

 

Why 658? Well there's a gap between 658 and 699 so that way you wont need to replace another npc with your custom one. But still, the ID is up to you, wether you want to replace another one or not, it's fine as long as the ID doesn't go over 999.

And that's all, if you've done all that then #658 will be your new npc.

where can i find data/sprite/npc and  lua files/datainfo/jobname.lua

 

  • 0
Posted
On 6/6/2014 at 5:21 AM, shah said:

hey i got that but where do i put my npc files answer pls

 

On 6/17/2012 at 12:41 AM, F0xxy said:

First of all put the .spr and .act in data/sprite/npc/

 

 

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