Jump to content
  • 0
kitty14

Addin Custom Mobs problem

Question

i followed rathena custom mob wiki guide also judas guide / but i keep having this error saying
[string"buff"]2138:table index is nil, and [sting "buff"]:3:attempt to index global 'JobNameTable'(a nil value 

im using 2012-04-10 client, and this http://svn6.assembla.com/svn/ClientSide/Lua_Project/lua%20files/datainfo/ . i just change the name from .lua to .lub

tell me what went wrong?

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

Try this (attachment) - remember to convert/rename to .lub.

 

I've left out the comma, as according to some users commas are not a requirement for the final entry of (custom) monsters.

I strongly advice you that, if the problem persists, to add a comma any way at the last entry on both files.

 

Please report back if that worked.

npcidentity.txt

Link to comment
Share on other sites

JobNameTable = {
 
[jobtbl.JT_TREASURE_BOX_TE_9] = "TREASUREBOX_2.gr2",
[jobtbl.JT_TREASURE_BOX_TE_10] = "TREASUREBOX_2.gr2",
[jobtbl.JT_BLUE_HELL_CENTAUR] = "Blue_Hell_Centaur",
}
 
i just added 1 mobs, for trial.. here, the last three on jobnametable

npc identity
 
["JT_4_F_TAEKWON"] = 644,
["JT_4_F_SWORDMAN"] = 645,
["JT_4_F_BLUE_HELL_CENTAUR"] = 646,
}
 
Link to comment
Share on other sites

Here an example of how it should be like.

Your mistake is probably using a too low ID. I suggest using 3200+

 

npcidentity:

["JT_BLUE_HELL_CENTAUR] = 3218,
["JT_MONSTER_LAST"] = 3301, <-- Don't forget to increase this number either. 
 
jobname:
[jobtbl.JT_BLUE_HELL_CENTAUR] = "Blue_Hell_Centaur",  <-- Keep in mind, the part between the quotes must be its exact sprite name. It's case sensitive, so if the .spr and .act do not have any capitalized characters, do not include them.
Link to comment
Share on other sites

[jobtbl.JT_BLUE_HELL_CENTAUR] = "Blue_Hell_Centaur",        <------- REMOVE COMMA
["JT_4_F_BLUE_HELL_CENTAUR"] = 646,       <------------ REMOVE COMMA

the very last entry of these lua file dont need a comma.

Link to comment
Share on other sites

 

Here an example of how it should be like.

Your mistake is probably using a too low ID. I suggest using 3200+

 

npcidentity:

["JT_BLUE_HELL_CENTAUR] = 3218,
["JT_MONSTER_LAST"] = 3301, <-- Don't forget to increase this number either. 
 
jobname:
[jobtbl.JT_BLUE_HELL_CENTAUR] = "Blue_Hell_Centaur",  <-- Keep in mind, the part between the quotes must be its exact sprite name. It's case sensitive, so if the .spr and .act do not have any capitalized characters, do not include them.

 

 

 

[jobtbl.JT_BLUE_HELL_CENTAUR] = "Blue_Hell_Centaur",        <------- REMOVE COMMA
["JT_4_F_BLUE_HELL_CENTAUR"] = 646,       <------------ REMOVE COMMA

the very last entry of these lua file dont need a comma.

 

i tried both of your reply, still got the same error, cuz what i have is  the lub files 2012-04-10

then i also downloaded lua files, and i just copy the file needed for custom mobs like npcidentity and jobname, from lua paste it to lub file just change their name to .lub ..

 

Link to comment
Share on other sites

I see. Is the path correct? The lua path for 2012-04-10 is: YourRO/data/luafiles514/lua files/datainfo/

There has been a lot of mistaking on this part because the older clients read the luas from .../data/luafiles514/

Link to comment
Share on other sites

im using Rytech client 2012-04-10

yup im using this YourRO/data/luafiles514/lua files/datainfo/
 

my sprites are save here sprite/¸ó½ºÅÍ

and is this correct? jobname.lua,npcidentity.lua and jobname_f rename to jobname.lub,jobname_f.lub and npcidentity.lub
like what i did to custom items.. 

 

is it connected with the diff?

 


hello?

Edited by kitty14
Link to comment
Share on other sites

Yes, it all seems properly done. o.o

Are you sure you've raised the JT_MONSTER_LAST to a higher number and places the custom monster the row above that, like in the example I gave?

 

If you want to, you could upload your npcidentity.lub and jobname.lub here so we can take a look at it.

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

Important Information

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