Jump to content

[C++]Help complete Unlimited Arrow Effect


Recommended Posts

i have this part i don't know if it's right

PythonPlayerSkill.cpp

Spoiler

bool CPythonPlayer::__HasEnoughArrow()
{
    CItemData * pItemData;
    if (CItemManager::Instance().GetItemDataPointer(GetItemIndex(TItemPos(INVENTORY, c_Equipment_Arrow)), &pItemData))
    if (CItemData::ITEM_TYPE_WEAPON == pItemData->GetType())
    if (CItemData::WEAPON_ARROW == pItemData->GetSubType())
    {
        return true;
    }
 
#ifdef ENABLE_QUIVER_SYSTEM
    if (CItemData::WEAPON_QUIVER == pItemData->GetSubType())
    {
        return true;
    }
#endif
 
    PyCallClassMemberFunc(m_ppyGameWindow, "OnCannotShotError", Py_BuildValue("(is)", GetMainCharacterIndex(), "EMPTY_ARROW"));
    return false;
}

and this on playersettingmodule.py

Spoiler

if app.ENABLE_QUIVER_SYSTEM:
        effect.RegisterIndexedFlyData(effect.FLY_QUIVER_ATTACK_NORMAL, effect.INDEX_FLY_TYPE_NORMAL, "d:/ymir work/pc/assassin/effect/arrow_02.msf")

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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.