|
المشاركات 1,940 |
+التقييم 0.96 |
تاريخ التسجيل Apr 2019 |
الاقامة Egypt |
نظام التشغيل windows 7 |
رقم العضوية 1 |
#region TopUniqueKiller
case 2015:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " I Can Join u In TopUniqueKiller War U Want?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
// if (DateTime.Now.Hour == 17 && DateTime.Now.Minute >= 24 && DateTime.Now.Minute <= 29)
if (Program.uniquepk == true)
{
Random R = new Random();
int Nr = R.Next(1, 5);
if (Nr == 1) client.Entity.Teleport(2014, 68, 34);
if (Nr == 2) client.Entity.Teleport(2014, 34, 66);
if (Nr == 3) client.Entity.Teleport(2014, 50, 50);
if (Nr == 4) client.Entity.Teleport(2014, 70, 70);
if (Nr == 5) client.Entity.Teleport(2014, 52, 73);
}
else
{
dialog.Text("TopUniqueKiller Started everyDay at 17:24 Be Careful");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region UniquePk
case 2014:
{
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 (client.uniquepoints >= 10)
{
client.Entity.ConquerPoints += Rates.uniquepk;
client.Entity.AddTopStatus((ulong)(((int)TitlePacket.Titles.UniquePk)), DateTime.Now.AddHours(22));
Kernel.SendWorldMessage(new Network.GamePackets.Message("Congratulations ! " + client.Entity.Name + " Won UniquePk War For This Day And Claimed " + Rates.uniquepk + " CPS And UniquePk Title . #05 ", System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 301, 278);
Program.uniquepk = false;
foreach (TrixyProject.Client.GameClient clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 2014)
{
// killer.Teleport(8886, 130, 130);
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Player God Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("Sorry U Don't have 20 UniquePoint Go Kill Playrs");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
public uint uniquepoints = 0;
public enum Titles
UniquePk = 20,
public bool IsWarTop
public bool IsWarTop(ulong Title)
{
return Title >= 11 && Title <= 20;
}
public void Die(Entity killer)
if (killer.MapID == 2014)
{
if (killer.MapID == 2014)
{
killer.Owner.uniquepoints += 1;
if (killer.Owner.uniquepoints >= 10)
{
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Congratulations, You Have Now " + killer.Owner.uniquepoints + " Points you can claim your prize now!");
npc.OptionID = 255;
killer.Owner.Send(npc.ToArray());
}
else
{
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "You Have Now " + killer.Owner.uniquepoints + " Points Congratz you still need " + (10 - killer.Owner.uniquepoints) + " more!");
npc.OptionID = 255;
killer.Owner.Send(npc.ToArray());
}
}
}
#region uniqureKiller
// if ()
if (DateTime.Now.Hour == 17 && DateTime.Now.Minute == 23 && DateTime.Now.Second == 59)
{
Program.uniquepk = true;
Kernel.SendWorldMessage(new Message("UniqueKiller War began! Go Twin city [ 272, 359]", Color.Red, Message.TopLeft), Program.GamePool);
foreach (var client in Program.GamePool)
client.MessageBox("UniqueKiller began! Would you like to join?",
p => { p.Entity.Teleport(1002, 272, 359); }, null, 60);
}
#endregion
public static bool uniquepk = false;
entitytable.cs
client.Entity.Y = reader.ReadUInt16("Y");
|| client.Entity.MapID == 2014
INSERT INTO `npcs` VALUES ('2015', '0', '0', 'UniquePk', '0002', '27650', '-1', '1002', '0270', '0357', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);INSERT INTO `npcs` VALUES ('2014', '0', '0', 'UniquePkw', '0002', '27650', '-1', '2014', '0033', '0033', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);INSERT INTO `maps` VALUES ('2014', '700', '0007', '0000');
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
كويست cloudsaintjar زى كونكر | محمد ياسر | تطوير سيرفرات كونكر | 3 | 2024-02-21 11:47 PM |
طلب كويست | Mostafa Shalby | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2019-11-03 12:43 PM |
كويست Letters | Hassan Emprator | تطوير سيرفرات كونكر | 1 | 2019-07-08 08:12 AM |
كندل كويست ( كوسته) | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-06-25 10:43 PM |
كويست علاء الدين | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-05-12 08:40 PM |