Jump to content
  • 0

Problem with horse skills


DemoroCZ

Question

  • VIP

Hello guys,

i've changed max horse level to 5 (Level 1 - beginner horse, level 2 - combat horse, level 3 - millitary horse and level 4 and 5 new horses), server side seems ok, but i have problem with client side, where i can change minimal horse level to use horse skills? I tried search in source code and in root files for few hours, but unsucessful.

 

Thanks :)

  • Love 1
Link to comment

21 answers to this question

Recommended Posts

  • 0
  • VIP

You should edit the field bLevelLimit from player.skill_proto and skilltable.txt too.

Thanks, but this isn't what i need..

Usually max horse level is 30, you can use horse skills when riding level >= 21 - thats what i need change, because on my server millitary horse is on riding level 5 instead of 21+.

 

Thanks, and sorry for my english.

Link to comment
  • 0

You must add the cases to binary ( like a mount , to make it attackble and rest , then edit the skil_proto as Denis say's ) 

You can find the table of horse levels under horse_rider.cpp

Link to comment
  • 0
  • VIP

You must add the cases to binary ( like a mount , to make it attackble and rest , then edit the skil_proto as Denis say's ) 

You can find the table of horse levels under horse_rider.cpp

Cases are in binary and in core, they are attackable, skill_proto is ok and horse table is ok too, i have only one problem - riding (horse) skills.. If i want use horse skill, nothing happens (i have all horse skills on level 10), i think its problem in binary, but where in binary? I can't find it..

 

Thanks

Link to comment
  • 0
  • Honorable Member

Open uiCharacter.py and search:

	def __CanUseHorseSkill(self):

		slotIndex = player.GetSkillSlotIndex(player.SKILL_INDEX_RIDING)

		if not slotIndex:
			return FALSE

		grade = player.GetSkillGrade(slotIndex)
		level = player.GetSkillLevel(slotIndex)
		if level < 0:
			level *= -1
		if grade >= 1 and level >= 1:
			return TRUE

And change it to:

	def __CanUseHorseSkill(self):

		slotIndex = player.GetSkillSlotIndex(player.SKILL_INDEX_RIDING)

		if not slotIndex:
			return FALSE

		grade = player.GetSkillGrade(slotIndex)
		level = player.GetSkillLevel(slotIndex)
		if level < 0: return False
		if level >= 4: return True
		return FALSE	

  • Love 1
Link to comment
  • 0
  • VIP

 

Open uiCharacter.py and search:

	def __CanUseHorseSkill(self):

		slotIndex = player.GetSkillSlotIndex(player.SKILL_INDEX_RIDING)

		if not slotIndex:
			return FALSE

		grade = player.GetSkillGrade(slotIndex)
		level = player.GetSkillLevel(slotIndex)
		if level < 0:
			level *= -1
		if grade >= 1 and level >= 1:
			return TRUE

And change it to:

	def __CanUseHorseSkill(self):

		slotIndex = player.GetSkillSlotIndex(player.SKILL_INDEX_RIDING)

		if not slotIndex:
			return FALSE

		grade = player.GetSkillGrade(slotIndex)
		level = player.GetSkillLevel(slotIndex)
		if level < 0: return False
		if level >= 4: return True
		return FALSE	

Díky, teď mam sice ve skillech ukázanou i tabulku se skillama na koně, ale když chci nějakej skill použít, kliknu na něj, tak se nic nestane... Všechny skilly koně mam na úrovni 10.

EDIT: Jen dodám, že v syserr není nic ohledně skillů..

Link to comment
  • 0
  • VIP

A máš to správně nastavený v jádru?

---------------------------------------------------

Do you have it set right in game file?

V jádře si myslim že jo.. to bude spíš v klientovi.. kdyby to bylo v jádře, tak se podle mě ta animace a efekt na skill vyvolá, ale neudělá to žádnej dmg..

Link to comment

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


×
×
  • 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.