Were can i find the Client.cs?
Yes, you can do it like this. I prefer not to, but good contribution to everyone else.Quote:
/drop met <AMOUNT>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 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.Quote:
/drop met <AMOUNT>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 db <AMOUNT>
/drop <ITEM ID> <AMOUNT>
Quote:
ok ive been here for a lil while i even gogled it but what is clint cs and how do i use it
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.Quote:
Is this for real co or for a private server?
Quote:
ok ive been here for a lil while i even gogled it but what is clint cs and how do i use it
Quote:
Is this for real co or for a private server?
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=Quote:
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.
, right above thatQuote:
if (Splitter[0] == "/level")
Quote:
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!