Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 03:33

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

Advertisement



[Release]so that the items do not fall on other items

Discussion on [Release]so that the items do not fall on other items within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2008
Posts: 77
Received Thanks: 63
[Release]so that the items do not fall on other items

in client.cs looking for this:


Code:
case 3:
                                    {
                                        MyChar.Ready = false;
                                        uint ItemUID = (uint)((Data[7] << 24) + (Data[6] << 16) + (Data[5] << 8) + Data[4]);

                                        int Count = 0;

                                        foreach (uint uid in MyChar.Inventory_UIDs)
                                        {
                                            if (uid == ItemUID)
                                            {
                                                string Item = MyChar.Inventory[Count];

                                                DroppedItem e = DroppedItems.DropItem(Item, MyChar.LocX, MyChar.LocY, MyChar.LocMap, 0);
                                                World.ItemDrops(e);

                                                MyChar.RemoveItem(ItemUID);
                                            }
                                            Count++;
                                        }
                                        MyChar.Ready = true;
                                        break;
                                    }


and replace it by this:

Code:
case 3:
                                    {
                                        MyChar.Ready = false;
                                        uint ItemUID = (uint)((Data[7] << 24) + (Data[6] << 16) + (Data[5] << 8) + Data[4]);

                                        int Count = 0;

                                        foreach (uint uid in MyChar.Inventory_UIDs)
                                        {
                                            if (uid == ItemUID)
                                            {
                                                string Item = MyChar.Inventory[Count];

                                                DroppedItem e = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(MyChar.LocY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)MyChar.LocMap,0);
                                                World.ItemDrops(e);

                                                MyChar.RemoveItem(ItemUID);
                                            }
                                            Count++;
                                        }
                                        MyChar.Ready = true;
                                        break;
                                    }
that's all. xD

sorry if my English is bad is that use translator.

konkizta is offline  
Thanks
30 Users
Old 08/21/2008, 19:49   #2
 
The_Real_Slim_Shady's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 170
Received Thanks: 8
nice man ths
The_Real_Slim_Shady is offline  
Old 08/21/2008, 22:51   #3
 
elite*gold: 0
Join Date: Aug 2006
Posts: 227
Received Thanks: 57
ty dude good work keep it up
keving is offline  
Old 08/21/2008, 22:54   #4
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
GOOD work man!!
+k!
alexbigfoot is offline  
Old 08/21/2008, 23:09   #5
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Very simple fix, but good job.
kinshi88 is offline  
Old 08/21/2008, 23:17   #6
 
elite*gold: 0
Join Date: Aug 2008
Posts: 77
Received Thanks: 63
thanks.

kinshi88 and thanks for your guides, are very good.
konkizta is offline  
Old 08/22/2008, 11:49   #7
 
glupkotrup's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
Nice nice... Good work
glupkotrup is offline  
Old 08/22/2008, 16:15   #8
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Or I think you could just do something like this:


Random r = new Random();
MyChar.LocX.R(-5, 5);
MyChar.LocY.R(-5, 5);

Well,not sure,im not at my computer and it was pretty long time ago I coded,a week or so,but ye i think thats the correct code. What it does basiclly is that it does Random at ur chars coords,well u not move but the item drops at different spots.

emme
_Emme_ is offline  
Old 08/27/2008, 02:38   #9
 
taguro's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
thanks for this fix man, keep up the good work
taguro is offline  
Old 08/27/2008, 15:08   #10
 
jochemke's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 30
Received Thanks: 85
tnx

yea tnx i had some problems with it but its fixed now

+k
jochemke is offline  
Old 08/27/2008, 18:34   #11
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by emildayan1 View Post
Or I think you could just do something like this:


Random r = new Random();
MyChar.LocX.R(-5, 5);
MyChar.LocY.R(-5, 5);

Well,not sure,im not at my computer and it was pretty long time ago I coded,a week or so,but ye i think thats the correct code. What it does basiclly is that it does Random at ur chars coords,well u not move but the item drops at different spots.

emme
Not insulting/proving you wrong/anything like that. But it'd be MyChar.LocX.R.Next(-5,5), you probably know that though <3(You were just going off random stuff off the top of your head =])
tao4229 is offline  
Old 08/27/2008, 19:41   #12
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Yeah,couldnt look and I was very tired=P
_Emme_ is offline  
Old 11/15/2008, 03:33   #13
 
almoshax.'s Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 76
Received Thanks: 47
thanks u realy helped me
almoshax. is offline  
Old 11/19/2008, 13:00   #14
 
Danutzhaha's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 42
Received Thanks: 1
ty
Danutzhaha is offline  
Old 11/20/2008, 03:19   #15
 
brodie67's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 41
Received Thanks: 4
Cool Re:[Release] so that the items do not fall on other items

Thank you very much works! +k
brodie67 is offline  
Reply


Similar Threads Similar Threads
[Ganz Einfach]HowTo GM Items & Neue Waffen & Drachengott Items implementieren
08/01/2012 - Metin2 PServer Guides & Strategies - 31 Replies
Hey Com, ich weiß zwar, dass es schon einige solcher Threads gibt ABER diesen bestimmt noch nicht.... Also ich habe mal eine Query(Erklär ich gleich) für euch reingeschreiben, mit der man übelst einfach GM,Drachengott und neue Waffen entbuggt :) Also so gehts :1. Navicat öffnen 2. in die Datenbank "player" 3. die Tabelle "item_proto" öffnen 4. Links oben auf File
[HOW TO] IMUNE to FALL and bether Bonus on the items
04/25/2010 - Metin2 PServer Guides & Strategies - 21 Replies
for the epvp comunety staff remove my links without say anything and for have no respetc for the people speack only english i have remove all my stuff by epvp



All times are GMT +1. The time now is 03:33.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.