[Only registered and activated users can see links. Click Here To Register...]
i have all area-of-effect skills properly set up, includes weapon skills (can buy from pedlar's, can use) and killing monsters/players with it will increase skill exp/skill level.
got quite a bit of progress today, fixed a bunch of bugs and other things. Tomorrow ill work on the base for other skill types (line attack, aoe heal, single target attack, single target heal, variable aoe attack (direction & width/depth (scatter, FoH etc))
Code:
// Rage
StaticData.getSkills().put(7020, new AreaOfEffectAttack(SkillType.WEAPON_SKILL));
// Snow
StaticData.getSkills().put(5010, new AreaOfEffectAttack(SkillType.WEAPON_SKILL));
That's how easy it is to implement a skill
Code:
if(i.getWeaponType() == Formula.CLUB) // clubs use rage.
i.setWeaponSpellID(7020);
if(i.getWeaponType() == Formula.WAND) // wands use snow.
i.setWeaponSpellID(5010);
this is how to bind a weapon to initiate a weapon skill (7020 / 5010 being rage and snow)
if anyone knows of any other skills (normal skills or weapon skills) that have area of effect attacks, but are not limited to direction (fire circle, rage, snow) hit all targets around you. scatter and fire of hell don't, they hit in a direction.
gah now i just remembered somewhere in the INI files each spell does have it's own 'group type' so i don't even need to add the first part manually.