احصائياتى

الردود
163

المشاهدات
14038
 
midoazoz
.:: عضو خبير ::.

    غير متواجد

المشاركات
663

+التقييم
0.26

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

الاقامة

نظام التشغيل

رقم العضوية
2314
2020-07-07, 06:16 PM
المشاركة 1
2020-07-07, 06:16 PM
المشاركة 1
افتراضي سيستم الانيما - Anima , للعلم فكرتى وليس الانيما الاصليه
السلام عليكم
بما اني خلاص دخلت علي الانيما فعلا وحرفيا
فقررت انزل الانيما الي انا كنت عاملها مبقتش تفرق معايا وعلي قد كده يمكن تفيد ناس وتهمهم
ندخل علي الاضافات علي طول عشان مش نطول
كلاس جديد

وارمي فيه كل الكلام ده


كود:
using ConquerVirusX.Database;
using ConquerVirusX.Network;
using ConquerVirusX.Network.GamePackets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 
ConquerVirusX
{
    class 
Anima
    
{
        public static 
string[] GetAnimaForThisPlayer(Client.GameState client)
        {
            
string[] P = new string[8];
            foreach (
ConquerItem Mido in client.Equipment.Objects)
            {
                if (
Mido != null)
                {
                    if (
Mido.Position == ConquerItem.Head)
                    {
                        
P[1] = GetAnimaName(Mido.Anima);
                    }
                    if (
Mido.Position == ConquerItem.Boots)
                    {
                        
P[2] = GetAnimaName(Mido.Anima);
                    }
                    if (
Mido.Position == ConquerItem.Ring)
                    {
                        
P[3] = GetAnimaName(Mido.Anima);
                    }
                    if (
Mido.Position == ConquerItem.Necklace)
                    {
                        
P[4] = GetAnimaName(Mido.Anima);
                    }
                    if (
Mido.Position == ConquerItem.RightWeapon)
                    {
                        
P[5] = GetAnimaName(Mido.Anima);
                    }
                    if (
Mido.Position == ConquerItem.LeftWeapon)
                    {
                        
P[6] = GetAnimaName(Mido.Anima);
                    }
                    if (
Mido.Position == ConquerItem.Armor)
                    {
                        
P[7] = GetAnimaName(Mido.Anima);
                    }
                }
            }
            return 
P;
        }
        public static 
uint GetAnimaBP(uint ID)
        {
            
uint P = 0;
            if (
ID == 0)
                
P = 0;
            if (
ID == 4200001 || ID == 4200002 || ID == 4200003)
                
P = 1;
            if (
ID == 4200004)
                
P = 2;
            if (
ID == 4200005)
                
P = 3;
            if (
ID == 4200006)
                
P = 4;
            if (
ID == 4200007)
                
P = 5;
            if (
ID == 4200008)
                
P = 6;
            if (
ID == 4200009)
                
P = 7;
            if (
ID == 4200010)
                
P = 8;
            if (
ID == 4200011)
                
P = 9;
            if (
ID == 4200012)
                
P = 10;
            if (
ID == 4200013)
                
P = 11;
            if (
ID == 4200014)
                
P = 12;
            if (
ID == 4200015)
                
P = 13;
            if (
ID == 4200016)
                
P = 14;
            if (
ID == 4200017)
                
P = 15;
            if (
ID == 4200018)
                
P = 16;
            return 
P;
        }
        public static 
string GetAnimaName(uint ID)
        {
            
string P = "";
            if (
ID == 0)
                
P = "No Anima";
            if (
ID == 4200001)
                
P = "AnimaP1";
            if (
ID == 4200002)
                
P = "AnimaP2";
            if (
ID == 4200003)
                
P = "AnimaP3";
            if (
ID == 4200004)
                
P = "AnimaP4";
            if (
ID == 4200005)
                
P = "AnimaP5";
            if (
ID == 4200006)
                
P = "AnimaP6";
            if (
ID == 4200007)
                
P = "AnimaP7";
            if (
ID == 4200008)
                
P = "AnimaP8";
            if (
ID == 4200009)
                
P = "AnimaP9";
            if (
ID == 4200010)
                
P = "AnimaP10";
            if (
ID == 4200011)
                
P = "AnimaP11";
            if (
ID == 4200012)
                
P = "AnimaP12";
            if (
ID == 4200013)
                
P = "AnimaP13";
            if (
ID == 4200014)
                
P = "AnimaP14";
            if (
ID == 4200015)
                
P = "AnimaP15";
            if (
ID == 4200016)
                
P = "AnimaP16";
            if (
ID == 4200017)
                
P = "AnimaP17";
            if (
ID == 4200018)
                
P = "AnimaP18";
            return 
P;
        }
        public static 
void CalAnimaPB(Client.GameState client)
        {
            
client.Entity.ExtraBattlePower = 0;
            foreach (
ConquerItem Mido in client.Equipment.Objects)
            {
                if (
Mido != null)
                {
                    if (
Mido.Position == ConquerItem.Head)
                    {
                        
uint mido = Anima.GetAnimaBP(Mido.Anima);
                        
client.Entity.ExtraBattlePower += mido;
                    }
                    if (
Mido.Position == ConquerItem.Boots)
                    {
                        
uint mido = Anima.GetAnimaBP(Mido.Anima);
                        
client.Entity.ExtraBattlePower += mido;
                    }
                    if (
Mido.Position == ConquerItem.Ring)
                    {
                        
uint mido = Anima.GetAnimaBP(Mido.Anima);
                        
client.Entity.ExtraBattlePower += mido;
                    }
                    if (
Mido.Position == ConquerItem.Necklace)
                    {
                        
uint mido = Anima.GetAnimaBP(Mido.Anima);
                        
client.Entity.ExtraBattlePower += mido;
                    }
                    if (
Mido.Position == ConquerItem.RightWeapon)
                    {
                        
uint mido = Anima.GetAnimaBP(Mido.Anima);
                        
client.Entity.ExtraBattlePower += mido;
                    }
                    if (
Mido.Position == ConquerItem.LeftWeapon)
                    {
                        
uint mido = Anima.GetAnimaBP(Mido.Anima);
                        
client.Entity.ExtraBattlePower += mido;
                    }
                    if (
Mido.Position == ConquerItem.Armor)
                    {
                        
uint mido = Anima.GetAnimaBP(Mido.Anima);
                        
client.Entity.ExtraBattlePower += mido;
                    }
                }
                
client.SendScreen(client.Entity.CharBuffer.ToConquerPacket(10014), false);
                
client.Entity.ExtraBattlePower += 0;
            }
        }
        public static 
void UpgradeAnima(Client.GameState client, uint AnimaID)
        {
            
uint Percent = 20;
            switch (
AnimaID)
            {
                case 
4200001:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 4);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200002, 0, 1);
                                            
string Anima2 = GetAnimaName(4200002);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200003, 0, 1);
                                            
string Anima2 = GetAnimaName(4200003);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200007, 0, 1);
                                            
string Anima2 = GetAnimaName(4200007);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
client.Inventory.Add(4200009, 0, 1);
                                            
string Anima2 = GetAnimaName(4200002);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");
                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");
                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200002:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 4);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200003, 0, 1);
                                            
string Anima2 = GetAnimaName(4200003);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200004, 0, 1);
                                            
string Anima2 = GetAnimaName(4200004);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200008, 0, 1);
                                            
string Anima2 = GetAnimaName(4200008);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
client.Inventory.Add(4200010, 0, 1);
                                            
string Anima2 = GetAnimaName(4200010);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");
                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");
                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200003:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 4);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200004, 0, 1);
                                            
string Anima2 = GetAnimaName(4200004);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200005, 0, 1);
                                            
string Anima2 = GetAnimaName(4200005);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200009, 0, 1);
                                            
string Anima2 = GetAnimaName(4200009);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
client.Inventory.Add(4200011, 0, 1);
                                            
string Anima2 = GetAnimaName(4200011);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");

                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");

                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200004:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 4);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200005, 0, 1);
                                            
string Anima2 = GetAnimaName(4200005);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200006, 0, 1);
                                            
string Anima2 = GetAnimaName(4200006);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200010, 0, 1);
                                            
string Anima2 = GetAnimaName(4200010);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
client.Inventory.Add(4200012, 0, 1);
                                            
string Anima2 = GetAnimaName(4200012);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");

                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");

                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200005:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 4);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200006, 0, 1);
                                            
string Anima2 = GetAnimaName(4200006);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200007, 0, 1);
                                            
string Anima2 = GetAnimaName(4200007);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200011, 0, 1);
                                            
string Anima2 = GetAnimaName(4200011);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
client.Inventory.Add(4200013, 0, 1);
                                            
string Anima2 = GetAnimaName(4200013);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");

                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");

                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200006:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 4);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200007, 0, 1);
                                            
string Anima2 = GetAnimaName(4200007);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200008, 0, 1);
                                            
string Anima2 = GetAnimaName(4200008);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200012, 0, 1);
                                            
string Anima2 = GetAnimaName(4200012);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
client.Inventory.Add(4200014, 0, 1);
                                            
string Anima2 = GetAnimaName(4200014);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");

                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");

                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200007:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 4);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200008, 0, 1);
                                            
string Anima2 = GetAnimaName(4200008);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200009, 0, 1);
                                            
string Anima2 = GetAnimaName(4200009);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200013, 0, 1);
                                            
string Anima2 = GetAnimaName(4200013);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
client.Inventory.Add(4200015, 0, 1);
                                            
string Anima2 = GetAnimaName(4200015);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");

                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");

                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200008:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 4);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200009, 0, 1);
                                            
string Anima2 = GetAnimaName(4200009);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200010, 0, 1);
                                            
string Anima2 = GetAnimaName(4200010);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200014, 0, 1);
                                            
string Anima2 = GetAnimaName(4200014);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
client.Inventory.Add(4200016, 0, 1);
                                            
string Anima2 = GetAnimaName(4200016);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");

                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");

                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200009:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 4);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200010, 0, 1);
                                            
string Anima2 = GetAnimaName(4200010);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200011, 0, 1);
                                            
string Anima2 = GetAnimaName(4200011);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200015, 0, 1);
                                            
string Anima2 = GetAnimaName(4200015);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
client.Inventory.Add(4200017, 0, 1);
                                            
string Anima2 = GetAnimaName(4200017);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");

                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");

                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200010:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 4);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200011, 0, 1);
                                            
string Anima2 = GetAnimaName(4200011);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200012, 0, 1);
                                            
string Anima2 = GetAnimaName(4200012);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200015, 0, 1);
                                            
string Anima2 = GetAnimaName(4200015);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
client.Inventory.Add(4200017, 0, 1);
                                            
string Anima2 = GetAnimaName(4200017);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");

                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");

                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200011:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 4);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200012, 0, 1);
                                            
string Anima2 = GetAnimaName(4200012);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200013, 0, 1);
                                            
string Anima2 = GetAnimaName(4200013);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200015, 0, 1);
                                            
string Anima2 = GetAnimaName(4200015);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
client.Inventory.Add(4200017, 0, 1);
                                            
string Anima2 = GetAnimaName(4200017);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");

                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");

                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200012:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            if (
Kernel.RateM(Percent))
                            {
                                
client.Inventory.Remove(AnimaID, 2);
                                
Random Mido = new Random();
                                
uint midoR = (uint)Mido.Next(0, 3);
                                switch (
midoR)
                                {
                                    case 
0:
                                        {
                                            
client.Inventory.Add(4200013, 0, 1);
                                            
string Anima2 = GetAnimaName(4200013);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
1:
                                        {
                                            
client.Inventory.Add(4200015, 0, 1);
                                            
string Anima2 = GetAnimaName(4200015);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
client.Inventory.Add(4200017, 0, 1);
                                            
string Anima2 = GetAnimaName(4200017);
                                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                                            break;
                                        }
                                }
                            }
                            else
                            {
                                if (
Kernel.RateM(Percent))
                                {
                                    
client.Inventory.Remove(AnimaID, 1);
                                    
client.MessageBox("You Upgrade Has failed But Only One " + Anima1 + " Remove");

                                }
                                else
                                {
                                    
client.Inventory.Remove(AnimaID, 2);
                                    
client.MessageBox("You Upgrade Has failed And Two " + Anima1 + " Remove");

                                }
                            }
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
                case 
4200013:
                case 
4200014:
                case 
4200015:
                case 
4200016:
                case 
4200017:
                    {
                        
string Anima1 = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 2))
                        {
                            
client.Inventory.Remove(AnimaID, 2);
                            
client.Inventory.Add(AnimaID + 1, 0, 1);
                            
string Anima2 = GetAnimaName(AnimaID + 1);
                            
client.MessageBox("Congratulations You Have Upgrade " + Anima1 + " To " + Anima2 + " Successfully");
                        }
                        else
                            
client.MessageBox("Sorry Man But You Should Have 2 " + Anima1 + "");
                        break;
                    }
            }
        }
        public static 
void RemoveAnima(Client.GameState client, ConquerItem Mido)
        {
            if (
Mido.Anima == 0)
            {
                
client.MessageBox("Your Item Hasn't Anima");
            }
            else
            {
                
uint AnimaID = Mido.Anima;
                
Mido.Anima = 0;
                
Mido.Send(client);
                
Mido.Enchant = 0;
                
ConquerItemTable.UpdateEnchant(Mido);
                
ConquerItemTable.UpdateAnima(Mido);
                
client.Inventory.Add(AnimaID, 0, 1);
                
CalAnimaPB(client);
                
Mido.Send(client);
                
string Name = GetAnimaName(AnimaID);
                
client.MessageBox("You Have Remove " + Name + " From Item. It Now In Your Inventory");
            }
        }
        public static 
void AnimaEmbedd(Client.GameState client, ConquerItem Mido, uint AnimaID)
        {
            switch (
AnimaID)
            {
                case 
4200001:
                case 
4200002:
                case 
4200003:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(AnimaID, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(AnimaID, 1);
                                
Mido.Anima = AnimaID;
                                
uint id = AnimaID - 4200000;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                            {
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                            }
                        }
                        else
                        {
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        }
                        break;
                    }
                case 
4200004:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200004, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200004, 1);
                                
Mido.Anima = 4200004;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                        {
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        }
                        break;
                    }
                case 
4200005:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200005, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200005, 1);
                                
Mido.Anima = 4200005;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);

                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200006:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200006, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200006, 1);
                                
Mido.Anima = 4200006;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200007:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200007, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200007, 1);
                                
Mido.Anima = 4200007;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200008:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200008, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200008, 1);
                                
Mido.Anima = 4200008;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200009:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200009, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200009, 1);
                                
Mido.Anima = 4200009;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200010:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200010, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200010, 1);
                                
Mido.Anima = 4200010;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200011:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200011, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200011, 1);
                                
Mido.Anima = 4200011;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200012:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200012, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200012, 1);
                                
Mido.Anima = 4200012;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200013:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200013, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200013, 1);
                                
Mido.Anima = 4200013;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200014:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200014, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200014, 1);
                                
Mido.Anima = 4200014;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200015:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200015, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200015, 1);
                                
Mido.Anima = 4200015;
                                
CalAnimaPB(client);
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200016:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200016, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200016, 1);
                                
Mido.Anima = 4200016;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200017:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200017, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200017, 1);
                                
Mido.Anima = 4200017;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                            }
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
                case 
4200018:
                    {
                        
string Name = GetAnimaName(AnimaID);
                        if (
client.Inventory.Contains(4200018, 1))
                        {
                            if (
Mido.Anima == 0)
                            {
                                
PacketHandler.Send_Effect(client, 220, 164, 1, 2, "Embedd " + Name + "");
                                
client.Inventory.Remove(4200018, 1);
                                
Mido.Anima = 4200018;
                                
Mido.Mode = Game.Enums.ItemMode.Update;
                                
Mido.Send(client);
                                
CalAnimaPB(client);
                                
ConquerItemTable.UpdateAnima(Mido);
                                
_String str = new _String(true);
                                
str.TextsCount = 1;
                                
str.PositionX = (ushort)client.Entity.X;
                                
str.PositionY = (ushort)client.Entity.Y;
                                
str.Type = _String.MapEffect;
                                
str.Texts.Add("end_task");
                                
client.SendScreen(str, true);
                                
client.SendScreen(str.ToArray(), true);
                                
//client.MessageBox("Congratulations You Have Embed " + Name + " To Your Item");
                            
}
                            else
                                
client.MessageBox("Sorry Man But Your Item Have Anima You Should Remove it First To Embed Anther Anima");
                        }
                        else
                            
client.MessageBox("Sorry You Don't have " + Name + " In Your Inventory");
                        break;
                    }
            }
        }

    }
} 

ابحث عن


كود:
public void DoEquips(GameState client) 

قبل نهايه القوس بتاعها حط ده


كود:
Anima.CalAnimaPB(client); 

ابحث عن


كود:
public static void LoginMessages(Client.GameState client) 

حط فيها


كود:
Anima.CalAnimaPB(client); 

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


كود:
if (client.ActiveNpc >= 728525 && client.ActiveNpc <= 728527) 

فوقها علي طول حط دول


كود:
if (client.ActiveNpc >= 4200001 && client.ActiveNpc <= 4200018)
                            {
                                if (
req.OptionID == 22)
                                {
                                    
Anima.UpgradeAnima(client, client.AnimaChoose);
                                }
                                if (
req.OptionID == 20)
                                {
                                    
Npcs dialog55 = new Npcs(client);
                                    
dialog55.Text("This is Item in your Equipment that haven't Anima in it yet");
                                    
ConquerItem Item;
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.RightWeapon)) != null)
                                    {
                                        if (
Item.Anima == 0)
                                            
dialog55.Option("RightWeapon", (byte)ConquerItem.RightWeapon);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.LeftWeapon)) != null)
                                    {
                                        if (
Item.Anima == 0)
                                            
dialog55.Option("LeftWeapon", (byte)ConquerItem.LeftWeapon);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.Head)) != null)
                                    {
                                        if (
Item.Anima == 0)
                                            
dialog55.Option("Head", (byte)ConquerItem.Head);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.Boots)) != null)
                                    {
                                        if (
Item.Anima == 0)
                                            
dialog55.Option("Boots", (byte)ConquerItem.Boots);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.Necklace)) != null)
                                    {
                                        if (
Item.Anima == 0)
                                            
dialog55.Option("Necklace", (byte)ConquerItem.Necklace);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.Ring)) != null)
                                    {
                                        if (
Item.Anima == 0)
                                            
dialog55.Option("Ring", (byte)ConquerItem.Ring);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.Armor)) != null)
                                    {
                                        if (
Item.Anima == 0)
                                            
dialog55.Option("Armor", (byte)ConquerItem.Armor);
                                    }
                                    
dialog55.Send();
                                }
                                if (
req.OptionID == (byte)ConquerItem.RightWeapon || req.OptionID == (byte)ConquerItem.LeftWeapon || req.OptionID == (byte)ConquerItem.Necklace ||
                                    
req.OptionID == (byte)ConquerItem.Ring || req.OptionID == (byte)ConquerItem.Head || req.OptionID == (byte)ConquerItem.Boots
                                    
|| req.OptionID == (byte)ConquerItem.Armor)
                                {
                                    
ConquerItem Item;
                                    if ((
Item = client.Equipment.TryGetItem(req.OptionID)) != null)
                                    {
                                        
Anima.AnimaEmbedd(client, Item, client.AnimaChoose);
                                    }
                                }
                            } 

بعدين هتبحث عن


كود:
case 3001607://chi 

هتحط فوقها


كود:
#region Anima By MohamedAyman
                
case 4200001:
                case 
4200002:
                case 
4200003:
                case 
4200004:
                case 
4200005:
                case 
4200006:
                case 
4200007:
                case 
4200008:
                case 
4200009:
                case 
4200010:
                case 
4200011:
                case 
4200012:
                case 
4200013:
                case 
4200014:
                case 
4200015:
                case 
4200016:
                case 
4200017:
                case 
4200018:
                    {
                        
Npcs dialog = new Npcs(client);
                        
dialog.Text("$$$$$$$$$$$$$$$$$$$$$$$$$$$[ Anima ]$$$$$$$$$$$$$$$$$$$$$$$$$$$\n");
                        
dialog.Text("Anima System give the player BatlePower & Hp In our Game \n");
                        
dialog.Text("You Can Get Anima [1 To 6] From Monsters && AnimaMonster\n");
                        
dialog.Text("Anima [Until 12] Can Get Randomly Form Upgrade Anima\n");
                        
dialog.Text("Anima [Above 12] Only From Upgrade And 100% Will get the Above Upgrade\n");
                        
dialog.Text("You Can Now Two Choose [Embedd Anima, Upgrade Anima] \n");
                        
dialog.Option("Embedd Anima", 20);
                        
dialog.Option("UpgradeAnima", 22);
                        
dialog.Send();
                        
client.ActiveNpc = item.ID;
                        
client.AnimaChoose = item.ID;
                        break;
                    }
                
#endregion 

في GameState
حط

كود:
 public uint AnimaChoose = 0; 

و هتحط ده في packethandler


كود:
public static void Send_Effect(Client.GameState Client, uint data_8, ushort Type, byte direction, uint LoopTime, string EffectName, byte progress = 2)
        {
            
MsgActionProto mido = new MsgActionProto()
            {
                
UID = Client.Entity.UID,
                
dwParam = data_8,
                
ID = Type,
                
Facing = direction,
                
Time = LoopTime,
                
TextBool = progress,
                
Text = EffectName
            
};
            
Client.Send(mido.ToConquerPacket(10010));
        } 

هتخش علي MsgActionProto

وهتبدل Member 23
بده

كود:
 [ProtoMember(23, IsRequired = true)]
        public 
byte TextBool; 

في ConuqerItem.cs

حط دي

كود:
public uint Anima = 0; 

في ConquerItemTable

حط

كود:
public static void UpdateAnima(ConquerItem Item)
        {
            
UpdateData(Item, "Anima", Item.Anima);
        } 

هتبحث عن


كود:
item.Days = reader.ReadUInt32("Days"); 

تحتها هتحط


كود:
item.Anima = reader.ReadUInt32("Anima"); 

هتبحث عن
كود:
.Insert("Runes", v1 + "~" + v2 + "~" + v3 + "~" + v4 + "~" + v5) 

تحتها هتحط


كود:
.Insert("Anima", Item.Anima) 

هتبحث عن

كود:
item.SuspiciousStart = DateTime.FromBinary(reader.GetInt64("SuspiciousStart")); 

هتحط تحتها


كود:
item.Anima = reader.GetUInt32("Anima"); 

كده مفضلش غير ان بي سي الي هيشيلك الانيما + تعرف منه كل واحد حاطط انيما كام علي الاسطفي


كود:
#region anima Man
                
case 13123:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hello Man to Our Game  i am an Npc Help You in Anima \n");
                                    
dialog.Text("I will Help you to Remove Anima Form Item\n");
                                    
dialog.Text(" you can know any player's anima by me only you should put his Name\n");
                                    
dialog.Option("RemoveAnima", 70);
                                    
dialog.Option("ScanSomeOneAnimaInItem", 40);
                                    
dialog.Option("Thank You", 255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
40:
                                {
                                    
dialog.Text("Put The Name Of The Player You Want To Scan Anima [Small Letter] ");
                                    
dialog.Input("put His Name", 42, 32);
                                    
dialog.Send();
                                    break;
                                }
                            case 
42:
                                {
                                    var 
c = Program.FindClient(npcRequest.Input);
                                    if (
c != null)
                                    {
                                        
string[] Mido = Anima.GetAnimaForThisPlayer(c);
                                        
dialog.Text("~~~~~~~*AnimaTest For " + c.Entity.Name + "*~~~~~~~\n");
                                        
dialog.Text("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n");
                                        
dialog.Text("~~~~[Item]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[Anima]\n");
                                        
dialog.Text("~~~~RightWeapon~~~~~~~~~~~~~~~~~~~~" + Mido[5] + "\n");
                                        
dialog.Text("~~~~LeftWeapon~~~~~~~~~~~~~~~~~~~~~~" + Mido[6] + "\n");
                                        
dialog.Text("~~~~Armor~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + Mido[7] + "\n");
                                        
dialog.Text("~~~~Head~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + Mido[1] + "\n");
                                        
dialog.Text("~~~~Boots~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + Mido[2] + "\n");
                                        
dialog.Text("~~~~Ring~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + Mido[3] + "\n");
                                        
dialog.Text("~~~~Necklace~~~~~~~~~~~~~~~~~~~~~~~~~~" + Mido[4] + "\n");
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
70:
                                {
                                    
dialog.Text("Choose Item You Want to Remove Anima From It");
                                    
ConquerItem Item;
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.RightWeapon)) != null)
                                    {
                                        if (
Item.Anima != 0)
                                            
dialog.Option("RightWeapon[AnimaP" + (Item.Anima - 4200000) + "]", (byte)ConquerItem.RightWeapon + 100);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.LeftWeapon)) != null)
                                    {
                                        if (
Item.Anima != 0)
                                            
dialog.Option("LeftWeapon[AnimaP" + (Item.Anima - 4200000) + "]", (byte)ConquerItem.LeftWeapon + 100);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.Head)) != null)
                                    {
                                        if (
Item.Anima != 0)
                                            
dialog.Option("Head[AnimaP" + (Item.Anima - 4200000) + "]", (byte)ConquerItem.Head + 100);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.Boots)) != null)
                                    {
                                        if (
Item.Anima != 0)
                                            
dialog.Option("Boots[AnimaP" + (Item.Anima - 4200000) + "]", (byte)ConquerItem.Boots + 100);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.Necklace)) != null)
                                    {
                                        if (
Item.Anima != 0)
                                            
dialog.Option("Necklace[AnimaP" + (Item.Anima - 4200000) + "]", (byte)ConquerItem.Necklace + 100);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.Ring)) != null)
                                    {
                                        if (
Item.Anima != 0)
                                            
dialog.Option("Ring[AnimaP" + (Item.Anima - 4200000) + "]", (byte)ConquerItem.Ring + 100);
                                    }
                                    if ((
Item = client.Equipment.TryGetItem((byte)ConquerItem.Armor)) != null)
                                    {
                                        if (
Item.Anima != 0)
                                            
dialog.Option("Armor[AnimaP" + (Item.Anima - 4200000) + "]", (byte)ConquerItem.Armor + 100);
                                    }
                                    
dialog.Send();
                                    break;
                                }
                            case (
byte)ConquerItem.RightWeapon + 100:
                            case (
byte)ConquerItem.LeftWeapon + 100:
                            case (
byte)ConquerItem.Necklace + 100:
                            case (
byte)ConquerItem.Ring + 100:
                            case (
byte)ConquerItem.Head + 100:
                            case (
byte)ConquerItem.Boots + 100:
                            case (
byte)ConquerItem.Armor + 100:
                                {
                                    
ConquerItem item;
                                    if ((
item = client.Equipment.TryGetItem((byte)(npcRequest.OptionID - 100))) != null)
                                    {
                                        
Anima.RemoveAnima(client, item);
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

في Kernel هتضيف


كود:
public static bool RateM(double percent)
        {
            if (
percent == 0) return false;
            while ((int)
percent > 0) percent /= 10f;
            
int discriminant = 1;
            
percent = Math.Round(percent, 4);
            while (
percent != Math.Ceiling(percent))
            {
                
percent *= 10;
                
discriminant *= 10;
                
percent = Math.Round(percent, 4);
            }
            return 
Kernel.Rate((int)percent, discriminant);
        } 

هتبحث عن


كود:
public uint ExtraBattlePower 

هي هتلاقيها سطر واحد انت هتغيرها كلها بدي
انا كنت بقولك شيل
Player.ExtraBattlePower = Entity.ExtraBattlePower; لا سيبها شيلها يعني من الموضوع
وبالنسبه لفويد ExtraBattlePower
هتخليه كده

كود:
public uint _ExtraBattlePower;
        public 
uint ExtraBattlePower
        
{
            
get { return _ExtraBattlePower; }
            
set
            
{
                if (
value > 200)
                    
value = 0;
                if (
ExtraBattlePower > 1000)
                    
ExtraBattlePower = 0;
                if (
ExtraBattlePower > 0 && value == 0 || value > 0)
                {
                    if (
value == 0 && ExtraBattlePower == 0) return;
                    
using (var rec = new ServerSockets.RecycledPacket())
                    {
                        var 
stream = rec.GetStream();
                        
SendUpdate(stream, value, Game.MsgServer.MsgUpdate.DataType.ExtraBattlePower, false);
                    }
                    
_ExtraBattlePower = value;
                }
            }
        } 

ومتعملش حاجه في SendSpawn خالص سيبها زي مهيا
وشكرا لكل الي بيشجعني علي اني اعمل حاجه حتي لو غلط بس اهو دايما هنفضل نتعلم ^_^ وشكرا برده للي بيحبطونا بس هيجلهوم يوم وهنكسرهم بس جاي متقلقوش ^_^
=====================================
Items في النافاكات هتضيفلها


كود:
Anima    bigint    18    0    -1    0    0    0    0        0                    0    0 

وادي الان بي سي


كود:
13123    AnimaSystem    2    15370    1002    410    354        0    0 

الي عاوز الان بي سي يظهر كويس
ياخد npc اي حاجه تبعها في ini و Effect
ويحط ده كمان في الكلينت

كود:
https://top4top.io/downloadf-1644vzoqu1-rar.html 

ابحث عن
كود:
public void LoadItemStats() 

انزل لحد
كود:
WindowsStats WS = new WindowsStats(this);
            
WS.Send(this);
            
CalculateHitPoint(); 

فوقهم ضيف

كود:
 Anima.CalAnimaPB(Entity.Owner); 

صوره بسيطه
عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع

لو في اي ايرور او اي مشكله ياريت تكلموني وزي مقولت اي تعليقات بيض ه*** صحبها يتقول كلمه حلوه يمتخش اصلا وملكش دعوه وزي مقلت انا نزلتها عشان مبقتش تفرق معايا دلوقتي ^_^
حبايب قلبي بالتوفيق وعارف ان الموضوع كتير بس يستاهل علي فكره ^_^
دعواتكم



التعديل الأخير تم بواسطة Hassan Emprator ; 2020-07-11 الساعة 04:37 AM
قديم 2020-07-07, 06:20 PM
المشاركة 2
Hazem
.:: المدير العام::.
  • غير متواجد
افتراضي رد: نظام الانيما الي انا عاملها (للعلم هي هبد عشان الناس الي عاوزه تتفزلك)
عاششششش والله ياميدو تسلم ايدك

قديم 2020-07-07, 06:24 PM
المشاركة 3
messi55
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: نظام الانيما الي انا عاملها (للعلم هي هبد عشان الناس الي عاوزه تتفزلك)
عاش

قديم 2020-07-07, 06:26 PM
المشاركة 4
ModyMohamedAdel
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: نظام الانيما الي انا عاملها (للعلم هي هبد عشان الناس الي عاوزه تتفزلك)
عاش

قديم 2020-07-07, 06:27 PM
المشاركة 5
ModyMohamedAdel
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: نظام الانيما الي انا عاملها (للعلم هي هبد عشان الناس الي عاوزه تتفزلك)
عوزين باتش بقا احب

قديم 2020-07-07, 06:27 PM
المشاركة 6
midoazoz
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: نظام الانيما الي انا عاملها (للعلم هي هبد عشان الناس الي عاوزه تتفزلك)
عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع
عوزين باتش بقا احب
اي بدش يا قلبي انت لو شغال علي سورس ماتريكس وهي الاكواد دي علي ماتريكس ورايزو بدشهم فيه الانيما اصلا

قديم 2020-07-07, 07:04 PM
المشاركة 7
ModyMohamedAdel
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: نظام الانيما الي انا عاملها (للعلم هي هبد عشان الناس الي عاوزه تتفزلك)
انا معرفش اي لعبه ليهم ي ميدو
ف مش هعرف اوصل اوصل للباتش

قديم 2020-07-07, 07:09 PM
المشاركة 8
midoazoz
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: نظام الانيما الي انا عاملها (للعلم هي هبد عشان الناس الي عاوزه تتفزلك)
عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع
انا معرفش اي لعبه ليهم ي ميدو
ف مش هعرف اوصل اوصل للباتش
خد بدش دي
بس ابق عدل ملفات اللودر و GameMap.dat
عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع

قديم 2020-07-07, 07:11 PM
المشاركة 9
Diego
.:: عضو مميز ::.
  • غير متواجد
افتراضي رد: نظام الانيما الي انا عاملها (للعلم هي هبد عشان الناس الي عاوزه تتفزلك)
عاااش

قديم 2020-07-07, 07:12 PM
المشاركة 10
محمودمحمدسالم
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: نظام الانيما الي انا عاملها (للعلم هي هبد عشان الناس الي عاوزه تتفزلك)
عاش يا ميدو عشان كده بتقولي انك مبضون :d


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



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

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

المواضيع المتشابهه للموضوع: سيستم الانيما - Anima , للعلم فكرتى وليس الانيما الاصليه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
سورس 3d كامل 100 % تعمل بي سيرفر علطول بي الانيما محمودمحمدسالم سورسات كونكر 218 2021-09-19 02:29 AM
سورس Viking بي الانيما مبروك عليكم :D محمودمحمدسالم سورسات كونكر 130 2021-01-26 01:13 AM
الانيما :D محمودمحمدسالم قسم الاقتراحات والابداع 7 2020-04-15 12:07 PM
طلب كيفية اضافه الانيما لسيرفري magicoteam مشكلات السيرفيرات كونكر الشخصيه 1 2020-02-16 09:35 PM
الانيما خش بسرعه Osasolo قسم الاقتراحات والابداع 3 2019-12-23 10:07 AM


الساعة الآن 02:57 AM