Jump to content
  • 0

how to properly implement a custom misc item and npc


quakeman00

Question


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   2
  • Joined:  03/08/13
  • Last Seen:  

i have set items whitin the id 57000 and 57004 and 2 npc with 57000 and 57001

the sprites , .act , and even description and npcindentity file have been edited for them but i dont know wtf to do now , even witha  patch they dont show up in the game "unknown item and invisible npc" but they exist in the grf file

 

also the items are misc , not armor

Edited by quakeman00
Link to comment
Share on other sites

15 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:  

What's your Client Date? Clients since 2011 ~ 2012ish uses a new method of item listing.
I guess all info you need can be found here. Look for New Clients.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   2
  • Joined:  03/08/13
  • Last Seen:  

that answered for the items but  not for the npc

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   2
  • Joined:  03/08/13
  • Last Seen:  

i have added the .spr and .act in the npc folder on my grf.

then i edited

jobentity.lub

    JT_4_F_GENEROSITYWORKDONE = 7000,

jobname.lub

   [jobtbl.JT_4_F_GENEROSITYWORKDONE] = "4_F_GENEROSITYWORKDONE",

and npc.identity.lub

    JT_4_F_GENEROSITYWORKDONE = 7000,

 

what now? i dont get whats missing for it to show in the game

and no its not entity limit , i can spawn monster and npc with entry beyond 10000

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  08/07/16
  • Last Seen:  

Change this:

 [jobtbl.JT_4_F_GENEROSITYWORKDONE] = "4_F_GENEROSITYWORKDONE",

To this:

 [jobtbl.JT_4_F_GENEROSITYWORKDONE] = "JT_4_F_GENEROSITYWORKDONE",

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   2
  • Joined:  03/08/13
  • Last Seen:  

its not that tho :/ and now that there is an answer nobody will look at it and help me so ill have to reopen another question

Link to comment
Share on other sites

  • 0

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

Since I know you already figured about LUA files, the thing with your trial on adding a NPC is the ID.
7000 is reserved for Homunculi if I'm not mistaken, from 0 to 100 are NPCs, and over 10000, check the list here.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   2
  • Joined:  03/08/13
  • Last Seen:  

dosent work with 17000

 

is there anything i sould do on server side to make them apear?

and these .lub goes in datainfo folder or in the lua file fodler , some grf have them in datainfo but other grf have them in the lua file

Edited by quakeman00
Link to comment
Share on other sites

  • 0

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

The MAXID for NPCs is around 10200 ~ 10300 til now.
You're most like to replace an official one or add it as a MOB.

GRF structure varies according to client date, that's why you should use an data/GRF accordingly to your Client Date.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   2
  • Joined:  03/08/13
  • Last Seen:  

i edited the max npc number to 30000 on the server side.

 

but yet there has to be a step on the server side to confirm that the npc exist

and the question about the lua still stand , where do i put them?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   2
  • Joined:  03/08/13
  • Last Seen:  

16 december 2016

 

also i justy found all these npc / item / spells and other things on cont.txt

...
4_F_ANYA    10193
4_M_SEIREN_UC    10194
4_M_GUNSLINGER2    10195
4_M_GUNSLINGER3    10196
4_M_REBELLION2    10197
4_M_REBELLION3    10198
4_F_GUNSLINGER2    10199
4_F_GUNSLINGER3    10200

...
 

Edited by quakeman00
Link to comment
Share on other sites

  • 0

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

Well, never heard of anyone using a so late 2016 client, but I'll take your word for it.
luafiles514/lua files/datainfo it is.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   2
  • Joined:  03/08/13
  • Last Seen:  

ive reduced to 10220, still nto working

and its only a few after default npc

 

also whats under 10000? can io do 9999?

Edited by quakeman00
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

33 minutes ago, quakeman00 said:

ive reduced to 10220, still nto working

and its only a few after default npc

 

also whats under 10000? can io do 9999?

NPC ID are hardcoded, limited in client.

src/map/npc.h#L107-L111

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  66
  • Reputation:   2
  • Joined:  03/08/13
  • Last Seen:  

what would be the changes id have to make if i wanted to take a mob instead ? there seem to be more room for it and mob id can also be used as npc. so i need all the animations in the act file or just1  front and 1 back still frame be enough for idle.

Link to comment
Share on other sites

  • -1

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

Just now, quakeman00 said:

i edited the max npc number to 30000 on the server side.

 

but yet there has to be a step on the server side to confirm that the npc exist

and the question about the lua still stand , where do i put them?

Server-side, you said.
It doesn't changes nothing on Client limitations.

There's no server-side confirmation.

And the question, again, turns back to you, depends, on, client, date.

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