Jump to content

Problem with lycan skills


Recommended Posts

  • Bot

Hello,

i added the lycan to my files and fixxed some little bugs, now i got a bug and have no idea what to do. I searched already on google and on m2dev for a reason, but found nothing.

My problem is that i cant add skillpoints to my skills, i can set them up with /setsk 170 40... I checked already the skill_proto on database and changed the type to 7, aswell with the client.

After this still nothing.

https://metin2.download/picture/PIgM4k55YJ6pW4OC1w3ta1PICwl0hmTp/.png

https://metin2.download/picture/pLFp7Us78ZHUy3AE87Ysw0lLk3blWn1l/.png

 

Then i checked the char_skill.cpp, i found this:

	int idx = POINT_SKILL;
	switch (pkSk->dwType)
	{
		case 0:
			idx = POINT_SUB_SKILL;
			break;
		case 1:
		case 2:
		case 3:
		case 4:
		case 5:
			idx = POINT_HORSE_SKILL;
			break;
		case 6:
			idx = POINT_SKILL;
			break;
		default:
			sys_err("Wrong skill type %d skill vnum %d", pkSk->dwType, pkSk->dwVnum);
			return false;
	}

 

I changed this to:

	int idx = POINT_SKILL;
	switch (pkSk->dwType)
	{
		case 0:
			idx = POINT_SUB_SKILL;
			break;
		case 1:
		case 2:
		case 3:
		case 4:
		case 5:
			idx = POINT_HORSE_SKILL;
			break;
		case 7:
			idx = POINT_SKILL;
			break;
		default:
			sys_err("Wrong skill type %d skill vnum %d", pkSk->dwType, pkSk->dwVnum);
			return false;
	}

 

Then i recompiled my game and reboot my server.

Still the same problem, i cant add skill points. If i set them up with /setsk 150 40 i can use all of them and the attacks make dmg (without purpur, i cant use it, in chat is get this msg: https://metin2.download/picture/7x7cmmh2V28B8WCGT2jtq5bYBTeZ6o06/.png)

 

Anyone a idea what i can try?

Edited by Metin2 Dev
Core X - External 2 Internal

english_banner.gif

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.