I'm sorry if someone else has already posted this, but if you want to be able to make skills as rewards from NPCs(like in promotion center), heres the code I use:
Code:
if (TheRew[0] == "skill")
{
ClickyClient.MyChar.SkillAdd(short.Parse(TheRew[1]), byte.Parse(TheRew[2]));
Done = true;
}
place the above code in the ClientRequests/NpcDialog.cs right above the following code which is at line 173:
Code:
if (TheRew[0] == "gold")
once you have added the code and rebuilt the server, to give a skill as a reward use the following as the rew line in the Dialog.ini:
rew=skill,skill_id,byte
ie:
thunder: rew=skill,1000,4
herc: rew=skill,1115,4
scentsword: rew=skill,1046,4
fastblade: rew=skill,1045,4
scatter: rew=skill,8001,5
guard: rew=skill,4000,4
etc...
you can get the list of skills in the ClientRequests\Chat.cs, please remember that not all skills have been added. Hope this helps, and if its already been submitted I do appologize.
Big thanks to the Samehvan Project Team for doing an awesome job!!