Jump to content
  • 0

Adding Custom Skills To Classskilltree. Auto Learn Off.


Question

Posted (edited)

I use H5 // Multi Skill type server

 

I would like to add a custom skill to classSkillTree to allow players to learn that skill just like any other skill.

 

I've created a skill

	<skill id="40901" levels="15" name="Strength Boost">
		<!-- Confirmed CT2.5 -->
		<table name="#magicLvl"> 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 </table>
		<table name="#str"> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 </table>		
		<set name="magicLvl" val="#magicLvl" />
		<set name="operateType" val="P" />
		<set name="targetType" val="SELF" />
		<for>
			<add stat="STR" val="#str" />
		</for>
	</skill>

And placed it in classSkillTree, something like this...

	<skillTree type="classSkillTree" classId="53">
		<!-- Confirmed CT2.5 -->
		
		<!-- STRENGTH BOOST -->
		<skill skillName="Strength Boost" skillId="40901" skillLvl="1"  getLevel="1" learnedByNpc="true" >
		<item id="40905" count="1"/>                                    
		</skill>  

The problem is when I try to learn it via the specified NPC (classId="53") I get an error in chat box as well as the console:

 

[21:54:33] WARN: Recived Wrong Packet Data in Aquired Skill - id: 40905 level: 1 for L2PcInstance:Sybar[268481682]

 

I can add the skill manually or make it autoGet="true", but I really need it to be obtainable just like any other skill in game via a Skill Trainer.

 

What am I doing wrong? Please advise.

 

Thanks :)

Edited by Sybar

2 answers to this question

Recommended Posts

  • 0
Posted

Solved.

 

My skill had higher than supported ID.

 

Required change:

 

gameserver.network.clientpackets.RequestAcquireSkill.java

if ((_level < 1) || (_level > 1000) || (_id < 1) || (_id > 32000))

32000 changed to 50000

 

It works like a charm now :)

Guest
This topic is now closed to further replies.


×
×
  • Create New...