Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 05:41

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

Advertisement



coemu item and i need help

Discussion on coemu item and i need help 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
coemu item and i need help

how i can add a item in coemu and in the database

and who can help me to finish the fatal strike




case 6011:
{
#region FatalStrike
Dictionary<int, int> Targets = new Dictionary<int, int>();
if (CSocket.Client.XPSkillList)
{
CSocket.Client.FatalStrike = true;
CSocket.Client.XPSkillList = false;
CSocket.Client.FatalStrikeActivated = DateTime.Now;
CSocket.Client.FatalStrikeTime = 30;
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);
if (DateTime.Now > CSocket.Client.FatalStrikeActivated.AddSeconds(CSo cket.Client.FatalStrikeTime) && CSocket.Client.FatalStrike == true)
{
int DamagePercent = CSocket.Client.MinAttack * 5 & CSocket.Client.MaxAttack * 5;
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;
Targets.Add(Monster.UID, MinusHP);
Calculation.doMonster(Monster, MinusHP, 2, CSocket);
ConquerPacket.ToLocal(ConquerPacket.Status(Monster .UID, 2, 2, Struct.StatusTypes.StatusEffect), Monster.X, Monster.Y, Monster.Map, 0, 0);
}
}
}
}
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;
Targets.Add(Guard.UID, MinusHP);
Calculation.doMonster(Guard, MinusHP, 2, CSocket);
ConquerPacket.ToLocal(ConquerPacket.Status(Guard.U ID, 2, 2, Struct.StatusTypes.StatusEffect), Guard.X, Guard.Y, Guard.Map, 0, 0);
}
}
}
}
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;
Targets.Add(Guard.UID, MinusHP);
Calculation.doPlayer(CSocket, Guard, MinusHP, 2);
ConquerPacket.ToLocal(ConquerPacket.Status(Guard.U ID, 2, 2, Struct.StatusTypes.StatusEffect), Guard.X, Guard.Y, Guard.Map, 0, 0);
}
}
}
}
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;
Guard.Poisoned = true;
Targets.Add(Guard.UID, MinusHP);
Calculation.doPlayer(CSocket, Guard, MinusHP, 2);
ConquerPacket.ToLocal(ConquerPacket.Status(Guard.U ID, 2, 2, Struct.StatusTypes.StatusEffect), Guard.X, Guard.Y, Guard.Map, 0, 0);
}
}
}
}
}
}
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
}
pedro93 is offline  
Reply


Similar Threads Similar Threads
[Suche] Komplette item.eix/epk, icon.eix/epk, item proto und item list
12/25/2010 - Metin2 Private Server - 6 Replies
Hey =) Wie die Überschrift schon sagt, suche ich eine komplette item.eix/epk, icon.eix/epk, item proto und item list am liebsten noch von den Waffen von .darki und den ganzen neuen Rüstungen/Schilden/Helmen, da ich überhaupt nicht weiß wie man dass zB mit der item proto macht und wenn ich sie einfach nur ersetze, wie zB durch die "Waffen" item proto von .darki sind die ganzen neuen Rüstungen weg .... Ich hoffe irgendjemand könnte das machen, weil es bestimmt nicht nur für mich hilfreich ist...
Item Level CoEmu
08/20/2009 - CO2 Private Server - 0 Replies
My MagicArtisan level's gear higher then you are... what is it i have to change... something is this region.. correct? if (CSocket.Client.Level <= Calculation.NextEquipLevel(itm.ItemID)) { itm.ItemID = Calculation.NextEquipLevel(itm.ItemID); } else ...
CoEmu Item Cost?
08/10/2009 - CO2 Private Server - 6 Replies
In CoEmu... how do i set the Item Cost... .. cause i added a item to shopping mall.. and i want it to cost cps
[HELP] CoEmu - Use item function
05/31/2009 - CO2 Private Server - 3 Replies
Hey. I make a class money bag. Have 1 problem. Here is my code: So what is my problem? Function Dont work how to fix it? please help me.



All times are GMT +1. The time now is 05:42.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.