منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   كوسته الكلاسات (https://code.vpscairo.com/showthread.php?t=280)

محمد ياسر 2019-05-06 10:55 PM

كوسته الكلاسات
 

السلام عليكم ورحمة الله وبركاته
كوسته الترتيب
ده عباره عن انبي سي تكلمه
وده ايدخل مكان ايكون معاك ناس ضدك علي حسب شخصيتك
وبعد ماتموتوا ويبقا واحد يدخل علي مباراة الاخيره مع الناس الي فازت من الشخصيات التانيه

نيجي للاكواد
npcs.cs
كود PHP:

#region Hero Of VipConquer-A
#region Hero Of VipConquer-A TC
case 12000:
{
switch (
npcRequest.OptionID)
{
case 
0:
{
dialog.Text("Hello " client.Entity.Name " This Is Hero Of " Program.NameGame " join now And Get Top VipConquer-A and 500,000,000 CPs");
dialog.Option("Join my Class Battle"1);
//  dialog.Option("Ninja Battle", 2);
// dialog.Option("Monk Battle", 3);
// dialog.Option("Archer Battle", 4);
// dialog.Option("WaterTaoist Battle", 5);
// dialog.Option("Pirate Battle", 6);
// dialog.Option("Windwalker Battle", 7);
// dialog.Option("D.Warrior Battle", 8);
// dialog.Option("Warrior Battle", 9);
//dialog.Option("FireTaoist Battle", 10);
break;
}
case 
1:
DateTime Now64 DateTime.Now;
if (
DateTime.Now.Minute >= 51 && DateTime.Now.Minute <= 54)
{
if (
client.Entity.Class >= 10 && client.Entity.Class <= 15)
{
client.Entity.Teleport(120155050);
}
if (
client.Entity.Class >= 20 && client.Entity.Class <= 25)
{
client.Entity.Teleport(120255050);
}
if (
client.Entity.Class >= 40 && client.Entity.Class <= 45)
{
client.Entity.Teleport(120455050);
}
if (
client.Entity.Class >= 50 && client.Entity.Class <= 55)
{
client.Entity.Teleport(120555050);
}
if (
client.Entity.Class >= 60 && client.Entity.Class <= 65)
{
client.Entity.Teleport(120655050);
}
if (
client.Entity.Class >= 70 && client.Entity.Class <= 75)
{
client.Entity.Teleport(120755050);
}
if (
client.Entity.Class >= 80 && client.Entity.Class <= 85)
{
client.Entity.Teleport(120855050);
}
if (
client.Entity.Class >= 132 && client.Entity.Class <= 135)
{
client.Entity.Teleport(121355050);
}
if (
client.Entity.Class >= 142 && client.Entity.Class <= 145)
{
client.Entity.Teleport(121455050);
}
if (
client.Entity.Class >= 160 && client.Entity.Class <= 165)
{
client.Entity.Teleport(121655050);
}
else
{
dialog.Text("Kill all Entitys to reach Final Stage to win the prize");
dialog.Option("okay"255);
dialog.Send();
}
}
else
{
dialog.Text("This is not the right time Come Later at xx:51 to xx:54 in every hour");
dialog.Option("okay"255);
dialog.Send();
}
break;
}
break;
}
#endregion
#region NPCs In Stages
#region Winner Trojan
case 12015:
{
switch (
npcRequest.OptionID)
{
case 
0://tomm210
{
dialog.Text("Hey there " client.Entity.Name " Would you like to go to Final Stage ?.");
dialog.Option("Yes Please"1);
dialog.Option("I don't care."255);
dialog.Send();
break;
}
case 
1:
{
int alive 0;
foreach (
Client.GameState Entitys in Program.Values)
if (
Entitys.Entity.MapID == 12015 && (!Entitys.Entity.Dead))
alive++;
if (
DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 58)
{
if (
alive == 1)
{
Kernel.SendWorldMessage(new Message("Congratulations! Entity " client.Entity.Name " Won top Trojan Stage and Reached Final Stage . "System.Drawing.Color.BlackMessage.Center), Program.Values);
client.Entity.SendSpawn(clienttrue);
client.Entity.Teleport(122005050);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " alive " Entitys in the map kill it first to enter Final Stage!");
dialog.Option("okay"255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " client.Entity.Name "You can only go to Final Stage when the time on or after xx:55 To xx:58 ");
dialog.Option("okay"255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner Warrior
case 12025:
{
switch (
npcRequest.OptionID)
{
case 
0://tomm210
{
dialog.Text("Hey there " client.Entity.Name " Would you like to go to Final Stage ?.");
dialog.Option("Yes Please"1);
dialog.Option("I don't care."255);
dialog.Send();
break;
}
case 
1:
{
int alive 0;
foreach (
Client.GameState Entitys in Program.Values)
if (
Entitys.Entity.MapID == 12025 && (!Entitys.Entity.Dead))
alive++;
if (
DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 58)
{
if (
alive == 1)
{
Kernel.SendWorldMessage(new Message("Congratulations! Entity " client.Entity.Name " Won top Warrior Stage and Reached Final Stage  . "System.Drawing.Color.BlackMessage.Center), Program.Values);
client.Entity.SendSpawn(clienttrue);
client.Entity.Teleport(122005050);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " alive " Entitys in the map kill it first to enter Final Stage!");
dialog.Option("okay"255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " client.Entity.Name "You can only go to Final Stage when the time on or after xx:55 To xx:58 ");
dialog.Option("okay"255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner Archer
case 12045:
{
switch (
npcRequest.OptionID)
{
case 
0://tomm210
{
dialog.Text("Hey there " client.Entity.Name " Would you like to go to Final Stage ?.");
dialog.Option("Yes Please"1);
dialog.Option("I don't care."255);
dialog.Send();
break;
}
case 
1:
{
int alive 0;
foreach (
Client.GameState Entitys in Program.Values)
if (
Entitys.Entity.MapID == 12045 && (!Entitys.Entity.Dead))
alive++;
if (
DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 58)
{
if (
alive == 1)
{
Kernel.SendWorldMessage(new Message("Congratulations! Entity " client.Entity.Name " Won top Archer Stage and Reached Final Stage  . "System.Drawing.Color.BlackMessage.Center), Program.Values);
client.Entity.SendSpawn(clienttrue);
client.Entity.Teleport(122005050);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " alive " Entitys in the map kill it first to enter Final Stage!");
dialog.Option("okay"255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " client.Entity.Name "You can only go to Final Stage when the time on or after xx:55 To xx:58 ");
dialog.Option("okay"255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner Ninja
case 12055:
{
switch (
npcRequest.OptionID)
{
case 
0://tomm210
{
dialog.Text("Hey there " client.Entity.Name " Would you like to go to Final Stage ?.");
dialog.Option("Yes Please"1);
dialog.Option("I don't care."255);
dialog.Send();
break;
}
case 
1:
{
int alive 0;
foreach (
Client.GameState Entitys in Program.Values)
if (
Entitys.Entity.MapID == 12055 && (!Entitys.Entity.Dead))
alive++;
if (
DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 58)
{
if (
alive == 1)
{
Kernel.SendWorldMessage(new Message("Congratulations! Entity " client.Entity.Name " Won top Ninja Stage and Reached Final Stage  . "System.Drawing.Color.BlackMessage.Center), Program.Values);
client.Entity.SendSpawn(clienttrue);
client.Entity.Teleport(122005050);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " alive " Entitys in the map kill it first to enter Final Stage!");
dialog.Option("okay"255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " client.Entity.Name "You can only go to Final Stage when the time on or after xx:55 To xx:58 ");
dialog.Option("okay"255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner Monk
case 12065:
{
switch (
npcRequest.OptionID)
{
case 
0://tomm210
{
dialog.Text("Hey there " client.Entity.Name " Would you like to go to Final Stage ?.");
dialog.Option("Yes Please"1);
dialog.Option("I don't care."255);
dialog.Send();
break;
}
case 
1:
{
int alive 0;
foreach (
Client.GameState Entitys in Program.Values)
if (
Entitys.Entity.MapID == 12065 && (!Entitys.Entity.Dead))
alive++;
if (
DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 58)
{
if (
alive == 1)
{
Kernel.SendWorldMessage(new Message("Congratulations! Entity " client.Entity.Name " Won top Monk Stage and Reached Final Stage  . "System.Drawing.Color.BlackMessage.Center), Program.Values);
client.Entity.SendSpawn(clienttrue);
client.Entity.Teleport(122005050);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " alive " Entitys in the map kill it first to enter Final Stage!");
dialog.Option("okay"255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " client.Entity.Name "You can only go to Final Stage when the time on or after xx:55 To xx:58 ");
dialog.Option("okay"255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner Pirate
case 12075:
{
switch (
npcRequest.OptionID)
{
case 
0://tomm210
{
dialog.Text("Hey there " client.Entity.Name " Would you like to go to Final Stage ?.");
dialog.Option("Yes Please"1);
dialog.Option("I don't care."255);
dialog.Send();
break;
}
case 
1:
{
int alive 0;
foreach (
Client.GameState Entitys in Program.Values)
if (
Entitys.Entity.MapID == 12075 && (!Entitys.Entity.Dead))
alive++;
if (
DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 58)
{
if (
alive == 1)
{
Kernel.SendWorldMessage(new Message("Congratulations! Entity " client.Entity.Name " Won top Pirate Stage and Reached Final Stage  . "System.Drawing.Color.BlackMessage.Center), Program.Values);
client.Entity.SendSpawn(clienttrue);
client.Entity.Teleport(122005050);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " alive " Entitys in the map kill it first to enter Final Stage!");
dialog.Option("okay"255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " client.Entity.Name "You can only go to Final Stage when the time on or after xx:55 To xx:58 ");
dialog.Option("okay"255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner D.Warrior
case 12085:
{
switch (
npcRequest.OptionID)
{
case 
0://tomm210
{
dialog.Text("Hey there " client.Entity.Name " Would you like to go to Final Stage ?.");
dialog.Option("Yes Please"1);
dialog.Option("I don't care."255);
dialog.Send();
break;
}
case 
1:
{
int alive 0;
foreach (
Client.GameState Entitys in Program.Values)
if (
Entitys.Entity.MapID == 12085 && (!Entitys.Entity.Dead))
alive++;
if (
DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 58)
{
if (
alive == 1)
{
Kernel.SendWorldMessage(new Message("Congratulations! Entity " client.Entity.Name " Won top D.Warrior Stage and Reached Final Stage  . "System.Drawing.Color.BlackMessage.Center), Program.Values);
client.Entity.SendSpawn(clienttrue);
client.Entity.Teleport(122005050);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " alive " Entitys in the map kill it first to enter Final Stage!");
dialog.Option("okay"255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " client.Entity.Name "You can only go to Final Stage when the time on or after xx:55 To xx:58 ");
dialog.Option("okay"255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner Windwalker
case 12165:
{
switch (
npcRequest.OptionID)
{
case 
0://tomm210
{
dialog.Text("Hey there " client.Entity.Name " Would you like to go to Final Stage ?.");
dialog.Option("Yes Please"1);
dialog.Option("I don't care."255);
dialog.Send();
break;
}
case 
1:
{
int alive 0;
foreach (
Client.GameState Entitys in Program.Values)
if (
Entitys.Entity.MapID == 12165 && (!Entitys.Entity.Dead))
alive++;
if (
DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 58)
{
if (
alive == 1)
{
Kernel.SendWorldMessage(new Message("Congratulations! Entity " client.Entity.Name " Won top Windwlaker Stage and Reached Final Stage  . "System.Drawing.Color.BlackMessage.Center), Program.Values);
client.Entity.SendSpawn(clienttrue);
client.Entity.Teleport(122005050);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " alive " Entitys in the map kill it first to enter Final Stage!");
dialog.Option("okay"255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " client.Entity.Name "You can only go to Final Stage when the time on or after xx:55 To xx:58 ");
dialog.Option("okay"255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner WaterTaoist
case 12135:
{
switch (
npcRequest.OptionID)
{
case 
0://tomm210
{
dialog.Text("Hey there " client.Entity.Name " Would you like to go to Final Stage ?.");
dialog.Option("Yes Please"1);
dialog.Option("I don't care."255);
dialog.Send();
break;
}
case 
1:
{
int alive 0;
foreach (
Client.GameState Entitys in Program.Values)
if (
Entitys.Entity.MapID == 12135 && (!Entitys.Entity.Dead))
alive++;
if (
DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 58)
{
if (
alive == 1)
{
Kernel.SendWorldMessage(new Message("Congratulations! Entity " client.Entity.Name " Won top WaterTaoist Stage and Reached Final Stage  . "System.Drawing.Color.BlackMessage.Center), Program.Values);
client.Entity.SendSpawn(clienttrue);
client.Entity.Teleport(122005050);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " alive " Entitys in the map kill it first to enter Final Stage!");
dialog.Option("okay"255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " client.Entity.Name "You can only go to Final Stage when the time on or after xx:55 To xx:58 ");
dialog.Option("okay"255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner FireTaoist
case 12145:
{
switch (
npcRequest.OptionID)
{
case 
0://tomm210
{
dialog.Text("Hey there " client.Entity.Name " Would you like to go to Final Stage ?.");
dialog.Option("Yes Please"1);
dialog.Option("I don't care."255);
dialog.Send();
break;
}
case 
1:
{
int alive 0;
foreach (
Client.GameState Entitys in Program.Values)
if (
Entitys.Entity.MapID == 12145 && (!Entitys.Entity.Dead))
alive++;
if (
DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 58)
{
if (
alive == 1)
{
Kernel.SendWorldMessage(new Message("Congratulations! Entity " client.Entity.Name " Won top FireTaoist Stage and Reached Final Stage  . "System.Drawing.Color.BlackMessage.Center), Program.Values);
client.Entity.SendSpawn(clienttrue);
client.Entity.Teleport(122005050);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " alive " Entitys in the map kill it first to enter Final Stage!");
dialog.Option("okay"255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " client.Entity.Name "You can only go to Final Stage when the time on or after xx:55 To xx:58 ");
dialog.Option("okay"255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#endregion
#region Winner VipConquer-A
case 12200:
{
switch (
npcRequest.OptionID)
{
case 
0://tomm210
{
dialog.Text("Hey there " client.Entity.Name " Would you like to go to Final Stage ?.");
dialog.Option("Yes Please"1);
dialog.Option("I don't care."255);
dialog.Send();
break;
}
case 
1:
{
int alive 0;
foreach (
Client.GameState Entitys in Program.Values)
if (
Entitys.Entity.MapID == 12200 && (!Entitys.Entity.Dead))
alive++;
if (
DateTime.Now.Minute >= 01 && DateTime.Now.Minute <= 10)
{
if (
alive == 1)
{
client.Entity.ConquerPoints += 500000000;
client.Entity.AddTopStatus((ulong)Update.Flags2.Top2Ninja2DateTime.Now.AddHours(1));
Random R = new Random();
int Nr R.Next(11);
if (
Nr == 1client.Inventory.Add(72731902);
//  client.Entity.AddTopStatus((ulong)MsgUpdate.Flags2.Top8Water, 2, DateTime.Now.AddMinutes(59)); ;
Kernel.SendWorldMessage(new Message("Congratulations! Entity " client.Entity.Name " Won " Program.NameGame " Battle and He is the Hero for This Hour and he got 100,000,000 CPs + Top Hero Of The Game . "System.Drawing.Color.BlackMessage.Center), Program.Values);
client.Entity.SendSpawn(clienttrue);
client.Entity.Teleport(1002300295);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " alive " Entitys in the map kill it first to Win!");
dialog.Option("okay"255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " client.Entity.Name "You can only go to Final Stage when the time on or after xx:02 To xx:05 ");
dialog.Option("okay"255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#endregion 

هو انبي سي سهله والمابه موجوده في القاعده

Users 2019-05-18 11:01 PM

رد: كوسته الكلاسات
 
مشكور يا زعيم بس بعد ازنك المابات مش موجوده عندى فى القاعده كنت محتاج المابات بس شكراا

AdhamMohamed 2020-02-15 08:25 PM

رد: كوسته الكلاسات
 
عاش يحب


الساعة الآن 08:34 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب