|
المشاركات 1,940 |
+التقييم 0.95 |
تاريخ التسجيل Apr 2019 |
الاقامة https://www.facebook.com/daany |
نظام التشغيل |
رقم العضوية 1 |
#region TeratoDragon
#region JewelsEvent
#region RoaringSnake
if (Name == "RoaringSnake" && killer.MapID == 9876)
{
if (Kernel.Rate(30, 1000))
{
if (killer.VIPLevel == 6)
{
if (killer.Owner.Inventory.Count != 40)
{
Random Nr = new Random();
int R = Nr.Next(0, 4);
if (R == 1)
{
killer.Owner.Inventory.Add(3200725, 0, 1);
killer.Owner.Send("You have got 1 JewelSuper in your inventory.");
}
if (R == 2)
{
killer.Owner.Inventory.Add(3200726, 0, 1);
killer.Owner.Send("You have got 1 JewelUltra in your inventory.");
}
if (R == 3)
{
killer.Owner.Inventory.Add(3200727, 0, 1);
killer.Owner.Send("You have got 1 JewelEpic in your inventory.");
}
}
else
{
killer.Owner.Send("Your Inventory is full, remove some place to cann add Jewel items.");
}
return;
}
else
{
uint Uid = 0;
byte type = 3;
for (int i = 0; i < 1; i++)
{
type = (byte)Kernel.Random.Next(1, 3);
switch (type)
{
case 1:
Uid = 3200725;
break;
case 2:
Uid = 3200726;
break;
case 3:
Uid = 3200727;
break;
}
var infos = Database.ConquerItemInformation.BaseInformations[Uid];
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 ConquerItem(true);
floorItem.Item.Color = (Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = Uid;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = Uid;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time64.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("" + killer.Name + " killed " + Name + " and dropped [" + infos.Name + "].", System.Drawing.Color.Red, Message.Talk));
}
}
return;
}
}
}
#endregion
#region JewelsBoss
if (Name == "JewelsBoss")
{
if (!killer.ContainsFlag3((ulong)Update.Flags3.AutoHunting))
{
if (killer.VIPLevel == 6)
{
if (killer.Owner.Inventory.Count != 40)
{
Random Nr = new Random();
int R = Nr.Next(0, 4);
if (R == 1)
{
killer.Owner.Inventory.Add(3200725, 0, 1);
killer.Owner.Send("You have got 1 JewelSuper in your inventory.");
}
if (R == 2)
{
killer.Owner.Inventory.Add(3200726, 0, 1);
killer.Owner.Send("You have got 1 JewelUltra in your inventory.");
}
if (R == 3)
{
killer.Owner.Inventory.Add(3200727, 0, 1);
killer.Owner.Send("You have got 1 JewelEpic in your inventory.");
}
}
else
{
killer.Owner.Send("Your Inventory is full, remove some place to cann add Jewel items.");
}
return;
}
else
{
uint Uid = 0;
byte type = 3;
for (int i = 0; i < 1; i++)
{
type = (byte)Kernel.Random.Next(1, 3);
switch (type)
{
case 1:
Uid = 3200725;
break;
case 2:
Uid = 3200726;
break;
case 3:
Uid = 3200727;
break;
}
var infos = Database.ConquerItemInformation.BaseInformations[Uid];
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 ConquerItem(true);
floorItem.Item.Color = (Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = Uid;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = Uid;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time64.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);
Message.WorldMessage(infos.Name + " Has been dropped by " + killer.Name + " at JewelsEvent.");
}
}
return;
}
}
}
#endregion
#endregion
#region JewelEvent
case 5241:
{
dialog.Avatar(357);
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hi Mr, " + client.Entity.Name + ", Your welcome in JewelEvent.. Did you want to join?");
dialog.Option("Enter.", 1);
dialog.Option("Informations.", 2);
dialog.Option("No, thanks", 255);
dialog.Send();
break;
}
case 1:
{
client.Entity.Teleport(9876, 250, 250);
client.Send("Note: There is no hunting here.");
break;
}
case 2:
{
dialog.Text("There is some info about this event.");
dialog.Text("\nCollect [20] FlarePack from JewelBoss to receive 200,000 CPS.");
dialog.Text("\nCollect [10] RefineryBadge from JewelBoss to receive Lv6 SacredRefinery.");
dialog.Text("\nCollect [5] NirvanaBox from JewelBoss to receive 50,000 CPS.");
dialog.Option("Ok, thanks", 255);
dialog.Send();
break;
}
}
break;
}
#endregion
region Merchant
#region +2StonePack
#region JewelEvent
#region JewelEpic
case 3200727:
{
if (client.Inventory.Contains(3200727, 20))
{
client.Inventory.Remove(3200727, 20);
client.Entity.ConquerPoints += 200000;
Message.WorldMessage("Congratulations, " + client.Entity.Name + " Unlocked 20 JewelEpic and received 200,000 CP`s.");
}
else
{
client.Send("You don't have 20 JewelEpic to unlock this box.");
}
break;
}
#endregion
#region JewelUltra
case 3200726:
{
if (client.Inventory.Contains(3200726, 10))
{
client.Inventory.Remove(3200726, 10);
client.Inventory.Add(3004249, 0, 1);
Message.WorldMessage("Congratulations, " + client.Entity.Name + " Unlocked 10 JewelSuper and received Lv6 SacredRefinery.");
}
else
{
client.Send("You don't have 10 JewelSuper to unlock this box.");
}
break;
}
#endregion
#region JewelSuper
case 3200725:
{
if (client.Inventory.Contains(3200725, 5))
{
client.Inventory.Remove(3200725, 5);
client.Entity.ConquerPoints += 50000;
Message.WorldMessage("Congratulations, " + client.Entity.Name + " Unlocked 5 JewelSuper and received 50,000 CP`s.");
}
else
{
client.Send("You don't have 5 JewelSuper to unlock this box.");
}
break;
}
#endregion
#endregion
client.Entity.ConquerPoints += 50000;
client.Inventory.Add(3004249, 0, 1);
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
لاول مره علي الانترنت كوست TowerOfMystery | Hassan Emprator | تطوير سيرفرات كونكر | 9 | 2019-10-30 09:47 PM |
كوست بتل وار بتل بور | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-06-25 10:42 PM |
كوست Emperor War | محمد ياسر | تطوير سيرفرات كونكر | 0 | 2019-05-07 12:41 PM |
كوست البولات ال 4 مدن | محمد ياسر | تطوير سيرفرات كونكر | 0 | 2019-05-01 06:53 PM |