|
المشاركات 9 |
+التقييم 0.00 |
تاريخ التسجيل Jul 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 350 |
if (killer.owner.player.viplevel >= 4)
{
killer.conquerpoints += 1000;
}else
#region EgyArmy[EG] Drop System
#region Easy Drop [- 5 and 10 Cps And Metor]
if (killer != null && killer.PlayerFlag == Game.PlayerFlag.Player)
{
byte times = (byte)Kernel.Random.Next(1, 1);
byte ref_times = (byte)Kernel.Random.Next(1, 60);
for (byte i = 0; i < times; i++)
{
uint Uid = 0;
byte type = (byte)Kernel.Random.Next(1, 60);
switch (type)
{
case 1: Uid = 721016; break;// 5 cps pag
case 2: Uid = 721016; break;// 5 cps pag
case 3: Uid = 721017; break;// 10cps pag
case 4: Uid = 721017; break;// 10cps pag
case 5: Uid = 1088001; break; // Metor
}
if (Uid != 0)
{
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.MsgMapItem floorItem = new Network.GamePackets.MsgMapItem(true);
floorItem.Item = new Network.GamePackets.MsgItemInfo(true);
floorItem.Item.Color = (Game.Enums.Color)Kernel.Random.Next(4, 60);
floorItem.Item.ID = Uid;
floorItem.Item.MaximDurability = floorItem.Item.Durability = 65535;
floorItem.Item.UID = Network.GamePackets.MsgItemInfo.ItemUID.Next;
floorItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Item;
floorItem.ItemID = Uid;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.MsgMapItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
}
}
#endregion
#region Medium Drob [+ 25 CPS And ExpBall(Event)]
if (killer != null && killer.PlayerFlag == Game.PlayerFlag.Player)
{
byte times = (byte)Kernel.Random.Next(1, 1);
byte ref_times = (byte)Kernel.Random.Next(1, 120);
for (byte i = 0; i < times; i++)
{
uint Uid = 0;
byte type = (byte)Kernel.Random.Next(1, 120);
switch (type)
{
case 1: Uid = 721019; break;// 25 cps pag
case 3: Uid = 723911; break;// ExpBall(Event)
}
if (Uid != 0)
{
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.MsgMapItem floorItem = new Network.GamePackets.MsgMapItem(true);
floorItem.Item = new Network.GamePackets.MsgItemInfo(true);
floorItem.Item.Color = (Game.Enums.Color)Kernel.Random.Next(1, 100);
floorItem.Item.ID = Uid;
floorItem.Item.MaximDurability = floorItem.Item.Durability = 65535;
floorItem.Item.UID = Network.GamePackets.MsgItemInfo.ItemUID.Next;
floorItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Item;
floorItem.ItemID = Uid;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.MsgMapItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
}
}
#endregion
#region Very Hard Drop [+ DB ]
if (killer != null && killer.PlayerFlag == Game.PlayerFlag.Player)
{
byte times = (byte)Kernel.Random.Next(1, 1);
byte ref_times = (byte)Kernel.Random.Next(1, 280);
for (byte i = 0; i < times; i++)
{
uint Uid = 0;
byte type = (byte)Kernel.Random.Next(1, 280);
switch (type)
{
case 1: Uid = 1088000; break;// dragonBall
}
if (Uid != 0)
{
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.MsgMapItem floorItem = new Network.GamePackets.MsgMapItem(true);
floorItem.Item = new Network.GamePackets.MsgItemInfo(true);
floorItem.Item.Color = (Game.Enums.Color)Kernel.Random.Next(1, 100);
floorItem.Item.ID = Uid;
floorItem.Item.MaximDurability = floorItem.Item.Durability = 65535;
floorItem.Item.UID = Network.GamePackets.MsgItemInfo.ItemUID.Next;
floorItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Item;
floorItem.ItemID = Uid;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.MsgMapItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
}
}
#endregion
// VIP Cps Drop
#region Drop Cps VIP 4
if (killer.VIPLevel == 4 || killer.VIPLevel == 5 || killer.VIPLevel == 6)
if (Kernel.Rate(100))
{
Random R = new Random();
int Nr = R.Next(1, 5);
if (Nr == 1)
{
byte type = (byte)Kernel.Random.Next(1, 80);
killer.ConquerPoints += 5;
//killer.Owner.LoadItemStats();
killer.Owner.Send(new Network.GamePackets.MsgTalk(" You have got 5 Cps #38#37#37 .", System.Drawing.Color.DarkBlue, 255));
}
if (Nr == 2)
{
byte type = (byte)Kernel.Random.Next(1, 120);
killer.ConquerPoints += 10;
killer.Owner.LoadItemStats();
killer.Owner.Send(new Network.GamePackets.MsgTalk(" You have got 10 Cps #38#37#37 .", System.Drawing.Color.DarkBlue, 255));
}
if (Nr == 3)
{
byte type = (byte)Kernel.Random.Next(1, 120);
killer.ConquerPoints += 10;
// killer.Owner.LoadItemStats();
killer.Owner.Send(new Network.GamePackets.MsgTalk(" You have got 10 Cps #38#37#37 .", System.Drawing.Color.DarkBlue, 255));
}
if (Nr == 4)
{
byte type = (byte)Kernel.Random.Next(1, 180);
killer.ConquerPoints += 25;
//killer.Owner.LoadItemStats();
killer.Owner.Send(new Network.GamePackets.MsgTalk(" You have got 25 Cps #38#37#37 .", System.Drawing.Color.DarkBlue, 255));
}
if (Nr == 5)
{
killer.ConquerPoints += 200;
// killer.Owner.LoadItemStats();
killer.Owner.Send(new Network.GamePackets.MsgTalk(" You have got 200 Cps #38#37#37 .", System.Drawing.Color.DarkBlue, 255));
}
}
#endregion
#endregion
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
سورس Rayzo V1 | Users | سورسات كونكر | 262 | 2024-10-27 09:28 AM |
شرح تشغيل وتركيب سورس Rayzo v1 واى سورس تانى | Users | تطوير سيرفرات كونكر | 27 | 2024-08-10 02:10 PM |
مشكلة في سورس mr rayzo v4 | kingtute | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2021-08-09 11:30 PM |
حل مشكلة الاسكلات و نزول الريبورن و سكند سورس Rayzo | Circle | تطوير سيرفرات كونكر | 13 | 2019-10-21 01:15 PM |
حل مشكلة الحوش وان بى سهات فى سورس Rayzo v2 | coderconquer | تطوير سيرفرات كونكر | 8 | 2019-09-26 08:07 PM |