Register for your free account! | Forgot your password?

You last visited: Today at 01:48

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

Advertisement



QUESTION-

Discussion on QUESTION- within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
QUESTION-

How Can I Prevent, Item Drops / Slver Drops For Sertain Maps When a Person Dies, Where EXACTLY DO I PUT IT IN, I know is Obiusly... Loc.Map != 452 But where EXACTCLY do i pu ***
-Shunsui- is offline  
Old 03/04/2010, 00:58   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,764
Received Thanks: 5,291
Character.cs
Code:
public void InitAngry(bool _kind)
Go to
Code:
if (DropSilver > 1000)
         DropSilver /= 10;
Under add
if (Loc.Map != 1038)
and add the brackets.

Then find
if (_item.FreeItem || _item.Locked == 1)
continue;
Under add
if (Loc.Map != 1038)
and add the brackets.
Arcо is offline  
Thanks
1 User
Old 03/04/2010, 01:03   #3
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
#Edit, Dosent Work Take a Look...


My Voids,

Code:
#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 == 1)
                        continue;
                    if (Loc.Map != 1038 && Loc.Map != 1005 && Loc.Map != 1090)
                    { }
                    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
Code:
#region Silver drop
                int DropSilver = _rand.Next(0, (int)Silvers);
                if (DropSilver > 1000)
                    DropSilver /= 10;
                if (Loc.Map != 1038 && Loc.Map != 1005 && Loc.Map != 1090)
                { }
                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
-Shunsui- is offline  
Old 03/04/2010, 01:15   #4
 
ImFlamedCOD's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 378
Received Thanks: 140
Someone had just asked me this question on msn so I thought since it was about this post he asked me about, I would point it out here.

His question was "What does ! do in c#".

The logical negation operator (!) is a unary operator that negates its operand. It is defined for bool and returns true if and only if its operand is false. So in a basic form.

Edit sorry forgot to add my code sense.

Instead of doing that you could try ,
Code:
                int DropSilver = _rand.Next(0, (int)Silvers);
                if (DropSilver > 1000)
                    DropSilver /= 10;
                if (Loc.Map != 1038 && Loc.Map != 1005 && Loc.Map != 1090)
                   continue;
                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; }

// Bottom code is Item Drop, Above is Silver 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 == 1)
                   if (Loc.Map != 1038 && Loc.Map != 1005 && Loc.Map != 1090)
                        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);
                        }
                    }
                }
ImFlamedCOD is offline  
Old 03/04/2010, 01:16   #5
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,764
Received Thanks: 5,291
try || instead of &&
Arcо is offline  
Thanks
1 User
Old 03/04/2010, 01:19   #6
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by .Arco View Post
try || instead of &&
Still Dosent Do Anything,
-Shunsui- is offline  
Old 03/04/2010, 01:21   #7
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,764
Received Thanks: 5,291
Aw you tard jose...
lol
Add the brackets for the entire drop code!
Not just { }
But
{
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; }
}
Arcо is offline  
Old 03/04/2010, 01:24   #8
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by .Arco View Post
Aw you tard jose...
lol
Add the brackets for the entire drop code!
Not just { }
But
{
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; }
}
Ahh Thanks It Worked Good Job Anthony You should be Mod, You Would be one of the active mod in this section !
-Shunsui- is offline  
Old 03/04/2010, 01:32   #9
 
elite*gold: 0
Join Date: Mar 2010
Posts: 11
Received Thanks: 0
Quote:
Originally Posted by -Shunsui- View Post
Ahh Thanks It Worked Good Job Anthony You should be Mod, You Would be one of the active mod in this section !
I don't think he would be a good mod because of his behavior.
He is very childish and curses at me on MSN.

On-topic
Good job arco
LOL
Goatleaf is offline  
Reply


Similar Threads Similar Threads
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/12/2009 - Cabal Online - 3 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts Bump.
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/02/2009 - Cabal Private Server - 2 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts



All times are GMT +1. The time now is 01:48.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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