PapaZola Posted February 21, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Share Posted February 21, 2012 hello can i ask how to added custom npc via lua? can anyone guide me? thx Quote Link to comment Share on other sites More sharing options...
Syouji Posted February 21, 2012 Group: Members Topic Count: 70 Topics Per Day: 0.01 Content Count: 1245 Reputation: 395 Joined: 11/19/11 Last Seen: January 15, 2020 Share Posted February 21, 2012 (edited) 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 February 21, 2012 by Syouji Quote Link to comment Share on other sites More sharing options...
Question
PapaZola
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.