essamarpi1
2020-05-07, 03:59 PM
فى روم كبس فى سورس خالد محمد جوا الروم دي فى انبي سي بيخرجك منها فى اى وقت انا عايز مينفعش الاعب يخرج منها طول مافى حد معاه
يعني لو 2 بيلعبوا وواحد حب يخرج بيخرج عادى عايز امنع خروجة ودا الكود
#endregion
#region out
case 9992:
case 9993:
case 9990:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Player.MapID == 9991 )
dialog.Text("Hey there " + client.Player.Name + " Do u want to go tc and get 1kk.");
if (client.Player.MapID == 9992)
dialog.Text("Hey there " + client.Player.Name + " Do u want to go tc and get 10m.");
if (client.Player.MapID == 9993)
dialog.Text("Hey there " + client.Player.Name + " Do u want to go tc and get 50m.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive1 = 0;
int alive2 = 0;
int alive3 = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
{
if (Entitys.Player.MapID == 9991 && (!Entitys.Player.Dead))
alive1++;
if (Entitys.Player.MapID == 9992 && (!Entitys.Player.Dead))
alive2++;
if (Entitys.Player.MapID == 9993 && (!Entitys.Player.Dead))
alive3++;
}
if (client.Player.MapID == 9991 && (!client.Player.Dead))
{
client.Player.Teleport(1002, 300, 278);
client.Player.ConquerPoints += 1000000;
Kernel.SendWorldMessage(new Message(" " + client.Player.Name + " Has out from 1m Room.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
}
if (client.Player.MapID == 9992 && (!client.Player.Dead))
{
client.Player.Teleport(1002, 300, 278);
client.Player.ConquerPoints += 10000000;
Kernel.SendWorldMessage(new Message(" " + client.Player.Name + " Has out from 10m Room .", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
}
if (client.Player.MapID == 9993 && (!client.Player.Dead))
{
client.Player.Teleport(1002, 300, 278);
client.Player.ConquerPoints += 50000000;
Kernel.SendWorldMessage(new Message(" " + client.Player.Name + " Has out from 50m Room", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
}
break;
}
}
break;
}
#endregion
#endregion
وشكرا مقدما للى هيساعدنى والى هيحاول ♥
يعني لو 2 بيلعبوا وواحد حب يخرج بيخرج عادى عايز امنع خروجة ودا الكود
#endregion
#region out
case 9992:
case 9993:
case 9990:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Player.MapID == 9991 )
dialog.Text("Hey there " + client.Player.Name + " Do u want to go tc and get 1kk.");
if (client.Player.MapID == 9992)
dialog.Text("Hey there " + client.Player.Name + " Do u want to go tc and get 10m.");
if (client.Player.MapID == 9993)
dialog.Text("Hey there " + client.Player.Name + " Do u want to go tc and get 50m.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive1 = 0;
int alive2 = 0;
int alive3 = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
{
if (Entitys.Player.MapID == 9991 && (!Entitys.Player.Dead))
alive1++;
if (Entitys.Player.MapID == 9992 && (!Entitys.Player.Dead))
alive2++;
if (Entitys.Player.MapID == 9993 && (!Entitys.Player.Dead))
alive3++;
}
if (client.Player.MapID == 9991 && (!client.Player.Dead))
{
client.Player.Teleport(1002, 300, 278);
client.Player.ConquerPoints += 1000000;
Kernel.SendWorldMessage(new Message(" " + client.Player.Name + " Has out from 1m Room.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
}
if (client.Player.MapID == 9992 && (!client.Player.Dead))
{
client.Player.Teleport(1002, 300, 278);
client.Player.ConquerPoints += 10000000;
Kernel.SendWorldMessage(new Message(" " + client.Player.Name + " Has out from 10m Room .", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
}
if (client.Player.MapID == 9993 && (!client.Player.Dead))
{
client.Player.Teleport(1002, 300, 278);
client.Player.ConquerPoints += 50000000;
Kernel.SendWorldMessage(new Message(" " + client.Player.Name + " Has out from 50m Room", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.SendSpawn(client, true);
}
break;
}
}
break;
}
#endregion
#endregion
وشكرا مقدما للى هيساعدنى والى هيحاول ♥