|
المشاركات 1,941 |
+التقييم 0.99 |
تاريخ التسجيل Apr 2019 |
الاقامة Egypt |
نظام التشغيل windows 7 |
رقم العضوية 1 |
if (Kernel.Rate(Constants.ConquerPointsDropRate - lessrate))
if (Kernel.Rate(Constants.ConquerPointsDropRate - lessrate))
{
if (killer.EntityFlag == Game.EntityFlag.Player)
{
if (killer.Owner.Entity.VIPLevel == 0)
{
uint amount = (uint)Level / 1;
if (amount < 50)
amount = 50;
if (amount > 170)
amount = 170;
if (killer != null && killer.Owner != null)
{
uint ItemID = 729911;
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.ConquerPoints;
floorItem.Value = amount;
floorItem.ItemID = ItemID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
Map.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
}
else
{
#region VIP Area
byte VIP = killer.Owner.Entity.VIPLevel;
switch (VIP)
{
case 1:
{
uint amount = (uint)Level / 7;
if (amount < 10)
amount = 10;
if (killer != null && killer.Owner != null)
{
killer.Owner.Send(Constants.PickupConquerPoints(amount));
killer.ConquerPoints += (uint)amount;
return;
}
break;
}
case 2:
{
uint amount = (uint)Level / 6;
if (amount < 10)
amount = 10;
if (killer != null && killer.Owner != null)
{
killer.Owner.Send(Constants.PickupConquerPoints(amount));
killer.ConquerPoints += (uint)amount;
return;
}
break;
}
case 3:
{
uint amount = (uint)Level / 5;
if (amount < 10)
amount = 10;
if (amount > 100)
if (killer != null && killer.Owner != null)
{
killer.Owner.Send(Constants.PickupConquerPoints(amount));
killer.ConquerPoints += (uint)amount;
return;
}
break;
}
case 4:
{
uint amount = (uint)Level / 4;
if (amount < 10)
amount = 10;
if (killer != null && killer.Owner != null)
{
killer.Owner.Send(Constants.PickupConquerPoints(amount));
killer.ConquerPoints += (uint)amount;
return;
}
break;
}
case 5:
{
uint amount = (uint)Level / 3;
if (amount < 15)
amount = 15;
if (killer != null && killer.Owner != null)
{
killer.Owner.Send(Constants.PickupConquerPoints(amount));
killer.ConquerPoints += (uint)amount;
return;
}
break;
}
case 6:
{
uint amount = (uint)Level / 2;
if (amount < 20)
amount = 20;
if (killer != null && killer.Owner != null)
{
killer.Owner.Send(Constants.PickupConquerPoints(amount));
killer.ConquerPoints += (uint)amount;
return;
}
break;
}
}
#endregion
}
}
}
Constants.ConquerPointsDropRate
if (killer.EntityFlag == Game.EntityFlag.Entity)
{
if (killer.Owner.Player.VIPLevel == 0)
{
uint amount = (uint)Level / 1;
if (amount < 50)
amount = 50;
if (amount > 170)
amount = 170;
if (killer != null && killer.Owner != null)
{
uint ItemID = 721016;// 5 cps pag
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.ConquerPoints;
floorItem.Value = amount;
floorItem.ItemID = ItemID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
Map.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
}
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
طلب في الدروب | stevenayman1 | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2020-04-17 12:13 PM |
ازاي اعمل توب واخلي المكسب بتاعه هوا عباره عن Wings | Hassan Emprator | تطوير سيرفرات كونكر | 3 | 2019-11-18 01:19 AM |
بخصوص الحروب | xAttack | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-11-17 06:36 AM |
طلب بخصوص الدروب | osama | مشكلات السيرفيرات كونكر الشخصيه | 17 | 2019-07-01 10:16 PM |
خلي الدروب شنط | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-06-25 10:50 PM |