Jump to content

[binary]alignment-20000,can't dorp weapons and armor!


Go to solution Solved by displayjokes,

Recommended Posts

  • Solution
15 minutes ago, Torres said:

Hello! Developers...
When I am a normal player, my alignment=-20000, I become a red name, but when I am killed, I will not drop weapons and armor and anything, this is not normal, how can I modify it? 
Thank you for your answer
The best wishes for you~

1465951484_.png.8bddea7e08c514d62ccbde9cac162b3f.png

server source > game > src > char_battle.cpp: void CHARACTER::ItemDropPenalty(LPCHARACTER pkKiller)

Show that function please

 

 

and check if you do have this: ItemDropPenalty(pkKiller);

called on void CHARACTER::Dead(LPCHARACTER pkKiller, bool bImmediateDead

It's all lies

Link to comment
Share on other sites

@displayjokes,yes,

if (GetGMLevel() == GM_PLAYER || test_server)
        {
           // ItemDropPenalty(pkKiller); // Don't drop thing's when you have negative rank
        }
It was disabled, I enabled it, the weapons and armor and jewelry I was using, there was a certain chance that it would fall, but the items would not, what else do I need to do? Thank you for your answer
5 hours ago, displayjokes said:

server source > game > src > char_battle.cpp: void CHARACTER::ItemDropPenalty(LPCHARACTER pkKiller)

Show that function please

 

 

and check if you do have this: ItemDropPenalty(pkKiller);

called on void CHARACTER::Dead(LPCHARACTER pkKiller, bool bImmediateDead

 

Link to comment
Share on other sites

Just now, Torres said:

@displayjokes,yes,

if (GetGMLevel() == GM_PLAYER || test_server)
        {
           // ItemDropPenalty(pkKiller); // Don't drop thing's when you have negative rank
        }
It was disabled, I enabled it, the weapons and armor and jewelry I was using, there was a certain chance that it would fall, but the items would not, what else do I need to do? Thank you for your answer

 

remove the "//" and show me the function: void CHARACTER::ItemDropPenalty(LPCHARACTER pkKiller)

from the same file

  • Love 1

It's all lies

Link to comment
Share on other sites

void CHARACTER::ItemDropPenalty(LPCHARACTER pkKiller)
{
    // 俺牢惑痢阑 楷 惑怕俊辑绰 酒捞袍阑 靛酚窍瘤 臼绰促.
    if (GetMyShop())
        return;
 
    if (GetLevel() < 50)
        return;
 
    if (CBattleArena::instance().IsBattleArenaMap(GetMapIndex()) == true)
    {
        return;
    }
 
Link to comment
Share on other sites

9 hours ago, Torres said:
void CHARACTER::ItemDropPenalty(LPCHARACTER pkKiller)
{
    // 俺牢惑痢阑 楷 惑怕俊辑绰 酒捞袍阑 靛酚窍瘤 臼绰促.
    if (GetMyShop())
        return;
 
    if (GetLevel() < 50)
        return;
 
    if (CBattleArena::instance().IsBattleArenaMap(GetMapIndex()) == true)
    {
        return;
    }
 

just to be sure if the proble is what i'm thinking, try this:

https://metin2.download/picture/wy9XPdhVpE5qoiRKd1f7XQPb4F9sSmzd/.png

 

If the items drop, the problem is in the tables from item drop penalty, if not, we need to keep looking and get some logs to debug

 

To check the table search this in the file: TItemDropPenalty aItemDropPenalty_kor[9] =

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1

It's all lies

Link to comment
Share on other sites

@displayjokes,thank you!
You are right!
Bool bDropInventory = r.iInventoryPct >= number(1, 1000);
Bool bDropEquipment = r.iEquipmentPct >= number(1, 2000);
Bool bDropAntiDropUniqueItem = false;
 
change----

Bool bDropInventory = r.iInventoryPct >= number(1, 10);
Bool bDropEquipment = r.iEquipmentPct >= number(1, 20);
Bool bDropAntiDropUniqueItem = false;
 
It works very well now! It is what I want!
Thank you again for your help!
The best wishes for you~
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.