محمد ياسر |
2019-05-07 12:45 PM |
كوسته الارانب
كوسته تيم اكسور
كويستة التانية من موضوع الطلبات
كويستة حلوة و غريبة و جديدة
الشرح:هيجيك اوتو انفنت هتكلم الان بي سي الساعة 13:00
هيحولك لوحش من اصل 6 وحوش جديدة و قديمة
و هيعمل الهلث بتاعك 70 الف و يوديك مابة
متقدرش تستخدم اي سكلة طول ما انت متحول
التحول هيقعد 13 دقيقة
يعني مش هتقدر تضرب غير ضربة عادية
يعني اجري ورا الناس و اضربهم :hunter:
تمام نخش في الاضافة
خش على Nps
و ضيف دول
كود PHP:
#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
و خش على World
و دور على
و ضيف فوقو
كود PHP:
#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
خش على Daily.cs
و دور على
كود PHP:
public static void CheackAlive2()
حط فوقو
كود PHP:
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); }
} }
تمام خش على
Database
و افتح DataHolder.cs
و دور على
كود PHP:
public static ushort[] Disguises = new ushort[] { 111, 224, 117, 152, 113, 833, 116, 245, 112, 222, 114, 221, 115, 220 };
و حط تحتو
كود PHP:
public static ushort[] Disguises2 = new ushort[] { 111, 127, 979, 976, 977, 983 };
دلوقتي افتح
Constants.cs
و دور على
كود PHP:
public static readonly System.Collections.Generic.List<ushort> PKFreeMaps = new System.Collections.Generic.List<ushort>() {
و حط تحت اول قوس
طيب دلوقتي خش على PacketHandler.cs
و دور على
اقفلو من السالب و بدلو بدا
كود PHP:
#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 LifeFruit
الي تحتها مكتوب
case 723726:
و دور على
و اقفلو من السالب و بدلو بدا
كود PHP:
#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
تمام كدا شغل السورس خش على النافي كات
دوس f6 ايطعلط قنصل القاعده حط دول ف فيهم
كود PHP:
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);
|