|
|
public void Send(IPacket buffer)
{
Send(buffer.ToArray());
}
public void Die(Entity killer)
{
try
{
#region Unique Killer
if (EntityFlag == EntityFlag.Entity && killer.EntityFlag == EntityFlag.Entity)
{
if (killer.MapID == 2014)
{
if (killer.MapID == 2014)
{
killer.Owner.uniquepoints += 1;
if (killer.Owner.uniquepoints >= 20)
{
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Congratulations, You Have Now " + killer.Owner.uniquepoints + " Points you can claim your prize now!");
npc.OptionID = 255;
killer.Owner.Send(npc.ToArray());
}
else
{
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "You Have Now " + killer.Owner.uniquepoints + " Points Congratz you still need " + (20 - killer.Owner.uniquepoints) + " more!");
npc.OptionID = 255;
killer.Owner.Send(npc.ToArray());
}
}
}
#endregion
killer.AddFlag(Network.GamePackets.Update.Flags.Cursed);
killer.Owner.Send(update.ToArray());
public byte[] ToArray()
{
return Buffer;
}
public void send(ipacket buffer)
{
send(buffer.toarray());
}
public void die(entity killer)
{
try
{
#region unique killer
if (entityflag == entityflag.entity && killer.entityflag == entityflag.entity)
{
if (killer.mapid == 2014)
{
if (killer.mapid == 2014)
{
killer.owner.uniquepoints += 1;
if (killer.owner.uniquepoints >= 20)
{
network.gamepackets.npcreply npc = new network.gamepackets.npcreply(6, "congratulations, you have now " + killer.owner.uniquepoints + " points you can claim your prize now!");
npc.optionid = 255;
killer.owner.send(npc.toarray());
}
else
{
network.gamepackets.npcreply npc = new network.gamepackets.npcreply(6, "you have now " + killer.owner.uniquepoints + " points congratz you still need " + (20 - killer.owner.uniquepoints) + " more!");
npc.optionid = 255;
killer.owner.send(npc.toarray());
}
}
}
#endregion
killer.addflag(network.gamepackets.update.flags.cursed);
killer.owner.send(update.toarray());
public byte[] toarray()
{
return buffer;
}
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
تحميل سورس اخر اصدار من Conquer Online 2D | ElSaher | سورسات كونكر | 212 | اليوم 06:43 AM |
مشكله بسورس mr.online | mahmeod | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2020-05-03 10:51 AM |
مشكلة في السورس اللي نزلوا MR Online | stevenayman1 | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2020-03-20 04:00 AM |
zoro-online.com سهل | hamza | اعلانات السيرفيرات الشخصية | 1 | 2020-03-05 08:50 PM |
طلب Online-Points | ElSaher | مشكلات السيرفيرات كونكر الشخصيه | 9 | 2019-08-25 03:23 PM |