Jump to content
  • 0

Need help with NPC sprite...


Question

Posted

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!

4 answers to this question

Recommended Posts

Posted (edited)

@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
Posted

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?

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