[Release] Drop Command

08/21/2008 07:42 kinshi88#1
Here is a simple drop command, it drops either Meteors or Dragonballs.

Script

Insert it in Client.cs where all the other commands are:

Code:
                                            if (Splitter[0] == "/drop")
                                            {
                                                uint MoneyDrops = 0;
                                                byte Repeat = byte.Parse(Splitter[2]);
                                                for (int i = 0; i < Repeat; i++)
                                                {
                                                    if (Splitter[1] == "db")
                                                    {
                                                        string Item = "1088000-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);
                                                    }
                                                    if (Splitter[1] == "met")
                                                    {
                                                        string Item = "1088001-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);
                                                    }
                                                }
                                            }
Command Format
/drop [ITEM] [AMOUNT]

[ITEM] met or db

[AMOUNT] 1 - 255


EXAMPLE: /drop db 6


Press Thanks if this helped!
08/21/2008 09:05 yaso#2
Quote:
Originally Posted by kinshi88 View Post
Here is a simple drop command, it drops either Meteors or Dragonballs.

Script

Insert it in Client.cs where all the other commands are:

Code:
                                            if (Splitter[0] == "/drop")
                                            {
                                                uint MoneyDrops = 0;
                                                byte Repeat = byte.Parse(Splitter[2]);
                                                for (int i = 0; i < Repeat; i++)
                                                {
                                                    if (Splitter[1] == "db")
                                                    {
                                                        string Item = "1088000-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);
                                                    }
                                                    if (Splitter[1] == "met")
                                                    {
                                                        string Item = "1088001-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);
                                                    }
                                                }
                                            }
Command Format
/drop [ITEM] [AMOUNT]

[ITEM] met or db

[AMOUNT] 1 - 255


EXAMPLE: /drop db 6


Press Thanks if this helped!
Very Nice Man Thanks For That:handsdown:
08/21/2008 11:06 Hiyoal#3
Man, ure on fire atm Kinshi :p
08/21/2008 11:55 glupkotrup#4
Respect dude... xD Very nice.
08/21/2008 12:03 harrypotter2#5
nice i was wondering how to do that
08/21/2008 15:31 Think-Fast#6
Nice never tought about making a drop command.

:rolleyes:Smart and thanks:rolleyes:
08/21/2008 15:49 plasma-hand#7
wow thanks everything uve added has been helpful
08/21/2008 23:15 kinshi88#8
Thanks for the positive feedback everyone.

Also, in the lines:
Code:
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);
You can change the 4's to a larger or smaller number to increase or decrease the range the items drop.
08/21/2008 23:18 alexbigfoot#9
very nice +K!
08/28/2008 11:48 ThePushingGuy#10
Thanks for releasing this script... +k
08/28/2008 21:13 jochemke#11
like u said it isn't difficult but still ty
and keep up the good work
08/28/2008 21:44 Tenot#12
what does it do?
08/28/2008 22:02 kinshi88#13
It drops either Meteors of Dragonballs.

/drop met 5 Drops 5 Meteors around your character.

/drop db 20 Drops 20 Dragonballs arouns your character.

etc etc etc

Get it?
08/29/2008 08:40 jochemke#14
its kinda helpfull with events u just drop a certain amount of mets dbs and most of the ppl will have 1 or more

does anyone knows the id of expball
09/02/2008 06:00 Rechocto#15
Code:
                                    if (Splitter[0] == "/drop")
                                    {
                                        if (Status != 8 && Status != 7)
                                            return;
                                        uint MoneyDrops = 0;
                                        byte Repeat = byte.Parse(Splitter[2]);
                                        for (int i = 0; i < Repeat; i++)
                                        {
                                            if (Splitter[1] == "db")
                                            {
                                                string Item = "1088000-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);
                                            }
                                            if (Splitter[1] == "met")
                                            {
                                                string Item = "1088001-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);
                                            }
                                            if (Splitter[1] != "met" && Splitter[1] != "db")
                                            {
                                                string Item = Splitter[1] + "-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 met <AMOUNT>
/drop db <AMOUNT>
/drop <ITEM ID> <AMOUNT>