Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Metin2 quiver system


asterix2

Question

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 post

2 answers 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


  • Current Donation Goals

  • Activity

    1. 9

      [FIX] Great-Offshop MEMORY-LEAK

    2. 1

      acc system

    3. 9

      [FIX] Great-Offshop MEMORY-LEAK

    4. 3

      Where do i find Guild Chat in source?

    5. 3

      Where do i find Guild Chat in source?

    6. 0

      Extended DS Inventory

    7. 6

      Shadow devil tower.

    8. 9

      [FIX] Great-Offshop MEMORY-LEAK

    9. 22

      [FIX] Fixing Metin2 memory leaks

  • Recently Browsing

    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.