I have fixed the baseline and added the right Spec line for VW
The script will need to be added to the SVN as thats where the script come from
Not sure if the database part bugged to, but i added it, was i was playing around with database too, trying to fix it.
DB
- Code: Select all
REPLACE INTO `spellline` (`SpellLine_ID`, `KeyName`, `Name`, `Spec`, `IsBaseLine`, `PackageID`) VALUES ('10e4d163-ba77-4676-918e-a20625b100e0', 'Arboreal Path', 'Arboreal Path', 'Arboreal Path', 1, 'Public_DB');
REPLACE INTO `spellline` (`SpellLine_ID`, `KeyName`, `Name`, `Spec`, `IsBaseLine`, `PackageID`) VALUES ('valewalkerarborialpathbase', 'Valewalker Arboreal Path Base', 'Arboreal Path', 'Arboreal Path', 0, 'Public_DB');
And The fix for SVN:
- Code: Select all
/*
* DAWN OF LIGHT - The first free open source DAoC server emulator
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
*
*/
using System;
using DOL.GS;
using DOL.Language;
namespace DOL.GS.PlayerClass
{
/// <summary>
///
/// </summary>
[PlayerClassAttribute((int)eCharacterClass.Valewalker, "Valewalker", "Forester")]
public class ClassValewalker : ClassForester
{
public ClassValewalker() : base()
{
m_profession = LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.Profession.PathofAffinity");
m_specializationMultiplier = 15;
m_primaryStat = eStat.STR;
m_secondaryStat = eStat.INT;
m_tertiaryStat = eStat.CON;
m_manaStat = eStat.INT;
m_wsbase = 400;
m_baseHP = 720;
}
public override string GetTitle(int level)
{
if (level >= 50) return LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.Valewalker.GetTitle.50");
if (level >= 45) return LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.Valewalker.GetTitle.45");
if (level >= 40) return LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.Valewalker.GetTitle.40");
if (level >= 35) return LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.Valewalker.GetTitle.35");
if (level >= 30) return LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.Valewalker.GetTitle.30");
if (level >= 25) return LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.Valewalker.GetTitle.25");
if (level >= 20) return LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.Valewalker.GetTitle.20");
if (level >= 15) return LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.Valewalker.GetTitle.15");
if (level >= 10) return LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.Valewalker.GetTitle.10");
if (level >= 5) return LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.Valewalker.GetTitle.5");
return LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "PlayerClass.GetTitle.none");
}
/// <summary>
/// Update all skills and add new for current level
/// </summary>
/// <param name="player"></param>
public override void OnLevelUp(GamePlayer player)
{
base.OnLevelUp(player);
// Specializations
player.AddAbility(SkillBase.GetAbility(Abilities.Weapon_Scythe));
player.AddSpecialization(SkillBase.GetSpecialization(Specs.Scythe));
player.AddSpecialization(SkillBase.GetSpecialization(Specs.Parry));
// Spell lines
player.AddSpellLine(SkillBase.GetSpellLine("Valewalker Arb Path Spec"));
if (player.Level >= 5)
{
player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 1));
}
if (player.Level >= 10)
{
player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 2));
}
if (player.Level >= 15)
{
player.AddAbility(SkillBase.GetAbility(Abilities.Tireless));
player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 1));
}
if(player.Level >= 19)
{
player.AddAbility(SkillBase.GetAbility(Abilities.Intercept));
}
if (player.Level >= 20)
{
player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 3));
}
if(player.Level >= 23)
{
player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 2));
}
if (player.Level >= 30)
{
player.AddAbility(SkillBase.GetAbility(Abilities.Evade, 4));
}
if(player.Level >= 32)
{
player.AddAbility(SkillBase.GetAbility(Abilities.Protect, 3));
}
}
public override bool HasAdvancedFromBaseClass()
{
return true;
}
}
}