[Release] Drop Command

05/26/2009 20:20 marcos140595#31
thanks
05/26/2009 21:23 JoieJones90#32
does it work to make it so its like /drop ItemID instead of /drop db,met and allthing added
05/26/2009 21:28 PeTe Ninja#33
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
07/04/2009 14:04 0105653642#34
is that working for CE v2
07/04/2009 14:14 PeTe Ninja#35
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.. :D

Rest to Fail.
07/04/2009 16:14 ~RapidBlade~#36
Thanks Pete =)
07/04/2009 18:00 Pete1990#37
Stop bring OLD TOPICS BACK UP
07/05/2009 06:08 kinshi88#38
#Closed