كونكر عرب

كونكر عرب (https://conquer-arab.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://conquer-arab.com/forumdisplay.php?f=12)
-   -   Raider بعد اذنك مشكله في سورس Virus 3D (https://conquer-arab.com/showthread.php?t=3998)

magdy 2020-03-14 08:32 PM

Raider بعد اذنك مشكله في سورس Virus 3D
 
اسكلة ال triple attack الاسكل الوحيده اللي مش عارف طريقة تعديلها الاسكله قويه فشخ ومش عارف اضيف كود او اعدلها خالص في السورس كلو دورت مش لاقيها اعدل فين فا بعد اذنكو لو تعرفو تكونو مشكووورين

Rider 2020-03-15 11:37 AM

رد: Raider بعد اذنك مشكله في سورس Virus 3D
 
magictype.cs

هبخث عن
كود PHP:

 public void Load() 

هتفضل نازل لحد
كود PHP:

public void Load()
        {

            if (
File.Exists(Constants.DataHolderPath + "Magictype.txt"))
            {
                
using (StreamReader read = File.OpenText(Constants.DataHolderPath + "Magictype.txt"))
                {
                    
string Linebas;
                    while ((
Linebas = read.ReadLine()) != null)
                    {
                        
string[] line = Linebas.Split(new string[] { "@@", " " }, StringSplitOptions.RemoveEmptyEntries);

                        
Magic spell = new Magic();

                        
spell.ID = ushort.Parse(line[1]);
                        
spell.AttackInFly = AttackInFlay(spell);
                        
spell.Type = (MagicSort)byte.Parse(line[2]);
                        
spell.Name = line[3];
                        
spell.Level = byte.Parse(line[8]);
                        
spell.UseMana = ushort.Parse(line[9]);
                        if (
spell.ID == (ushort)Game.Enums.SpellID.RevengeTail)
                            
spell.Damage = int.Parse(line[10]);
                        else if (
spell.ID == (ushort)Game.Enums.SpellID.ToxicFog)
                            
spell.Damage = (byte)((double.Parse(line[10]) % 100));
                        else
                        {
                            if ((
spell.Type == MagicSort.AddMana || spell.Type == MagicSort.Recruit || spell.Type == MagicSort.Attack) && double.Parse(line[10]) < 10000 || spell.Type == MagicSort.Auras)
                                
spell.Damage = int.Parse(line[10]);
                            else
                                
spell.Damage = Math.Min((float)(double.Parse(line[10]) % 1000), 500);//(float)((double.Parse(line[10]) % 1000) / 10000);
                        
}
                        if (
spell.ID == 12580 || spell.ID == 12590 || spell.ID == 12600) 


فوق اي spellid او تحت اي spell.damage
ضيف
كود PHP:

 if (spell.ID == 10490)
                            
spell.Damage = 150; 

و هتتحكم ف دمج عن طريق رقم 150

magdy 2020-03-15 03:14 PM

رد: Raider بعد اذنك مشكله في سورس Virus 3D
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Rider (المشاركة 32336)
magictype.cs

هبخث عن
كود PHP:

 public void Load() 

هتفضل نازل لحد
كود PHP:

public void Load()
        {

            if (
File.Exists(Constants.DataHolderPath + "Magictype.txt"))
            {
                
using (StreamReader read = File.OpenText(Constants.DataHolderPath + "Magictype.txt"))
                {
                    
string Linebas;
                    while ((
Linebas = read.ReadLine()) != null)
                    {
                        
string[] line = Linebas.Split(new string[] { "@@", " " }, StringSplitOptions.RemoveEmptyEntries);

                        
Magic spell = new Magic();

                        
spell.ID = ushort.Parse(line[1]);
                        
spell.AttackInFly = AttackInFlay(spell);
                        
spell.Type = (MagicSort)byte.Parse(line[2]);
                        
spell.Name = line[3];
                        
spell.Level = byte.Parse(line[8]);
                        
spell.UseMana = ushort.Parse(line[9]);
                        if (
spell.ID == (ushort)Game.Enums.SpellID.RevengeTail)
                            
spell.Damage = int.Parse(line[10]);
                        else if (
spell.ID == (ushort)Game.Enums.SpellID.ToxicFog)
                            
spell.Damage = (byte)((double.Parse(line[10]) % 100));
                        else
                        {
                            if ((
spell.Type == MagicSort.AddMana || spell.Type == MagicSort.Recruit || spell.Type == MagicSort.Attack) && double.Parse(line[10]) < 10000 || spell.Type == MagicSort.Auras)
                                
spell.Damage = int.Parse(line[10]);
                            else
                                
spell.Damage = Math.Min((float)(double.Parse(line[10]) % 1000), 500);//(float)((double.Parse(line[10]) % 1000) / 10000);
                        
}
                        if (
spell.ID == 12580 || spell.ID == 12590 || spell.ID == 12600) 


فوق اي spellid او تحت اي spell.damage
ضيف
كود PHP:

 if (spell.ID == 10490)
                            
spell.Damage = 150; 

و هتتحكم ف دمج عن طريق رقم 150


شكرا ليك جدا


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

مرحبا بكم في منتدي اكواد لتطوير الالعاب
new notificatio by 9adq_ala7sas