قديم 2020-04-01, 12:57 PM
المشاركة #2  
ElSaher
  • غير متواجد
افتراضي رد: طلب
بدل الnpc دا بلي عندك

كود:
#region  Titly by elsaher
                    
case 17526:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hello " client.Player.Name ", How are you ? I am the manager of the new titles / wings");
                                        
dialog.Text("Do you want to buy wings / titles For free?");
                                        
dialog.Option("All Wing&Titel"1);
                                        break;
                                    }
                                case 
1:
                                    {
                                        new 
TitleStorage().GetAll(client);
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion 


قديم 2020-04-01, 01:05 PM
المشاركة #3  
medo2020
  • غير متواجد
افتراضي رد: طلب
يعنى ده هيفتح كل الاجنحه والالقاب كلها الجديده والقديمه
السورس 3 دى مش 2 دى

قديم 2020-04-01, 01:25 PM
المشاركة #4  
ElSaher
  • غير متواجد
exclamationpointss رد: طلب
يعنى ده هيفتح كل الاجنحه والالقاب كلها الجديده والقديمه
السورس 3 دى مش 2 دى
هيفتحلك الاجنحات وا الالقاب الي في السورس كولها

قديم 2020-04-01, 01:29 PM
المشاركة #5  
medo2020
  • غير متواجد
افتراضي رد: طلب
3 دى السورس بتعاى انا

قديم 2020-04-01, 01:31 PM
المشاركة #6  
medo2020
  • غير متواجد
افتراضي رد: طلب
new TitleStorage().GetAll(client);
الكلمه دى جاى تحتها خط GetAll

قديم 2020-04-01, 01:39 PM
المشاركة #7  
ElSaher
  • غير متواجد
افتراضي رد: طلب
new TitleStorage().GetAll(client);
الكلمه دى جاى تحتها خط GetAll
جالك ايرور في Get.all

قديم 2020-04-01, 01:43 PM
المشاركة #8  
ElSaher
  • غير متواجد
افتراضي رد: طلب
في كلاس Wardrobe.cs لو مش لقيتو ابحث عن
class CoatStorage

ابحث عن

كود:
   public void Handle(Client.GameState client

امسح الفويد كلو وضيف دا

كود:
  public void Handle(Client.GameState client)
        {
            switch (
Info.ActionId)
            {
                case 
Action.Unequip:
                    {
                        if (
StorageManager.Wing<bool>(Info.TypeInfo.Id))
                        {
                            
client.Player.EquippedWing 0;
                            
client.Player.NowEquippedWing.Clear();
                        }
                        else if (
StorageManager.Title<bool>(Info.TypeInfo.Id))
                        {
                            
client.Player.EquippedTitle 0;
                            
client.Player.NowEquippedTitle.Clear();
                        }
                        
client.Send(FinalizeProtoBuf(Info));
                        break;
                    }
                case 
Action.Equip:
                    {
                        if (
client.Player.UTitlePoints StorageManager.GetTitlePoints((short)Info.Type, (short)Info.Id))
                            break;
                        if (
StorageManager.Wing<bool>(Info.TypeInfo.Id))
                        {
                            
client.Player.EquippedWing StorageManager.Wing<int>(Info.TypeInfo.Id);
                            
client.Player.NowEquippedWing.Clear();
                            
client.Player.NowEquippedWing.Add(Info.Type "~" Info.Id);
                        }
                        else if (
StorageManager.Title<bool>(Info.TypeInfo.Id))
                        {
                            
client.Player.EquippedTitle StorageManager.Title<int>(Info.TypeInfo.Id);
                            
client.Player.NowEquippedTitle.Clear();
                            
client.Player.NowEquippedTitle.Add(Info.Type "~" Info.Id);
                        }

                        
Info = new TitleStorageProto()
                        {
                            
ActionId Action.Equip,
                            
Points client.Player.UTitlePoints,
                            
Type Info.Type,
                            
Id Info.Id,
                        };

                        
client.Send(FinalizeProtoBuf(Info));
                        break;
                    }
            }
            new 
TitleStorage().CheckTitles(client);
        } 

ضيف دول فيه بعد الفويد دول


كود:
 public void GetAll(Client.GameState client)
        {
            foreach (var 
title in Database.WardrobeTable.Titles.Values)
            {
                
AddTitle(client, (short)title.Type, (short)title.IDfalse);
            }
            
client.Player.haveallTitles true;
        } 

وفي نفس الكلاس ابحث عن

كود:
 private bool CollectedMonkey 

ضيف الكود دا بعدو

كود:
 public void CheckTitles(Client.GameState client)
        {
            if (
client.Player.haveallTitles) { GetAll(client); return; }
            
#region Titles And Wings Equips
            #region Wings
            #region Union Emperor
            
if (client.Union != null)
                if (
client.Union.IsKingdom())
                    if (
client.Union.IsLeader(client.Player.UID))
                        new 
TitleStorage().AddTitle(client40011000false);
                    else
                        new 
TitleStorage().RemoveTitle(client40011000false);
                else
                    new 
TitleStorage().RemoveTitle(client40011000false);
            else
                new 
TitleStorage().RemoveTitle(client40011000false);
            
#endregion
            #region The Champion Of Elite Pk Tournament
            
if (client.Player.Titles.ContainsKey(TitlePacket.Titles.ElitePKChamption_High))
            {
                new 
TitleStorage().AddTitle(client600120false);
            }
            else
                new 
TitleStorage().RemoveTitle(client600120false);
            
#endregion
            #region Own a 5-star garment
            
if (Database.WardrobeTable.AmountStarGarments(client5) >= 1)
            {
                new 
TitleStorage().AddTitle(client600322false);
            }
            else
                new 
TitleStorage().RemoveTitle(client600322false);
            
#endregion
            #region Own a 5-star Mount armor
            
if (Database.WardrobeTable.AmountStarMounts(client5) >= 1)
            {
                new 
TitleStorage().AddTitle(client600423false);
            }
            else
                new 
TitleStorage().RemoveTitle(client600423false);
            
#endregion
            #region Prestige Score reaches 600,000
            
if (client.Player.TotalPerfectionScore >= 600000)
            {
                new 
TitleStorage().AddTitle(client20262026false);
            }
            else
                new 
TitleStorage().RemoveTitle(client20262026false);
            
#endregion
            #region Stars Score reaches 324
            
if (client.Equipment.TotalStars >= 324)
            {
                new 
TitleStorage().AddTitle(client60076007false);
            }
            else
                new 
TitleStorage().RemoveTitle(client60076007false);
            
#endregion
            #region Stars Score reaches 216
            
if (client.Equipment.TotalStars >= 216)
            {
                new 
TitleStorage().AddTitle(client60086008false);
            }
            else
                new 
TitleStorage().RemoveTitle(client60086008false);
            
#endregion
            #endregion
            #region Titles
            #region Union Emperor
            
if (client.Union != null)
                if (
client.Union.IsKingdom())
                    if (
client.Union.IsLeader(client.Player.UID))
                        new 
TitleStorage().AddTitle(client11000false);
                    else
                        new 
TitleStorage().RemoveTitle(client11000false);
                else
                    new 
TitleStorage().RemoveTitle(client11000false);
            else
                new 
TitleStorage().RemoveTitle(client11000false);
            
#endregion
            #region CollectedRandMonkey
            
if (CollectedRandMonkey(client))
            {
                new 
TitleStorage().AddTitle(client201314false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client201314false);
            }
            
#endregion
            #region Collect 8 kinds of permanent saint monkeys (can be activated via the Wardrobe after the event)
            
if (Collected8TypesMonkey(client))
            {
                new 
TitleStorage().AddTitle(client201617false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client201617false);
            }
            
#endregion
            #region Collect a permanent Solar Monkey
            
if (CollectedMonkey(client200559))
            {
                new 
TitleStorage().AddTitle(client201415false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client201415false);
            }
            
#endregion
            #region Collect a permanent Lunar Monkey
            
if (CollectedMonkey(client200560))
            {
                new 
TitleStorage().AddTitle(client201516false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client201516false);
            }
            
#endregion
            #region The Total Score of Chi Study Reaches 1.600 Points
            
if (client.ChiData.DragonPoints == 400 && client.ChiData.PhoenixPoints == 400 && client.ChiData.TigerPoints == 400 && client.ChiData.TurtlePoints == 400)
            {
                new 
TitleStorage().AddTitle(client20181false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client20181false);
            }
            
#endregion
            #region Prestige Score reaches 400,000
            
if (client.Player.TotalPerfectionScore >= 400000)
            {
                new 
TitleStorage().AddTitle(client20272027false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client20272027false);
            }
            
#endregion
            #region The Total Score Of Jiang hu training reaches 81,000 points(Title)
            
if (client.Player.MyJiang != null && client.Player.MyJiang.Inner_Strength >= 81000)
            {
                new 
TitleStorage().AddTitle(client20045false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client20045false);
            }
            
#endregion
            #region Complete 320 Achievement
            
if (client.Player.MyAchievement.Count(client.Player.UID) >= 320)
            {
                new 
TitleStorage().AddTitle(client20012false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client20012false);
            }
            
#endregion
            #region Own 5 garments of 4-star or 5-star
            
if (Database.WardrobeTable.AmountStarGarments(client4) >= 5)
            {
                new 
TitleStorage().AddTitle(client20056false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client20056false);
            }
            
#endregion
            #region Own 5 Mount of 4-star or 5-star
            
if (Database.WardrobeTable.AmountStarMounts(client4) >= 5)
            {
                new 
TitleStorage().AddTitle(client20067false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client20067false);
            }
            
#endregion
            #region CelestialFox(200595)
            
if (CollectedCelestialFox(client))
            {
                new 
TitleStorage().AddTitle(client20502050false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client20502050false);
            }
            
#endregion
            #region CelestialFox(Fantasy)(200596)
            
if (CollectedCelestialFoxFantasy(client))
            {
                new 
TitleStorage().AddTitle(client20512051false);
            }
            else
            {
                new 
TitleStorage().RemoveTitle(client20512051false);
            }
            
#endregion
            #endregion
            #endregion
            #region GM
            /*if (client.Account.State == Database.AccountTable.AccountState.GameMaster)
            {
                foreach (var title in Database.WardrobeTable.Titles.Values)
                {
                    AddTitle(client, (short)title.Type, (short)title.ID);
                }
            }*/
            #endregion
        



قديم 2020-04-01, 02:08 PM
المشاركة #9  
medo2020
  • غير متواجد
افتراضي رد: طلب
هو الان بى سى اصلاا مش شغال

قديم 2020-04-01, 02:09 PM
المشاركة #10  
medo2020
  • غير متواجد
افتراضي رد: طلب
مش بيفتح الاجنحه طيب


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع



الساعة الآن 06:21 PM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.