Jump to content
  • 0

Custom mob sprite issue


GreenMagic793

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

Hey guys,

I've been trying to add custom mob sprites to my server and I'm having a lot of weird things happen. I followed instructions exactly: put my .act and .spr files for a custom Poring in the right folder in my grf, edited the lua files, added the monster to my mob_db, but then when I actually spawn it in the game... it comes out as a bartender NPC that uses cloaking and attacks me... what the hell?

I don't understand. My monster doesn't even have skills in the db, how is it using cloaking? And why is it coming out as a bartender when I've set it to my custom sprite in the lua files? I'm at my wit's end here, I don't get it. Any help would be appreciated.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

You've said a lot but given us very few.
Post your entries on each file and DB so we can analyze where you could have made any mistake.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

32 minutes ago, Haziel said:

You've said a lot but given us very few.
Post your entries on each file and DB so we can analyze where you could have made any mistake.

Okay, I uploaded my files. This is what I did step by step:

1. Added new mob to mob_db under id 1929, called it TESTPORING, gave it same stats as a normal poring, no skills

2. Went into jobname.lua and added this line to the bottom: [jobtbl.JT_TESTPORING] = "TESTPORING"

3. Went into npcidentity.lua and added this line to the bottom: ["JT_TESTPORING"] = 1929

4. took my .spr and .act files and put them under npc\ó½ºÅÍ\

Then, I start up my server, run the client, use @spawn 1929... and it spawns as bartender (NPC sprite 46), has cloaking even though I didn't give it any skills. I just don't get it. Thanks for your help.

jobname.lua

npcidentity.lua

mob_db.txt

Link to comment
Share on other sites

  • 0

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

I'm pretty sure the ID 1929 is in use for an official mob. You'll have to use a higher ID. Try 3000+

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