Jump to content
  • 0

Need help with NPC sprite...


Reisama

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  02/23/12
  • Last Seen:  

So I made some new NPCs, and want to use some custom-colored job sprites for them.. However, after adding it as a monster, and setting the mob_avail.txt and all... It gravity errors when i add it, and go to preview it.

I added the mob in the mob_db2.txt as a clone of poring, with id 2206... an ID unused by any other mob.

The mob_avail.txt file has the following:

2206,4,0,0,0,0,0,0,0,0,0,221

The NPC is defined as:

prontera,160,87,2 script Villager 2206,{

[the code for the NPC]

}

Yet it gravity errors. I know its not in the script because i used a generic NPC sprite and it all worked.

Any help would be highly appreciated, and the faster the better please :)

Thanks in advance!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

I think you must add them in the lua, i dont really remember the exact filename but I think that is npcidentity.lua.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  02/23/12
  • Last Seen:  

@Lordamax, I appreciate the attempt, but the entire purpose of this thread is to get the NPCs to look like a specific player sprite with dyes and a few headgears. However, i bookmarked that site for any other NPCs i decide to make, lol.

@JayPee, I'm going to look for those files. When(or if) i find them, i'll post a full edit process in this thread.

Edit 1: Found the file: data/lua files/datainfo/npcidentity.lua. Currently figuring out exactly what i need to add to it to make this all work.. If i am right, i simply need to add something like ["JT_8_F_Villager"] = 2206, to the end (above the curly)... But i dont have time to fully test and try this yet. Expect another edit soon.

ALSO: if i get this completed, and successfully tested.. Should i write up a full guide?

Edited by Reisama
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   1
  • Joined:  01/20/12
  • Last Seen:  

Tried this as well and error-ed.

Making an npc having a player sprite, would you need the .act and .spr for it in the npc folder of data? I'm not too sure for this.

Does anyone have a solution?

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