منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   كندل كويست ( كوسته) (https://code.vpscairo.com/showthread.php?t=36)

محمد ياسر 2019-04-18 11:04 AM

كندل كويست ( كوسته)
 
شـرح الـكويست

الكـويست بـتبدا كل يوم الساعه 19 في اللعبه و تخلص و 15

الـناس بـتدخل بتموت في بعضها و اللي بيكسب بياخد شمعه + سبس

لحد ما تجمع 10 شمعات و تكلم الان بي سي تاخد كـاس

Npcs.cs

كود PHP:

 #region Candle Event 
                
case 112019
                    { 
                        switch (
npcRequest.OptionID
                        { 
                            case 
0
                                { 
                                     
                                    
dialogs.Text("Hey there " client.Entity.Name " Would you like to join the Candle PKWar if you win Gold Clup  and Cps  ?."); 
                                    
dialogs.Option("Yes Please"1); 
                                    
dialogs.Option("need My gold Clup"2); 
                                    
dialogs.Option("Not now."255); 
                                    
dialogs.Send(); 
                                    break; 
                                } 

                            case 
1
                                { 
                                    if (
DateTime.Now.Hour >= 19 && DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 15
                                    { 
                                        
client.Entity.Teleport(16205050); 
                                    } 
                                    else 
                                    { 
                                        
dialogs.Text("Candle Pk War is held during 07:10 To 07:15 in every Day"); 
                                        
dialogs.Option("I don't care."255); 
                                        
dialogs.Send(); 
                                        break; 
                                    } 
                                    break; 
                                } 

                            case 
2
                                { 
                                    if (
client.Inventory.Contains(72347010)) 
                                    { 
                                    
client.Inventory.Remove(72347010); 
                                    
client.Inventory.Add(210009501); 
                                    
Kernel.SendWorldMessage(new Message(string.Concat(new object[] { "Congratulations! "client.Entity.Name" Has replaced the 10 candles to goldclup This gift of Candle War!." }), System.Drawing.Color.White0x7db), Kernel.GamePool.Values); 
                                    } 
                                    else 
                                    { 
                                        
dialogs.Text("Sory you dont have 10 candles [ Candle.TK ]."); 

                                    
dialogs.Option("Thix Candle!"0xff); 
                                    
dialogs.Send(); 
                                        break; 
                                    } 
                                 
                                break; 
                                } 
                        } 
                        break; 
                    } 
                     

                
#endregion 
                #region Winner Candle Event 
                
case 112020
                    { 
                        switch (
npcRequest.OptionID
                        { 
                            case 
0
                                { 
                                    
dialogs.Text("Hey there " client.Entity.Name "Would you like to claim your Prize ( Egy Qahr )?."); 
                                    
dialogs.Option("Yes Please thinx Candle"1); 
                                    
dialogs.Option("I don't care."255); 
                                    
dialogs.Send(); 
                                    break; 
                                } 
                            case 
1
                                { 
                                    
int alive 0
                                    foreach (
Conquer_Online_Server.Client.GameState players in Conquer_Online_Server.ServerBase.Kernel.GamePool.Values
                                        if (
players.Entity.MapID == 1620 && (!players.Entity.Dead)) 
                                            
alive++; 
                                    if (
DateTime.Now.Hour >= 19 && DateTime.Now.Minute >= 20 && DateTime.Now.Minute <= 25
                                     
                                    { 
                                        if (
alive == 1
                                        { 
                                             
                                            
client.Inventory.Add(72347001); 
                                            
client.Entity.ConquerPoints += 100000
                                            
Conquer_Online_Server.ServerBase.Kernel.SendWorldMessage(new Message("Congratulations! " client.Entity.Name " claimed (( 100,000 )) for winning the Candle and 1/10 gold clup Pk for this Hour."System.Drawing.Color.BlackMessage.Talk), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values); 
                                            
client.Entity.Teleport(1002429378); 
                                            
EntityTable.SaveEntity(client); 
                                        } 
                                        else 
                                        { 
                                            
dialogs.Text("There are still " alive " players in the map kill it first to claim prize!"); 
                                            
dialogs.Option("okay"255); 
                                            
dialogs.Send(); 
                                            break; 
                                        } 
                                    } 
                                    else 
                                    { 
                                        
dialogs.Text("Hey there " client.Entity.Name "You can only claim the prize when the time on or after 07:20 To 07:25 "); 
                                        
dialogs.Option("ok I Sorry [Lego]"255); 
                                        
dialogs.Send(); 
                                        break; 
                                    } 
                                    break; 
                                } 
                        } 
                        break; 
                    } 
                
#endregion 

في World او Thread

كود PHP:

  #region Kandek Quest
            
if (Now64.Hour == 19)
            {
                
Kernel.SendWorldMessage(new Message("Kandel Quest start now !"Color.WhiteMessage.BroadcastMessage), Program.Values);
                foreach (var 
client in Program.Values)
                    
client.MessageBox(" Kandel Quest now work?",
                    
=> { p.Entity.Teleport(1002450383); }, null20);
            }
            
#endregion 

ارفع دول علي القاعده

كود PHP:

INSERT INTO `mapsVALUES ('1620''1730''0007''0000');  
INSERT INTO `npcsVALUES ('112019''0''0''Canlde''0002''4610''-1''1002''0450''0383''0000''0000''0000''0000''0000''0000''0000''0000''0''0''0''0''''0000''00''00''0000''00'null); 
INSERT INTO `npcsVALUES ('112020''0''0''Candle Win''0002''4610''-1''1620''0053''0058''0000''0000''0000''0000''0000''0000''0000''0000''0''0''0''0''''0000''00''00''0000''00'null); 


MohamedModyAdel 2019-06-25 10:43 PM

رد: كندل كويست ( كوسته)
 
جميل


الساعة الآن 09:22 AM

مرحبا بكم في منتدي اكواد لتطوير الالعاب