Jump to content
  • 0
Sign in to follow this  
Torres

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

Question

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~

 

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 1
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

Share this post


Link to post
  • 0

@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

 

Share this post


Link to post
  • 0
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

Share this post


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

Share this post


Link to post
  • 0
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:

http://prntscr.com/p7p8um

 

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] =

  • Love 1

Share this post


Link to post
  • 0
@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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

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