Jump to content
  • 0

[Resolved] Added custom npc sprite via lua


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

hello

can i ask how to added custom npc

via lua?

can anyone guide me?

thx

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

1.) Open the npcindentity.lua,

["JT_SPRITENAME"] = #,

ex.] ["JT_CAR"] = 605,

2.) Open the jobname.lua,

[jobtbl.JT_SPRITENAME] = "SPRITENAME",

ex.] [jobtbl.JT_CAR] = "CAR",

Drop your NPC .SPR and .ACT files in dataspritenpc.

NOTE: 'SPRITENAME' = the name of your NPC .SPR and .ACT sprite files. Update your GRF with these 2 changed lua files and also make sure you have the NPC files located in the directory listed above. Use .@disguise # where the # = NPC Identity in this case beng 605 in the example above to test it out.

For further information you can visit here

Edited by Syouji
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...