Can Somone help me add wepskills such as rage snow and stuff.. tell me what i need to add where to add it and stuff i dont mean give me the code so i don't haft to do noting i mean guide me threw it so i can learn how and code the other weapon skills. some say for rage just copy Hercules. but i just don't see how that would work and do i code them in the same place or what.. plz help me if u can
step1- check the Right Hand weapon chance
step2- if the r8 hand chance returns false check the left hand chance
step3- if one of them returns true do the weapon skill , and here is my code for it ,u will need to add more weapons of course
at the Melee region (Handlers/Attack.cs) put this
Code:
#region R8 hand chances
byte WeaponChance = (byte)Nano.Rand.Next(255);
if (CSocket.Client.Equipment.ContainsKey(4))
{
if (WeaponChance > 150)
{
switch (RightHand.ID)
{
case 480://Club
{
if (Attacker.Skills.ContainsKey((int)Struct.SkillIds.Rage))
{
WeaponEffect = "RHFound";
NoTargetMagic(CSocket, (int)Struct.SkillIds.Rage, CSocket.Client.X, CSocket.Client.Y);
}
break;
}
case 510://Glaive 2Hand
{
if (Attacker.Skills.ContainsKey((int)Struct.SkillIds.WideStrike))
{
WeaponEffect = "RHFound";
NoTargetMagic(CSocket, (int)Struct.SkillIds.WideStrike, X, Y);
}
break;
}
case 561://Wand 2Hand
{
if (Attacker.Skills.ContainsKey((int)Struct.SkillIds.Snow))
{
WeaponEffect = "RHFound";
NoTargetMagic(CSocket, (int)Struct.SkillIds.Snow, CSocket.Client.X, CSocket.Client.Y);
}
break;
}
case 560://Spear 2Hand
{
if (Attacker.Skills.ContainsKey((int)Struct.SkillIds.SpeedGun))
{
WeaponEffect = "RHFound";
NoTargetMagic(CSocket, (int)Struct.SkillIds.SpeedGun, X, Y);
}
break;
}
case 530://Poleaxe 2Hand
{
if (Attacker.Skills.ContainsKey((int)Struct.SkillIds.Boreas))
{
WeaponEffect = "RHFound";
NoTargetMagic(CSocket, (int)Struct.SkillIds.Boreas, X, Y);
}
break;
}
}
}
}
#endregion
#region Left hand chances
if (CSocket.Client.Equipment.ContainsKey(5))
{
if (WeaponEffect == "")
{
WeaponChance = (byte)Nano.Rand.Next(255);
if (WeaponChance > 180)
{
switch (LeftHand.ID)
{
case 480://Club
{
if (Attacker.Skills.ContainsKey((int)Struct.SkillIds.Rage))
{
NoTargetMagic(CSocket, (int)Struct.SkillIds.Rage, CSocket.Client.X, CSocket.Client.Y);
}
break;
}
case 510://Glaive 2Hand
{
if (Attacker.Skills.ContainsKey((int)Struct.SkillIds.WideStrike))
{
NoTargetMagic(CSocket, (int)Struct.SkillIds.WideStrike, X, Y);
}
break;
}
case 561://Wand 2Hand
{
if (Attacker.Skills.ContainsKey((int)Struct.SkillIds.Snow))
{
NoTargetMagic(CSocket, (int)Struct.SkillIds.Snow, CSocket.Client.X, CSocket.Client.Y);
}
break;
}
case 560://Spear 2Hand
{
if (Attacker.Skills.ContainsKey((int)Struct.SkillIds.SpeedGun))
{
NoTargetMagic(CSocket, (int)Struct.SkillIds.SpeedGun, X, Y);
}
break;
}
case 530://Poleaxe 2Hand
{
if (Attacker.Skills.ContainsKey((int)Struct.SkillIds.Boreas))
{
NoTargetMagic(CSocket, (int)Struct.SkillIds.Boreas, X, Y);
}
break;
}
}
}
}
}
#endregion
u will need to copy/paste this 2wice , once at the player attacking player and once again at player attacking mob if u can't know where exactly to put them , let me know
then u will need to add a case for every skill at NoTargetMagic Void ,it is in the same file .
under the Herc case add your other weapons skills let's say u want Rage for example