Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 22:14

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Dropping items in jail 5165

Discussion on Dropping items in jail 5165 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Unhappy Dropping items in jail 5165

Again the noob awwwwwwwww............
I'm having a problem , when i die in jail/pka/gw i drop items , anybody fixed this?
<-my msn
†he Knight is offline  
Thanks
1 User
Old 10/04/2010, 17:52   #2
 
elite*gold: 0
Join Date: Oct 2010
Posts: 148
Received Thanks: 57
In Character.cs find:
Code:
public void LoseInvItemsAndSilvers()
replace the whole void with:
Code:
public void LoseInvItemsAndSilvers()
        {
            try
            {
                if (MyClient.AuthInfo.Status == "")
                {
                    if (Loc.Map == 1005 || Loc.Map == 6000 || Loc.Map == 1036 || Loc.Map == 1038)
                    {
                      
                      //Nuthin
                    }
                    else
                    {
                        double Pc = (double)((Level & 15) + ((double)Level / 10));
                        uint SilversLose = (uint)(Silvers * Pc / 100);

                        DroppedItem DI = new DroppedItem();
                        DI.Info = new Item();
                        DI.Silvers = SilversLose;
                        Silvers -= SilversLose;

                        if (DI.Silvers < 10)
                            DI.Info.ID = 1090000;
                        else if (DI.Silvers < 100)
                            DI.Info.ID = 1090010;
                        else if (DI.Silvers < 1000)
                            DI.Info.ID = 1090020;
                        else if (DI.Silvers < 3000)
                            DI.Info.ID = 1091000;
                        else if (DI.Silvers < 10000)
                            DI.Info.ID = 1091010;
                        else
                            DI.Info.ID = 1091020;
                        DI.UID = (uint)Rnd.Next(10000000);
                        DI.DropTime = DateTime.Now;
                        DI.Loc = Loc;
                        if (DI.FindPlace((Hashtable)World.H_Items[Loc.Map]))
                            DI.Drop();

                        ArrayList ItemsLost = new ArrayList();
                        foreach (Item I in Inventory)
                        {
                            if (MyMath.ChanceSuccess(Pc) && !I.FreeItem)
                                ItemsLost.Add(I);
                        }
                        foreach (Item I in ItemsLost)
                        {
                            RemoveItem(I);
                            DroppedItem DI2 = new DroppedItem();
                            DI2.UID = (uint)Rnd.Next(10000000);
                            DI2.DropTime = DateTime.Now;
                            DI2.Loc = Loc;
                            DI2.Info = I;
                            DI2.Loc.X = (ushort)(DI2.Loc.X + Rnd.Next(4) - Rnd.Next(4));
                            DI2.Loc.Y = (ushort)(DI2.Loc.Y + Rnd.Next(4) - Rnd.Next(4));

                            if (DI2.FindPlace((Hashtable)World.H_Items[Loc.Map]))
                                DI2.Drop();
                        }
                    }
                }
            }
            catch (Exception Exc) { Program.WriteLine(Exc); }
        }
Now find:
Code:
public void InitAngry(bool _kind)
replace it with:
Code:
        public void InitAngry(bool _kind)
        {
            if (Loc.Map == 1005 || Loc.Map == 6000 || Loc.Map == 1036 || Loc.Map == 1038)
            {

                //Nuthin
            }
            else
            {
                if (VipLevel < 3 || !MyClient.GM)
                {
                    Random _rand = new Random();
                    #region Silver drop
                    int DropSilver = _rand.Next(0, (int)Silvers);
                    if (DropSilver > 1000)
                        DropSilver /= 10;
                    DroppedItem DI2 = new DroppedItem();
                    DI2.DropTime = DateTime.Now;
                    DI2.UID = (uint)Rnd.Next(10000000);
                    DI2.Loc = new Location();
                    DI2.Loc = Loc;
                    DI2.Loc.Map = Loc.Map;
                    DI2.Info = new Item();
                    DI2.Info.UID = (uint)Rnd.Next(10000000);
                    DI2.UID = (uint)Rnd.Next(10000000);
                    DI2.Silvers = (uint)DropSilver;
                    if (DI2.Silvers < 10)
                        DI2.Info.ID = 1090000;
                    else if (DI2.Silvers < 100)
                        DI2.Info.ID = 1090010;
                    else if (DI2.Silvers < 1000)
                        DI2.Info.ID = 1090020;
                    else if (DI2.Silvers < 3000)
                        DI2.Info.ID = 1091000;
                    else if (DI2.Silvers < 10000)
                        DI2.Info.ID = 1091010;
                    else
                        DI2.Info.ID = 1091020;
                    if (DI2.FindPlace((Hashtable)Game.World.H_Items[Loc.Map]))
                    { DI2.Drop(); Silvers -= (uint)DropSilver; }
                    #endregion
                    #region Item drop
                    byte _val1 = (byte)_rand.Next(Inventory.Count);
                    List<Item> _list1 = new List<Item>();
                    for (byte _val2 = 0; _val2 < _val1; _val2++)
                    {
                        byte _val3 = (byte)_rand.Next(Inventory.Count);
                        Item _item = Inventory[_val3] as Item;
                        if (_item.FreeItem || _item.Locked)
                            continue;
                        if (Merchant == MerchantTypes.Yes)
                        {
                            Game.DroppedItem DI = new NewestCOServer.Game.DroppedItem();
                            DI.Info = _item;
                            DI.DropTime = DateTime.Now;
                            DI.Loc = Loc;
                            DI.Loc.X = (ushort)(Loc.X + Rnd.Next(4) - Rnd.Next(4));
                            DI.Loc.Y = (ushort)(Loc.Y + Rnd.Next(4) - Rnd.Next(4));
                            DI.UID = (uint)Program.Rnd.Next(10000000);
                            if (!DI.FindPlace((Hashtable)Game.World.H_Items[Loc.Map])) continue;
                            DI.Drop();
                            RemoveItem(_item);
                        }
                        else
                        {
                            if (_item.Pot <= 8)
                            {
                                Game.DroppedItem DI = new NewestCOServer.Game.DroppedItem();
                                DI.Info = _item;
                                DI.DropTime = DateTime.Now;
                                DI.Loc = Loc;
                                DI.Loc.X = (ushort)(Loc.X + Rnd.Next(4) - Rnd.Next(4));
                                DI.Loc.Y = (ushort)(Loc.Y + Rnd.Next(4) - Rnd.Next(4));
                                DI.UID = (uint)Program.Rnd.Next(10000000);
                                if (!DI.FindPlace((Hashtable)Game.World.H_Items[Loc.Map])) continue;
                                DI.Drop();
                                RemoveItem(_item);
                            }
                        }
                    }
                    #endregion
                    #region Equipment drop
                    if (_kind)
                    {
                        if (PKPoints > 29)
                        {
                            _val1 = 0;
                            Item[] _equipment = Equips;
                            foreach (Item _equip in _equipment)
                            {
                                if (_val1 == 2)
                                    return;
                                if (_equip.ID == 0)
                                    continue;
                                if (_equip.FreeItem)
                                    continue;
                                if (MyMath.ChanceSuccess(10))
                                {
                                    EquipStats(Equips.GetSlot(_equip.UID), false);
                                    Equips.UnEquip(Equips.GetSlot(_equip.UID), this);
                                    MyClient.AddSend(Packets.ItemPacket(_equip.UID, 0, 3));
                                    Game.DroppedItem DI = new NewestCOServer.Game.DroppedItem();
                                    DI.Info = _equip;
                                    DI.DropTime = DateTime.Now;
                                    DI.Loc = Loc;
                                    DI.Loc.X = (ushort)(Loc.X + Rnd.Next(4) - Rnd.Next(4));
                                    DI.Loc.Y = (ushort)(Loc.Y + Rnd.Next(4) - Rnd.Next(4));
                                    DI.UID = (uint)Program.Rnd.Next(10000000);
                                    if (!DI.FindPlace((Hashtable)Game.World.H_Items[Loc.Map])) continue;
                                    DI.Drop();
                                    return;
                                }
                            }
                        }
                    #endregion
                    }
                }
            }
        }
Try this ^

Dont know if it works.
_Vodka is offline  
Thanks
2 Users
Old 10/04/2010, 18:21   #3
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Your posting your every last problem here for everyone else to fix.
_DreadNought_ is offline  
Old 10/04/2010, 18:40   #4
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Quote:
Originally Posted by _DreadNought_ View Post
Your posting your every last problem here for everyone else to fix.
Not Really ,
Reborn Script = Fixed By my own
Detoxation = By my own
ToxicFog Fix = By My Own

Also I'm proud of myself .. Still noob but im sure i'll be a pro oneday

Fullworking , goodjob!
†he Knight is offline  
Thanks
1 User
Old 10/04/2010, 18:57   #5
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Close?
_DreadNought_ is offline  
Old 10/04/2010, 18:57   #6
 
elite*gold: 0
Join Date: Oct 2010
Posts: 148
Received Thanks: 57
Quote:
Originally Posted by JuiceDCodeR View Post
Fullworking , goodjob!
#reported

please don't do double post
Use the edit button.

And good to know it works, but you could have done this by your self.
_Vodka is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[Help] Login Freeze when dropping too many items.
12/20/2008 - CO2 Private Server - 10 Replies
When people on my server drop too many items, login freeze occurs and then there's this error on my console. I forgot what it said, so ill post it on Friday. When I try to login it will say Connecting to the server...please wait.... and it stays like that until I restart the server. I want to fix this so we can drop as many items as we can. I have an auto-refresher every 5 minutes so it wont lag. Can someone help me with this?
Sound of dropping items
08/23/2007 - Conquer Online 2 - 3 Replies
Hi all. I have a question... in the folder Conquer 2\sound are all the sounds of CO but if I play the sound of a dropping item i don't hear annything DropBook.wav dropequip1.wav dropequip.wav dropGem.wav DropItem.wav dropMed.wav
SV dropping items problem
08/15/2007 - Conquer Online 2 - 0 Replies
i used the latest codes from the .ct and SV drops the a refined item and picks it up again and over and over. any help? i also use the SV itemtype.dat
Dropping items in your house.
07/08/2006 - CO2 Exploits, Hacks & Tools - 12 Replies
I'm pretty sure there hasnt been posts about this yet. It's not exactly something that is very useful. But there is a way to drop items in your house :). Simply get good ol' cotobo, and CTRL+D. -einhornchen
Not dropping items when red or black name.
12/31/2005 - Conquer Online 2 - 5 Replies
Could it be possible to change the item type of your items, to make it where you are not dropped when you die?



All times are GMT +1. The time now is 22:15.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.