Jump to content
×
×
  • Create New...
  • 0

UNLIMITED ARROWS - Problem MOTION of MOBS


DeYaN.

Question

So, i install the unlimited arrows ( archer's quiver) but make me a visual bug :

The bug are only if i put in the hand a BOW. The mobs have no motion -action when he try to atack me, they only come to me and i receive -damage.

Spoiler

0123_042216.jpg

 

I`m reinstall for many times but i didn`t solve. 

I belive my problem is in the InstanceBase.cpp . Who have this system can look in my file for 2 minutes :D? http://pastebin.com/LUkjgAuk

 

# UPDATE:

 

I FIND what is wrong, In Instacebase.cpp if i delete the "CheckArrowType();"  from  " void CInstanceBase::ChangeWeapon(DWORD eWeapon) " i dont have this problem. But i lose the function check arrow type and i need to remove the arrow + bow to change the type. So, the problem is in the function checkarrowtype.

But what is wrong here ?

 

Spoiler

void CInstanceBase::CheckArrowType()
{
    CItemData * pItemData;
    if ((!m_kHorse.IsMounting()) && CItemManager::Instance().GetItemDataPointer(CPythonPlayer::Instance().GetItemIndex(TItemPos(INVENTORY, c_Equipment_Arrow)), &pItemData))
    {
        if (CItemData::ITEM_TYPE_WEAPON == pItemData->GetType() && CItemData::WEAPON_UNLIMITED_ARROW == pItemData->GetSubType())
        {
            UNLIMITED_ARROW=TRUE;
            
            CItemData * pItemData_1;
            if (CItemManager::Instance().GetItemDataPointer(CPythonPlayer::Instance().GetItemIndex(TItemPos(INVENTORY, c_Equipment_Weapon)), &pItemData_1))
            {
                if (pItemData_1->GetSubType() == CItemData::WEAPON_BOW)
                {
                    SetMotionMode(CRaceMotionData::MODE_BOW_SPECIAL);
                }
            }
        }
        else
        {
            UNLIMITED_ARROW=FALSE;
            
            CItemData * pItemData_2;
            if (CItemManager::Instance().GetItemDataPointer(CPythonPlayer::Instance().GetItemIndex(TItemPos(INVENTORY, c_Equipment_Weapon)), &pItemData_2))
            {
                if (pItemData_2->GetSubType() == CItemData::WEAPON_BOW)
                {
                    SetMotionMode(CRaceMotionData::MODE_BOW);
                }
            }
        }
    }
}

 

 

Link to comment
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.