كونكر عرب

كونكر عرب (https://conquer-arab.com/index.php)
-   تطوير سيرفرات كونكر (https://conquer-arab.com/forumdisplay.php?f=11)
-   -   Npc title (https://conquer-arab.com/showthread.php?t=136)

Hazem 2019-04-23 03:12 PM

Npc title
 

انبي سي يعطيك الالقاب

كود PHP:

#region Title Storage Manager 
                
case 471612: 
                    { 
                        switch (
npcRequest.OptionID) 
                        { 
                            case 
0: 
                                { 
                                    
dialog.Text("Hello " + client.Entity.Name + ", How are you ? I am the manager of the new titles / wings"); 
                                    
dialog.Text("Do you want to buy wings / titles ? [Your points are " + client.Entity.TitlePoints); 
                                    
dialog.Option("CTF Wing", 1); 
                                    
dialog.Option("Wing Champion Elite", 15); 
                                    
dialog.Option("5 Star Garment Wing", 2); 
                                    
dialog.Option("5 Star Mount aramor", 3); 
                                    
dialog.Option("Overlord title", 4); 
                                    
dialog.Option("Grandmaster title", 5); 
                                    
dialog.Option("RisingStar title", 6); 
                                    
dialog.Option("Victor title", 7); 
                                    
dialog.Option("Conqueror title", 8); 
                                    
dialog.Option("Talent title", 9); 
                                    
dialog.Option("Fashionist title", 10); 
                                    
dialog.Option("SwiftChaser title", 11); 
                                    break; 
                                } 
                            case 
16: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(6001, 20, false); 
                                        
//  client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 400 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
15: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(6001, 20, false); 
                                        
// client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 400 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
1: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(6002, 21, false); 
                                        
//  client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 400 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
2: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(6003, 22, false); 
                                        
//  client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 200 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
3: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(6004, 23, false); 
                                        
//  client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 150 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
4: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(1, 1000, false); 
                                        
//     client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 200 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
5: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(2018, 1, false); 
                                        
//    client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 300 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
6: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(2001, 2, false); 
                                        
//   client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 270 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
7: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(2002, 3, false); 
                                        
//  client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 250 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
8: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(2003, 4, false); 
                                        
//client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 230 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
9: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(2004, 5, false); 
                                        
//    client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 200 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
10: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(2005, 6, false); 
                                        
//   client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 150 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                            case 
11: 
                                { 
                                    if (
client.Entity.ConquerPoints >= 100) 
                                    { 
                                        
client.Entity.ConquerPoints -= 100; 
                                        
client.Entity.WTitles.AddTitle(2006, 7, false); 
                                        
// client.Disconnect(); 
                                    
} 
                                    else 
                                    { 
                                        
dialog.Text("Sorry, you don't have enough points , You need 100 point"); 
                                        
dialog.Option("Oh , Shit !", byte.MaxValue); 
                                    } 
                                    break; 
                                } 
                        } 
                        break; 
                    } 
                
#endregion 



الساعة الآن 03:29 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب
new notificatio by 9adq_ala7sas