Hi all you talented source coders out there!
script.c
/// petskillattack2 <skill id>,<level>,<div>,<rate>,<bonusrate>
/// petskillattack2 "<skill name>",<level>,<div>,<rate>,<bonusrate>
BUILDIN_FUNC(petskillattack2)
{
struct pet_data *pd;
TBL_PC *sd=script_rid2sd(rain);
if(sd==NULL || sd->pd==NULL)
return 0;
pd=sd->pd;
if (pd->a_skill == NULL)
pd->a_skill = (struct pet_skill_attack *)aMalloc(sizeof(struct pet_skill_attack));
pd->a_skill->id=( script_isstring(st,2) ? skill_name2id(script_getstr(st,2)) : script_getnum(st,2) );
pd->a_skill->lv=script_getnum(st,3);
pd->a_skill->div_ = script_getnum(st,4);
pd->a_skill->rate=script_getnum(st,5);
pd->a_skill->bonusrate=script_getnum(st,6);
return 0;
}
Right now for petskillattack2, it doesn't exceed over 100 for "fixed damage" because it is calling for level
Here is the Rathena documentation - http://rathena.org/wiki/Petskillattack
Using the documentation has follows, the example script would not work because the "fixed damage" is capped at 100
Does anyone know how to change the arguments in source so it can be higher? I have pasted the source in script.c that it is calling for
Help would be appreciated, thanks!