ازيكم حبايبي عاملين اي طبعا الارينا دي بتاعت رايدر ودي موجوده في سورس خالد محمد قولتلك مش هسيب في حاجه لما نزلت لعبته وشوفتها
كود:
#region RooM Cps
#region Rider RooM
case 9991:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey " + client.Entity.Name + " i am Demha Room Manager Please pic cps you want to play on Remember i will take 10:20% from the winner.");
dialog.Text("that mean if You Won 1m or 10m i will take 200k or 2m and give You 1.8kk or 18kk Only biggest room will give u 80m.");
dialog.Option("[1.000.000] C.P.S", 1);
dialog.Option("[10.000.000] C.P.S", 2);
dialog.Option("[50.000.000] C.P.S", 3);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 2:
{
if (client.ArenaStatistic.Status != ArenaStatistic.NotSignedUp || client.TeamArenaStatistic.Status != TeamArenaStatistic.NotSignedUp)
{
client.Send(new Message("You already joined a qualifier arena! Quit the other one and call me again.", Color.Beige, Message.Agate));
return;
}
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Entity.MapID == 9992 && (!Entitys.Entity.Dead))
alive++;
if (client.Entity.ConquerPoints >= 10000000)
{
if (alive < 2)
{
client.Entity.ConquerPoints -= 10000000;
if (client.Entity.MyClones.Count > 0)
{
foreach (var item in client.Entity.MyClones.Values)
{
Data data = new Data(true);
data.UID = item.UID;
data.ID = Network.GamePackets.Data.RemoveEntity;
item.MonsterInfo.SendScreen(data);
}
client.Entity.MyClones.Clear();
}
if (alive == 0)
Kernel.SendWorldMessage(new Message(" Attention ! " + client.Entity.Name + " Has Entered 10m Arena Room And Waiting for challenger #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
if (alive == 1)
Kernel.SendWorldMessage(new Message(" Attention ! " + client.Entity.Name + " Has accept the challenge on 10m room now it is full #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.Teleport(9992, 55, 55);
client.Entity.RemoveFlag(Update.Flags.Ride);
client.Entity.PKMode = Game.Enums.PKMode.PK;
client.Entity.SendSpawn(client, true);
}
else
{
dialog.Text("There are " + alive + " in the room please come later!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Sorry " + client.Entity.Name + "You do not have enough cps to join");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
case 3:
{
if (client.ArenaStatistic.Status != ArenaStatistic.NotSignedUp || client.TeamArenaStatistic.Status != TeamArenaStatistic.NotSignedUp)
{
client.Send(new Message("You already joined a qualifier arena! Quit the other one and call me again.", Color.Beige, Message.Agate));
return;
}
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Entity.MapID == 9993 && (!Entitys.Entity.Dead))
alive++;
if (client.Entity.ConquerPoints >= 50000000)
{
if (alive < 2)
{
client.Entity.ConquerPoints -= 50000000;
if (client.Entity.MyClones.Count > 0)
{
foreach (var item in client.Entity.MyClones.Values)
{
Data data = new Data(true);
data.UID = item.UID;
data.ID = Network.GamePackets.Data.RemoveEntity;
item.MonsterInfo.SendScreen(data);
}
client.Entity.MyClones.Clear();
}
if (alive == 0)
Kernel.SendWorldMessage(new Message(" Attention ! " + client.Entity.Name + " Has Entered 50m Arena Room And Waiting for challenger #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
if (alive == 1)
Kernel.SendWorldMessage(new Message(" Attention ! " + client.Entity.Name + " Has accept the challenge on 50m room now it is full #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.Teleport(9993, 55, 55);
client.Entity.RemoveFlag(Update.Flags.Ride);
client.Entity.PKMode = Game.Enums.PKMode.PK;
client.Entity.SendSpawn(client, true);
}
else
{
dialog.Text("There are " + alive + " in the room please come later!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Sorry " + client.Entity.Name + "You do not have enough cps to join");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
case 1:
{
if (client.ArenaStatistic.Status != ArenaStatistic.NotSignedUp || client.TeamArenaStatistic.Status != TeamArenaStatistic.NotSignedUp)
{
client.Send(new Message("You already joined a qualifier arena! Quit the other one and call me again.", Color.Beige, Message.Agate));
return;
}
int alive = 0;
DateTime Now64 = DateTime.Now;
foreach (Client.GameState Entitys in Kernel.GamePool.Values)
if (Entitys.Entity.MapID == 9991 && (!Entitys.Entity.Dead))
alive++;
if (client.Entity.ConquerPoints >= 1000000)
{
if (alive < 2)
{
client.Entity.ConquerPoints -= 1000000;
if (client.Entity.MyClones.Count > 0)
{
foreach (var item in client.Entity.MyClones.Values)
{
Data data = new Data(true);
data.UID = item.UID;
data.ID = Network.GamePackets.Data.RemoveEntity;
item.MonsterInfo.SendScreen(data);
}
client.Entity.MyClones.Clear();
}
if (alive == 0)
Kernel.SendWorldMessage(new Message(" Attention ! " + client.Entity.Name + " Has Entered 1m Arena Room And Waiting for challenger #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
if (alive == 1)
Kernel.SendWorldMessage(new Message(" Attention ! " + client.Entity.Name + " Has accept the challenge on 1m room now it is full #45#45.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.Teleport(9991, 55, 55);
client.Entity.RemoveFlag(Update.Flags.Ride);
client.Entity.PKMode = Game.Enums.PKMode.PK;
client.Entity.SendSpawn(client, true);
}
else
{
dialog.Text("There are " + alive + " in the room please come later!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Sorry " + client.Entity.Name + "You do not have enough cps to join");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region out
case 9992:
case 9993:
case 9990:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Entity.MapID == 9991)
dialog.Text("Hey there " + client.Entity.Name + " Do u want to go tc and get 1kk.");
if (client.Entity.MapID == 9992)
dialog.Text("Hey there " + client.Entity.Name + " Do u want to go tc and get 10m.");
if (client.Entity.MapID == 9993)
dialog.Text("Hey there " + client.Entity.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.Entity.MapID == 9991 && (!Entitys.Entity.Dead))
alive1++;
if (Entitys.Entity.MapID == 9992 && (!Entitys.Entity.Dead))
alive2++;
if (Entitys.Entity.MapID == 9993 && (!Entitys.Entity.Dead))
alive3++;
}
if (client.Entity.MapID == 9991 && (!client.Entity.Dead))
{
client.Entity.Teleport(1002, 300, 278);
client.Entity.ConquerPoints += 1000000;
Kernel.SendWorldMessage(new Message(" " + client.Entity.Name + " Has out from 1m Room.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.SendSpawn(client, true);
}
if (client.Entity.MapID == 9992 && (!client.Entity.Dead))
{
client.Entity.Teleport(1002, 300, 278);
client.Entity.ConquerPoints += 10000000;
Kernel.SendWorldMessage(new Message(" " + client.Entity.Name + " Has out from 10m Room .", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.SendSpawn(client, true);
}
if (client.Entity.MapID == 9993 && (!client.Entity.Dead))
{
client.Entity.Teleport(1002, 300, 278);
client.Entity.ConquerPoints += 50000000;
Kernel.SendWorldMessage(new Message(" " + client.Entity.Name + " Has out from 50m Room", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.SendSpawn(client, true);
}
break;
}
}
break;
}
#endregion
#endregion
كود:
#region rider
if (killer.MapID == 9991)
{
Kernel.SendWorldMessage(new Message(" Attention ! " + killer.Name + " Has Killed " + this.Name + " in room and won 1.8kk cps.", System.Drawing.Color.Black, Message.Center), Program.Values);
killer.ConquerPoints += 1800000;
this.Owner.MessageBox("You Killed By " + killer.Name + " So Sorry for that");
killer.Owner.MessageBox("You Killed " + this.Name + " and won 1.8kk Cps");
}
if (killer.MapID == 9992)
{
Kernel.SendWorldMessage(new Message(" Attention ! " + killer.Name + " Has Killed " + this.Name + " in room and won 18m cps.", System.Drawing.Color.Black, Message.Center), Program.Values);
killer.ConquerPoints += 18000000;
this.Owner.MessageBox("You Killed By " + killer.Name + " So Sorry for that");
killer.Owner.MessageBox("You Killed " + this.Name + " and won 18m Cps");
}
if (killer.MapID == 9993)
{
Kernel.SendWorldMessage(new Message(" Attention ! " + killer.Name + " Has Killed " + this.Name + " in room and won 80m cps.", System.Drawing.Color.Black, Message.Center), Program.Values);
killer.ConquerPoints += 80000000;
this.Owner.MessageBox("You Killed By " + killer.Name + " So Sorry for that");
killer.Owner.MessageBox("You Killed " + this.Name + " and won 80m Cps");
}
#endregion
المابات بالنسبه للمابات المابات ممنوع فيها الحصان بس انا مش هعرف اجبلكو لااضافه لحسن تبوظ حاجه عندكو
كدا تم الاضافه كامله انشاء الله جربوها ومش هتطلع فيها مشاكل بازن الله اراكم في موضوع قادمم