|
|
public byte GetJiangLevelValue(
byte num = (byte)Kernel.Rand.Next(1, 5);
#region TreasureBox
if ((Now64.Hour == 1) || (Now64.Hour == 15))
{
Kernel.SendWorldMessage(new Message("The Lost Cps city began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("The Lost Cps city began! Would you like to join?",
p => { p.Entity.Teleport(1002, 297, 268); }, null, 20);
}
if ((Now64.Hour == 2) || (Now64.Hour == 16))
{
foreach (var client in Program.GamePool)
if (client.Entity.MapID == 3829)
client.Entity.Teleport(1002, 300, 278);
Kernel.SendWorldMessage(new Message("The Lost Cps city has ended!", Color.Red, Message.Center));
}
#endregion
case 25371:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
if ((Now64.Hour == 2) || (Now64.Hour == 16))
{
client.Entity.Teleport(3829, 50, 70);
}
else
{
dialog.Text("Sorry it is not the time for the event!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
}
break;
}
if (Name == "asm el w7s" && killer.MapID == 3829)
{
if (Kernel.Rate(80, 100))
{
uint ItemID ;
Random R = new Random();
int Nr = R.Next(1, 3);
[COLOR="red"]
if (Nr == 1) ItemID = 3003340;
if (Nr == 2) ItemID = 3003340;
if (Nr == 3) ItemID = 3003340;
[/COLOR]
var infos = Database.ConquerItemInformation.BaseInformations[ItemID];
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.Item = new Network.GamePackets.ConquerItem(true);
floorItem.Item.Color = (KhaledMohamed.Game.Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = ItemID;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MaximDurability = infos.Durability;
floorItem.Item.Durability = infos.Durability;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
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.ItemColor = floorItem.Item.Color;
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);
}
killer.Owner.Send(new Network.GamePackets.Message("Wow ! You Killed the " + Name + " and Dropped cps pack ! Keep Going !", System.Drawing.Color.Blue, 2005));
return;
}
}
case 729304:
{
if (client.Inventory.Contains(729304, 1))
{
uint cps = 500;
client.Entity.ConquerPoints += cps;
client.Send(new Message("You received " + cps + " Cps from opening packet!", Color.Red, Message.System));
client.Inventory.Remove(item.ID, 1);
}
else
{
client.MessageBox("Sorry u do not have the packet");
}
break;
}
if (Nr == 1) ItemID = 3003340;
if (Nr == 2) ItemID = 3003340;
if (Nr == 3) ItemID = 3003340;
if (Name == "asm el w7s" && killer.MapID == 3829)
{
if (Kernel.Rate(80, 100))
{
uint ItemID ;
Random R = new Random();
int Nr = R.Next(1, 3);
if (Nr == 1) ItemID = 3003340;
if (Nr == 2) ItemID = 3003340;
if (Nr == 3) ItemID = 3003340;
var infos = Database.ConquerItemInformation.BaseInformations[ItemID];
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.Item = new Network.GamePackets.ConquerItem(true);
floorItem.Item.Color = (KhaledMohamed.Game.Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = ItemID;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MaximDurability = infos.Durability;
floorItem.Item.Durability = infos.Durability;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
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.ItemColor = floorItem.Item.Color;
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);
}
killer.Owner.Send(new Network.GamePackets.Message("Wow ! You Killed the " + Name + " and Dropped cps pack ! Keep Going !", System.Drawing.Color.Blue, 2005));
return;
}
}
public byte GetValueLevel(ushort val)
{
return (byte)((val - (ushort)(val % 256)) / 256);
}
public byte GetStatusLevel(
byte first = (byte)Random.Next(1, 6);
if (Name == "asm el w7s" && killer.MapID == 3829)
{
if (Kernel.Rate(80, 100))
{
uint ItemID = (uint)Kernel.RandFromGivingNums(3004121, 191905, 730003, 723712);
var infos = Database.ConquerItemInformation.BaseInformations[ItemID];
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.Item = new Network.GamePackets.ConquerItem(true);
floorItem.Item.Color = (KhaledMohamed.Game.Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = ItemID;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MaximDurability = infos.Durability;
floorItem.Item.Durability = infos.Durability;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
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.ItemColor = floorItem.Item.Color;
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);
}
killer.Owner.Send(new Network.GamePackets.Message("Wow ! You Killed the " + Name + " and Dropped cps pack ! Keep Going !", System.Drawing.Color.Blue, 2005));
return;
}
}
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
حل ضروري | karem010 | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-05-12 09:27 PM |
يوزر في بي اس ضرورى | zonfor | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-03-20 04:38 PM |
طلب اخير يجماعة من فضلكو | osama | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2020-03-17 01:53 PM |
طلب صغير يجماعة | osama | مشكلات السيرفيرات كونكر الشخصيه | 8 | 2019-07-28 05:07 AM |
مشكلة فى الجانج يجماعة | osama | مشكلات السيرفيرات كونكر الشخصيه | 16 | 2019-07-23 01:43 AM |