LirayBot โ€” Setup & Calibration Guide

Metin2 farming bot ยท From install to your first farm, step by step

Press F12 to stop the bot at any time
Contents
  1. Quick start โ€” just 6 steps
  2. Install โ€” 3 steps
  3. Add your server
  4. What calibration is and how it works
  5. Target Panel (HP bar) โ€” required
  6. Character HP bar โ€” recommended
  7. Calibration per farm mode
  8. Optional settings that pay off
  9. Run the bot
  10. Back up / move your settings
  11. Troubleshooting

๐Ÿš€ Quick start โ€” really just 6 steps

Don't let the long list below scare you. The bot handles most of the settings itself โ€” all you really have to do is this:

  1. Install โ€” open liray_updater.exe, enter your licence. (1)
  2. Add a server โ€” pick the game window from the list, the name fills in itself. (2)
  3. Target HP bar โ€” click a metin in game, then press ๐ŸŽฏ Find automatically. (4) REQUIRED
  4. Character HP bar โ€” press โค Find automatically. (5)
  5. Metin template โ€” draw a box over the "Metin" text above a metin. (6)
  6. Start โ€” pick the farm mode, press START; stop with F12. (8)

The bot does the rest by itself: the metin brightness threshold, telling the metin stone apart from the name, filtering out fixed interface text, minimap search, reconnecting, captcha protection, closing panels, camera setup... you don't need to touch any of these by hand.

1Install โ€” 3 steps

  1. Unzip. There is exactly one file inside: liray_updater.exe. Nothing else to look for.
  2. Double-click it. Windows asks whether to allow changes โ†’ click Yes.
  3. Enter your licence key and activate. The program downloads everything it needs, then the interface opens.

โš  Administrator rights are required

The game runs elevated, so the bot must run elevated too. If you do not click Yes on the Windows prompt, the bot will open but its keystrokes and clicks will never reach the game โ€” nothing will happen on screen.

๐Ÿ’ก Every time from now on

Always start the bot through liray_updater.exe. That is what pulls updates โ€” don't launch any other file directly.

yonetici-kutu
Turkish Windows shown. To skip the UAC prompt every time: right-click liray_updater.exe โ†’ Properties โ†’ Compatibility โ†’ tick Run this program as an administrator.

2Add your server

Go to Setup โ†’ ๐ŸŒ Server and add the server you play on.

You do not type the window title โ€” you pick the open game window from a list and the bot reads the title and window size itself.

  1. Start the game (don't leave it minimised).
  2. Go to Setup โ†’ ๐ŸŒ Server and scroll to the Add new server card.
  3. Pick the game window from the dropdown โ€” the server name fills in automatically, edit it if you like.
  4. Press + Add.

If the list is empty the game isn't running, or it started after you opened this page: press โ†ป Windows to refresh the list.

sunucu-ekle
Pick the window from the dropdown, the name fills in by itself, then press + Add. โ†ป Windows refreshes the list.

Every server keeps its own settings and calibrations, so you can play on several servers without them interfering.

3What calibration is and how it works

Calibration means showing the bot what to look at on screen. Every server's interface is different, so the bot cannot know this by itself โ€” you show it once.

Every calibration works the same way:

  1. Click the relevant Calibrate button
  2. The game comes to the front and the screen dims slightly
  3. Hold the left mouse button and drag a box over the target area, then release
  4. Press ESC to cancel

Before you calibrate

kalibrasyon-ani
When you press Calibrate the game comes to the front and the screen dims like this โ€” that is normal. Hold the left mouse button and drag a box over the target; release to save, ESC to cancel.

4Target Panel (HP bar)REQUIRED

The bot will not start without this. The home page shows "โš  Calibrate the target HP bar before starting".

Why it matters so much: the bot detects whether a metin died by reading this bar. Kill counting, the "combat is taking too long" recovery, damage (DPS) tracking and mount handling all depend on it.

Easiest way: ๐ŸŽฏ Find automatically RECOMMENDED

You no longer need to draw a box โ€” the bot finds the target panel and the red health bar itself.

  1. In game, click a metin so the target panel appears at the top of the screen.
  2. Press Setup โ†’ ๐ŸŒ Server โ†’ ๐ŸŽฏ Find automatically - click a metin in game.
  3. The bot compares a few frames and marks the panel and only the red bar itself (takes a few seconds). When it's done you get a "โœ“ found" notification.

๐Ÿ’ก Why this became so important

The most common mistake was drawing the box too wide and catching the panel frame or name as well โ€” the bot then misread health. Find automatically takes only the red bar, so it removes that mistake. It also reads the percentage the same as the game, so you can see it working correctly.

Alternative: draw the box by hand

If Find automatically doesn't work for some reason (the panel isn't showing, or two clients get mixed up) you can still calibrate by hand:

  1. In game, click a metin so the target panel appears.
  2. Go to Setup โ†’ ๐ŸŒ Server โ†’ Calibrate
  3. On the screen that opens, box only the red health bar.

The most common mistake happens here

โœ… CORRECT: only the filled red bar.

โŒ WRONG: the panel frame, the target's name, the level text, empty areas โ€” keep these out of the box.

Include too much and the bot misreads health: it kills metins without registering them, runs pointless recovery manoeuvres, and your yield drops.

hedef-paneli
The calibration rows on the Server page. โœ“ Calibrated means that item is done; the โ†บ button clears it.
hp-dogru
โœ… CORRECT โ€” the box contains only the red health bar.
hp-yanlis
โŒ WRONG โ€” the panel frame, the target name, the level text and the close button are all inside the box. The bot then misreads health and never registers the kill.
hata-hali
This is what the home page looks like while the HP bar is not calibrated. Go to Setup โ†’ takes you straight to the right page.

5Character HP barRECOMMENDED

Setup โ†’ ๐ŸŒ Server โ†’ โค Find automatically - character health bar

The bot finds this one too โ€” just press the button; you don't even need to click a metin in game (your character's health bar is always on screen anyway). If Find automatically doesn't work, you can still draw the box by hand with Calibrate.

Calibrate this and the bot will drink a potion when your health drops and recover by itself if you die. Skip it and the bot still runs โ€” you just lose those two safety nets.

6Calibration per farm mode

Metin mode

Metin โ†’ ๐Ÿ“› Capture the metin name

Draw a box over the white "Metin" text above a metin stone โ€” take only the word "Metin", not the level text like "Lv 40". The bot strips the background automatically.

This template is used for verification: when the bot spots white text it checks here whether it is really a metin. Without it, the bot may try to click other white text such as player or NPC names.

๐Ÿ’ก The size doesn't have to be exact

It's fine if you draw the box a little too big or too small โ€” the bot adjusts the template itself to the real name size. And when you switch to another metin type on the same server (Shadow, Soul, Fire...) you don't need to recalibrate: since the word "Metin" is common to all of them, the same template catches them all.

๐Ÿ’ก Don't touch the white threshold

The bot tunes it automatically based on how bright the map is, and re-measures if detection drops. You never need to set it by hand.

Mob / Slot mode

Mob โ†’ Mob template REQUIRED

Without a mob template the bot cannot find targets in this mode. It can also detect mobs by their red names (toggle on the same page).

Fishing mode

Fishing โ†’ ๐ŸŽฃ Basics

metin-ismi
Example metin-name template: box only the white text โ€” the bot strips the background itself.
balik-panel
For the Game panel calibration, box this whole window โ€” the pink ring and the fish appear inside it.

7Optional settings that pay off

SettingWhat it does
Advanced โ†’ ๐ŸŽฏ Extra keys Camera setup โ€” don't skip this. With the camera unadjusted, metins look far away or unreachable and the bot wastes time. Typically F zooms out and G tilts the camera up. Add these keys; the bot presses them as soon as farming starts and refreshes them periodically. You also drive your active attack skill from here โ€” see the section just below.
Advanced โ†’ ๐Ÿšซ Unwanted panels You define the windows that pop up and block the bot: calibrate the panel, then choose what should happen when it appears (press a key or click somewhere). Five slots available.
Advanced โ†’ ๐Ÿ—บ Minimap When no metin is left on screen, the bot walks toward metin dots on the minimap instead of wandering randomly. Useful if your server shows metins on the minimap. Needs two calibrations โ€” see below.
Advanced โ†’ ๐Ÿ”„ Auto reconnect Gets you back in if the connection drops. Asks for four screenshots in order: login screen, character screen, the button on it, and the maintenance/already-connected popup.
Advanced โ†’ โš” Skills Refreshes buffs when they expire. For each skill set its key and calibrate its icon while the buff is active.
Setup โ†’ โค Potion & Death Calibrate the "Start Here" button so the bot revives and continues after dying.
Advanced โ†’ ๐Ÿ“ฆ Loot / Advanced โ†’ ๐Ÿ”— Metin queue Loot: presses Z to pick up after a kill. Metin queue: clicks several metins in sequence (requires auto-loot enabled in game). They cannot be used together โ€” pick one.
Advanced โ†’ ๐Ÿ•ถ Human behavior Periodic breaks, reaction delay before clicks, click scatter. This is the strongest defence against behaviour-based detection โ€” leave it on.
Advanced โ†’ ๐Ÿ’ฐ Selling ยท Advanced โ†’ ๐Ÿ’ฌ PM protection ยท Advanced โ†’ ๐Ÿงฉ CAPTCHA Sells items to a sellbox ยท pauses and alerts you when a private message arrives ยท switches to protection when a captcha appears.
ekstra-tuslar
Advanced โ†’ Extra keys. Here f and g are set; the two numbers are the 'press every N seconds' range, the last one is how long the key is held.
paneller
Unwanted panels, 5 slots. For each calibrated panel you choose what happens when it shows up.

โš” Active attack skill โ€” โ€œpress key 2 every 10 secondsโ€

Advanced โ†’ ๐ŸŽฏ Extra keys

The thing most people never find: Extra keys are pressed during combat too. So if you add your attack skill's key here, the bot uses the skill while it is hitting the metin. There is no separate โ€œactive skillโ€ setting โ€” this is it.

  1. Click + New key.
  2. Key = your skill's key (e.g. 2).
  3. min s = 10, max s = 12 โ†’ the bot presses it at a random moment every 10-12 seconds.
  4. hold s = a short value (a normal tap). Increase it for skills that need the key held down.

There is no lower limit โ€” 10 is fine. Giving min and max slightly different values is recommended: pressing at exactly the same second every time looks robotic. There are 8 slots, so you can set up 8 different skills/keys, each with its own cooldown interval.

๐Ÿ’ก Don't confuse it with the Skills page

Advanced โ†’ โš” Skills is for buffs: it presses the key only when the icon is missing from the screen. For an active attack skill use Extra keys โ€” it presses on the interval you set, without looking at any icon.

โค Health potion

Setup โ†’ โค Potion & Death

Turn on Potion active, set Key to your potion key and HP threshold (0-1) to the ratio at which it should be used (0.5 = 50%).

It only works if the character HP bar is calibrated โ€” that is where the bot reads your health from.

๐Ÿ”ต SP / Mana potion

Setup โ†’ โค Potion & Death

Exactly the same logic as the health potion, but for the SP (mana) bar: turn on SP potion active, set Key to your SP potion key and SP threshold to the ratio at which it should be used.

No calibration needed. The blue SP bar is detected automatically at the bottom left โ€” you only pick the key and the threshold.

On classes that deal damage through skills (mage, shaman), without this setting the bot stops casting as soon as SP runs out: it only auto-attacks and kills get noticeably slower.

๐Ÿ—บ Minimap search โ€” two-step setup

Advanced โ†’ ๐Ÿƒ Anti-stuck & Panels โ†’ ๐Ÿ—บ Find metins via minimap

  1. Minimap region โ†’ Calibrate โ†’ draw a box over the round map area. Keep the decorative frame and the surrounding buttons outside the box.
  2. ๐ŸŽจ Colour of the metin dot โ†’ Pick the colour โ†’ draw a small box over one metin dot on the minimap.

Why does it ask for the colour separately?

The metin dot is not the same colour on every server. It may be white on one, green, yellow or even red on another. The bot cannot guess which one to look for โ€” you show it once.

If you skip this, the bot assumes a white/grey dot and treats red ones as monsters. On a server with coloured metin dots it would find nothing at all.

The colour you picked is shown as a small swatch in the interface, so you can tell if you picked the wrong thing. Catching a bit of dark background in the box is fine โ€” the bot uses the brightest part of it.

Colour tolerance is in the same section: raise it if dots are being missed, lower it if the bot walks toward the wrong things. The log shows how many dots it sees each scan.

minimap-ayar
The minimap card: region, dot colour and colour tolerance are all set here.
minimap-bolge
How to box the minimap region: the round map only. Keep the ornate frame and the X button outside โ€” the bright white of the frame is otherwise taken for a metin dot and the bot walks the wrong way.

8Run the bot

  1. Open the game and move your character to your farming spot.
  2. In the bot go to Home โ†’ pick the farm mode (Metin / Mob / Fishing).
  3. Check that it says "โœ“ Ready to farm" at the top. A "โš " means the HP bar isn't calibrated.
  4. Press START.

To stop: F12

Press F12 to stop the bot. It works even while the game window is in focus. The STOP button in the interface does the same thing.

The Logs page shows live what the bot is doing: how many metins it sees, what it clicked, how health is dropping, why it ran a recovery. Share this log when asking for support.

farma-hazir
When everything is set you get this green line at the top.
baslat-mod
START BOT / STOP, and the farm mode selector underneath.

9Back up / move your settings

Setup โ†’ ๐ŸŒ Server โ†’ ๐Ÿ’พ Back up / transfer settings

This produces a single .lirayayar file containing every server's settings plus all calibration images.

๐Ÿ’ก Why this matters

Copying only the settings file will not work โ€” without the calibration images the bot cannot run. Take this backup before changing computers or reinstalling, import it on the other side, and you won't have to calibrate from scratch.

Importing overwrites the settings of a server with the same name; the interface asks you to confirm.

yedekle
Export writes the backup file, Import restores it on the other machine.

10Troubleshooting

SymptomCause and fix
"โš  Calibrate the target HP bar before starting" The target panel isn't calibrated. See section 4.
The bot opens but nothing happens in game Administrator rights weren't granted. Close it, run liray_updater.exe again and click Yes.
"Window not found" The window you picked when adding the server isn't open right now, or its title changed. Start the game; if the title changed, go to Setup โ†’ ๐ŸŒ Server, press โ†ป Windows and add the server again.
It can't find metins / clicks the wrong things The "metin name" template is missing or wrong. Redraw the box over the white "Metin" text. Also make sure the camera is set up (Extra keys).
Lots of metins on screen but it keeps saying "searching for metins" / spins on the minimap You may have picked the wrong "Metin" template โ€” the level text (Lv 40) or some other text entirely. Redraw the box over the white text containing only the word "Metin". (The current version fixes the template size itself; the problem is usually picking the wrong spot.)
It kills metins but doesn't count them / runs pointless recoveries The HP bar box is too wide. Recalibrate so it contains only the red bar.
The bot stalls while metins are on screen A window may be blocking it. Define it under Advanced โ†’ ๐Ÿšซ Unwanted panels.
I changed resolution and it broke Redo the calibrations โ€” the target HP bar at minimum.
Settings didn't carry over to a new PC Only the profile was copied. Use the .lirayayar backup from section 9 โ€” it carries the calibration images too.
The bot finds metins but never clicks / kills nothing First make sure the whole game window is inside the screen. If part of it hangs off the edge (or spills onto a second monitor), the bot cannot see that area and the mouse cannot reach it โ€” no click lands. Move the window fully inside the screen. Current builds (v17.9.52 and later) fix this automatically at startup; if you are on an older build, update.
Mob mode finds nothing Open Mob โ†’ ๐Ÿ‘น Mob detection: if mob names are not red on your server, name detection cannot work โ€” calibrate a Mob template instead. If you already have a template, Template sensitivity may be too high; lower it step by step. When nothing at all is found, the threshold is usually the cause.