Jump to content
  • 0

how to properly implement a custom misc item and npc


Question

Posted (edited)

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

15 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

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

  • 0
Posted

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.

  • 0
Posted (edited)

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
  • 0
Posted

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.

  • 0
Posted

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?

  • 0
Posted (edited)

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
  • 0
Posted

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.

  • 0
Posted

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.

  • -1
Posted
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.

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