Jump to content

Metin2 quiver system


Recommended Posts

Hello guys i have a one question of quiver system.

I used p3ng3r tutorial but, i have one error.


i using quiver and i probaly to shoot wild dog, my character writed i need arrow to shoot.

 

PythonSkill.cpp
 

bool CPythonPlayer::__HasEnoughArrow()
{
	CItemData* pItemData;
	if (CItemManager::Instance().GetItemDataPointer(GetItemIndex(TItemPos(INVENTORY, c_Equipment_Arrow)), &pItemData))
	{
		if (CItemData::ITEM_TYPE_WEAPON == pItemData->GetType())
		{
#ifdef ENABLE_QUIVER_SYSTEM
			if (CItemData::WEAPON_ARROW == pItemData->GetSubType() || CItemData::WEAPON_QUIVER == pItemData->GetSubType())
#else
			if (CItemData::WEAPON_ARROW == pItemData->GetSubType())
#endif
				return true;
		}
	}

	PyCallClassMemberFunc(m_ppyGameWindow, "OnCannotShotError", Py_BuildValue("(is)", GetMainCharacterIndex(), "EMPTY_ARROW"));
	return false;
}

item_proto:
 

79501	ą«ÇŃŔÇ Č­»ěĹë(1ŔĎ)	ITEM_WEAPON	WEAPON_QUIVER	1	ANTI_MUSA | ANTI_SURA | ANTI_MUDANG | ANTI_DROP | ANTI_GIVE | ANTI_MYSHOP | ANTI_SAFEBOX	ITEM_STACKABLE | ITEM_SLOW_QUERY	WEAR_ARROW	NONE	100000	0	0	0	0	REAL_TIME	86400	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	17	4	0	25	0	0	0	0	0
79502	ą«ÇŃŔÇ Č­»ěĹë(7ŔĎ)	ITEM_WEAPON	WEAPON_QUIVER	1	ANTI_MUSA | ANTI_SURA | ANTI_MUDANG | ANTI_DROP | ANTI_GIVE | ANTI_MYSHOP | ANTI_SAFEBOX	ITEM_STACKABLE | ITEM_SLOW_QUERY	WEAR_ARROW	NONE	550000	0	0	0	0	REAL_TIME	604800	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	17	4	0	25	0	0	0	0	0
79503	ą«ÇŃŔÇ Č­»ěĹë(15ŔĎ)	ITEM_WEAPON	WEAPON_QUIVER	1	ANTI_MUSA | ANTI_SURA | ANTI_MUDANG	ITEM_STACKABLE | ITEM_SLOW_QUERY	WEAR_ARROW	NONE	0	0	0	0	0	REAL_TIME	1296000	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	17	4	0	25	0	0	0	0	0
79504	ą«ÇŃŔÇ Č­»ěĹë(30ŔĎ)	ITEM_WEAPON	WEAPON_QUIVER	1	ANTI_MUSA | ANTI_SURA | ANTI_MUDANG	ITEM_STACKABLE | ITEM_SLOW_QUERY	WEAR_ARROW	NONE	0	0	0	0	0	REAL_TIME	2592000	LIMIT_NONE	0	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	17	4	0	25	0	0	0	0	0

I prob lot of idea and i didn't know to solve.

my systems: Cheque system, tab targeting, acce, costume weapon and sword. (i didn't know but not thin this system don't refuse this system.)

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.