Hello MaxCheaters community ! I have been asking this problem on 80% of Russian L2J Forums but let's say that idiots stupid -beep-ing arrogant people didn't help me a shit...even If i am russian I need your help MaxCheaters! So please be kind and help me if you can :((
So I want just to make skills enchant for free...for now I did lower SP\Adena cost for 1 Sp\Adena per 1 enchant, I removed the thing that a player need books to enchant\change\transfer skills. But now i want to do +15 1 click enchant.
How can I do it?
So I tried and i have this result...that skills from the second proff are enchanting only till +15 and the its not enchanting. But the 3d proff skill are not enchanting at all...
I have sources L2Rebellion + L2jServer they are kinda combined with some mods from EmuRt and shit...
So I have this classes..
ExEnchantSkillInfo
// skill already enchanted?
if(_level > 100)
{
canDecrease = 15;
// get detail for next level
EnchantSkillLearn esd = SkillTreeTable.getSkillEnchant(_id, _level + 1);
// if it exists add it
if(esd != null)
{
addEnchantSkillDetail(esd.getLevel());
_canAdd = 15;
}
for(EnchantSkillLearn el : SkillTreeTable.getEnchantsForChange(_id, _level))
addEnchantSkillDetail(el.getLevel());
}
else
// not already enchanted
for(EnchantSkillLearn esd : SkillTreeTable.getFirstEnchantsForSkill(_id))
{
addEnchantSkillDetail(esd.getLevel());
_canAdd = 1;
}
}
SkillTreeTable
public static List<EnchantSkillLearn> getFirstEnchantsForSkill(int skillid)
{
List<EnchantSkillLearn> result = new ArrayList<EnchantSkillLearn>();
List<EnchantSkillLearn> enchants = _enchant.get(skillid);
if(enchants == null)
return result;
for(EnchantSkillLearn e : enchants)
if(e.getLevel() % 100 == 15) //i think this shit shows how much should be enchanted per 1 click..
result.add(e);
return result;
}
RequestExEnchantSkill
int enchantLevel = SkillTreeTable.convertEnchantLevel(sl.getBaseLevel(), _skillLvl, sl.getMaxLevel());
// already knows the skill with this level
if(slevel >= enchantLevel)
return;
// Можем ли мы перейти с текущего уровня скилла на данную заточку
if(slevel == sl.getBaseLevel() ? _skillLvl % 100 != 15: slevel != enchantLevel - 15)
Please help me! I beg you!!