|
المشاركات 454 |
+التقييم 0.23 |
تاريخ التسجيل Jun 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 271 |
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;
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
حاجه كدا بخصوص البروكسي | zonfor | تطوير سيرفرات كونكر | 31 | 2024-09-29 06:25 PM |
مشكله ف الاحياء (revive) | Adel Abd El Hay | مشكلات السيرفيرات كونكر الشخصيه | 23 | 2021-09-06 03:01 PM |
حاجه بخصوص اليفل | uncelsam | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-07-11 03:29 PM |
حاجه بسيطه هنا ع السريع لو سمحتو | uncelsam | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-07-06 06:05 PM |
حاجه بخصوص npc | uncelsam | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-07-06 04:24 PM |