Jump to content
metin2dev
  • 0
Sign in to follow this  
rekt

fixed Horse Skill

Question

When i use horse skill - no reaction

I use with horse level 21+

character level 50+

In instanceBase.cpp - return 3 for military horse.

			case 20107:
			case 20108:
			case 20109:
			[...]
				return 3;

 

Char_skill.cpp:

[...]
bool CHARACTER::CanUseSkill(DWORD dwSkillVnum) const
[...]

	[...]
	if (true == IsRiding())
	{
		if(GetMountVnum())
		{
			
			if ((GetMountVnum() >= 20107 && GetMountVnum() <= 20109) || (GetMountVnum() >= 25001 && GetMountVnum() <= 35000))
				return true;
		}
		else
			return false;

		switch(dwSkillVnum)
		{
			case SKILL_HORSE_WILDATTACK:
			case SKILL_HORSE_CHARGE:
			case SKILL_HORSE_ESCAPE:
			case SKILL_HORSE_WILDATTACK_RANGE:
				return true;
		}
	}
	[...]

 

char_horse.cpp:

[...]
bool CHARACTER::CanUseHorseSkill()
{
	if(IsRiding())
	{
		if (GetHorseGrade() == 3)
			return true;
		else
			return false;

		if(GetMountVnum())
		{
			
			/*if (GetMountVnum() >= 20107 && GetMountVnum() <= 20109)
				return true;*/
			
			if (GetMountVnum() >= 25001 && GetMountVnum() <= 35000)
				return true;

			if (CMobVnumHelper::IsRamadanBlackHorse(GetMountVnum()))
				return true;
		}
		else
			return false;

	}

	return false;
}
[...]

 

I have official skill_proto:

137	Cięcie z Siodła	5	1	1	50	HP	-(atk+(2*atk*k))	60+80*k			5-(4*k)			ATTACK,USE_MELEE_DAMAGE,CRUSH		NONE								0	0	MELEE	10	1	300	0
138	Stąpnięcie Konia	5	1	1	52	HP	-(2.4*(200+1.5*lv)+(3*200*k))	60+120*k			15			ATTACK,USE_MELEE_DAMAGE,SPLASH,CRUSH_LONG		MOV_SPEED	50	5						0	0	MELEE	6	1	400	100
139	Fala Mocy	5	1	1	55	HP	-(2*(200+1.5*lv)+(3*200*k))	60+160*k			20			ATTACK,USE_MELEE_DAMAGE,SELFONLY,SPLASH,CRUSH		NONE								0	0	MELEE	12	1	400	250
140	Grad Strzał	5	1	1	50	HP	-(atk+(2*atk*k))	60+80*k			10			ATTACK,USE_ARROW_DAMAGE,CRUSH		NONE								0	0		5	1	2500	0

 

this is funny. 

Such a banal mistake.

Anyone help me? XDD

Share this post


Link to post
Share on other sites

13 answers to this question

Recommended Posts

  • 0

#F5

When i use command: /full_set

Skill horse work, but when i logout and use horse skill after @up command not working

Share this post


Link to post
Share on other sites
  • 0
2 godziny temu, Syreldar napisał:

/full_set sets ur skills to P, which bugs your horse_skills, set them to M1 and your horse_level to 21.

I know man. Im not green bro. When i have horse skills on M1 and 21 lvl horse - skills not working

When i use comman /full_set - Working, but after teleport not working.

Share this post


Link to post
Share on other sites
  • 0

char_skill.cpp:

Substitute the IsRiding snippet (the one you posted) with this one:

bool CHARACTER::CanUseSkill(DWORD dwSkillVnum) const
[...]

	[...]
	if (IsRiding())
	{
		switch(dwSkillVnum)
		{
			case SKILL_HORSE_WILDATTACK:
			case SKILL_HORSE_CHARGE:
			case SKILL_HORSE_ESCAPE:
			case SKILL_HORSE_WILDATTACK_RANGE:
				return true;
		}
	}
	[...]

 

char_horse.cpp: 

Substitute your CanUseHorseSkill with this:

bool CHARACTER::CanUseHorseSkill()
{
	return IsRiding() && GetHorseGrade() == 3;
}

In any case, if the skills do not totally go off, it's a binary problem, 100%.

 

Share this post


Link to post
Share on other sites
  • 0
17 godzin temu, Syreldar napisał:

char_skill.cpp:

Substitute the IsRiding snippet (the one you posted) with this one:


bool CHARACTER::CanUseSkill(DWORD dwSkillVnum) const
[...]

	[...]
	if (IsRiding())
	{
		switch(dwSkillVnum)
		{
			case SKILL_HORSE_WILDATTACK:
			case SKILL_HORSE_CHARGE:
			case SKILL_HORSE_ESCAPE:
			case SKILL_HORSE_WILDATTACK_RANGE:
				return true;
		}
	}
	[...]

 

char_horse.cpp: 

Substitute your CanUseHorseSkill with this:


bool CHARACTER::CanUseHorseSkill()
{
	return IsRiding() && GetHorseGrade() == 3;
}

In any case, if the skills do not totally go off, it's a binary problem, 100%.

 

 

Same effect. So binary or client lulz

Share this post


Link to post
Share on other sites

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.

×