الاثنين، 11 مايو 2015
الموضوع باين من عنوانو طبعا 
خش علي Npcs.cs
#region FasterMan By MrBevo 
                #region join Faster Man  
                
case 60701://id 
                    

                        switch (
npcRequest.OptionID
                        { 

                            case 
0
                                { 
                                    
dialog.Text("Hey mr " client.Entity.Name " Do you want to start the event's fastest man? "); 
                                    
dialog.Option("Yes I want."1); 
                                    
dialog.Option("what this."2); 
                                    
dialog.Option("no thx"255); 
                                    
dialog.Avatar(35); 
                                    
dialog.Send(); 
                                    break; 
                                } 
                            case 
1
                                { 

                                    if ((
DateTime.Now.Minute >= 40) && (DateTime.Now.Minute 45)) 
                                    { 
                                        if (
World.Faster == false
                                        { 

                                            
client.Entity.Teleport(1655322249); 
                                        } 
                                        else 
                                        { 
                                            
dialog.Text("Sorey mr " client.Entity.Name " You Cant Join now Because Frist man Won "); 
                                            
dialog.Option("Yes I want."255); 
                                            break; 
                                        } 
                                    } 
                                    else 
                                    { 
                                        
dialog.Text("Sory mr : " client.Entity.Name " Come Sign Up In xx.40 ??"); 
                                        
dialog.Option("Yes I want."255); 
                                        break; 
                                    } 

                                    break; 

                                } 
                            case 
2
                                { 
                                    
client.Send(new Message("http://www.teamxor.net/"System.Drawing.Color.RedNetwork.GamePackets.Message.Website)); 
                                    break; 
                                } 
                        } 
                        break; 
                    } 
                
#endregion join 
                #region oute 
                
case 60702
                    { 
                        switch (
npcRequest.OptionID
                        { 

                            case 
0
                                { 
                                    
dialog.Text("Gratz Mr : " client.Entity.Name " Please click OK to complete the event and get a prize"); 
                                    
dialog.Option("Yes."1); 
                                    
dialog.Option("no thx"255); 
                                    
dialog.Avatar(35); 
                                    
dialog.Send(); 
                                    break; 
                                } 
                            case 
1
                                { 
                                    if (
World.Faster == false
                                    { 
                                        
uint FirstPrize 1000
                                        
client.Entity.ConquerPoints += FirstPrize
                                        
client.Entity.Teleport(1002304286); 
                                        
//   client.Entity.TopFastestman1 = 1; 
                                        
World.Faster true
                                        
Kernel.SendWorldMessage(new Message("Mr: " client.Entity.Name " has won the first place award " FirstPrize " Cps Of Fastest man Event!"System.Drawing.Color.WhiteMessage.Center), Program.GamePool); 

                                    } 
                                    else 
                                        if (
World.Faster == true && World.Faster1 == false
                                        { 
                                            
uint secondPrize 750
                                            
client.Entity.ConquerPoints += secondPrize
                                            
// client.Entity.TopFastestman2 = 1; 
                                            
client.Entity.Teleport(1002304286); 
                                            
World.Faster1 true
                                            
Kernel.SendWorldMessage(new Message("Mr: " client.Entity.Name " has won the second place award " secondPrize " Of Fastest man Event!"System.Drawing.Color.WhiteMessage.Center), Program.GamePool); 

                                        } 
                                        else 

                                            if (
World.Faster == true && World.Faster1 == true && World.Faster2 == false
                                            { 
                                                
uint ThirdPrize 500
                                                
client.Entity.ConquerPoints += ThirdPrize
                                                
//  client.Entity.TopFastestman3 = 1; 
                                                
client.Entity.Teleport(1002304286); 
                                                
World.Faster2 true
                                                
Kernel.SendWorldMessage(new Message("Mr: " client.Entity.Name " has won the Third place award " ThirdPrize " Of Fastest man Event!"System.Drawing.Color.WhiteMessage.Center), Program.GamePool); 

                                            } 
                                    break; 
                                } 
                        } 
                        break; 
                    } 


                
#endregion oute 
                #endregion faster man  
وبعدين خش علي World.cs
وحط الاكواد دي
public static bool Faster false
        public static 
bool Faster1 false
        public static 
bool Faster2 false;  
وفى نفس الملف ابحث عن 
#region Clan War  
واقفلو من السالب - 
وارمى دة تحتو 
#region FasterMan 

            
if (client.Entity.MapID == 1655
            { 
                
client.Entity.AddFlag(Update.Flags.Cyclone); 
            } 
            if (
Faster2 == true
            { 
                if (
client.Entity.MapID == 1655
                { 
                    
client.Entity.Teleport(1002304286); 
                } 
            } 
            var 
Lego DateTime.Now
            if ((
DateTime.Now.Minute == 40) && (DateTime.Now.Second == 01 )) 
            { 
                
Faster false
                
Faster1 false
                
Faster2 false
                
Kernel.SendWorldMessage(new Message("Fastest man Event has started now  ."System.Drawing.Color.WhiteMessage.Center), Program.GamePool); 
                
client.MessageBox("Fastest man War Has Started You Need Sign up ?."
                          (
p) => { p.Entity.Teleport(66726133); }, null60); 
            } 
            
#endregion FasterMan  
وبعدين خش علي النفي كات و ضيف المابه دي

1655    1645    7    0  
وبعدين الانبسيهات فى النافى كات 


60701    0    0    FastermanJoin    2    45410    -1    6672    57    35    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0     
60702    0    0    FasterManOute    2    45410    
-1    1655    214    209    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0  
هل أعجبك الموضوع؟! ↓
بضغطة زر تشارك الفائدة وتدعم هاى تك

عوادي الياس

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

0 التعليقات