ChaosGuard Monster

اذهب الى الأسفل

21102016

مُساهمة 

ChaosGuard Monster




ChaosGuard
دة اخر وحش ظهر فـكونكر

عموما هو نزل قبل كدة بس دة هيكون كامل 
..
بس أنشاء الله هيكون كامل ... تابع 
انا عاملو بأسكلات الدراجون ع فكرة بدل ما ميكونش ليه اسكلات من اصله 
..
الاضافة 
..
افتح هاندل 
ضيف ,


PHP

الكود:
#region ChaosGuard // TorNaDoTeam 
                    if (attacker.Name == "ChaosGuard") 
                    { 
                        uint rand = (uint)HarryPotter.Kernel.Random.Next(1, 7); 
                        switch (rand) 
                        { 
                            case 1: 
                                attacker.MonsterInfo.SpellID = 7014; 
                                break; 
                            case 2: 
                                attacker.MonsterInfo.SpellID = 7017; 
                                break; 
                            case 3: 
                                attacker.MonsterInfo.SpellID = 7017; 
                                break; 
                            case 4: 
                                attacker.MonsterInfo.SpellID = 7012; 
                                break; 
                            case 5: 
                                attacker.MonsterInfo.SpellID = 7013; 
                                break; 
                            case 6: 
                                attacker.MonsterInfo.SpellID = 7015; 
                                break; 
                            case 7: 
                                attacker.MonsterInfo.SpellID = 7016; 
                                break; 
                        } 
                        #region TD Area 
                        if (attacker.MonsterInfo.SpellID == 7014 || attacker.MonsterInfo.SpellID == 7017) 
                        { 
                            SpellUse suse = new SpellUse(true); 
                            attack = new Attack(true); 
                            attack.Effect1 = Attack.AttackEffects1.None; 
                            uint damage = 0; 
                            damage += (uint)Kernel.Random.Next(2500, 6000); 
                            suse.Effect1 = attack.Effect1; 
                            if (attacked.Hitpoints <= damage) 
                            { 
                                attacked.Die(attacker); 
                            } 
                            else 
                            { 
                                attacked.Hitpoints -= damage; 
                            } 
                            if (attacker.Companion) 
                                attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true); 

                            suse.Attacker = attacker.UID; 
                            suse.SpellID = attacker.MonsterInfo.SpellID; 
                            suse.X = attacked.X; 
                            suse.Y = attacked.Y; 
                            suse.AddTarget(attacked, damage, attack); 
                            foreach (var obj in attacked.Owner.Screen.Objects) 
                            { 
                                if (Calculations.InBox(obj.X, obj.Y, attacker.X, attacker.Y, 14)) 
                                { 
                                    if (obj.MapObjType == MapObjectType.Player) 
                                    { 
                                        if (obj.Owner.Entity.ContainsFlag((ulong)Update.Flags.Dead)) 
                                            continue; 
                                        attacked = obj as Entity; 
                                        if (attacked.Hitpoints <= damage) 
                                        { 
                                            attacked.Die(attacker); 
                                        } 
                                        else 
                                        { 
                                            attacked.Hitpoints -= damage; 
                                        } 

                                        suse.AddTarget(attacked, damage, attack); 
                                    } 
                                } 
                            } 
                            attacked.Owner.SendScreen(suse, true); 
                        } 
                    } 
                        #endregion 
                    #region 2nd skill 
                    if (attacker.MonsterInfo.SpellID == 7013) 
                    { 
                        SpellUse suse = new SpellUse(true); 
                        attack = new Attack(true); 
                        attack.Effect1 = Attack.AttackEffects1.None; 
                        uint damage = 0; 
                        damage += (uint)Kernel.Random.Next(2500, 6000); 
                        suse.Effect1 = attack.Effect1; 
                        if (attacked.Hitpoints <= damage) 
                        { 
                            attacked.Die(attacker); 
                        } 
                        else 
                        { 
                            attacked.Hitpoints -= damage; 
                            attacked.Owner.FrightenStamp = Time32.Now; 
                            attacked.Owner.Entity.Fright = 5; 
                            var upd = new GameCharacterUpdates(true); 
                            upd.UID = attacked.UID; 
                            upd.Add(GameCharacterUpdates.Dizzy, 0, 5); 
                            attacked.Owner.SendScreen(upd, true); 
                            attacked.Owner.Entity.AddFlag((ulong)Update.Flags.Frightened); 
                        } 
                        if (attacker.Companion) 
                            attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true); 

                        suse.Attacker = attacker.UID; 
                        suse.SpellID = attacker.MonsterInfo.SpellID; 
                        suse.X = attacked.X; 
                        suse.Y = attacked.Y; 
                        suse.AddTarget(attacked, damage, attack); 
                        foreach (var obj in attacked.Owner.Screen.Objects) 
                        { 
                            if (Calculations.InBox(obj.X, obj.Y, attacker.X, attacker.Y, 14)) 
                            { 
                                if (obj.MapObjType == MapObjectType.Player) 
                                { 
                                    if (obj.Owner.Entity.ContainsFlag((ulong)Update.Flags.Dead)) 
                                        continue; 
                                    attacked = obj as Entity; 
                                    if (attacked.Hitpoints <= damage) 
                                    { 
                                        attacked.Die(attacker); 
                                    } 
                                    else 
                                    { 
                                        attacked.Hitpoints -= damage; 
                                        attacked.Owner.FrightenStamp = Time32.Now; 
                                        attacked.Owner.Entity.Fright = 5; 
                                        var upd = new GameCharacterUpdates(true); 
                                        upd.UID = attacked.UID; 
                                        upd.Add(GameCharacterUpdates.Dizzy, 0, 5); 
                                        attacked.Owner.SendScreen(upd, true); 
                                        attacked.Owner.Entity.AddFlag((ulong)Update.Flags.Frightened); 
                                    } 

                                    suse.AddTarget(attacked, damage, attack); 
                                } 
                            } 
                        } 
                        attacked.Owner.SendScreen(suse, true); 
                    } 
                    #endregion 
                    #region Chill 
                    if (attacker.MonsterInfo.SpellID == 7015) 
                    { 
                        SpellUse suse = new SpellUse(true); 
                        attack = new Attack(true); 
                        attack.Effect1 = Attack.AttackEffects1.None; 
                        uint damage = 0; 
                        damage += (uint)Kernel.Random.Next(2500, 6000); 
                        suse.Effect1 = attack.Effect1; 
                        if (attacked.Hitpoints <= damage) 
                        { 
                            attacked.Die(attacker); 
                        } 
                        else 
                        { 
                            attacked.Hitpoints -= damage; 
                            attacked.Owner.FrightenStamp = Time32.Now; 
                            var upd = new GameCharacterUpdates(true); 
                            upd.UID = attacked.UID; 
                            upd.Add(GameCharacterUpdates.Flustered, 0, 5); 
                            attacked.Owner.SendScreen(upd, true); 
                            attacked.Owner.Entity.AddFlag((ulong)Update.Flags.Confused); 

                        } 
                        if (attacker.Companion) 
                            attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true); 

                        suse.Attacker = attacker.UID; 
                        suse.SpellID = attacker.MonsterInfo.SpellID; 
                        suse.X = attacked.X; 
                        suse.Y = attacked.Y; 
                        suse.AddTarget(attacked, damage, attack); 
                        foreach (var obj in attacked.Owner.Screen.Objects) 
                        { 
                            if (Calculations.InBox(obj.X, obj.Y, attacker.X, attacker.Y, 14)) 
                            { 
                                if (obj.MapObjType == MapObjectType.Player) 
                                { 
                                    if (obj.Owner.Entity.ContainsFlag((ulong)Update.Flags.Dead)) 
                                        continue; 
                                    attacked = obj as Entity; 
                                    if (attacked.Hitpoints <= damage) 
                                    { 
                                        attacked.Die(attacker); 
                                    } 
                                    else 
                                    { 
                                        attacked.Hitpoints -= damage; 
                                        attacked.Owner.FrightenStamp = Time32.Now; 
                                        var upd = new GameCharacterUpdates(true); 
                                        upd.UID = attacked.UID; 
                                        upd.Add(GameCharacterUpdates.Flustered, 0, 5); 
                                        attacked.Owner.SendScreen(upd, true); 
                                        attacked.Owner.Entity.AddFlag((ulong)Update.Flags.Confused); 
                                    } 

                                    suse.AddTarget(attacked, damage, attack); 
                                } 
                            } 
                        } 
                        attacked.Owner.SendScreen(suse, true); 
                    } 
                    #endregion 
                    #endregion  

.. 
وفى MonsterTable 
ضيف 


PHP

الكود:
#region ChaosGuard 
            if (Name == "ChaosGuard") 
            { 
                uint Uid = 0; 
                byte type = 30; 
                killer.ConquerPoints += 500000; 
                for (int i = 0; i < 1; i++) 
                { 
                    type = (byte)Kernel.Random.Next(1, 29); 
                    switch (type) 
                    { 
                        case 1: 
                            Uid = 824020; 
                            break; 

                        case 2: 
                            Uid = 824019; 
                            break; 

                        case 3: 
                            Uid = 824018; 
                            break; 

                        case 4: 
                            Uid = 823060; 
                            break; 

                        case 5: 
                            Uid = 823061; 
                            break; 

                        case 6: 
                            Uid = 823061; 
                            break; 

                        case 7: 
                            Uid = 823060; 
                            break; 

                        case 8: 
                            Uid = 823059; 
                            break; 

                        case 9: 
                            Uid = 823058; 
                            break; 

                        case 10: 
                            Uid = 822072; 
                            break; 

                        case 11: 
                            Uid = 822071; 
                            break; 

                        case 12: 
                            Uid = 821034; 
                            break; 

                        case 13: 
                            Uid = 821033; 
                            break; 

                        case 14: 
                            Uid = 820076; 
                            break; 

                        case 15: 
                            Uid = 820075; 
                            break; 

                        case 16: 
                            Uid = 820074; 
                            break; 

                        case 17: 
                            Uid = 820073; 
                            break; 

                        case 18: 
                            Uid = 800917; 
                            break; 

                        case 19: 
                            Uid = 800811; 
                            break; 

                        case 20: 
                            Uid = 800810; 
                            break; 
                        case 21: 
                            Uid = 800725; 
                            break; 
                        case 22: 
                            Uid = 800618; 
                            break; 
                        case 23: 
                            Uid = 800522; 
                            break; 
                        case 24: 
                            Uid = 800422; 
                            break; 
                        case 25: 
                            Uid = 800255; 
                            break; 
                        case 26: 
                            Uid = 800255; 
                            break; 
                        case 27: 
                            Uid = 800142; 
                            break; 
                        case 28: 
                            Uid = 800111; 
                            break; 
                        case 29: 
                            Uid = 800020; 
                            break; 

                    } 

                    if (Uid != 0) 
                    { 
                        ushort X = Owner.X, Y = Owner.Y; 
                        Game.Map Map = Kernel.Maps[Owner.MapID]; 
                        //if (Map.SelectCoordonates(ref X, ref Y)) 
                        { 
                            //Kernel.Spawn = false; 
                            killer.Owner.Inventory.Add(Uid, 0, 1); 
                            Kernel.SendWorldMessage(new Network.GamePackets.Message("Congratulations! " + killer.Name + " Has Defeated " + Name + " and dropped! " + Database.ConquerItemInformation.BaseInformations[Uid].Name + " and " + 500000 + " CPS!", System.Drawing.Color.Blue, 2005)); 
                            killer.ConquerPoints += 500000; 
                            Network.GamePackets._String str = new _String(true); 
                            str.UID = killer.UID; 
                            str.TextsCount = 1; 
                            str.Type = _String.Effect; 
                            str.Texts.Add("cortege"); 
                            killer.Owner.SendScreen(str, true); 
                            // return; 
                        } 
                    } 
                } 
            } 
            #endregion  

..

وابحث عن 


CODE

الكود:
|| Name == "TeratoDragon"

.. 
وضيف دة جمب الوحوش 


CODE

الكود:
|| Name == "ChaosGuard"

أكواد النافى كات من RaMy 


PHP

الكود:
INSERT INTO `monsterinfos` VALUES ('2751', 'ChaosGuard', '0001', '0275', '60000000', '00', '80000', '40000', '30000', '0019', '0086', '0000', '0000', '0000', '0000', '0014', '0015', '0000', '0800', '0500', '0140', '3', '1000000', '0000', '0001', '3451130116', '0000', '009', '099', '009', '099', '099', '099', '099', '1002020', '1001020', '0000', '0060', '0100', '0000', '10000', '00', '0', '0', '30000', '100', '0', '0');   
INSERT INTO `monsterspawns` VALUES ('2751', '0143', '0304', '0309', '0000', '0000', '0001', '2751', '0001', '2751', '0000', '0000', '0000', '0000');  

..
avatar
Amin Ebrahim
Admin
Admin

حصل Amin Ebrahim علي
البلد : مصر
الثور النمر
عدد المساهمات : 75
النشاط : 222
تاريخ الميلاد : 10/05/1998
تاريخ التسجيل : 17/07/2016
العمر : 20
الموقع : www.vps7hkayat.com
العمل/الترفيه : عاشق للتصميم
المزاج : جيد

http://my-games.rigala.net

الرجوع الى أعلى الصفحة اذهب الى الأسفل

مُشاطرة هذه المقالة على: diggdeliciousredditstumbleuponslashdotyahoogooglelive

ChaosGuard Monster :: تعاليق

لا يوجد حالياً أي تعليق

الرجوع الى أعلى الصفحة


 
صلاحيات هذا المنتدى:
لاتستطيع الرد على المواضيع في هذا المنتدى