|
You last visited: Today at 19:16
Advertisement
[Release] Drop Command
Discussion on [Release] Drop Command within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
08/21/2008, 07:42
|
#1
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
[Release] Drop Command
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
|
#2
|
elite*gold: 0
Join Date: Feb 2006
Posts: 66
Received Thanks: 23
|
Quote:
Originally Posted by kinshi88
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
|
|
|
08/21/2008, 11:06
|
#3
|
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,067
|
Man, ure on fire atm Kinshi
|
|
|
08/21/2008, 11:55
|
#4
|
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
|
Respect dude... xD Very nice.
|
|
|
08/21/2008, 12:03
|
#5
|
elite*gold: 0
Join Date: Oct 2007
Posts: 259
Received Thanks: 77
|
nice i was wondering how to do that
|
|
|
08/21/2008, 15:31
|
#6
|
elite*gold: 0
Join Date: Aug 2008
Posts: 211
Received Thanks: 184
|
Nice never tought about making a drop command.
 Smart and thanks
|
|
|
08/21/2008, 15:49
|
#7
|
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 105
|
wow thanks everything uve added has been helpful
|
|
|
08/21/2008, 23:15
|
#8
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
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
|
#9
|
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
|
very nice +K!
|
|
|
08/28/2008, 11:48
|
#10
|
elite*gold: 0
Join Date: Aug 2008
Posts: 6
Received Thanks: 0
|
Thanks for releasing this script... +k
|
|
|
08/28/2008, 21:13
|
#11
|
elite*gold: 0
Join Date: Aug 2008
Posts: 30
Received Thanks: 85
|
ty
like u said it isn't difficult but still ty
and keep up the good work
|
|
|
08/28/2008, 21:44
|
#12
|
elite*gold: 0
Join Date: Jul 2005
Posts: 122
Received Thanks: 7
|
what does it do?
|
|
|
08/28/2008, 22:02
|
#13
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
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
|
#14
|
elite*gold: 0
Join Date: Aug 2008
Posts: 30
Received Thanks: 85
|
ty
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
|
#15
|
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
|
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>
|
|
|
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 +1. The time now is 19:16.
|
|