Jump to content

Where i can find "Guides" how to add costume NPC sprite?


trizzy

Recommended Posts


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  92
  • Reputation:   2
  • Joined:  01/04/15
  • Last Seen:  

Where i can find "Guides" how to add costume NPC sprite?

like where to add the sprite file etc etc. thanks

 

i hope this is the right topic section for what im looking for.

 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

costume npc sprite?

 

If you mean custom NPC you have to replace one of the existing NPC id between 46 and 999 because all of the available id ranges are already taken.

 

  • Look for a NPC sprite you don't care about here and keep his id in mind

 

  • Go to your lua files folder and open npcidentity.lua

          Look for the id you kept in mind ^^ and replace his name by the name of your npc sprite in caps

          example :      JT_WARPNPC = 45,    >>     CUSTOM_NPC = 45,

 

  • Then open up your jobname.lua and add this line : [jobtbl.<name in npcidentity.lua>] = "<your sprite file name>"

          example :   [jobtbl.FLORIZARRE] = "Florizarre"} >> [jobtbl.FLORIZARRE] = "Florizarre",[jobtbl.CUSTOM_NPC] = "custom_npc"}

 

Don't forget to save your sprite and act files in sprite/npc and you're done.

Edited by Kurofly
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  664
  • Reputation:   672
  • Joined:  11/12/12
  • Last Seen:  

Server side : 

db/const.txt > look for the last NPC id, which should be around 10113 for 4_EL_AQUA. Add yours after that one, probably in the 11000 range just to make sure.

In npc.h, increase the max NPC value to 11200 (#define MAX_NPC_CLASS2_END 11200).

Recompile your server.

 

Client side : 

Open jobname.lub (luafiles514 for recent clients) and add the line of your NPC : [11000] = "YOUR_SPRITE", that's all. No need to edit npcidentity ;O.

Edit : add your NPC sprite in your data folder : data\npc\your_sprite.spr|.act

Edited by Tokei
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  92
  • Reputation:   2
  • Joined:  01/04/15
  • Last Seen:  

ill try all your guides when i get home, and give you updates thanks alot


costume npc sprite?

 

If you mean custom NPC you have to replace one of the existing NPC id between 46 and 999 because all of the available id ranges are already taken.

 

  • Look for a NPC sprite you don't care about here and keep his id in mind

 

  • Go to your lua files folder and open npcidentity.lua

          Look for the id you kept in mind ^^ and replace his name by the name of your npc sprite in caps

          example :      JT_WARPNPC = 45,    >>     CUSTOM_NPC = 45,

 

  • Then open up your jobname.lua and add this line : [jobtbl.<name in npcidentity.lua>] = "<your sprite file name>"

          example :   [jobtbl.FLORIZARRE] = "Florizarre"} >> [jobtbl.FLORIZARRE] = "Florizarre",[jobtbl.CUSTOM_NPC] = "custom_npc"}

 

Don't forget to save your sprite and act files in sprite/npc and you're done.

 

Server side : 

db/const.txt > look for the last NPC id, which should be around 10113 for 4_EL_AQUA. Add yours after that one, probably in the 11000 range just to make sure.

In npc.h, increase the max NPC value to 11200 (#define MAX_NPC_CLASS2_END 11200).

Recompile your server.

 

Client side : 

Open jobname.lub (luafiles514 for recent clients) and add the line of your NPC : [11000] = "YOUR_SPRITE", that's all. No need to edit npcidentity ;O.

Edit : add your NPC sprite in your data folder : data\npc\your_sprite.spr|.act

You guys are awesome thank you so much, at the first attempt it was failed because @tokei said no need to change npcidentity.lua, but what i see on @kurofly he said "Go to your lua files folder and open npcidentity.lua"

and the second attempt it was smooth and perfect finaly added my costume NPC. it was easy very similar about adding costume headgear. just the problem only where do i have to put the act & sprt file and the lua etc etc. thank you so much guys really appreciate it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

lua files >> data/lua files/datainfo

                  data/luafiles514/lua files/datainfo

 

I don't know in which of these two you have to put your lua files because the files you edited are in both of them so just save it in both ^^

 

act & sprite files >> data/sprite/npc

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
Reply to this topic...

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