Jump to content

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 13
  • Created
  • Last Reply

Top Posters In This Topic

  • Premium

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

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Premium

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%.

 

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Premium
28 minutes ago, rekt said:

 

Same effect. So binary or client lulz

binary.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • 1 year later...

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.