|
You last visited: Today at 18:13
Advertisement
[Question]5119 Skills
Discussion on [Question]5119 Skills within the CO2 Private Server forum part of the Conquer Online 2 category.
01/23/2010, 02:39
|
#31
|
elite*gold: 0
Join Date: Oct 2007
Posts: 181
Received Thanks: 68
|
Quote:
Originally Posted by .Ryu
@
Sion~
Haha look
Code:
public void Use()
{
try
{
uint Exp = 0;
foreach (DictionaryEntry DE in MiscTargets)
{
uint EntityID = (uint)DE.Key;
uint Damage = (uint)DE.Value;
if (EntityID == 6700)
GuildWars.ThePole.TakeAttack(User, Damage, 21);
if (EntityID == 6701)
GuildWars.TheLeftGate.TakeAttack(User, Damage, 21);
if (EntityID == 6702)
GuildWars.TheRightGate.TakeAttack(User, Damage, 21);
}
@Korvacs haha you are a very good helper :P
Ok so this is what i found so im guessing this is where i code them
Code:
case ExtraEffect.FatalStrike:
{
if (C.StatEff.Contains(StatusEffectEn.Ride))
{
C.StatEff.Remove(StatusEffectEn.Ride);
}
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.FatalStrike;
C.AddBuff(B);
break;
}
|
Actually I said the exact same thing..
This is the entire use method.
Code:
public void Use()
{
try
{
Game.World.Action(User, Packets.SkillUse(this).Get);
uint Exp = 0;
foreach (DictionaryEntry DE in MiscTargets)
{
uint EntityID = (uint)DE.Key;
uint Damage = (uint)DE.Value;
if (EntityID == 6700)
GuildWars.ThePole.TakeAttack(User, Damage, 21);
if (EntityID == 6701)
GuildWars.TheLeftGate.TakeAttack(User, Damage, 21);
if (EntityID == 6702)
GuildWars.TheRightGate.TakeAttack(User, Damage, 21);
}
foreach (DictionaryEntry DE in MobTargets)
{
Mob M = (Mob)DE.Key;
uint Damage = (uint)DE.Value;
if (Info.Damageing != DamageType.HealHP)
{
if (Info.Damageing == DamageType.Ranged)
Exp += M.TakeAttack(User, Damage, AttackType.Ranged, true);
else if (Info.Damageing == DamageType.Melee)
Exp += M.TakeAttack(User, Damage, AttackType.Melee, true);
else
Exp += M.TakeAttack(User, Damage, AttackType.Magic, true);
}
else
{
Exp += Damage;
M.CurrentHP += Damage;
if (M.CurrentHP > M.MaxHP) M.CurrentHP = M.MaxHP;
}
}
foreach (DictionaryEntry DE in NPCTargets)
{
NPC N = (NPC)DE.Key;
uint Damage = (uint)DE.Value;
if (Info.Damageing != DamageType.HealHP)
{
if (Info.Damageing == DamageType.Ranged)
Exp += N.TakeAttack(User, Damage, AttackType.Ranged, true);
else if (Info.Damageing == DamageType.Melee)
Exp += N.TakeAttack(User, Damage, AttackType.Melee, true);
else
Exp += N.TakeAttack(User, Damage, AttackType.Magic, true);
}
else
{
N.CurHP += Damage;
if (N.CurHP > N.MaxHP) N.CurHP = N.MaxHP;
Exp += Damage / 10;
}
}
foreach (DictionaryEntry DE in PlayerTargets)
{
Character C = (Character)DE.Key;
uint Damage = (uint)DE.Value;
if (Info.Damageing != DamageType.HealHP && Info.Damageing != DamageType.HealMP)
{
if (Info.ExtraEff == ExtraEffect.None)
{
if (Info.Damageing == DamageType.Ranged)
C.TakeAttack(User, Damage, AttackType.Ranged, true);
else if (Info.Damageing == DamageType.Melee)
C.TakeAttack(User, Damage, AttackType.Melee, true);
else
C.TakeAttack(User, Damage, AttackType.Magic, true);
}
else Exp = Damage;
}
else
Exp = Damage;
switch (Info.ExtraEff)
{
case ExtraEffect.Summon:
{
if (User.MyCompanion != null) User.MyCompanion.Dissappear();
User.MyCompanion = new Game.Companion(User, Info.Damage);
break;
}
case ExtraEffect.RemoveFly:
{
Buff B = C.BuffOf(ExtraEffect.Fly);
if (B.Eff == ExtraEffect.Fly)
C.RemoveBuff(B);
break;
}
case ExtraEffect.Transform:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Transform = Info.Damage;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Normal;
C.AddBuff(B);
break;
}
case ExtraEffect.Fly:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Fly;
C.AddBuff(B);
break;
}
case ExtraEffect.Revive:
{
C.Ghost = false;
C.BlueName = false;
C.CurHP = (ushort)C.MaxHP;
C.Alive = true;
C.StatEff.Clear();
C.PKPoints = C.PKPoints;
C.Body = C.Body;
C.Hair = C.Hair;
C.Equips.Send(C.MyClient, false);
World.Spawn(C, false);
break;
}
case ExtraEffect.FatalStrike:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.FatalStrike;
C.AddBuff(B);
break;
}
case ExtraEffect.ShurikenVortex:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.ShurikenVortex;
C.AddBuff(B);
break;
}
case ExtraEffect.Stigma:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Stigma;
C.AddBuff(B);
break;
}
case ExtraEffect.MagicShield:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Shield;
C.AddBuff(B);
break;
}
case ExtraEffect.Invisibility:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Invisible;
C.AddBuff(B);
break;
}
case ExtraEffect.Accuracy:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Accuracy;
C.AddBuff(B);
break;
}
case ExtraEffect.Cyclone:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Cyclone;
if (C.BuffOf(ExtraEffect.Cyclone).Eff != ExtraEffect.Cyclone)
C.TotalKO = 0;
C.AddBuff(B);
break;
}
case ExtraEffect.Superman:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.SuperMan;
if (C.BuffOf(ExtraEffect.Superman).Eff != ExtraEffect.Superman)
C.TotalKO = 0;
C.AddBuff(B);
break;
}
}
}
Exp += 1;
if (User.Loc.Map != 1039)
{
User.IncreaseExp(Exp);
User.AddSkillExp(Info.ID, Exp);
}
else
{
User.IncreaseExp(Exp / 10);
User.AddSkillExp(Info.ID, Exp / 10);
}
}
catch (Exception Exc) { Console.WriteLine(Exc); }
}
}
|
|
|
01/23/2010, 02:46
|
#32
|
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
|
Quote:
Originally Posted by Sion~
Actually I said the exact same thing..
This is the entire use method.
Code:
public void Use()
{
try
{
Game.World.Action(User, Packets.SkillUse(this).Get);
uint Exp = 0;
foreach (DictionaryEntry DE in MiscTargets)
{
uint EntityID = (uint)DE.Key;
uint Damage = (uint)DE.Value;
if (EntityID == 6700)
GuildWars.ThePole.TakeAttack(User, Damage, 21);
if (EntityID == 6701)
GuildWars.TheLeftGate.TakeAttack(User, Damage, 21);
if (EntityID == 6702)
GuildWars.TheRightGate.TakeAttack(User, Damage, 21);
}
foreach (DictionaryEntry DE in MobTargets)
{
Mob M = (Mob)DE.Key;
uint Damage = (uint)DE.Value;
if (Info.Damageing != DamageType.HealHP)
{
if (Info.Damageing == DamageType.Ranged)
Exp += M.TakeAttack(User, Damage, AttackType.Ranged, true);
else if (Info.Damageing == DamageType.Melee)
Exp += M.TakeAttack(User, Damage, AttackType.Melee, true);
else
Exp += M.TakeAttack(User, Damage, AttackType.Magic, true);
}
else
{
Exp += Damage;
M.CurrentHP += Damage;
if (M.CurrentHP > M.MaxHP) M.CurrentHP = M.MaxHP;
}
}
foreach (DictionaryEntry DE in NPCTargets)
{
NPC N = (NPC)DE.Key;
uint Damage = (uint)DE.Value;
if (Info.Damageing != DamageType.HealHP)
{
if (Info.Damageing == DamageType.Ranged)
Exp += N.TakeAttack(User, Damage, AttackType.Ranged, true);
else if (Info.Damageing == DamageType.Melee)
Exp += N.TakeAttack(User, Damage, AttackType.Melee, true);
else
Exp += N.TakeAttack(User, Damage, AttackType.Magic, true);
}
else
{
N.CurHP += Damage;
if (N.CurHP > N.MaxHP) N.CurHP = N.MaxHP;
Exp += Damage / 10;
}
}
foreach (DictionaryEntry DE in PlayerTargets)
{
Character C = (Character)DE.Key;
uint Damage = (uint)DE.Value;
if (Info.Damageing != DamageType.HealHP && Info.Damageing != DamageType.HealMP)
{
if (Info.ExtraEff == ExtraEffect.None)
{
if (Info.Damageing == DamageType.Ranged)
C.TakeAttack(User, Damage, AttackType.Ranged, true);
else if (Info.Damageing == DamageType.Melee)
C.TakeAttack(User, Damage, AttackType.Melee, true);
else
C.TakeAttack(User, Damage, AttackType.Magic, true);
}
else Exp = Damage;
}
else
Exp = Damage;
switch (Info.ExtraEff)
{
case ExtraEffect.Summon:
{
if (User.MyCompanion != null) User.MyCompanion.Dissappear();
User.MyCompanion = new Game.Companion(User, Info.Damage);
break;
}
case ExtraEffect.RemoveFly:
{
Buff B = C.BuffOf(ExtraEffect.Fly);
if (B.Eff == ExtraEffect.Fly)
C.RemoveBuff(B);
break;
}
case ExtraEffect.Transform:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Transform = Info.Damage;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Normal;
C.AddBuff(B);
break;
}
case ExtraEffect.Fly:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Fly;
C.AddBuff(B);
break;
}
case ExtraEffect.Revive:
{
C.Ghost = false;
C.BlueName = false;
C.CurHP = (ushort)C.MaxHP;
C.Alive = true;
C.StatEff.Clear();
C.PKPoints = C.PKPoints;
C.Body = C.Body;
C.Hair = C.Hair;
C.Equips.Send(C.MyClient, false);
World.Spawn(C, false);
break;
}
case ExtraEffect.FatalStrike:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.FatalStrike;
C.AddBuff(B);
break;
}
case ExtraEffect.ShurikenVortex:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.ShurikenVortex;
C.AddBuff(B);
break;
}
case ExtraEffect.Stigma:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Stigma;
C.AddBuff(B);
break;
}
case ExtraEffect.MagicShield:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Shield;
C.AddBuff(B);
break;
}
case ExtraEffect.Invisibility:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Invisible;
C.AddBuff(B);
break;
}
case ExtraEffect.Accuracy:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Accuracy;
C.AddBuff(B);
break;
}
case ExtraEffect.Cyclone:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Cyclone;
if (C.BuffOf(ExtraEffect.Cyclone).Eff != ExtraEffect.Cyclone)
C.TotalKO = 0;
C.AddBuff(B);
break;
}
case ExtraEffect.Superman:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.SuperMan;
if (C.BuffOf(ExtraEffect.Superman).Eff != ExtraEffect.Superman)
C.TotalKO = 0;
C.AddBuff(B);
break;
}
}
}
Exp += 1;
if (User.Loc.Map != 1039)
{
User.IncreaseExp(Exp);
User.AddSkillExp(Info.ID, Exp);
}
else
{
User.IncreaseExp(Exp / 10);
User.AddSkillExp(Info.ID, Exp / 10);
}
}
catch (Exception Exc) { Console.WriteLine(Exc); }
}
}
|
I was talking to both of you lol
|
|
|
 |
|
Similar Threads
|
just a question about skills
02/18/2010 - 12Sky2 - 4 Replies
you know how you do the speed hack and on top you have a lute/marble/scepter skill that increases your speed, and since you can change how much speed it gives you, couldn't you do that for other skills? like HS or HB
|
[Question]skills
01/25/2010 - CO2 Private Server - 4 Replies
where do u code the skills into i have the skills added into the skilladder but where do u code the effect of the skill like reflect
does anyone know the StatusEffectEn for reflect
|
Question About skills
06/18/2009 - 12Sky2 - 2 Replies
I was wondering if its possible to get lets say katana buff called rigid winds working with double blades. Or dantes fire wall with katana. I dont think the combination would be server sided so id think id be possible to hack it wouldnt it?
|
[Question] New Skills
04/16/2009 - CO2 Private Server - 2 Replies
Hey guys,
How would I create a new skill, what would be involved in doing this?
I want to create a Taoist skill called "freeze". I know the Axe skill freezes a person for a short period of time, so maybe one could use this...
Any help is appreciated, as always.
|
Question Regarding Skills
02/12/2006 - Conquer Online 2 - 2 Replies
Ok when CO2 first came in i learned all the 2H skills being a tao so i can have something to do, but they just seem to take up alot of space so is there a way to rearrange them?. so on my top list i can have like my Dances SS and FB up top and on the second colum where you can scroll down all the Useless 2h skill symbols.
Sorry for not being able to explain this well.
And thank you all for any help in the Subject.
|
All times are GMT +1. The time now is 18:14.
|
|