Quote:
Originally Posted by yuko
i made you this, i've dun that in 5 min but just to show you how you could do it? but there is a much better way + this is only to SHOW
Code:
Dictionary<int, int> Targets = new Dictionary<int, int>();
if (CSocket.Client.Equipment.ContainsKey(4))
{
Struct.ItemInfo Item = CSocket.Client.Equipment[4];
if (Item.ItemID / 1000 == 480)
{
if (CSocket.Client.Skills.ContainsKey(7020))
{
Console.WriteLine("skill activated");
ConquerPacket.ToLocal(ConquerPacket.MagicAttack(CSocket.Client.ID, 7020, 9, Targets, AttackedMob.X, AttackedMob.Y), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
}
}
}
image
|
So I placed that as case 7020 under both:
Code:
switch(AttackSkill.ID)
{
//TODO: Special effects for spells like FireOfHell, Revive, etc here
equipped a club and learned the rage skill but it kinda failed (yes,I know it isn't the complete rage code but I just wanted to test it)