#region [Bird]PK Prize
case 81509:
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there > " + client.Player.Name + " < Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I Need To Leave", 2);
dialog.Option("I don't care.", 0xff);
dialog.Send();
break;
}
case 1:
{
Daily.CheackAlive184();
var Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 31 && DateTime.Now.Minute <= 33)
{
if (Daily.howmanyinmap184 == 1)
{
client.Player.ConquerPoints += 250000;
int R = Kernel.Random.Next(1, 4);
if (R == 1)
client.Inventory.Add(730001, 1, 1);
if (R == 2)
client.Inventory.Add(730002, 2, 1);
if (R == 3)
client.Inventory.Add(730003, 3, 1);
if (R == 4)
client.Inventory.Add(730004, 4, 1);
client.Player.RemoveFlag((ulong)MsgUpdate.Flags.Ride);
client.Player.AddTopStatus((ulong)MsgUpdate.Flags2.Top8Water, 2, DateTime.Now.AddHours(1));
Kernel.SendWorldMessage(new MsgTalk("Congratulations! > " + client.Player.Name + " < You Wenner Quest [Bird]PK Prize " + 2000 + " CPs && Stone.", System.Drawing.Color.Black, MsgTalk.Center), Server.GamePool);
client.Player.SendSpawn(client, true);
client.Player.Teleport(1002, 344, 440);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " + Daily.howmanyinmap184 + " players in the map kill it first to claim prize!");
dialog.Option("okay", 0xff);
dialog.Send();
}
}
else
{
dialog.Text("Hey there > " + client.Player.Name + " < You can only claim the prize when the time on or after 30:33");
dialog.Option("okay", 0xff);
dialog.Send();
}
break;
}
case 2:
{
{
client.Player.Teleport(1002, 410, 354);
}
break;
}
}
break;
#endregion
int R = Kernel.Random.Next(1, 4);
if (R == 1)
client.Inventory.Add(730001, 1, 1);
if (R == 2)
client.Inventory.Add(730002, 2, 1);
if (R == 3)
client.Inventory.Add(730003, 3, 1);
if (R == 4)
client.Inventory.Add(730004, 4, 1);
#region ChillingSpook
if (Name.Contains("ChillingSpook"))
{
killer.ConquerPoints += 1000000;
killer.SubProStages.StudyPoints += 500;
SubProStages.UpdateStundyPoints(killer.Owner, 500);
killer.Owner.Player.Update(MsgName.Mode.Effect, "zf2-e300", true);
uint ItemID = 0;
byte type1 = 27;
if (Kernel.Rate(100))
{
if (killer.MapID == 2102) return;
uint b = 0;
uint ban = (uint)Kernel.Random.Next(1, 12);
switch (ban)
{
case 1: b = 100000; break;
case 2: b = 100000 * 2; break;
case 3: b = 100000 * 3; break;
case 4: b = 100000 * 4; break;
case 5: b = 50000; break;
case 6: b = 50000 * 2; break;
case 7: b = 50000 * 3; break;
case 8: b = 50000 * 4; break;
case 9: b = 25000; break;
case 10: b = 25000 * 2; break;
case 11: b = 25000 * 3; break;
case 12: b = 25000 * 4; break;
}
uint ItemID2 = ItemHandler.MoneyItemID(b);
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.MsgMapItem MsgMapItem = new Network.GamePackets.MsgMapItem(true);
MsgMapItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Money;
MsgMapItem.Value = b;
MsgMapItem.ItemID = ItemID2;
MsgMapItem.MapID = 10137;
MsgMapItem.MapObjType = Game.MapObjectType.Item;
MsgMapItem.X = X;
MsgMapItem.Y = Y;
MsgMapItem.Type = Network.GamePackets.MsgMapItem.Drop;
MsgMapItem.OnFloor = Time32.Now;
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(MsgMapItem.UID))
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(MsgMapItem);
SendScreenSpawn(MsgMapItem);
}
}
if (Kernel.Rate(100))
{
for (int i = 0; i < 1; i++)
{
type1 = (byte)Kernel.Random.Next(2, 2);
switch (type1)
{
case 1:
ItemID = 730003;//DraginBall
break;
case 2:
ItemID = 730002;
break;
}
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.MsgMapItem MsgMapItem = new Network.GamePackets.MsgMapItem(true);
MsgMapItem.Item = new Network.GamePackets.MsgItemInfo(true);
MsgMapItem.Item.Color = (AboGamil.Game.Enums.Color)Kernel.Random.Next(4, 8);
MsgMapItem.Item.ID = ItemID;
MsgMapItem.Item.MaximDurability = infos.Durability;
MsgMapItem.Item.Durability = infos.Durability;
MsgMapItem.Item.MobDropped = true;
MsgMapItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Item;
MsgMapItem.ItemID = ItemID;
MsgMapItem.MapID = 10137;
MsgMapItem.MapObjType = Game.MapObjectType.Item;
MsgMapItem.X = X;
MsgMapItem.Y = Y;
if (MsgMapItem.Item.ID == 730002)
MsgMapItem.Item.Plus = 2;
if (MsgMapItem.Item.ID == 730003)
MsgMapItem.Item.Plus = 3;
MsgMapItem.Type = Network.GamePackets.MsgMapItem.Drop;
MsgMapItem.OnFloor = Time32.Now;
MsgMapItem.ItemColor = MsgMapItem.Item.Color;
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(MsgMapItem.UID))
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(MsgMapItem);
SendScreenSpawn(MsgMapItem);
}
}
if (Kernel.Rate(100))
{
for (int i = 0; i < 1; i++)
{
type1 = (byte)Kernel.Random.Next(1, 1);
switch (type1)
{
case 1:
ItemID = 720891;//DraginBall
break;
}
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.MsgMapItem MsgMapItem = new Network.GamePackets.MsgMapItem(true);
MsgMapItem.Item = new Network.GamePackets.MsgItemInfo(true);
MsgMapItem.Item.Color = (AboGamil.Game.Enums.Color)Kernel.Random.Next(4, 8);
MsgMapItem.Item.ID = ItemID;
MsgMapItem.Item.MaximDurability = infos.Durability;
MsgMapItem.Item.Durability = infos.Durability;
MsgMapItem.Item.MobDropped = true;
MsgMapItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Item;
MsgMapItem.ItemID = ItemID;
MsgMapItem.MapID = 10137;
MsgMapItem.MapObjType = Game.MapObjectType.Item;
MsgMapItem.X = X;
MsgMapItem.Y = Y;
if (MsgMapItem.Item.ID == 730002)
MsgMapItem.Item.Plus = 2;
if (MsgMapItem.Item.ID == 730003)
MsgMapItem.Item.Plus = 3;
MsgMapItem.Type = Network.GamePackets.MsgMapItem.Drop;
MsgMapItem.OnFloor = Time32.Now;
MsgMapItem.ItemColor = MsgMapItem.Item.Color;
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(MsgMapItem.UID))
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(MsgMapItem);
SendScreenSpawn(MsgMapItem);
}
}
}
for (int i = 0; i < 1; i++)
{
type1 = (byte)Kernel.Random.Next(1, 27);
switch (type1)
{
case 1:
ItemID = 1088000;
break;
case 2:
ItemID = 800913;
break;
case 3:
ItemID = 824015;
break;
case 4:
ItemID = 800720;
break;
case 5:
ItemID = 822053;
break;
case 6:
ItemID = 822055;
break;
case 7:
ItemID = 820071;
break;
case 8:
ItemID = 820072;
break;
case 9:
ItemID = 823055;
break;
case 10:
ItemID = 823056;
break;
case 11:
ItemID = 823057;
break;
case 12:
ItemID = 821031;
break;
case 13:
ItemID = 821032;
break;
case 14:
ItemID = 800000;
break;
case 15:
ItemID = 824017;
break;
case 16:
ItemID = 800421;
break;
case 17:
ItemID = 800110;
break;
case 18:
ItemID = 800017;
break;
case 19:
ItemID = 800254;
break;
case 20:
ItemID = 800513;
break;
case 21:
ItemID = 800320;
break;
case 22:
ItemID = 800722;
break;
case 23:
ItemID = 800616;
break;
case 24:
ItemID = 800809;
break;
case 25:
ItemID = 800804;
break;
case 26:
ItemID = 800916;
break;
case 27:
ItemID = 3007108;
break;
}
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.MsgMapItem MsgMapItem = new Network.GamePackets.MsgMapItem(true);
MsgMapItem.Item = new Network.GamePackets.MsgItemInfo(true);
MsgMapItem.Item.Color = (AboGamil.Game.Enums.Color)Kernel.Random.Next(4, 8);
MsgMapItem.Item.ID = ItemID;
MsgMapItem.Item.Plus = MsgMapItem.Item.Plus;
MsgMapItem.Item.MaximDurability = infos.Durability;
MsgMapItem.Item.Durability = infos.Durability;
MsgMapItem.Item.MobDropped = true;
MsgMapItem.ValueType = Network.GamePackets.MsgMapItem.FloorValueType.Item;
MsgMapItem.ItemID = ItemID;
MsgMapItem.MapID = 10137;
MsgMapItem.MapObjType = Game.MapObjectType.Item;
MsgMapItem.X = X;
MsgMapItem.Y = Y;
MsgMapItem.Type = Network.GamePackets.MsgMapItem.Drop;
MsgMapItem.OnFloor = Time32.Now;
MsgMapItem.ItemColor = MsgMapItem.Item.Color;
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(MsgMapItem.UID))
MsgMapItem.UID = Network.GamePackets.MsgMapItem.FloorUID.Next;
Map.AddFloorItem(MsgMapItem);
SendScreenSpawn(MsgMapItem);
}
}
}
Kernel.ChillingSpook = false;
return;
}
#endregion
721016@@GreenCPBag@@0@@0@@0@@0@@0@@0@@0@@0@@9@@0@@0@@9162800@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@800@@0@@0@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@QuestItem@@Right~click~to~obtain~5~CPs.@@5@@0@@0@@0@@0@@500@@0@@0@@0@@0@@0@@
721017@@BlueCPBag@@0@@0@@0@@0@@0@@0@@0@@0@@9@@0@@0@@9162810@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@800@@0@@0@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@QuestItem@@Right~click~to~obtain~10~CPs.@@5@@0@@0@@0@@0@@500@@0@@0@@0@@0@@0@@
721018@@PurpleCPBag@@0@@0@@0@@0@@0@@0@@0@@0@@9@@0@@0@@9162820@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@800@@0@@0@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@QuestItem@@Right~click~to~obtain~20~CPs.@@5@@0@@0@@0@@0@@500@@0@@0@@0@@0@@0@@
721019@@TanCPBag@@0@@0@@0@@0@@0@@0@@0@@0@@9@@0@@0@@9162830@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@800@@0@@0@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@QuestItem@@Right~click~to~obtain~25~CPs.@@5@@0@@0@@0@@0@@500@@0@@0@@0@@0@@0@@
#region CpsPacks
#region CpsPack
case 721018:
{
client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
client.Entity.ConquerPoints += 20;
break;//Mr,GemY :P
}
case 721019:
{
client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
client.Entity.ConquerPoints += 25;
break;//Mr,GemY :P
}
case 721016:
{
client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
client.Entity.ConquerPoints += 5;
break;//Mr,GemY :P
}
case 721017:
{
client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
client.Entity.ConquerPoints += 10;
break;//Mr,GemY :P
}
#endregion
#endregion