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

الردود
0

المشاهدات
3706
 
Osama
( :: عضو متقدم :: )

Osama is on a distinguished road

    غير متواجد

المشاركات
94

+التقييم
0.02

تاريخ التسجيل
Mar 2013

الاقامة

نظام التشغيل

رقم العضوية
2549
08-19-2018, 04:08 PM
المشاركة 1 
#1  
Cool حل مشكله التوب الجيلد وير مش بيدى جايزة
الجيلد وير

مشكله التوب الجيلد بيدى جايزة p_961b0rxq1.gif
انهاردة موضوعى ده متكرر كتير بس مظنش انه نفس الشرح

اولا هتفتح ملف اسمه NPC من السورس وتبحث عن GuildWar Prize وتاخد ال ID كوبى ومش تنسى الاى دى تمام

بعد كده هتضيف الان بى سى ده


كود:
#region GuildPrize By xRage 
                
case 1231239
                    { 
                        switch (
npcRequest.OptionID
                        { 
                            case 
0
                                { 
                                    
dialog.Text("Heri Bro I'm LegendCo Choose You Wanna To Do, So What brought?"); 
                                    
dialog.Option("I Want Prize Of GuildWar"4); 
                                     
dialog.Option("1 Lordtoken for SilverPrize"1); 
                                    
dialog.Option("2 Lordtoken for GoldTrophy"2); 
                                    
dialog.Option("3 Lordtoken for GoldPrize"3); 
                                    
dialog.Option("Has not brought anything."255); 
                                    
dialog.Send(); 
                                    break; 
                                } 
                            case 
1
                                { 
                                    if (
client.Inventory.Contains(7234671)) 
                                    { 
                                        
client.Inventory.Remove(7234671); 
                                        
client.Inventory.Add(210006501); 
                                        
dialog.Text("You have Get SilverPrize"); 
                                        
dialog.Option("Thanks."255); 
                                        
dialog.Send(); 
                                    } 
                                    else 
                                    { 
                                        
dialog.Text("You don't have 1 LordToken"); 
                                        
dialog.Option("Ahh sorry."255); 
                                    } 
                                    break; 
                                } 
                            case 
2
                                { 
                                    if (
client.Inventory.Contains(7234672)) 
                                    { 
                                        
client.Inventory.Remove(7234672); 
                                        
client.Inventory.Add(210008501); 
                                        
dialog.Text("You have Get GoldTrophy"); 
                                        
dialog.Option("Thanks."255); 
                                        
dialog.Send(); 
                                    } 
                                    else 
                                    { 
                                        
dialog.Text("You don't have 2 Lord token"); 
                                        
dialog.Option("Ahh sorry."255); 
                                    } 
                                    break; 
                                } 
                            case 
3
                                { 
                                    if (
client.Inventory.Contains(7234671)) 
                                    { 
                                        
client.Inventory.Remove(7234673); 
                                        
client.Inventory.Add(210007501); 
                                        
Kernel.SendWorldMessage(new Message("Congratulations! " client.Entity.Name " won three guilds wars and won a GoldPrize"System.Drawing.Color.WhiteMessage.Center), Program.GamePool); 
                                        
dialog.Text("You have Get GoldPrize"); 
                                        
dialog.Option("Thanks."255); 
                                        
dialog.Send(); 
                                    } 
                                    else 
                                    { 
                                        
dialog.Text("You don't have 3 Lord token"); 
                                        
dialog.Option("Ahh sorry."255); 
                                    } 
                                    break; 
                                } 
                            case 
4
                                { 
                                    
dialog.Text("Your guild won the GuildWar? so, you're rewarded with CPs and top special."); 
                                    
dialog.Option("GuildLeader"5); 
                                    
dialog.Option("DeputyLeader"7); 
                                    
dialog.Send(); 
                                    break; 
                                } 
                            case 
5
                                { 
                                    if (!
GuildWar.IsWar && GuildWar.Claim && client.Guild != null && client.Entity.GuildID == GuildWar.KeeperID && client.Entity.GuildRank == (ushort)Game.Enums.GuildMemberRank.GuildLeader && ClassPk.TopGlClaim == 0
                                    { 
                                        
//#warning GUILD WAR PRIZE 
                                        
Program.AddWarLog("GuildWar""" rates.GuildWar ""client.Entity.Name);//TQ 

                                        
GuildWar.Claim false
                                        
GuildWar.KeeperID 0
                                        
client.Entity.ConquerPoints += rates.GuildWar
                                        
ClassPk.AddGl();//TQ 
                                        
client.Inventory.Add(72346701); 
                                        
Game.Flags.AddGuildLeader(client); 
                                        
client.Entity.AddFlag(Update.Flags.TopGuildLeader); 
                                        
Kernel.SendWorldMessage(new Message("Congratulations! " client.Entity.Name " Leader of " client.Guild.PoleKeeper " The winner guild has Claimed Guild War Prize " rates.GuildWar " cps and LordToken!"System.Drawing.Color.WhiteMessage.Center), Program.GamePool); 
                                    } 
                                    else 
                                    { 
                                        
dialog.Text("Sorry you dont have Any Prize to claim only GL of the winner guild can claim Prize After GW"); 
                                        
dialog.Option("Ahh."255); 
                                        
dialog.Send(); 
                                    } 
                                    break; 
                                } 
                            case 
6
                                { 
                                    if (
client.Guild != null
                                    { 
                                        if (
client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Game.Enums.GuildMemberRank.DeputyLeader
                                        { 
                                            
dialog.Text("Are you sure you want to Claim your Prize?"); 
                                            
dialog.Option("Yes."7); 
                                            
dialog.Option("Ah, nevermind."255); 
                                            
dialog.Send(); 
                                        } 
                                        else 
                                        { 
                                            
dialog.Text("Sorry only DeputyLeader of the Winner Guild can Claim The Prize After GuildWar End."); 
                                            
dialog.Option("Ahh."255); 
                                            
dialog.Send(); 
                                        } 

                                    } 
                                    else 
                                    { 
                                        
dialog.Text("Sorry You are not Member in any guild yet"); 
                                        
dialog.Option("Ahh."255); 
                                        
dialog.Send(); 
                                    } 
                                    break; 
                                } 
                            case 
7
                                { 
                                    
//if (DateTime.Now.DayOfWeek == DayOfWeek.Sunday) 
                                    // { 
                                    
if (!GuildWar.IsWar && client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Game.Enums.GuildMemberRank.DeputyLeader && ClassPk.TopDlClaim 5
                                    { 
                                        
ClassPk.AddDl(); 
                                        
client.Entity.AddFlag(Update.Flags.TopDeputyLeader); 
                                        
Kernel.SendWorldMessage(new Message("Congratulations! " client.Entity.Name " From " client.Guild.PoleKeeper " Has Claimed TopDeputyLeader Halo!"System.Drawing.Color.WhiteMessage.TopLeft), Program.GamePool); 
                                        if (
ClassPk.TopDlClaim == 1
                                        { 
                                            
Game.Flags.AddGuildDeaputy(client); 
                                        } 
                                        if (
ClassPk.TopDlClaim == 2
                                        { 
                                            
Game.Flags.AddGuildDeaputy2(client); 
                                        } 
                                        if (
ClassPk.TopDlClaim == 3
                                        { 
                                            
Game.Flags.AddGuildDeaputy3(client); 
                                        } 
                                        if (
ClassPk.TopDlClaim == 4
                                        { 
                                            
Game.Flags.AddGuildDeaputy4(client); 
                                        } 
                                        if (
ClassPk.TopDlClaim == 5
                                        { 
                                            
Game.Flags.AddGuildDeaputy5(client); 
                                        } 
                                        else 
                                        { 
                                            
dialog.Text("Sorry you dont have Any Prize to claim only Dl of the Winner Guild Can claim the halo After GW end."); 
                                            
dialog.Option("Ahh."255); 
                                            
dialog.Send(); 
                                        } 
                                    } 
                                    break; 
                                } 
                        } 
                        break; 
                    } 
                
#endregion 


متنساش تغير الاى دى الى انا قلتلك تحفظه تمام

بكده الراجل هيديك السى بى اس وكمان التوبات وكمان انت ممكن تشغل الجيلد وير فى اى وقت انته عايزة .

ايه كانت المشكله فى معظم السورسات بقه .

المشكله كانت فى وقت الان بى سى وعدد التوبات كمان دلوقتى المشكله محلوله :

بالنسبه لموضوع التبات مش بيسيف الاكواد الللى فى الان بى سى بتخليه يسيف 7 ايام يعنى التوب هيفضل مع الود 7 ايام .

لو التوب مسيفش كده عيب من السورس نفسه وده ليه موضوع تانى الى اللقاء فى موضوع اخر انشاء الله



pg la;gi hgj,f hg[dg] ,dv la fd]n [hd.m hg[dg] ,dv