Jump to content
  • 0

[Resolved] Custom Pet Illustration


Question

13 answers to this question

Recommended Posts

Posted

Open ../Lua Files/datainfo/petinfo.lua

Add:

PetIllustNameTable = {

...

[jobtbl.JT_MONSTER_NAME] = "filename.bmp"
}

Then put your custom illustration in ../data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/illust/filename.bmp

  • Upvote 1
Posted (edited)

@FatalEror Thanks man I've been thinking the same thing though I don't have a petinfo.lua I will try to get onto some clients., I will try this :)

Edited by ngek202
Posted (edited)

Thanks Syouji :)

---

Maybe this isn't really possible tried adding infos on petinfo.lua still didn't work..

I also tried to replace the Porings Illustration just to check if will also change the Custom Pets Illust and yes it change. so I think all Custom Pets are attached to the Poring LOL..

or if anyone already did this and if it's possible can you share :D

Edited by ngek202
Posted

Messing around with my own petinfo.lua, I came upon some pretty odd behavior. (or is this expected? 0.o)

Well, taking it from the top:

npcidentity.lua, make sure that the monster you want to pet is between "JT_MON_BEGIN" and "JT_MONSTER_LAST".

Also, the stuff between the quotes is important. You don't have to use that name exactly, but when you choose something, make sure to stick to your choice.

jobtbl = {
-- other monsters here
["JT_4_M_CUSTOM00"] = 3000, -- //or whatever MonsterID you'd like.
-- other stuff
}

jobname.lua

Notice what's inside the square brackets, it's important that you stay consistent with this.

JobNameTable = {
-- stuff nuff said
[jobtbl.JT_4_M_CUSTOM00] = "mymob",
}

petinfo.lua

Again, we're using the same name in the square brackets.

PetIllustNameTable = {
-- stuff here
[jobtbl.JT_4_M_CUSTOM00] = "유저인터페이스\\illust\\펫_SUCCUBUS.bmp",
}

From all this, what I'd expected to see was my pet having Succubus' pet illustration, but instead I got this.

petinfo-behavior.jpg

So it seems like my client (2011-01-11aRagexeRE) uses the first frame from the sprite as the illust. (I've tried making it try using some nonexistent file, but it seems that as long as the monster is defined in petinfo.lua then it will do this.)

Whether that's what is expected, or if it's because my client is heavily hexed I'm not sure. You might want to try a later client perhaps?

If all fails, you might as well fire up Olly, and try to figure out how to hex it into the client.

Just thought I'd at least give ya what I got.

Hope it works out for ya.

Posted

It's possible to add a custom illustration image

Untitled-2.png

Here what i've got after test it:

showing Poring illustration → Client doesn't read your petinfo.lua or you didn't add it in petinfo.lua correctly

showing monster sprite → Client can't find your pet illustration image

Gravity Error → Your illustration image size is incorrect

BTW, what is your client date and what monster did you want to add as a pet?

  • Upvote 1
Posted

2010-07-30

I'm motivated to try this on my own now :) Thanks for that Screenshots.

Oh yeah and the Pet I was trying was a Custom Monster too., Lhz Biolab Dungeon 5

@Shag & FatalEror guys can request if you can try it also with Custom Monsters?

for example:

http://rathena.org/b...file/653-ayame/

The mob I was trying, Azenis is quite custom.

Didn't try a non-custom one, but I doubt that there's a difference between a custom mob and an 'official' mob nowadays. (With luas and all.)

Make sure your client supports(reads) petinfo.lua I guess.

(If you're unsure whether your client reads petinfo.lua. I'd try seeing what happens, if you try running the client with an empty petinfo.lua. Just to know if it's actually looking there.)

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