Jump to content

Recommended Posts

  • Active+ Member

Battle Pass System

This is a Battle Pass system I made quite a long time ago.

Since I'm currently working on a completely new version from scratch, I was originally going to delete this old one. However, I thought it would be better to release it instead—someone might find it useful or use parts of it in their own project.

Before publishing it, I cleaned up the code, made a few improvements, fixed some issues, and polished it a bit to make it easier to understand and work with.

Hopefully, it will be useful to someone.

68747470733a2f2f692e6962622e636f2f4c7a73

 

Features

 

Daily & Weekly Missions

* Fully randomized Daily missions.
* Fully randomized Weekly missions.
* Automatic mission refresh.
* Duplicate mission prevention.
* Individual mission reroll support.

---

Battle Pass Progression

* EXP-based leveling system.
* Configurable maximum level.
* Automatic level progression.
* Premium & Free reward tracks.
* Automatic monthly reset.

---

Reward System

* Free rewards.
* Premium rewards.


* Configurable reward tables - which Supports either:

* Single reward table for every month.
* Individual reward tables per month.

Simply change:

#define SINGLE_REWARDS_TABLE TRUE

---

Mission System

Supports multiple mission types.

Examples

* Kill monsters
* Destroy Metins
* Complete dungeons
* Collect items
* Fishing
* Mining
* Crafting
* (and easily expandable)

 

Mission objectives and rewards are fully configurable inside: char_battlepass.h

---

Multi Mission Progress

A single action can update every mission of the same type simultaneously.

Example

If two missions require killing monsters:

* Kill 100 Monsters
* Kill 500 Monsters

Both missions can progress together.

Can be enabled or disabled by changing:

#define MULTI_MISSION_PROGRESS TRUE

---

Automatic Timers

The system automatically handles:

* Daily reset
* Weekly reset
* Monthly Battle Pass reset

No manual intervention required.

---

Randomized Missions

Mission requirements are randomized every reset.

Different EXP rewards are automatically assigned depending on mission difficulty.

---

Premium Upgrade

Built-in Premium Battle Pass support.

Players can upgrade their Battle Pass using an item.

---

Instant Level Up

Optional Battle Pass Level-Up item included.

Perfect for shop integration.

---

Mission Reroll

Players can reroll an unfinished mission using a dedicated item.

The new mission is guaranteed not to duplicate another active mission.

---

Mission Skip

Allows instantly completing the first unfinished mission.

Useful for premium features or special items.

---

Optimized Network Packets

* Packed mission data.
* Packed reward data.
* Minimal packet overhead.
* Reduced unnecessary allocations.

---

Optimized Codebase

The system has been written with performance in mind.

Highlights include:

* Modern C++ implementation.
* Smart use of references.
* Static random number generator.
* Efficient packet construction.
* Reduced unnecessary copies.
* Minimal memory allocations.
* Direct array access where appropriate.
* Clean and maintainable architecture.

---

Configuration

Most configuration can be done directly inside:

char_battlepass.h

Including:

* Mission list
* Mission requirements
* EXP values
* Reward tables
* Monthly rewards
* Battle Pass limits

---

 

 

Lastly, I may have missed or forgotten something while putting this together. If you notice anything missing or think there's an improvement worth adding, feel free to leave a comment. I'll review it and, if appropriate, add it to the repository so everyone can benefit.

 

Spoiler
This is the hidden content, please

Alternative download links →

This is the hidden content, please

 

 
  • Metin2 Dev 31
  • Eyes 1
  • Flame 1
  • Good 11
  • Love 2
  • Love 29

I don’t know — I think.

 

Discord

 

Link to comment
https://metin2.dev/topic/34586-battle-pass-system/
Share on other sites

  • 4 weeks later...
  • Active+ Member
On 7/25/2026 at 12:33 PM, Amok_NEW said:

Got one/two Problems.

The Reward window not working right and the Textlines are not correct. 

.png

Maybe you have an idea 🙂 Where i need to look

Thanks 🙂

 

  • Love 1

I don’t know — I think.

 

Discord

 

Link to comment
https://metin2.dev/topic/34586-battle-pass-system/#findComment-176111
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.