احصائياتى

الردود
3

المشاهدات
644
 
youssefabdelmanam
.:: عضو نشيط ::.

    غير متواجد

المشاركات
144

+التقييم
0.05

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

الاقامة

نظام التشغيل

رقم العضوية
238
2019-11-30, 07:55 PM
المشاركة 1
2019-11-30, 07:55 PM
المشاركة 1
افتراضي تمت الإجابة مشكلة بخصوص البروفكشن [Source Khaled v5]
عندي مشكلة بخصوص البروفكشن في سورس خالد محمد v5

دلوقتي انا باجي اعملي البروفكشن من الراجل بيتعمل تمام وكلو فولة

اجي ارستر السورس بلاقي البروفكشن يتشال من علي الحصان ويفضل علي باقي الاسطف

ياريت لو حد يعرف حل يفدني بيه

وشكرا مقدما للجميع


أفضل جواب - كتبه Rider
Spell table


كود:
if (information.WeaponSubtype.Count != 0) 

بدل الي جواها ب دي

كود:
 switch (information.ID)
                {
                    case 
5010:
                    case 
7020:
                    case 
1290:
                    case 
1260:
                    case 
5030:
                    case 
5040:
                    case 
7000:
                    case 
7010:
                    case 
7030:
                    case 
7040:
                    case 
1250:
                    case 
5050:
                    case 
5020:
                    case 
10490:
                    case 
11140:
                    case 
1300:
                    case 
11990:
                    case 
12110:
                    case 
12240:
                    case 
12230:
                    case 
12220:
                    case 
12210:
                    case 
12570:
                    case 
12580:
                    case 
12590:
                    case 
12600:
                    case 
11230:
                    case 
13040:
                    case 
13050:
                        
//  if (spell.Distance >= 3)
                        //      spell.Distance = 3;
                        //  if (spell.Range > 3)
                        //      spell.Range = 3;
                        
for (int i = 0; i < information.WeaponSubtype.Count; i++)
                        {
                            var 
subtype = information.WeaponSubtype[i];
                            if (!
WeaponSpells.ContainsKey(subtype))
                                
WeaponSpells.Add(subtype, new List<ushort>());
                            if (!
WeaponSpells[subtype].Contains(information.ID))
                                
WeaponSpells[subtype].Add(information.ID);
                        }
                        break;
                } 

handle.cs
#region Melee


كود:
  #region Up - Down Sweep & Strike
                            
int rate = 0;
                            if (
attacker.Owner.Spells.ContainsKey(10490)) rate = 100 - Database.SpellTable.GetSpell(10490, attacker.Owner).Percent;
                            if (
Kernel.Rate(rate))
                            {
                                if (
attack.SpellID >= 12580 && attack.SpellID <= 12600 && attacker.EpicMonk())
                                {
                                    var 
spell = Database.SpellTable.GetSpell(attack.SpellID, attacker.Owner);
                                    if (
spell != null)
                                    {
                                        
SpellUse suse = new SpellUse(true);

                                        
suse.Attacker = attacker.UID;
                                        
suse.SpellID = attack.SpellID;
                                        
suse.SpellLevel = spell.ID;
                                        
suse.X = attacker.X;
                                        
suse.Y = attacker.Y;
                                        
Fan fan = new Fan(attacker.X, attacker.Y, attacked.X, attacked.Y, spell.Range, spell.Sector);

                                        foreach (
Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
                                        {
                                            if (
_obj == null) continue;
                                            if (
_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Entity)
                                            {
                                                
attacked = _obj as Entity;
                                                if (
Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= 7)
                                                {
                                                    if (
CanAttack(attacker, attacked, null, attack.AttackType == Attack.Melee))
                                                    {
                                                        
attack.Effect1 = Attack.AttackEffects1.None;
                                                        
uint damages = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack);
                                                        
damages = (damages * 22) / 100;
                                                        
attack.Attacked = attacked.UID;
                                                        
attack.Damage = damages;
                                                        
suse.Effect1 = attack.Effect1;
                                                        
suse.AddTarget(_obj, damages, attack);
                                                        
ReceiveAttack(attacker, attacked, attack, ref damages, null);
                                                    }
                                                }
                                            }
                                        }
                                        
attacker.SendScreen(suse);
                                        
attacker.AttackPacket = null;
                                        return;
                                    }
                                }
                            }
                            else if (
attacker.Owner.Spells.ContainsKey(10490) && attacker.Monk())
                            {
                                var 
spell = Database.SpellTable.GetSpell(10490, attacker.Owner);

                                if (
Kernel.Rate(spell.MonsterPower - 55) && attacker.Owner.Spells.ContainsKey(12570) && attacker.EpicMonk())
                                {
                                    
spell = Database.SpellTable.GetSpell(12570, attacker.Owner);
                                    if (
CanUseSpell(spell, attacker.Owner))
                                    {
                                        
PrepareSpell(spell, attacker.Owner);
                                        
SpellUse suse2 = new SpellUse(true);
                                        
suse2.Attacker = attacker.UID;
                                        
suse2.SpellID = spell.ID;
                                        
suse2.SpellLevel = spell.Level;
                                        if (
attacked != null)
                                        {
                                            
suse2.X = attacked.X;
                                            
suse2.Y = attacked.Y;
                                        }
                                        else
                                        {
                                            
suse2.X = attackedsob.X;
                                            
suse2.Y = attackedsob.Y;
                                        }
                                        
suse2.SpellEffect = 1;
                                        foreach (
Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
                                        {
                                            if (
_obj == null) continue;
                                            if (
_obj.MapObjType == MapObjectType.Monster)
                                            {
                                                
attacked = _obj as Entity;
                                                if (
Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= spell.Range)
                                                {
                                                    if (
CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
                                                    {
                                                        
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack);
                                                        
damage = (damage * 22) / 100;
                                                        
attack.Damage = 0;
                                                        
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
                                                        
suse2.AddTarget(attacked, damage, attack);
                                                    }
                                                }
                                            }
                                            else if (
_obj.MapObjType == MapObjectType.Entity)
                                            {
                                                
attacked = _obj as Entity;
                                                if (
Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= spell.Range)
                                                {
                                                    if (
CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
                                                    {

                                                        
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack);
                                                        
damage = (damage * 22) / 100;
                                                        
attack.Damage = 0;
                                                        
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
                                                        
suse2.AddTarget(attacked, damage, attack);
                                                    }
                                                }
                                            }
                                            else if (
_obj.MapObjType == MapObjectType.SobNpc)
                                            {
                                                
attackedsob = _obj as SobNpcSpawn;
                                                if (
Kernel.GetDistance(attacker.X, attacker.Y, attackedsob.X, attackedsob.Y) <= spell.Range)
                                                {
                                                    if (
CanAttack(attacker, attackedsob, spell))
                                                    {
                                                        
uint damage = Game.Attacking.Calculate.Melee(attacker, attackedsob, ref attack);
                                                        
damage = (damage * 22) / 100;
                                                        
attack.Damage = 0;
                                                        
ReceiveAttack(attacker, attackedsob, attack, damage, spell);
                                                        
suse2.AddTarget(attackedsob, damage, attack);
                                                    }
                                                }
                                            }
                                        }
                                        
attacker.Owner.SendScreen(suse2, true);
                                        
attacker.AttackPacket = null;
                                        return;

                                    }
                                }
                                else
                                {
                                    if (
CanUseSpell(spell, attacker.Owner))
                                    {
                                        
PrepareSpell(spell, attacker.Owner);
                                        
TryTrip suse = new TryTrip(true);
                                        
suse.Attacker = attacker.UID;
                                        
suse.SpellID = spell.ID;
                                        
suse.SpellLevel = spell.Level;
                                        
// if (Kernel.GetDistance(attacker.X, attacker.Y, X, Y) <= attacker.AttackRange + 1)
                                        
{
                                            if (
attackedsob != null)
                                            {
                                                if (
CanAttack(attacker, attackedsob, spell))
                                                {
                                                    
uint damage = Calculate.Melee(attacker, attackedsob, ref attack);
                                                    
damage = (damage * 22) / 100;
                                                    
suse.Attacked = attackedsob.UID;
                                                    
attack.Damage = 0;
                                                    
suse.Damage = damage;
                                                    
ReceiveAttack(attacker, attackedsob, attack, damage, spell);
                                                    
attacker.Owner.SendScreen(suse, true);
                                                }
                                            }
                                            else
                                            {
                                                if (
CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
                                                {
                                                    
uint damage = Calculate.Melee(attacker, attacked, spell, ref attack);
                                                    
damage = (damage * 22) / 100;
                                                    
suse.Attacked = attacked.UID;
                                                    
suse.Damage = damage;
                                                    
attack.Damage = 0;
                                                    
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
                                                    
attacker.Owner.SendScreen(suse, true);
                                                }
                                            }
                                            
attacker.AttackPacket = null; return;
                                        }
                                    }
                                }
                                
attacker.AttackPacket = null;
                                return;
                            }
                            
#endregion 

قديم 2019-11-30, 08:39 PM
المشاركة 2
Rider
.:: نائب المدير ::.
الإجابات المقدمة: 989
  • غير متواجد
افتراضي رد: مشكلة بخصوص البروفكشن [Source Khaled v5]
يا ريت توضح اكواد الان بي سي الي بيعمل برفكشن

قديم 2019-11-30, 09:25 PM
المشاركة 3
youssefabdelmanam
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة بخصوص البروفكشن [Source Khaled v5]
يا ريت توضح اكواد الان بي سي الي بيعمل برفكشن

كود:
switch (npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hello Pro I Am Here To PerfectionLevel DeathNote.");

                                    
dialog.Option("Add Perfectionlevel All Items", 5);
                                    
dialog.Send();
                                    break;
                                }
                            case 
5:
                                {

                                    
ConquerItem item1;
                                    
ConquerItem item2;
                                    
ConquerItem item3;
                                    
ConquerItem item4;
                                    
ConquerItem item5;
                                    
ConquerItem item6;
                                    
ConquerItem item7;
                                    
ConquerItem item8;
                                    
ConquerItem item9;
                                    
ConquerItem item10;
                                    
ConquerItem item11;
                                    
ConquerItem item12;
                                    
item1 = client.Equipment.TryGetItem(ConquerItem.Necklace);
                                    
item2 = client.Equipment.TryGetItem(ConquerItem.Armor);
                                    
item3 = client.Equipment.TryGetItem(ConquerItem.Ring);
                                    
item4 = client.Equipment.TryGetItem(ConquerItem.Boots);
                                    
item5 = client.Equipment.TryGetItem(ConquerItem.Head);
                                    
item6 = client.Equipment.TryGetItem(ConquerItem.Tower);
                                    
item7 = client.Equipment.TryGetItem(ConquerItem.Fan);
                                    
item8 = client.Equipment.TryGetItem(ConquerItem.SteedCrop);
                                    
item9 = client.Equipment.TryGetItem(ConquerItem.Steed);
                                    
item10 = client.Equipment.TryGetItem(ConquerItem.RightWeapon);
                                    
item11 = client.Equipment.TryGetItem(ConquerItem.LeftWeapon);
                                    
item12 = client.Equipment.TryGetItem(ConquerItem.Wing);

                                    {
                                        {

                                            if (
client.Entity.ConquerPoints >= 1)
                                            {
                                                
client.Entity.ConquerPoints -= 1;
                                            }
                                            else
                                            {
                                                
dialog.Text("Please come back to me with 1 Conquer Points.");
                                                
dialog.Option("Ahh sorry.", 255);
                                                
dialog.Send();
                                            }

                                            if ((
item1 = client.Equipment.TryGetItem(ConquerItem.Necklace)) != null)
                                            {
                                                
item1.Stars = 54;
                                                
item1.PerfectionProgress = 0;
                                                
item1.Owner = client.Entity.Name;
                                                
item1.OwnerUID = client.Entity.UID;
                                                
item1.Mode = Game.Enums.ItemMode.Update;
                                                
item1.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item1);
                                            }
                                            else
                                            {
                                                return;
                                            }

                                            if ((
item2 = client.Equipment.TryGetItem(ConquerItem.Armor)) != null)
                                            {
                                                
item2.Stars = 54;
                                                
item2.PerfectionProgress = 0;
                                                
item2.Owner = client.Entity.Name;
                                                
item2.OwnerUID = client.Entity.UID;
                                                
item2.Mode = Game.Enums.ItemMode.Update;
                                                
item2.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item2);
                                            }
                                            else
                                            {
                                                return;
                                            }

                                            if ((
item3 = client.Equipment.TryGetItem(ConquerItem.Ring)) != null)
                                            {
                                                
item3.Stars = 54;
                                                
item3.PerfectionProgress = 0;
                                                
item3.Owner = client.Entity.Name;
                                                
item3.OwnerUID = client.Entity.UID;
                                                
item3.Mode = Game.Enums.ItemMode.Update;
                                                
item3.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item3);
                                            }
                                            else
                                            {
                                                return;
                                            }

                                            if ((
item4 = client.Equipment.TryGetItem(ConquerItem.Boots)) != null)
                                            {
                                                
item4.Stars = 54;
                                                
item4.PerfectionProgress = 0;
                                                
item4.Owner = client.Entity.Name;
                                                
item4.OwnerUID = client.Entity.UID;
                                                
item4.Mode = Game.Enums.ItemMode.Update;
                                                
item4.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item4);
                                            }
                                            else
                                            {
                                                return;
                                            }

                                            if ((
item5 = client.Equipment.TryGetItem(ConquerItem.Head)) != null)
                                            {
                                                
item5.Stars = 54;
                                                
item5.PerfectionProgress = 0;
                                                
item5.Owner = client.Entity.Name;
                                                
item5.OwnerUID = client.Entity.UID;
                                                
item5.Mode = Game.Enums.ItemMode.Update;
                                                
item5.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item5);
                                            }
                                            else
                                            {
                                                return;
                                            }

                                            if ((
item6 = client.Equipment.TryGetItem(ConquerItem.Tower)) != null)
                                            {
                                                
item6.Stars = 54;
                                                
item6.PerfectionProgress = 0;
                                                
item6.Owner = client.Entity.Name;
                                                
item6.OwnerUID = client.Entity.UID;
                                                
item6.Mode = Game.Enums.ItemMode.Update;
                                                
item6.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item6);
                                            }
                                            else
                                            {
                                                return;
                                            }

                                            if ((
item7 = client.Equipment.TryGetItem(ConquerItem.Fan)) != null)
                                            {
                                                
item7.Stars = 54;
                                                
item7.PerfectionProgress = 0;
                                                
item7.Owner = client.Entity.Name;
                                                
item7.OwnerUID = client.Entity.UID;
                                                
item7.Mode = Game.Enums.ItemMode.Update;
                                                
item7.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item7);
                                            }
                                            else
                                            {
                                                return;
                                            }

                                            if ((
item8 = client.Equipment.TryGetItem(ConquerItem.SteedCrop)) != null)
                                            {
                                                
item8.Stars = 54;
                                                
item8.PerfectionProgress = 0;
                                                
item8.Owner = client.Entity.Name;
                                                
item8.OwnerUID = client.Entity.UID;
                                                
item8.Mode = Game.Enums.ItemMode.Update;
                                                
item8.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item8);
                                            }
                                            else
                                            {
                                                return;
                                            }

                                            if ((
item9 = client.Equipment.TryGetItem(ConquerItem.Steed)) != null)
                                            {
                                                
item9.Stars = 54;
                                                
item9.PerfectionProgress = 0;
                                                
item9.Owner = client.Entity.Name;
                                                
item9.OwnerUID = client.Entity.UID;
                                                
item9.Mode = Game.Enums.ItemMode.Update;
                                                
item9.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item9);
                                            }
                                            else
                                            {
                                                return;
                                            }

                                            if ((
item10 = client.Equipment.TryGetItem(ConquerItem.RightWeapon)) != null)
                                            {
                                                
item10.Stars = 54;
                                                
item10.PerfectionProgress = 0;
                                                
item10.Owner = client.Entity.Name;
                                                
item10.OwnerUID = client.Entity.UID;
                                                
item10.Mode = Game.Enums.ItemMode.Update;
                                                
item10.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item10);
                                            }
                                            else
                                            {
                                                return;
                                            }

                                            if ((
item11 = client.Equipment.TryGetItem(ConquerItem.LeftWeapon)) != null)
                                            {
                                                
item11.Stars = 54;
                                                
item11.PerfectionProgress = 0;
                                                
item11.Owner = client.Entity.Name;
                                                
item11.OwnerUID = client.Entity.UID;
                                                
item11.Mode = Game.Enums.ItemMode.Update;
                                                
item11.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item11);
                                            }
                                            else
                                            {
                                                return;
                                            }

                                            if ((
item12 = client.Equipment.TryGetItem(ConquerItem.Wing)) != null)
                                            {
                                                
item12.Stars = 54;
                                                
item12.PerfectionProgress = 0;
                                                
item12.Owner = client.Entity.Name;
                                                
item12.OwnerUID = client.Entity.UID;
                                                
item12.Mode = Game.Enums.ItemMode.Update;
                                                
item12.Send(client);
                                                
Database.ConquerItemTable.UpdatePerfection(item12);
                                            }
                                            else
                                            {
                                                return;
                                            }
                                            
client.Entity.Update(_String.Effect, "dakaishengzhi", true);
                                        }
                                    }
                                    break;
                                }
                        }
                        break;
                    } 


قديم 2019-12-01, 12:18 AM
المشاركة 4
Rider
.:: نائب المدير ::.
الإجابات المقدمة: 989
  • غير متواجد
افتراضي رد: مشكلة بخصوص البروفكشن [Source Khaled v5]
ان بي سي مظبوط مفهوش غلط حاول تعمل سيف قبل ما ترستر اللعبه


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



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

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

المواضيع المتشابهه للموضوع: مشكلة بخصوص البروفكشن [Source Khaled v5]
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
كويستت ThunderScoreWar تكويد Mr.Khaled Hassan Emprator تطوير سيرفرات كونكر 56 2021-09-03 04:45 PM
حل مشكلة لاج الي بييجي لما تموت وحوش [Source Alex] Rider تطوير سيرفرات كونكر 7 2020-04-24 03:48 AM
مشكلة في فيزيكال الننجا وتربل المونك والبيرت [Source khaled v5] youssefabdelmanam مشكلات السيرفيرات كونكر الشخصيه 3 2019-12-01 12:14 AM
حل مشكلة علامة الكنج او الكوين في الشات[Msg Source] Rider تطوير سيرفرات كونكر 2 2019-10-30 08:27 PM
مشكلة فى سورس Source Mr.khled V3 osama مشكلات السيرفيرات كونكر الشخصيه 1 2019-06-25 10:57 PM


الساعة الآن 03:40 PM