Well I have re-written healing skills a little bit.But they still doesnt work any Hints?
and heres an example of my Defined Spell.
Code:
if (SkillAttributes[0] == 6)
{
Heal = (short)SkillAttributes[4];
CurHP += (ushort)Heal;
if (CurHP > MaxHP)
CurHP = MaxHP;
World.UsingSkill(this, (short)SkillId, SkillLvl, UID, (ushort)Heal, (short)LocX, (short)LocY);
Mana = (short)SkillAttributes[5];
if (CurMP > (short)Mana)
{
CurMP -= (ushort)Mana;
General.MyPackets.Vital((long)UID, 0x02, CurMP);
}
else
{
General.MyPackets.SendMsg(MyClient.MessageId, "NanoCo", Name, "You dont have enough mana!", 2011);
}
}
Code:
SkillAttributes[1170] = new ushort[5][];
SkillAttributes[1170][0] = new ushort[6] { 6, 0, 0, 600, 25, 0 };
SkillAttributes[1170][1] = new ushort[6] { 6, 0, 0, 700, 30, 0 };
SkillAttributes[1170][2] = new ushort[6] { 6, 0, 0, 800, 30, 0 };
SkillAttributes[1170][3] = new ushort[6] { 6, 0, 0, 900, 30, 0 };
SkillAttributes[1170][4] = new ushort[6] { 6, 0, 0, 1000, 30, 0 };
SkillsDone.Add(1170, 4);