Lineage 2 Tower Forum

Full Version: Skill ID, How to get it
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, well im trying to finish some scripts and I was wondering how do I get the ID of the skills, i know there is a command for it, but I cant remember it, so you can record the Skill ID in a file, I used it before I just cant remember it, please help
Z:\l2tower\config\!path to your l2!

and there is fille calld skills.txt
ok I see the file, but to make thing a little cleaner and just look for the skill i will use without going into all the skills, I would love to get the command to record the skill ID in the file like I have in the past, I just cant remember the command, I still appreciate your help, for now I will look into the skill file and find what I need atm thx a lot.


P.S: I seem to recall was something like .skillrecord or something like it, if someone knows please advice
/recstart_filenamehere
spam ur skills
/recstop

and there will be a file in ur script folder with the ID's u used.
Thanks a lot, that's what I was looking for
    LUA Programming
myclass= L2Class2String(GetMe():GetClass());
myname= GetMe():GetName();
mylvl= GetMe():GetLevel();
 
filename = GetDir() .. "SkillList-" .. myclass .."-" .. myname .."-" .. mylvl ..".txt";
file = io.open(filename, "w");
ShowToClient(tostring(os.date("%X")), "file: " .. filename, 3);
 
 
if (file) then
	skillList = GetSkills();
	file:write( "SKILL LIST:\t ".. myclass .. " (" .. mylvl ..") \n\n\n");
	file:write( "ACTIVE SKILL LIST:\n");
	for skill in skillList.list do -- lets loop thru the list
 if not skill.isPassive then
 idaux = tostring(skill.skillId)
 nameaux = tostring(skill.name)
 file:write( idaux .." \t\t-- "..nameaux .. "\n");
 end;
	end;
 
	file:write( "\n\nPASSIVE SKILL LIST:\n");
	for skill in skillList.list do -- lets loop thru the list
 if skill.isPassive then
 idaux = tostring(skill.skillId)
 nameaux = tostring(skill.name)
 file:write( idaux .." \t\t-- "..nameaux .. "\n");
 end;
	end;
	file:close();
else
	ShowToClient(tostring(os.date("%X")), "Can't save into file: " .. filename, 3);
end;

Thanks a lot this is even better, a really appreciated, I can try to finish my scripts now tySmile
Reference URL's