|
المشاركات 112 |
+التقييم 0.06 |
تاريخ التسجيل Jul 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 444 |
#region MOSTWANTED by MrSheeko
#region The MostWanted Join
case 10819:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join The MostWanted for "+ CPanal.MostWanted +" Cps ?.");
dialog.Option("Yes Please", 1);
dialog.Option("Check The Prize Amount Now", 20);
dialog.Option("I don't care.", 255);
//client.Entity.Update(_String.Effect, "ErLongTengFei", true);
dialog.Send();
break;
}
case 1:
{
DateTime Now64 = DateTime.Now;
if (Now64.Hour == 00 && Now64.Minute <= 10 || Now64.Hour == 12 && Now64.Minute <= 10 || Now64.Hour == 18 && Now64.Minute <= 10)
{
Random R = new Random();
int Nr = R.Next(1, 10);
if (Nr == 1) client.Entity.Teleport(7427, 85, 106); // Most Wanted Map
if (Nr == 2) client.Entity.Teleport(7427, 79, 113);
if (Nr == 3) client.Entity.Teleport(7427, 92, 105);
if (Nr == 4) client.Entity.Teleport(7427, 96, 115);
if (Nr == 5) client.Entity.Teleport(7427, 95, 121);
if (Nr == 6) client.Entity.Teleport(7427, 80, 123);
if (Nr == 7) client.Entity.Teleport(7427, 85, 118);
if (Nr == 8) client.Entity.Teleport(7427, 85, 125);
if (Nr == 9) client.Entity.Teleport(7427, 95, 106);
if (Nr == 10) client.Entity.Teleport(7427, 100, 106);
client.Entity.ConquerPoints -= CPanal.MostWanted;
rates.MostWanted += CPanal.MostWanted;
client.Entity.PKMode = Game.Enums.PKMode.PK;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
}
else
{
dialog.Text("Sorry The Most Wanted Only running at 12:00PM to 12:10PM and 06:00PM to 06:10PM and 12:00AM to 12:10AM");
dialog.Option("Ok Bye Bye", 255);
dialog.Send();
break;
}
break;
}
case 20:
{
dialog.Text(""+ CPanal.MostWanted +" CPS and "+ rates.MostWanted +" now Join Fast And Get The Biggest Prize in "+ rates.servername +"");
dialog.Option("I Would Join", 1);
dialog.Option("No Thx", 255);
break;
}
}
break;
}
#endregion
#region Winner OF The MostWanted
case 10820:
{
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 Need To Leave", 2);
dialog.Option("Check The Prize", 3);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
{
client.Entity.Teleport(1002, 299, 286);
}
break;
}
case 3:
{
dialog.Text(""+ CPanal.MostWanted +" CPS plus "+ rates.MostWanted +" now Join Fast And Get The Biggest Prize in " + rates.servername + "..");
dialog.Option("Ok I Will Win The Prize", 255);
break;
}
case 1:
{
int alive = 0;
foreach (MrSheeko.Client.GameState Entity in Kernel.GamePool.Values)
if (Entity.Entity.MapID == client.Entity.MapID && (!Entity.Entity.Dead))
alive++;
if (DateTime.Now.Hour == 00 && DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 20 || DateTime.Now.Hour == 12 && DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 20 || DateTime.Now.Hour == 18 && DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 20)
{
if (alive == 1)
{
//client.Inventory.Add(3010, 0, 1);
client.Entity.ConquerPoints += CPanal.MostWanted;
client.Entity.ConquerPoints += rates.MostWanted;
//client.Entity.CLP += 50;
client.Entity.MostKiller = 1;
Kernel.SendWorldMessage(new Message("" + client.Entity.Name + "Claimed The Prize "+ CPanal.MostWanted +" CPs Plus "+ rates.MostWanted +" Cps and 50 CLPoints he is The MOSTWANTED Killer", System.Drawing.Color.Black, Message.Center), Program.Values);
//client.Entity.AddTopStatus(Update.Flags2.Top2Trojan, 2, DateTime.Now.AddMinutes(59));
//client.Entity.AddTopStatus(Update.Flags3.rygh_syzs, 3, DateTime.Now.AddMinutes(59));
rates.MostWanted = 0;
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 279);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 7427)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry "+ client.Entity.Name +" Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + alive + " Entity in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Avatar(7);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You Can only Claim The Prize When The Time on Or after in xx:10 to xx:20");
dialog.Option("ok I Sorry", 255);
dialog.Avatar(32);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#endregion
#region MostWanted Pk
if (DateTime.Now.Hour == 00 && DateTime.Now.Minute == 00 && DateTime.Now.Second == 15 || DateTime.Now.Hour == 12 && DateTime.Now.Minute == 00 && DateTime.Now.Second == 15 || DateTime.Now.Hour == 18 && DateTime.Now.Minute == 00 && DateTime.Now.Second == 15)
{
Kernel.SendWorldMessage(new Message("MostWanted Pk Has Started , Get Ready To Join !", Color.White, Message.Center), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("MostWanted Pk Has Begin , Would You like to Join?",
// (p) => { p.Entity.Teleport(1002, 307, 284); }, null, 60);
(p) => { p.Entity.Teleport(1002, 344, 234); }, null, 60);
}
#endregion
private void CharactersCallback
#region Remove MostKiller Top
if (DateTime.Now.Hour == 00 && DateTime.Now.Minute == 00 || DateTime.Now.Hour == 12 && DateTime.Now.Minute == 00 || DateTime.Now.Hour == 18 && DateTime.Now.Minute == 00)
{
client.Entity.MostKiller = 0;
}
#endregion
public static void LoginMessages
#region New Titles for The MostKiller
if (client.Entity.MostKiller == 1)
{
if (!client.Entity.Titles.ContainsKey(Network.GamePackets.TitlePacket.Titles.MostKiller2))
client.Entity.AddTopStatus((ulong)Network.GamePackets.TitlePacket.Titles.MostKiller2, 0, DateTime.Now.AddHours(6), false);
client.Entity.MyTitle = TitlePacket.Titles.MostKiller2;
}
if (client.Entity.Titles.Count > 0)
{
TitlePacket tpacket = new TitlePacket(true);
tpacket.Identifier = client.Entity.UID;
tpacket.Title = client.Entity.MyTitle;
tpacket.Type = TitlePacket.Types.Switch;
tpacket.Count = 1;
tpacket.Add((byte)client.Entity.MyTitle);
client.Entity.MyTitle = tpacket.Title;
client.Send(tpacket);
}
#endregion
#region New Titles
if (client.Entity.Titles.Count > 0)
{
TitlePacket tpacket = new TitlePacket(true);
tpacket.Identifier = client.Entity.UID;
tpacket.Title = client.Entity.MyTitle;
tpacket.Type = TitlePacket.Types.Switch;
tpacket.Count = 1;
tpacket.Add((byte)client.Entity.MyTitle);
client.Entity.MyTitle = tpacket.Title;
client.Send(tpacket);
}
#endregion
public enum Titles : ushort
{
None = 0,
GoldenRacer = 11,
ElitePKChamption_Low = 12,
ElitePK2ndPlace_Low = 13,
ElitePK3ndPlace_Low = 14,
ElitePKTopEight_Low = 15,
ElitePKChamption_High = 16,
ElitePK2ndPlace_High = 17,
ElitePK3ndPlace_High = 18,
ElitePKTopEight_High = 19,
Legendary = 20,
Peerless = 21,
Outstanding = 22,
Expert = 23,
UniquePk = 20,
MostKiller2 = 24,
case "studypoints":
case "MostKiller":
{
client.Entity.MostKiller = ushort.Parse(Data[1]);
break;
}
public uint OnlinePoints;
public uint MostKiller;
client.Entity.OnlinePoints = reader.ReadUInt32("OnlinePoints");
client.Entity.MostKiller = reader.ReadUInt32("MostKiller");
public static void UpdatebCps(Client.GameState client)
{
UpdateData(client, "boundcps", client.Entity.BoundCps);
}
public static void UpdateMostKiller(Client.GameState client)
{
UpdateData(client, "MostKiller", client.Entity.MostKiller);
}
.Set("OnlinePoints", e.OnlinePoints)
.Set("MostKiller", e.MostKiller)
MostWanted = 100000 + rates.MostWanted,
public static uint king;
public static uint MostWanted;
king = IniFile.ReadUInt32("Rates", "king");
MostWanted = IniFile.ReadUInt32("Rates", "MostWanted");
MostKiller bigint 18 0 0 0 0 0 0 0 0 0 0
MostWanted int 45 0 0 0 0 0 0 0 0 0 0
[24]
title=The~Most~Wanted~Killer
intro=The Best Killer
suit=0
suitpower=0
3DEffect=attach_continuance05
get=The~Most~Wanted~Killer
10819 MostWanted PK 2 50610 1002 344 232 0 0
10820 MostWanted[P] 2 50610 7427 76 104 0 0
7427 1858 7 0
Forcetc
PKFreeMaps
10819 MostWanted PK 2 50610 1002 344 232 0 0
10820 MostWanted[P] 2 50610 7427 76 104 0 0
7427 1858 7 0
Forcetc
PKFreeMaps
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
صفحة تسجيل بماسبة عيد الاضحي المبارك جديده وبشكل جديد | Eljoker | صفحات التسجيل كونكر اونلاين | 73 | 2024-11-23 01:56 AM |
اوتو بتش كونكر اونلاين الحديث نسخه [عربي او انجليزي] (هدية عيد الاضحي) | M.H.B[X-Coder]X | البرامج والودرات | 108 | 2024-11-15 12:39 PM |
صفحه تسجيل Script Hashish هديه | ahmedBayoumi12 | صفحات التسجيل كونكر اونلاين | 17 | 2024-10-10 08:28 PM |
انبسي لزم يكون في اي سرفر من ليكم هديه | zezonever | تطوير سيرفرات كونكر | 6 | 2023-09-27 02:18 PM |
ارينا روم خاصه بي Rider هديه مني ليكو <3 | Hassan Emprator | تطوير سيرفرات كونكر | 1 | 2020-02-15 04:21 PM |