الموضوع: Npc Give Level 140
عرض مشاركة واحدة
احصائياتى

الردود
1

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

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

    غير متواجد

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

+التقييم
0.89

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

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

نظام التشغيل

رقم العضوية
1
2019-04-18, 10:29 AM
المشاركة 1 
#1  
Post Npc Give Level 140
السلام عليكم ورحمة الله وبركاته

npc بيدي لفل 140

في ال npcs.cs

كود:
#region Npc Give Level 140
                
case 1067:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hello There I Am Npc Give Level 140");
                                    
dialog.Option("I'm Need Level 140 Bro"1);
                                    
dialog.Option("No Thanks"255);
                                    
dialog.Send();
                                    break;
                                }

                            case 
1:
                                {
                                    if (
client.Entity.ConquerPoints >= && (client.Entity.Level 140))
                                    {
                                        
client.Entity.ConquerPoints -= 1;
                                        
client.Entity.Level 140;
                                        if (
client.Entity.Reborn == 1)
                                        {
                                            
client.Entity.Atributes = (ushort)(Program.RebornInfo.ExtraAtributePoints(client.Entity.FirstRebornLevelclient.Entity.FirstRebornClass)
                                                + 
52 * (client.Entity.Level 15) + client.Entity.ExtraAtributes client.Entity.MysteryFruit);
                                        }
                                        else
                                        {
                                            
client.Entity.Atributes = (ushort)(Program.RebornInfo.ExtraAtributePoints(client.Entity.FirstRebornLevelclient.Entity.FirstRebornClass) +
                                                
Program.RebornInfo.ExtraAtributePoints(client.Entity.SecondRebornLevelclient.Entity.SecondRebornClass) + 52 * (client.Entity.Level 15) + client.Entity.ExtraAtributes client.Entity.MysteryFruit);
                                        }
                                        
using (var rec = new ServerSockets.RecycledPacket())
                                        {
                                            var 
stream rec.GetStream();
                                            
client.Entity.SendUpdate(streamclient.Entity.VitalityGame.MsgServer.MsgUpdate.DataType.Vitality);
                                            
client.Entity.SendUpdate(streamclient.Entity.SpiritGame.MsgServer.MsgUpdate.DataType.Spirit);
                                            
client.Entity.SendUpdate(streamclient.Entity.AgilityGame.MsgServer.MsgUpdate.DataType.Agility);
                                            
client.Entity.SendUpdate(streamclient.Entity.StrengthGame.MsgServer.MsgUpdate.DataType.Strength);
                                            
client.Entity.SendUpdate(streamclient.Entity.AtributesGame.MsgServer.MsgUpdate.DataType.Atributes);
                                        }
                                    }
                                    else
                                    {

                                        
dialog.Text("Please get 5000 cps to Get Level 140.");
                                        
dialog.Option("I see."255);
                                        
dialog.Avatar(116);
                                        
dialog.Send();

                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion