- Joined
- Apr 4, 2025
- Messages
- 21
- Reaction score
- 4
- Points
- 3
*Description:
This is the solution to an old problem, present on most servers:
- If you beat a mob for a long time, after it dies - the dropped item or items will not have ownership (will not have a name), so anyone can steal the drop.
- This bug can also appear if there are many players beating the same mob
- This bug can also appear if you have very high DMGs on the server.
Open char_battle.cpp and search for:
Below we have:
std:
riority_queue<std:
air<<span>int</span>, LPCHARACTER> > pq;
Below we find:
We replace with:
A little further down we have:
We replace with:
This is the solution to an old problem, present on most servers:
- If you beat a mob for a long time, after it dies - the dropped item or items will not have ownership (will not have a name), so anyone can steal the drop.
- This bug can also appear if there are many players beating the same mob
- This bug can also appear if you have very high DMGs on the server.
Open char_battle.cpp and search for:
C++:
void CHARACTER::Reward(bool bItemDrop)
{
C++:
std::priority_queue<std::pair<int, LPCHARACTER> > pq;


C++:
std::priority_queue<std::pair<int64_t, LPCHARACTER> > pq;
C++:
int total_dam = 0;
C++:
long long total_dam = 0;
C++:
while (!pq.empty() && pq.top().first * 10 >= total_dam)
Code:
while (!pq.empty() && static_cast<long long>(pq.top().first) * 10 >= total_dam)