Register for your free account! | Forgot your password?

You last visited: Today at 02:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



luckytime

Discussion on luckytime within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 64
Received Thanks: 6
luckytime

case 9876:
{
#region LuckyTime
Dictionary<int, int> Targets = new Dictionary<int, int>();
Targets.Add(CSocket.Client.ID, 0);
CSocket.Client.LuckyTiming = DateTime.Now;
ConquerPacket.ToLocal(ConquerPacket.MagicAttack(CS ocket.Client.ID, Spell.ID, 0, Targets, CSocket.Client.X, CSocket.Client.Y), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
CSocket.Client.CastingPray = true;
CSocket.Client.Praying = false;
CSocket.Client.Action = 100;
CSocket.Client.LuckyTimeID = CSocket.Client.ID;
ConquerPacket.ToLocal(ConquerPacket.Status(CSocket , 2, 0, Struct.StatusTypes.StatusEffect), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
break;
#endregion
}














case 6001:
{
#region ToxicFog
Dictionary<int, int> Targets = new Dictionary<int, int>();
if (!CSocket.Client.Dead)
{
int DamagePercent = 10 + Spell.Level * 10;
foreach (ClientSocket ASocket in Nano.ClientPool.Values)
{
if (Calculation.InRange(ASocket.Client.X, ASocket.Client.Y, X, Y, 4))
{
if (CSocket.Client.ID != ASocket.Client.ID)
if (CheckMode(CSocket, ASocket, 6001))
{
int MinusHP = ASocket.Client.CurrentHP * DamagePercent / 100;
if (MinusHP <= 1)
continue;
Targets.Add(ASocket.Client.ID, MinusHP);
ASocket.Client.Poisoned = true;
ASocket.Client.Poison = new PoisonType(Spell.Level);
Calculation.doPlayer(CSocket, ASocket, 0, 2);
}
}
}
foreach (Monster Monster in Nano.Monsters.Values)
{
if (Monster.Map == (int)CSocket.Client.Map)
{
if (Monster.CurrentHP > 0)
{
if (Calculation.InRange(Monster.X, Monster.Y, X, Y, 4))
{
int MinusHP = Monster.CurrentHP * DamagePercent / 100;
if (MinusHP <= 1)
continue;
if (Nano.Guards.ContainsKey(Monster.UID))
continue;
Targets.Add(Monster.UID, MinusHP);
Monster.Poisoned = true;
Calculation.doMonster(Monster, 0, 2, CSocket);
ConquerPacket.ToLocal(ConquerPacket.Status(Monster .UID, 2, 2, Struct.StatusTypes.StatusEffect), Monster.X, Monster.Y, Monster.Map, 0, 0);
Monster.Poison = new PoisonType(Spell.Level);
}
}
}
}
foreach (Monster Guard in Nano.Guards.Values)
{
if (Guard.Map == (int)CSocket.Client.Map)
{
if (CSocket.Client.PKMode == Struct.PkType.PK || CSocket.Client.PKMode == Struct.PkType.Team)
{
if (Calculation.InRange(Guard.X, Guard.Y, X, Y, 4))
{
int MinusHP = Guard.CurrentHP * DamagePercent / 100;
if (MinusHP <= 1)
continue;
Guard.Poisoned = true;
Targets.Add(Guard.UID, MinusHP);
Calculation.doMonster(Guard, 0, 2, CSocket);
ConquerPacket.ToLocal(ConquerPacket.Status(Guard.U ID, 2, 2, Struct.StatusTypes.StatusEffect), Guard.X, Guard.Y, Guard.Map, 0, 0);
Guard.Poison = new PoisonType(Spell.Level);
}
}
}
}
foreach (SummonGuard Guard in Nano.SummonedGuards.Values)
{
if (Guard.Map == (int)CSocket.Client.Map)
{
if (CSocket.Client.Guard != null)
{
if (Guard.UID != CSocket.Client.Guard.UID)
{
if (CSocket.Client.PKMode == Struct.PkType.PK || CSocket.Client.PKMode == Struct.PkType.Team)
{
if (Calculation.InRange(Guard.X, Guard.Y, X, Y, 4))
{
int MinusHP = Guard.CurrentHP * DamagePercent / 100;
if (MinusHP <= 1)
continue;
Guard.Poisoned = true;
Targets.Add(Guard.UID, MinusHP);
Calculation.doPlayer(CSocket, Guard, 0, 2);
ConquerPacket.ToLocal(ConquerPacket.Status(Guard.U ID, 2, 2, Struct.StatusTypes.StatusEffect), Guard.X, Guard.Y, Guard.Map, 0, 0);
Guard.Poison = new PoisonType(Spell.Level);
}
}
}
}
else
{
if (CSocket.Client.PKMode == Struct.PkType.PK || CSocket.Client.PKMode == Struct.PkType.Team)
{
if (Calculation.InRange(Guard.X, Guard.Y, X, Y, 4))
{
int MinusHP = Guard.CurrentHP * DamagePercent / 100;
if (MinusHP <= 1)
continue;
Guard.Poisoned = true;
Targets.Add(Guard.UID, MinusHP);
Calculation.doPlayer(CSocket, Guard, 0, 2);
ConquerPacket.ToLocal(ConquerPacket.Status(Guard.U ID, 2, 2, Struct.StatusTypes.StatusEffect), Guard.X, Guard.Y, Guard.Map, 0, 0);
Guard.Poison = new PoisonType(Spell.Level);
}
}
}
}
}
ConquerPacket.ToLocal(ConquerPacket.MagicAttack(CS ocket.Client.ID, Spell.ID, Spell.Level, Targets, X, Y), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
}
break;
#endregion
}




i dont know if this is ok
pedro93 is offline  
Reply


Similar Threads Similar Threads
*New* Luckytime Edits
10/13/2009 - CO2 Weapon, Armor, Effects & Interface edits - 20 Replies
Hatchetman & Bud Luckytime Edits (Files) 1. Hatchetman Luckytime Versions 1 & 2 + Bonus audio clip 2. Bud Luckytime Version 1 (Bonus Audio Clip) You can use it to replace the original luckytime sound if you prefer..
[help]luckytime
09/29/2009 - CO2 Private Server - 2 Replies
hi does anyone have a guide/release how to add the skill bless (luckytime) into a 5017 source like mine (Powerco Source) ty
Luckytime & Vigro
06/29/2009 - CO2 Weapon, Armor, Effects & Interface edits - 13 Replies
Luckytime & Vigor Screenshots ======================= (Luckytime) http://i44.tinypic.com/kd5zxs.jpg (Vigor) Looks better full scale in game http://i44.tinypic.com/s309ch.jpg
[Help]Having a problem with LuckyTime
05/05/2009 - CO2 Private Server - 5 Replies
After edited some things in the source i tryed to use LuckyTime it works, i tryed to jump,move and luckytime stay =// I hope some one can help. Found the problem.
LuckyTime Bug!
01/27/2007 - Conquer Online 2 - 4 Replies
Hey you guys MAY you know the luckytime bug if the owner of luckytime casts it and 3 ppl sit on him (stackin) the first 2 on him will still get luckytime.. BUTTTTTT theres another bug .. you can cast luckytime in TG just use luckytime and press fastly sit (hotkey it) YOU can make lvl 80- fire taos stop attacking stakes^^ i did it many times buhaha enemy guilds ;D (YOU CAN ONLY MAKE EM STOP IF THEY GOT LVL 2- FIRECIRCLE AND USIN IT) enjoy~~ (i jus wanna share with u guys ok^^?)



All times are GMT +2. The time now is 02:08.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.