Jump to content
  • 0

Adding mobs


Kurby

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

mob_db.txt I used this line, but the mob doesn't drop anything even the drop is 100% and it's not the correct monster sprite?

2400,RAWR,Rawr,Rawr,141,1005000,1,10000,10000,3,2895,6101,588,506,196,131,125,276,267,156,10,12,2,8,86,0x37B5,100,576,576,480,0,0,0,0,0,0,0,7539,500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

Link to comment
Share on other sites

20 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Is your map server spitting anything out?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

Is your map server spitting anything out?

Lol what do you mean? There's no errors? :o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Is your map server spitting anything out?

Lol what do you mean? There's no errors? :o

Just making sure you don't have an extra column or anything. Anyways, have you added your mob correctly into your luas? o_O

Btw, I suggest you DO NOT use 2400 as a starting range for your custom mobs.. you will get it overwritten when kRO comes out with new mobs.

Edited by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

Is your map server spitting anything out?

Lol what do you mean? There's no errors? :o

Just making sure you don't have an extra column or anything. Anyways, have you added your mob correctly into your luas? o_O

I have not.. Lol, the wiki never mentioned that? ):

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

You need to add your custom mobs in jobname.lua: http://svn6.assembla...nfo/jobname.lua and npcidentity.lua: http://svn6.assembla...npcidentity.lua

In npcidentity.lua, the first last monster is:

["JT_MONSTER_LAST"] = 2463,

As you can see, the ID that is used is 2463.. Thus, I suggest you change your starting custom mob range.

What you can do after this, is either do:

-- Custom Mobs
["<YOUR MOB NAME>"] = <YOURID>,

right after

["JT_MONSTER_LAST"] = 2463,

Or you can add what I did towards the end of the file.. thought I've always done it right after the very last monster and never got into problems. In your jobname.lua, you can find:

[jobtbl.JT_TREASURE_BOX_TE_10] = "TREASUREBOX_2.gr2"

at the very bottom. That's the very last mob. Basically, just copy and paste the same template for your own custom mob.

Edited by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

You need to add your custom mobs in jobname.lua: http://svn6.assembla...nfo/jobname.lua and npcidentity.lua: http://svn6.assembla...npcidentity.lua

Will these work?

jobname.lua

[jobtbl.JT_VALKYRIE_N] = "RAWR"

npcidentify.lua

["JT_VALKYRIE_N"] = 2400

Edited by Kurby
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Personally, in my sprite/mob folder (dont know the gibberish wording by heart lol) I would just put RAWR as the monster name. Then in your jobname, do:

[jobtbl.RAWR] = "RAWR"

and in your npcidentity.lua:

["RAWR"] = <PICK A DIFFERENT ID>

I basically do it the same way I add items into my luas.. and I've never ran into problems.

kRO's last monster ID is: 2463 and you need to find a different starting range.

Edited by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

Personally, in my sprite/mob folder (dont know the gibberish wording by heart lol) I would just put RAWR as the monster name. Then in your jobname, do:

[jobtbl.RAWR] = "RAWR"

and in your npcidentity.lua:

["RAWR"] = <PICK A DIFFERENT ID>

I basically do it the same way I add items into my luas.. and I've never ran into problems.

kRO's last monster ID is: 2463 and you need to find a different starting range.

Alright.. Umm, I did @monster, then I got an error and my client shut off..?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Personally, in my sprite/mob folder (dont know the gibberish wording by heart lol) I would just put RAWR as the monster name. Then in your jobname, do:

[jobtbl.RAWR] = "RAWR"

and in your npcidentity.lua:

["RAWR"] = <PICK A DIFFERENT ID>

I basically do it the same way I add items into my luas.. and I've never ran into problems.

kRO's last monster ID is: 2463 and you need to find a different starting range.

Alright.. Umm, I did @monster, then I got an error and my client shut off..?

Are you using a different ID as mentioned? o_O

Lemme find my old luas. Hold on.

Edited by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

Personally, in my sprite/mob folder (dont know the gibberish wording by heart lol) I would just put RAWR as the monster name. Then in your jobname, do:

[jobtbl.RAWR] = "RAWR"

and in your npcidentity.lua:

["RAWR"] = <PICK A DIFFERENT ID>

I basically do it the same way I add items into my luas.. and I've never ran into problems.

kRO's last monster ID is: 2463 and you need to find a different starting range.

Alright.. Umm, I did @monster, then I got an error and my client shut off..?

Are you using a different ID as mentioned? o_O

Lemme find my old luas. Hold on.

Alright, Yes I tried ID 2500.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Personally, in my sprite/mob folder (dont know the gibberish wording by heart lol) I would just put RAWR as the monster name. Then in your jobname, do:

[jobtbl.RAWR] = "RAWR"

and in your npcidentity.lua:

["RAWR"] = <PICK A DIFFERENT ID>

I basically do it the same way I add items into my luas.. and I've never ran into problems.

kRO's last monster ID is: 2463 and you need to find a different starting range.

Alright.. Umm, I did @monster, then I got an error and my client shut off..?

Are you using a different ID as mentioned? o_O

Lemme find my old luas. Hold on.

Alright, Yes I tried ID 2500.

Alright, so for example, what I did was I named my mob "Absol" and placed the .spr and .act into the mob folder. Next, in my jobname.lua, I did:

[jobtbl.Absol] = "Absol",

and in my npcidentity.lua, I did:

["Absol"] = 2126,

Everything must be spelt correctly or you'd error.

Now,

  • A) Make sure your client reads data folder first so that the changes you do, the client can read it
  • B ) Make sure your luas are in the right place.. depending on the client version you're using
  • C) Make sure your client isn't reading lubs first.. make it read lua before lub

Edited by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

Personally, in my sprite/mob folder (dont know the gibberish wording by heart lol) I would just put RAWR as the monster name. Then in your jobname, do:

[jobtbl.RAWR] = "RAWR"

and in your npcidentity.lua:

["RAWR"] = <PICK A DIFFERENT ID>

I basically do it the same way I add items into my luas.. and I've never ran into problems.

kRO's last monster ID is: 2463 and you need to find a different starting range.

Alright.. Umm, I did @monster, then I got an error and my client shut off..?

Are you using a different ID as mentioned? o_O

Lemme find my old luas. Hold on.

Alright, Yes I tried ID 2500.

Alright, so for example, what I did was I named my mob "Absol" and placed the .spr and .act into the mob folder. Next, in my jobname.lua, I did:

[jobtbl.Absol] = "Absol",

and in my npcidentity.lua, I did:

["Absol"] = 2126,

Everything must be spelt correctly or you'd error.

I'm using a monster "valkyrie" as my monster sprite, all I'm doing is editing it's name/stats/drops.

Still getting errors..

Edited by Kurby
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

You could always use: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/mob_avail.txt but since you want your own stats and drops..

Do this in your jobname.lua:


[jobtbl.JT_RANDGRIS] = "RANDGRIS",

In your npcidentity.lua:

["JT_RANDGRIS"] = 2500,

and in your mob_db:

2500,RANDGRIS,Rawr,Rawr,141,1005000,1,10000,10000,3,2895,6101,588,506,196,131,125,276,267,156,10,12,2,8,86,0x37B5,100,576,576,480,0,0,0,0,0,0,0,7539,500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

Since you're using and already pre-existing mob sprite.. you need to use it's full name and not replace it with RAWR. You only use your "Custom Name" when you get to your mob_db as I showed you in my above code.

Edited by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

You could always use: https://rathena.svn....b/mob_avail.txt but since you want your own stats and drops..

Do this in your jobname.lua:


[jobtbl.JT_RANDGRIS] = "RANDGRIS",

In your npcidentity.lua:

["JT_RANDGRIS"] = 2500,

and in your mob_db:

2500,RANDGRIS,Rawr,Rawr,141,1005000,1,10000,10000,3,2895,6101,588,506,196,131,125,276,267,156,10,12,2,8,86,0x37B5,100,576,576,480,0,0,0,0,0,0,0,7539,500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

Since you're using and already pre-existing mob sprite.. you need to use it's full name and not replace it with RAWR. You only use your "Custom Name" when you get to your mob_db as I showed you in my above code.

Where would I view the .spr and .act files for pre-existing mobs?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

You wouldn't need too. They're already set in the mob folder because they're already existing sprites. o_O Although, they could be found here:

/data/sprite/¸ó½ºÅÍ

Edited by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

You wouldn't need too. They're already set in the mob folder because they're already existing sprites. o_O Although, they could be found here:

/data/sprite/¸ó½ºÅÍ

Thanks for your help!! :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

You wouldn't need too. They're already set in the mob folder because they're already existing sprites. o_O Although, they could be found here:

/data/sprite/¸ó½ºÅÍ

Thanks for your help!! :D

Haha, no problem :P. Does everything work though?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

i got a problem the monster when i spawn it show poring spr.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

i got a problem the monster when i spawn it show poring spr.

That's because you didn't add your correct sprite for the mob or you configured the name/id of your mob wrong in your lua/lub files and in your mob_db.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

i did add it correctly :(. ive checked it so many times i really dont know.

chck heres my config

[jobtbl.JT_JUGGERNAUT] = "juggernaut", << jobname.lua

["JT_JUGGERNAUT"] = 4000, << npcidentity.lua

heres my sprite name

juggernaut.spr

juggernaut.act

heres my mob_db2.txt

4000,juggernaut,Juggernaut,Juggernaut,99,10000000,0,7610,2826,1,824,1084,37,26,25,20,30,5,77,35,10,12,2,0,80,181,300,2612,912,288,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

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