[Release] Drop Command

09/04/2008 12:12 OscarJew#16
Were can i find the Client.cs?
09/04/2008 13:36 ~Yuki~#17
Lolz i edited the range of the dropp command to 25 now it drops dbs arount the whole jail map xD!
09/06/2008 04:39 kinshi88#18
Quote:
Originally Posted by Rechocto View Post
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>
Yes, you can do it like this. I prefer not to, but good contribution to everyone else.
09/06/2008 04:59 taguro#19
Quote:
Originally Posted by Rechocto View Post
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>
What would make this more effective than the original? I could see rewriting it to act like the /item command, except dropping the item created instead of putting in inventory.
09/07/2008 03:40 CrazyKilla1#20
I need help... heres my client.cs if u can do it for me? :S sorry for this does not work when i do it.. [Only registered and activated users can see links. Click Here To Register...]
09/10/2008 04:55 cloud4571#21
ok ive been here for a lil while i even gogled it but what is clint cs and how do i use it
09/11/2008 01:25 pwnintro#22
Is this for real co or for a private server?
09/11/2008 02:39 taguro#23
Quote:
Originally Posted by cloud4571 View Post
ok ive been here for a lil while i even gogled it but what is clint cs and how do i use it
Quote:
Originally Posted by pwnintro View Post
Is this for real co or for a private server?
These are examples of people who should NOT be working on private servers. I'm not flaming, I'm suggesting you guys check out a different area of this forum.
09/11/2008 04:41 tao4229#24
Quote:
Originally Posted by cloud4571 View Post
ok ive been here for a lil while i even gogled it but what is clint cs and how do i use it
Quote:
Originally Posted by pwnintro View Post
Is this for real co or for a private server?
Quote:
Originally Posted by taguro View Post
These are examples of people who should NOT be working on private servers. I'm not flaming, I'm suggesting you guys check out a different area of this forum.
Rofl... That was possibly the saddest two posts I've seen in a row in this section... Actually I dunno... but wow.. I totally agree Tagure D=
11/15/2008 03:27 almoshax.#25
thanks its working
01/26/2009 01:25 pintser#26
If i go to Client.cs, i see ALOT of text, WEre can i place it?????


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);
}
}
}



Thanks for help!
01/26/2009 02:40 PeTe Ninja#27
Control + F

search for /level

you see
Quote:
if (Splitter[0] == "/level")
, right above that

press thx if this helped
01/26/2009 02:46 hio77#28
Quote:
Originally Posted by pintser View Post
If i go to Client.cs, i see ALOT of text, WEre can i place it?????


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);
}
}
}



Thanks for help!

search for a command ... /item then go one line up were the } is press enter and put that code there and place the code above that
01/26/2009 02:53 PeTe Ninja#29
Quote:
Originally Posted by hio77 View Post
search for a command ... /item then go one line up were the } is press enter and put that code there and place the code above that
are you like repeating what i say? just using different command? lol xD
01/26/2009 06:43 hio77#30
no my net dropped then u posted while it was down