Jump to content
Logo
Your Metin2 zone for C++, Python, Lua.

Zniesienie limitu lvl na drop


Zogir

Recommended Posts

Witam, potrzebowałbym znieść limit lvl dropu na moim serwerze. Jak można by to zrobić? Wiem, że jest sposób z plikiem mob_drop_item i ustaleniem Type limit oraz Level_limit 1, jednak wydaje mi się to czasochłonne i nieefektowne.

Kombinowałem w source z plikiem itemmanager.cpp i próbowałem zmieniać ten warunek:

if (it->second->GetLevelLimit() <= (DWORD)iLevel )
{
  [...]

na coś takiego:

DWORD levelLimit = 0;

#ifdef ENABLE_DROP_LVL_LIMIT
	levelLimit =  it->second->GetLevelLimit();
#endif

if (levelLimit <= (DWORD)iLevel )
{
  [...]

 A więc dla Limitu lvl = 0, warunek ten zawsze powinien być spełniony, gdyż level nie może być zerowy ani ujemny. Jednak coś nie działa i taki np. 75lv dalej nie może dropić w m1.

Słyszałem jeszcze o zmianie PERCENT_LVDELTA oraz PERCENT_LVDELTA_BOSS w pliku constants.h

#define PERCENT_LVDELTA(me, victim) aiPercentByDeltaLev[MINMAX(0, (victim + 15) - me, MAX_EXP_DELTA_OF_LEV - 1)]
#define PERCENT_LVDELTA_BOSS(me, victim) aiPercentByDeltaLevForBoss[MINMAX(0, (victim + 15) - me, MAX_EXP_DELTA_OF_LEV - 1)]

Jednak drop dalej nie działa w momencie jak zmieniam z victim + 15 na np. victim +100

Próbował ktoś z was działać coś w tym kierunku?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Style Version: 0.1

The code was completely created from scratch and optimized.

The basic style on which it was created: Default

Created by: Grzyb.ovh

The style was to be simple to browse topics, devoid of graphics, uniform in color and definitely simple. ×

×
×
  • Create New...

Important Information

Do you like cookies? 🍪 We use cookies to provide the highest quality of service. Learn more