Jump to content

Problem with horse skills


Recommended Posts

  • Premium

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
Share on other sites

  • Premium

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
Share on other sites

  • Premium

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
Share on other sites

  • 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

plechi-frost-dungeon.gif

Link to comment
Share on other sites

  • Premium

 

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
Share on other sites

  • Premium

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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      Moving server from FreeBSD 11.2 to 13.2 - lib needed

    2. 0

      I just implemented some costumes and they are not visible

    3. 0

      Skill Tree Problem

    4. 97

      Ulthar SF V2 (TMP4 Base)

    5. 5

      Client Crashes through Offline Shop (Ikarus)

    6. 5

      VIVY-WORLD2 - FARM TO THE TOP

    7. 0

      ToolTip Bug?

    8. 0

      Skill tree build erorr

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