Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

Hello everyone!

This guide is designed for those who are new to configuring regeneration files for specific maps. While it may appear simple to some, not everyone fully understands how these settings function. We’ll delve into how to correctly position your monsters, Metins, bosses, and NPCs, including their coordinates, orientations, and respawn intervals.

Key Information

This tutorial will cover four essential files—regen.txt, boss.txt, stone.txt, and npc.txt—as they operate in a similar fashion. You can find these files in your server directory at:
share/locale/country/map/name_of_your_map/.

Getting Started

  1. First, ensure you have access to your server file directory. We recommend using WinSCP, an open-source tool widely utilized in the community.
  2. Navigate to the map folder you intend to configure.

I. Configuring Spawns

Overview

  • By default, boss.txt is responsible for bosses, stone.txt for Metins, npc.txt for NPCs, and regen.txt handles monster spawning.
  • Each line in these regeneration files corresponds to a specific spawn configuration, so ensure that each value is separated by a tab or four spaces.
  • Below, we’ll break down each parameter one by one in the order they appear in the file.

1. Spawn Type

There are a total of six types of spawns, but we will focus on five:

Note: This does not refer to the interval between when a monster is defeated and when it respawns.

2. Coordinates

These parameters define the precise location where your monster will appear. You can obtain these coordinates from the mini-map in your client by hovering over your player's marker.

Here are some examples:

 
This is the hidden content, please

In the second example, we want a monster to spawn around (300, 300) with a variation of 10 pixels.

3. Direction

The dir parameter sets how your NPC will face upon spawning, ensuring they’re oriented correctly. This helps avoid situations where NPCs may turn their backs to players.

Supported directional values:

  1. South
  2. South-East
  3. East
  4. North-East
  5. North
  6. North-West
  7. West
  8. Southwest
  9. Random direction

Reference Image for Orientation

Direction Guide

4. Respawn Time

The time parameter specifies how long it takes for a monster to respawn, with formats including:

  • 17s: 17 seconds
  • 3m: 3 minutes
  • 5h: 5 hours

Important: The monster will respawn based on the set time, regardless of whether it was killed right before the respawn interval.

5. Spawn Probability

The percent parameter is currently not utilized in the game logic. As indicated in the regen source files, it gets skipped to the next token, MODE_MAX_COUNT. For uniformity, simply use the value 100.

Reference Image for Probability

Probability Image

6. Spawn Amount

The count parameter dictates how many monsters or NPCs will spawn at specified coordinates.

Warning: All monsters will appear at the same position, regardless of any random coordinate generation.

7. VNUM / ID

The vnum corresponds to the type of spawn you are managing:

  • For m: Use the VNUM of the monster, NPC, Metin stone, or boss.
  • For g/ga: Provide a monster group number outlined in the group.txt.
  • For r: Use the group group number from group_group.txt.

Practical Example

Now it’s time to create your line based on the information gathered:

 
This is the hidden content, please

This entry indicates that a monster with VNUM 8003 will spawn at coordinates ranging from (665, 659) to (1065, 959) with a respawn time of 1850 seconds.

Congratulations! You now understand how regen.txt works in Metin2!


II. Managing group.txt and group_group.txt

1. group.txt

With this file, you can create a specific and non-random group, structured as follows:
Group Structure

  • Green: Name of the group (feel free to choose any name).
  • Red: Unique VNUM for the group.
  • Blue: Mob leader and its VNUM.
  • Orange: The ID for your mobs within the group, including their names and VNUMs.

2. group_group.txt

Warning: Ensure that the entries in group_group reference the correct VNUM from the group.txt file, or they will not function correctly.
Group Group Structure

  • Green: Name of the group (this can be anything you wish).
  • Red: Unique VNUM for the group.
  • Orange: Group VNUM (from group.txt) and Probability (not currently used).

Example Entry:

 
This is the hidden content, please

This shows that a random group with VNUM 6711 will spawn at coordinates between (496, 432) and (516, 452) every 10 seconds. The 100% chance is unused.

spacer.png

You now have a solid understanding of how group.txt and group_group.txt operate within Metin2!

Link to comment
Share on other sites


  • 100% changed the title to Guide To Managing NPC And Monster Spawns In Your Maps

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

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...