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