Quote:
Originally Posted by anerax
Hello :)
I have need you're help.
Sorry for my spelling i'm french.
I would like removed the skill "hercule", why can I do ?
Thx !!!
|
Go into character.cs and remove this:
Quote:
else if (SkillId == 1115) //Herc
{
byte Range = 0;
byte SkillLvl = (byte)Skills[(short)SkillId];
Hashtable Targets = new Hashtable();
Hashtable PTargets = new Hashtable();
if (SkillLvl == 1)
Range = 3;
if (SkillLvl == 2)
Range = 4;
if (SkillLvl == 3)
Range = 4;
if (SkillLvl == 4)
Range = 5;
IDictionaryEnumerator Mobs = MobsFunctions.AllMobs.GetEnumerator();
while (Mobs.MoveNext())
{
SingleMob TheMob = (SingleMob)Mobs.Value;
long DMG = (long)Rand.Next((int)MinAtk, (int)MaxAtk) / 2;
if ((Level - 2) > TheMob.Level)
{
int AddDamage = (int)(2 + (Level - (TheMob.Level + 2)) / 2);
DMG *= AddDamage;
DMG = DMG * 3 / 4;
}
if (MyMath.PointDistance(TheMob.PosX, TheMob.PosY, PosX, PosY) < Range + 1)
if (TheMob.Alive)
if (TheMob.Map == PosMap)
if (!Targets.Contains(TheMob))
Targets.Add(TheMob, DMG);
IDictionaryEnumerator Chars = WorldHandler.AllClients.GetEnumerator();
while (Chars.MoveNext())
{
Character ThePlayer = ((Client)Chars.Value).MyChar;
DMG = (long)Rand.Next((int)MinAtk, (int)MaxAtk) / 2;
DMG -= ThePlayer.Defense;
if (DMG < 1)
DMG = 1;
if (PKMode == 0 || PKMode == 2)
if (MyMath.PointDistance(ThePlayer.PosX, ThePlayer.PosY, PosX, PosY) < Range + 1)
if (ThePlayer != this)
if (ThePlayer.Alive)
if (ThePlayer.PosMap == PosMap)
if (!PTargets.Contains(ThePlayer))
PTargets.Add(ThePlayer, DMG);
}
}
WorldHandler.SkillAttack(this, Targets, PTargets, 0, 0, 1115, SkillLvl);
}
|
Then Build, copy from the release folder and paste in debug.