Jump to content
Metin2 Network
Create New...
  • Download unlimited resources when you are a Premium Member, Buy now!

[TUTORIAL] Implement NPC Metin2


Omega

Recommended Posts

I also looked for a tutorial for implementing an NPC, and the only one posted on the forum is quite old and not very explicit.

So I thought I'd make a tutorial on how to implement an npc in Metin2.

Other_metin2_de_2016_ad1aaa7a0123d0352cb

To implement an NPC you need:

  • 1. The NPC folder with the model (.gr2) and its textures.
  • 2. Decrypter proto (Dump Proto/or other)

New NPC addition tutorial

1. Decrypt npc2 and add the folder (1.) with the npc here.

2. Decrypt root and open npclist.txt

  • Here you will add the NPC code and the folder name (1.)
  • Save and compile at the root location.

3. Decrypt local , then open mob_proto.txt from the proto dump.
In mob_proto.txt you will add a new line for the NPC, and in mob_names you will put the name of the new npc.

  • Tip: You can copy the line from the general store (9003) and duplicate it, then change the code with that of the new npc in case you don't have the mob_proto part in the resource archives

4. Compile mob_proto.txt using dump proto and put the new generated mob_proto in the client (locale).

Now we only have the server part left:

For those who use txt:
Replace in usr/home/game/xxx/xxx/db >> mob_proto.txt & mob_names.txt << with the new ones.

For those who use SQL:
Go to Navicat -> Player -> mob_proto and create a new line for the new NPC.

  • Tip: You can copy the line from the general store (9003) and duplicate it, then change the code with that of the new npc
  •  
  • Attention! Some NPCs have the model location elsewhere,
  • not necessarily in npc2. To check the location, go to the NPC folder
  • and open the .msm file with notepad++.

And that's it, enter the server, use the command /reload p and /m codnpc

Link to comment
Share on other sites

  • Bot

Thank you for the post Omega
Now we will take care that your topic reaches many people by adding tags

Forum Description : Metin2 Server Files, Server Files, Metin2 Private Servers, Metin2, Metin2 Systems, C++ and Python, Metin2 Home Pages, Metin2 Private Server, Metin2 Download, Metin2 Support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.

Tags:  #Metin2 Server Files, #Server Files, #Metin2 Private Servers, #Metin2, #Metin2 Systems, #C++ and Python, #Metin2 Home Pages, #Metin2 Private Server, #Metin2 Download, #Metin2 Support, #Metin2 Forum, #Metin2 Pvp Servers, #Errors, #Bugs, #Requests, #Metin2 Pvp #Forum .

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

Important Information

Terms of Service

Write what you are looking for and press enter or click the search icon to begin your search