Register for your free account! | Forgot your password?

You last visited: Today at 00:18

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

Advertisement



[Release] Drop Command

Discussion on [Release] Drop Command within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old 05/26/2009, 20:20   #31
 
elite*gold: 0
Join Date: Apr 2009
Posts: 30
Received Thanks: 0
thanks
marcos140595 is offline  
Old 05/26/2009, 21:23   #32
 
elite*gold: 20
Join Date: Feb 2007
Posts: 660
Received Thanks: 79
does it work to make it so its like /drop ItemID instead of /drop db,met and allthing added
JoieJones90 is offline  
Old 05/26/2009, 21:28   #33
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by JoieJones90 View Post
does it work to make it so its like /drop ItemID instead of /drop db,met and allthing added
yeah you just have to code it lol
PeTe Ninja is offline  
Old 07/04/2009, 14:04   #34
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 1
is that working for CE v2
0105653642 is offline  
Old 07/04/2009, 14:14   #35
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by 0105653642 View Post
is that working for CE v2
By looking at the coding of this command you should already know ( If you looked at CoEmuV2 ) that it is not for it. Infact it is for LOTF...




EDIT* My friend edited this command and made it so you can do

/drop (ItemName) (Amount)

& if its not a "regular item" you HAVE to do /drop (ItemName) (Amount) (Quality)

look below i will show u an example

Code:
// Edited By Fail..
                                                        if (Splitter[0] == "/drop")
                                    {
                                        uint MoneyDrops = 0;

                                        string ItemName = Splitter[1];
                                        Ini ItemNames = new Ini(System.Windows.Forms.Application.StartupPath + @"\ItemNamesToId.ini");
                                        
                                        uint ItemId = 0;
                                        ItemId = uint.Parse(ItemNames.ReadValue("Items", ItemName));

                                        if (ItemId >= 111303 && ItemId <= 160249 || ItemId >= 410003 && ItemId <= 580339 || ItemId >= 900300 && ItemId <= 900999)
                                        {
                                            byte Quality = 1;
                                            string ItemQuality = Splitter[3];

                                            if (ItemQuality == "One")
                                                Quality = 1;
                                            else if (ItemQuality == "Normal")
                                                Quality = 5;
                                            else if (ItemQuality == "Unique")
                                                Quality = 7;
                                            else if (ItemQuality == "Refined")
                                                Quality = 6;
                                            else if (ItemQuality == "Elite")
                                                Quality = 8;
                                            else if (ItemQuality == "Super")
                                                Quality = 9;
                                            else
                                                Quality = (byte)Other.ItemQuality(ItemId);

                                            ItemId = Other.ItemQualityChange(ItemId, Quality);
                                        }
                                        byte Repeat = byte.Parse(Splitter[2]);
                                        for (int i = 0; i < Repeat; i++)
                                        {
                                            string Item = ItemId + "-0-0-0-0-0";
                                            DroppedItem item = 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, MoneyDrops);
                                            World.ItemDrops(item);
                                        }
                                    }
/drop DragonBall 5 <----- THATS A "REGULAR" ITEM

/drop ConquestArmor 5 Super <--------- THATS NOT

And thats how you use it...Credits go to kinshi for the dropping part and the i < i++ stuff..

Rest to Fail.
PeTe Ninja is offline  
Thanks
1 User
Old 07/04/2009, 16:14   #36
 
~RapidBlade~'s Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 15
Thanks Pete =)
~RapidBlade~ is offline  
Old 07/04/2009, 18:00   #37
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
Stop bring OLD TOPICS BACK UP
Pete1990 is offline  
Old 07/05/2009, 06:08   #38
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
#Closed
kinshi88 is offline  
Closed Thread


Similar Threads Similar Threads
[Release] a new command
07/16/2009 - CO2 PServer Guides & Releases - 8 Replies
ok this is the /pet command ok its not hard to do and i thank it will only work if u have the summon guard working becaz i us its atk type or u can edit it if u want but ul hafe to fix it up so it wont atk its self if u do that well any way here u go find wear u put commands in and put this if (Splitter == "/pet") { // /pet HP atk name mech lvl ...
[NEED] A Drop Command
05/31/2009 - CO2 Private Server - 0 Replies
Hello, Can someone give me a drop command for Coemu V2 Like u do : /drop db 6 then it drops 6 db,s
[Release]-- New Command --
12/10/2008 - CO2 PServer Guides & Releases - 7 Replies
GOT That Damianpesta _1_



All times are GMT +2. The time now is 00:18.


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.