@Ninja hehehe its been a while and I'm about to practice more here in rathena again XD.
I remember why I need your diff here.
coz with this I can call out the wav files while using skills custom and easier for newbies.
like when using LORD of VERMILLION - the character is shouting the skills.
I just got back on developing again all my old files are gone now starting new hehehe
by the way I have this error here. using the latest revision.
/**
* Jezznar
* getskillname (skillid);
**/
BUILDIN_FUNC(getskillname)
{
int skill_id;
char *skill_name;
//get input skill_id
if (!script_hasdata(st, 2)) {
script_pushconststr(st, "null");
return SCRIPT_CMD_SUCCESS;
}
skill_id = script_getnum(st, 2);
if (!skill_get_index(skill_id)) {
ShowError("script:conv_str: Unknown skill_id supplied.\"\n");
script_pushconststr(st, "null");
return SCRIPT_CMD_SUCCESS;
}
skill_name = (char *)aMalloc(SKILL_NAME_LENGTH * sizeof(char));
memcpy(skill_name, skill_db[skill_get_index(skill_id)]->desc, SKILL_DESC_LENGTH);
script_pushstr(st, skill_name);
return SCRIPT_CMD_SUCCESS;
}
Anyways thanks for this. I cant make the skill name appear but, The skillused_id is what I need for skills shout. thank you