|
المشاركات 1,940 |
+التقييم 0.95 |
تاريخ التسجيل Apr 2019 |
الاقامة Egypt |
نظام التشغيل windows 7 |
رقم العضوية 1 |
#region new mobs q
case 4131:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the Monsters War?.");
dialog.Option("Yes i will be A Monster", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.Hour == 13 && DateTime.Now.Minute >= 00 && DateTime.Now.Minute < 9)
{
Random R = new Random();
int Nr = R.Next(1, 2);
if (Nr == 1) client.Entity.Teleport(10551, 57, 44);
if (Nr == 2) client.Entity.Teleport(10551, 58, 44);
int disguise = Kernel.Random.Next(Database.DataHolder.Disguises2.Length);
ushort selected = Database.DataHolder.Disguises[disguise];
bool wasTransformated = client.Entity.Transformed;
if (wasTransformated)
{
client.Entity.Hitpoints = client.Entity.MaxHitpoints;
client.Entity.TransformationID = 0;
client.Entity.TransformationStamp = Time32.Now;
}
ushort transformation = selected;
client.Entity.TransformationID = transformation;
client.Entity.TransformationStamp = Time32.Now;
client.Entity.TransformationTime = 780;
SpellUse spellUse = new SpellUse(true);
spellUse.Attacker = client.Entity.UID;
spellUse.SpellID = 1360;
spellUse.SpellLevel = 4;
spellUse.X = client.Entity.X;
spellUse.Y = client.Entity.Y;
spellUse.AddTarget(client.Entity.UID, (uint)0, null);
client.Send(spellUse);
client.Entity.TransformationMaxHP = 70000;
double maxHP = client.Entity.MaxHitpoints;
double HP = client.Entity.Hitpoints;
double point = HP / maxHP;
client.Entity.Hitpoints = (uint)(client.Entity.TransformationMaxHP * point);
client.Entity.Update(Update.MaxHitpoints, client.Entity.TransformationMaxHP, false);
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "You Are A Monster New Fight with Other Monsters To Get Glory ");
npc.OptionID = 255;
client.Send(npc.ToArray());
}
else
{
dialog.Text("Monsters War is held during at 13:9 ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner of mobs
case 21995:
{
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 (DateTime.Now.Hour == 13 && DateTime.Now.Minute >= 10 && DateTime.Now.Minute < 20)
{
Conquer_Online_Server.Game.ConquerStructures.Daily.CheackSpouse();
if (Conquer_Online_Server.Game.ConquerStructures.Daily.howmanyinmap3 == 1)
{
client.Entity.ConquerPoints += 1000000;
Conquer_Online_Server.Kernel.SendWorldMessage(new Message("Congratulations! The Monster " + client.Entity.Name + " claimed the prize 1kk Frome Monsters war.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
// oras
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 301, 278);
}
else
{
dialog.Text("There are still " + Daily.howmanyinmap3 + " players in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 13:10");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Last man
#region new mobs
if (Now64.Second <= 3 && Now64.Hour == 13 && Now64.Minute == 00)
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("Monsters War has begun! Go to Challenge Other Players !", System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
client.MessageBox("Monsters War has begun! Would you like to join? [Prize: 1kk CPs]",
(p) => { p.Entity.Teleport(1002, 335, 267); }, null, 60);
}
#endregion
public static void CheackAlive2()
public static void CheackAlive7()
{
howmanyinmap2 = 0;
foreach (Client.GameClient client in Program.GamePool)
{
if (client.Entity.MapID == 10551 && client.Entity.Hitpoints >= 1)
{
howmanyinmap2 += 1;
Conquer_Online_Server.Kernel.SendWorldMessage(new Conquer_Online_Server.Network.GamePackets.Message("Players Alive in Monsters War: " + howmanyinmap2 + " ", System.Drawing.Color.Black, Conquer_Online_Server.Network.GamePackets.Message.FirstRightCorner), Program.GamePool);
}
}
}
public static ushort[] Disguises = new ushort[] { 111, 224, 117, 152, 113, 833, 116, 245, 112, 222, 114, 221, 115, 220 };
public static ushort[] Disguises2 = new ushort[] { 111, 127, 979, 976, 977, 983 };
public static readonly System.Collections.Generic.List<ushort> PKFreeMaps = new System.Collections.Generic.List<ushort>()
{
10551,
#region LifeFruit
#region LifeFruit
case 723726:
{
if (client.Entity.MapID == 10551)
break;
client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
client.Entity.Hitpoints = client.Entity.MaxHitpoints;
client.Entity.Mana = client.Entity.MaxMana;
break;
}
#endregion
#region Medicine
#region Medicine
case 1000000:
case 1000010:
case 1000020:
case 1000030:
case 1002000:
case 1002010:
case 1002020:
case 1002050:
case 725065:
{
if (client.Entity.MapID == 10551)
break;
if (client.Entity.NoDrugsTime > 0)
{
if (Time32.Now > client.Entity.NoDrugsStamp.AddSeconds(client.Entity.NoDrugsTime))
{
client.Entity.NoDrugsTime = 0;
}
else
{
return;
}
}
if (client.Entity.Hitpoints == client.Entity.MaxHitpoints)
return;
client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
client.Entity.Hitpoints = Math.Min(client.Entity.Hitpoints + infos.BaseInformation.ItemHP, client.Entity.MaxHitpoints);
break;
}
case 1001000:
case 1001010:
case 1001020:
case 1001030:
case 1001040:
case 1002030:
case 1002040:
case 725066:
{
if (client.Entity.MapID == 10551)
break;
if (client.Entity.NoDrugsTime > 0)
{
if (Time32.Now > client.Entity.NoDrugsStamp.AddSeconds(client.Entity.NoDrugsTime))
{
client.Entity.NoDrugsTime = 0;
}
else
{
return;
}
}
if (client.Entity.Mana == client.Entity.MaxMana)
return;
client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
client.Entity.Mana = (ushort)Math.Min(client.Entity.Mana + infos.BaseInformation.ItemMP, client.Entity.MaxMana);
break;
}
#endregion
INSERT INTO `maps` VALUES ('10550', '10550', '0007', '0000');
INSERT INTO `maps` VALUES ('10551', '10550', '0007', '0000');
INSERT INTO `npcs` VALUES ('4131', '0', '0', 'new mobs q', '0002', '1340', '-1', '1002', '0335', '0264', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);
INSERT INTO `npcs` VALUES ('21995', '0', '0', 'new mobs win', '0002', '1340', '-1', '10551', '0056', '0037', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
عاوز كوسته | احمد التركي | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-05-07 09:47 AM |
طلب كوسته | Amr Khalid | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-05-06 04:25 AM |
كوسته الكلاسات | محمد ياسر | تطوير سيرفرات كونكر | 2 | 2020-02-15 08:25 PM |
طلب كوسته | Amr Khalid | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-11-26 08:52 AM |
كوسته حرب التيمات | محمد ياسر | تطوير سيرفرات كونكر | 0 | 2019-05-07 12:56 PM |