عرض مشاركة واحدة
احصائياتى

الردود
1

المشاهدات
2936
 
Hassan Emprator

Hassan Emprator is on a distinguished road

    غير متواجد

المشاركات
1,372

+التقييم
0.61

تاريخ التسجيل
Apr 2019

الاقامة

نظام التشغيل

رقم العضوية
30
2020-02-15, 01:40 PM
المشاركة 1 
#1  
افتراضي ارينا روم خاصه بي Rider هديه مني ليكو <3

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

فا الارينا هنزلها كامله انشاء الله وي حقوق محفوظه لي

Rider & Ahmed

بسم الله نبدا

اول حاجه الانبي سي


كود:
#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.BeigeMessage.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.BlackMessage.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.BlackMessage.Center), Program.Values);
                                            
client.Entity.Teleport(99925555);
                                            
client.Entity.RemoveFlag(Update.Flags.Ride);

                                            
client.Entity.PKMode Game.Enums.PKMode.PK;

                                            
client.Entity.SendSpawn(clienttrue);

                                        }
                                        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.BeigeMessage.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.BlackMessage.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.BlackMessage.Center), Program.Values);
                                            
client.Entity.Teleport(99935555);
                                            
client.Entity.RemoveFlag(Update.Flags.Ride);

                                            
client.Entity.PKMode Game.Enums.PKMode.PK;
                                            
client.Entity.SendSpawn(clienttrue);

                                        }
                                        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.BeigeMessage.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.BlackMessage.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.BlackMessage.Center), Program.Values);
                                            
client.Entity.Teleport(99915555);
                                            
client.Entity.RemoveFlag(Update.Flags.Ride);

                                            
client.Entity.PKMode Game.Enums.PKMode.PK;
                                            
client.Entity.SendSpawn(clienttrue);

                                        }
                                        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(1002300278);

                                        
client.Entity.ConquerPoints += 1000000;

                                        
Kernel.SendWorldMessage(new Message("  " client.Entity.Name " Has out from 1m Room."System.Drawing.Color.BlackMessage.Center), Program.Values);
                                        
client.Entity.SendSpawn(clienttrue);

                                    }

                                    if (
client.Entity.MapID == 9992 && (!client.Entity.Dead))
                                    {
                                        
client.Entity.Teleport(1002300278);

                                        
client.Entity.ConquerPoints += 10000000;

                                        
Kernel.SendWorldMessage(new Message("  " client.Entity.Name " Has out from 10m Room ."System.Drawing.Color.BlackMessage.Center), Program.Values);
                                        
client.Entity.SendSpawn(clienttrue);

                                    }

                                    if (
client.Entity.MapID == 9993 && (!client.Entity.Dead))
                                    {
                                        
client.Entity.Teleport(1002300278);

                                        
client.Entity.ConquerPoints += 50000000;

                                        
Kernel.SendWorldMessage(new Message("  " client.Entity.Name " Has out from 50m Room"System.Drawing.Color.BlackMessage.Center), Program.Values);
                                        
client.Entity.SendSpawn(clienttrue);

                                    }


                                    break;
                                }
                        }
                        break;
                    }
                
#endregion
                #endregion 

سيرش عا


كود:
 public void Die(Entity killer

ضيف تحته


كود:
#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.BlackMessage.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.BlackMessage.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.BlackMessage.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 

بعديها سيرش عا


كود:
 if (OnDeath != nullOnDeath(this); 

ضيف تحته بالظبط


كود:
                    if (this.MapID == 9991 || this.MapID == 9992 || this.MapID == 9993)
                    {
                        
killer.RemoveFlag(Network.GamePackets.Update.Flags.FlashingName);
                        
killer.FlashingNameStamp Time32.Now;
                        
killer.FlashingNameTime 0;
                        
killer.Teleport(1002288290);
                        
this.Teleport(1002300300);
                        
this.BringToLife();

                    }
                }
            }
        } 

المابات بالنسبه للمابات المابات ممنوع فيها الحصان بس انا مش هعرف اجبلكو لااضافه لحسن تبوظ حاجه عندكو

فا امنعو انتو


كود:
9991    1005    7    0
9992    1005    7    0
9993    1005    7    0 

سيرش هنا


كود:
public static readonly System.Collections.Generic.List<ushortPKFreeMaps 

ضيف فيهم دول



كود:
            9991,
            
9992,
            
9993

كدا تم الاضافه كامله انشاء الله جربوها ومش هتطلع فيها مشاكل بازن الله اراكم في موضوع قادمم