trizzy Posted May 28, 2015 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 92 Reputation: 2 Joined: 01/04/15 Last Seen: April 27, 2021 Share Posted May 28, 2015 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. Quote Link to comment Share on other sites More sharing options...
Kurofly Posted May 28, 2015 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 283 Reputation: 31 Joined: 07/08/14 Last Seen: January 15, 2022 Share Posted May 28, 2015 (edited) 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 May 28, 2015 by Kurofly Quote Link to comment Share on other sites More sharing options...
Tokei Posted May 28, 2015 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 696 Reputation: 722 Joined: 11/12/12 Last Seen: 9 hours ago Share Posted May 28, 2015 (edited) 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 May 28, 2015 by Tokei Quote Link to comment Share on other sites More sharing options...
trizzy Posted May 30, 2015 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 92 Reputation: 2 Joined: 01/04/15 Last Seen: April 27, 2021 Author Share Posted May 30, 2015 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. Quote Link to comment Share on other sites More sharing options...
Kurofly Posted May 30, 2015 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 283 Reputation: 31 Joined: 07/08/14 Last Seen: January 15, 2022 Share Posted May 30, 2015 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 Quote Link to comment Share on other sites More sharing options...
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.