Jump to content
  • 0
SkyTech6

Custom Pet Help

Question

(Posted in General because it includes mutlpiles of the other support sections i.e. Graphics, Database,Scripting)

 

I'm having problems implementing a custom pet. I'll include everything I've done up to this point via quotes and pictures. Everything I've done was according to the Custom Pets & Custom Mobs guide on the wiki.

 

pet_db.txt

 


// Custom Pets ROCreed
2085,CHARMANDER,Charmander,0,9065,0,529,80,80,20,100,250,20,500,200,1,0,300,300,800,{},{ bonus2 bSubEle,Ele_Fire,5; }

 

mob_db2.txt

 


// ROCreed Custom Mobs FOR Pets
// Recomment to disable
2085,CHARMANDER,Charmander,Charmander,64,2101,1,0,0,10,201,254,88,15,55,55,55,36,15,77,15,10,1,3,63,14469,175,2412,1248,768,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

 

item_db2.conf

 

 

 


 
)
// Additional Custome Items
// ========================================
/*
{
Id: 9065
AegisName: "Charmander_Egg"
Name: "Charmander Egg"
Type: 7
Buy: 20
},
 
 

itemInfo.lua

 


[9065] = {
unidentifiedDisplayName = "Charmander Egg",
unidentifiedResourceName = "¾Ï¼Ó¼º¾Ë",
unidentifiedDescriptionName = {
"An egg in which a",
"Charmander rests.",
"Can be hatched by",
"using a ^33CC33Pet Incubator^000000.",
"^33CC33Cordial/Loyal Bonus^000000",
"When summoned,",
"grants a 5% resistence to fire.",
"Class: ^777777Monster Egg^000000"
},
identifiedDisplayName = "Charmander Egg",
identifiedResourceName = "¾Ï¼Ó¼º¾Ë",
identifiedDescriptionName = {
"An egg in which a",
"Charmander rests.",
"Can be hatched by",
"using a ^33CC33Pet Incubator^000000.",
"^33CC33Cordial/Fire Resistence^000000",
"When summoned,",
"grants a 5% resistence to fire.",
"Class: ^777777Monster Egg^000000"
},
slotCount = 0,
ClassNum = 0
},

 

NPCIdentity.lub

 

JT_CHARMANDER = 2085

 

jobname.lub 

 


  -- Custom Mobs --
  [jobtbl.JT_CHARMANDER] = "CHARMANDER"

 

Trying to @makeegg the egg

2zr0z6o.png

 

Spawning the Mob

2ltj8ld.png

 

spr and act (I've updated this name from "Charmander" to "CHARMANDER" to match the Sprite_ID)

69kdjm.png

 

 

If anyone is up to helping me, then I appreciate it ^_^

Edited by SkyTech6

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

You have it commented out in item_db2.conf
 
Try removing the multi-line comments (/* and */):
 

/* <---{    Id: 9065    AegisName: "Charmander_Egg"    Name: "Charmander Egg"    Type: 7    Buy: 20},*/ <---

Also make sure that ) is at the end of the database file (after your item if it's the last item in the db), or your item will not be technically 'inside' the database structure.

Share this post


Link to post
Share on other sites
  • 0

Opps thought only // was used for commenting... hmmm I added that in there after i got a syntex error. So I put those and I thought it fixed it. 

 

Removed comment and recompiled, launched. Get the error again. 

 

---PICTURE DELETED SYNTEX FIXED ----

 

 

I can now make the "Egg" but it's showing an apple and the item description is really wrong.

 

Plus the Charmander sprite still is sorting to Dummy Data

 

4s15wp.png

Edited by SkyTech6

Share this post


Link to post
Share on other sites
  • 0

Unknown item means you dont have its content on iteminfo.lua/.lub(assuming you are using new clients).

 

About mob sprite, be sure the SpriteID on npcidentity.lua and the monsterID matches.(and check if your files is been read by the client) or maybe there's already other mob exist with same id on lua file.

 

P.S : Clients read lua if you have diffed with 'Read lua before lub', else client will try to find .lub files from the other grf's mentioned in data.ini

Share this post


Link to post
Share on other sites
  • 0

When an item is able to be created but appears as an apple, this is typically a sign that the client files are off somewhere or are not being read correctly.

 

Make sure your client is properly reading your lua / lub files. You'll want to make sure that if your client is set to "Load Custom lua file instead of iteminfo.lub" that your lua file is in the proper directory and named correctly to that which you specified during the client hexing.

 

For the monster, you'll want to make sure your IDs match and that your new lub file is being read. Make sure you are placing it in the correct directory in your data / grf.

Share this post


Link to post
Share on other sites
  • 0

My client is diffed, and as you can see in original post all my ids match up. I'll also post where in the data grf I've posted it.
 

303fgbt.png

Share this post


Link to post
Share on other sites
  • 0

I think this line:

    identifiedResourceName = "¾Ï¼Ó¼º¾Ë",        identifiedDescriptionName = {

should be:

 

    identifiedResourceName = "CHARMANDER",        identifiedDescriptionName = {

Share this post


Link to post
Share on other sites
  • 0

 

I think this line:

    identifiedResourceName = "¾Ï¼Ó¼º¾Ë",        identifiedDescriptionName = {

should be:

 

    identifiedResourceName = "CHARMANDER",        identifiedDescriptionName = {

 

 

Hm... but that is the itemInfo.lua? That's for the Egg only I do believe, which I am about to attempt changing to a Pokeball :3 

 

Anyways, Dastgir notified me of my error in IRC. (Thank you very much Dastgir, and everyone else that helped in thread.)

 

Note for anyone with the same problem that comes across this thread. Always make sure you check your DATA.ini and make sure you're putting the luas/lubs into the FIRST .grf on your read list. 

 

If YourRO.grf is read before data.grf, make sure you put everything into YourRO.grf, if it doesn't have those files to begin with, then you can place it in the next grf on data.ini's list. 

 

------------------------------------------------------------------

 

34y48s3.png

 

If anyone knows where the files for Pet Info "No Image" go that'd be appreciated lol 

Edited by SkyTech6

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.