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

الردود
4

المشاهدات
1671
 
محمد ياسر

محمد ياسر is on a distinguished road

    غير متواجد

المشاركات
1,940

+التقييم
0.89

تاريخ التسجيل
Apr 2019

الاقامة
https://www.facebook.com/daany

نظام التشغيل

رقم العضوية
1
2019-04-25, 11:20 AM
المشاركة 1 
#1  
افتراضي حل مشكله دم باب الجيلد

في NPCS.CS
ابحث عن

كود:
case 516074

وتغير الnpc الى عندك كله بده


كود:
#region Gates 
                            
case 516074
                                { 
                                    if (
client.Guild != null
                                    { 
                                        if (
client.Guild.PoleKeeper
                                        { 
                                            switch (
npcRequest.OptionID
                                            { 
                                                case 
0
                                                    
dialog.Text("Select the option you want to pursue."); 
                                                    if (
client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.GuildLeader || client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.DeputyLeader
                                                    { 
                                                        
dialog.Option("Open gate."1); 
                                                        
dialog.Option("Close gate."2); 
                                                    } 
                                                    
dialog.Option("Get inside."3); 
                                                    
dialog.Option("Nothing."255); 
                                                    
dialog.Send(); 
                                                    break; 
                                                case 
1
                                                    { 
                                                        
PhoenixProject.Game.ConquerStructures.Society.GuildWar.LeftGate.Mesh = (ushort)(250 PhoenixProject.Game.ConquerStructures.Society.GuildWar.LeftGate.Mesh 10); 

                                                        
Update upd = new Update(true); 
                                                        
upd.UID PhoenixProject.Game.ConquerStructures.Society.GuildWar.LeftGate.UID
                                                        
upd.Append(Update.MeshPhoenixProject.Game.ConquerStructures.Society.GuildWar.LeftGate.Mesh); 
                                                        
client.SendScreen(updtrue); 
                                                        break; 
                                                    } 
                                                case 
2
                                                    { 
                                                        
PhoenixProject.Game.ConquerStructures.Society.GuildWar.LeftGate.Mesh = (ushort)(240 PhoenixProject.Game.ConquerStructures.Society.GuildWar.LeftGate.Mesh 10); 
                                                        if (
GuildWar.LeftGate.Hitpoints 100
                                                           
GuildWar.LeftGate.Hitpoints GuildWar.LeftGate.MaxHitpoints
                                                        
Update upd = new Update(true); 
                                                        
upd.UID PhoenixProject.Game.ConquerStructures.Society.GuildWar.LeftGate.UID
                                                        
upd.Append(Update.MeshPhoenixProject.Game.ConquerStructures.Society.GuildWar.LeftGate.Mesh); 
                                                        
client.SendScreen(updtrue); 
                                                        break; 
                                                    } 
                                                case 
3
                                                    { 
                                                        
client.Entity.Teleport(1038162198); 
                                                        break; 
                                                    } 
                                            } 
                                        } 
                                    } 
                                    break; 
                                } 
                            case 
516075
                                { 
                                    if (
client.Guild != null
                                    { 
                                        if (
client.Guild.PoleKeeper
                                        { 
                                            switch (
npcRequest.OptionID
                                            { 
                                                case 
0
                                                    
dialog.Text("Select the option you want to pursue."); 
                                                    if (
client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.GuildLeader || client.AsMember.Rank == PhoenixProject.Game.Enums.GuildMemberRank.DeputyLeader
                                                    { 
                                                        
dialog.Option("Open gate."1); 
                                                        
dialog.Option("Close gate."2); 
                                                    } 
                                                    
dialog.Option("Get inside."3); 
                                                    
dialog.Option("Nothing."255); 
                                                    
dialog.Send(); 
                                                    break; 
                                                case 
1
                                                    { 
                                                        
PhoenixProject.Game.ConquerStructures.Society.GuildWar.RightGate.Mesh = (ushort)(280 PhoenixProject.Game.ConquerStructures.Society.GuildWar.RightGate.Mesh 10); 

                                                        
Update upd = new Update(true); 
                                                        
upd.UID PhoenixProject.Game.ConquerStructures.Society.GuildWar.RightGate.UID
                                                        
upd.Append(Update.MeshPhoenixProject.Game.ConquerStructures.Society.GuildWar.RightGate.Mesh); 
                                                        
client.SendScreen(updtrue); 
                                                        break; 
                                                    } 
                                                case 
2
                                                    { 
                                                        
PhoenixProject.Game.ConquerStructures.Society.GuildWar.RightGate.Mesh = (ushort)(270 PhoenixProject.Game.ConquerStructures.Society.GuildWar.RightGate.Mesh 10); 
                                                        if (
GuildWar.RightGate.Hitpoints 100
                                                            
GuildWar.RightGate.Hitpoints GuildWar.RightGate.MaxHitpoints
                                                        
Update upd = new Update(true); 
                                                        
upd.UID PhoenixProject.Game.ConquerStructures.Society.GuildWar.RightGate.UID
                                                        
upd.Append(Update.MeshPhoenixProject.Game.ConquerStructures.Society.GuildWar.RightGate.Mesh); 
                                                        
client.SendScreen(updtrue); 
                                                        break; 
                                                    } 
                                                case 
3
                                                    { 
                                                        
client.Entity.Teleport(1038210177); 
                                                        break; 
                                                    } 
                                            } 
                                        } 
                                    } 
                                    break; 
                                } 
                            
#endregion 

وافتح قاعده البيانات وخش على التابل ده sobnpcs

سميه ده الاى دى ده 516074
LeftGate

وسمى ده 516075
RightGate