• 0

# Drop level difference

Go to solution Solved by VegaS™,

## Question

Where do i find in the source the level difference check of the drop?

I mean the "+-15" levels

## Recommended Posts

• 0
• Moderator
• Solution

Here're the references to understand how it's working step-by-step:

• char.cpp

Hidden Content

Give reaction to this post to see the hidden content.

• constants.cpp
```#define MAX_EXP_DELTA_OF_LEV	31
#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)]```
• constants.cpp
```const int aiPercentByDeltaLevForBoss_euckr[MAX_EXP_DELTA_OF_LEV] =
{
1,        // -15  0
[...]
180       // 15   30
};

const int aiPercentByDeltaLev_euckr[MAX_EXP_DELTA_OF_LEV] =
{
1,        // -15  0
[...]
180       // 15   30
};```
• locale_service.cpp
```	if (!aiPercentByDeltaLevForBoss)
aiPercentByDeltaLevForBoss = aiPercentByDeltaLevForBoss_euckr;

if (!aiPercentByDeltaLev)
aiPercentByDeltaLev = aiPercentByDeltaLev_euckr;```

Edited by VegaS™
• 13
##### Link to post
• 0

I think you need edit mob_drop_item.txt

Change kill_drop with

{

Type limit

Mob 2315

level_limit 80

1 11299 1

}

You need lv80 for recibe this ítem

Nicks: Nazox Krone Nagato Yahiko Yakiro
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

##### Link to post
• 0

No, this function ignores the gloves, and other item bonus effects.

##### Link to post
• 0

Yes, the constants.cpp part was what i searched. Thank you, @VegaS™

##### Link to post
This topic is now closed to further replies.

1. 0

2. 56

3. 0

4. 1

5. 0

6. 0

7. 1

8. 67

9. 2