Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 07:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Whats wrong with this code?

Discussion on Whats wrong with this code? within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
Whats wrong with this code?

someone help me please
i put this code in
everything works except /drop bigscroll
any1 see anything wrong?

EDIT: bigscroll is for dbscrolls
Quote:
if (Splitter[0] == "/drop")
{
uint MoneyDrops = 0;
byte Repeat = byte.Parse(Splitter[3]);
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] == "bigdb")
{
string Item = "1088000-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(14) + General.Rand.Next(14)), (uint)(MyChar.LocY - General.Rand.Next(14) + General.Rand.Next(14)), (uint)MyChar.LocMap, MoneyDrops);
World.ItemDrops(item);
}
if (Splitter[1] == "bigscroll")
{
string Item = "700103-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(14) + General.Rand.Next(14)), (uint)(MyChar.LocY - General.Rand.Next(14) + General.Rand.Next(14)), (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);
}
}
}
Arcotemple:) is offline  
Old 07/02/2009, 11:00   #2
 
elite*gold: 0
Join Date: Jun 2009
Posts: 140
Received Thanks: 12
im guessing that its a custom item? Maybe you didnt add it properly.
JustChillin is offline  
Old 07/02/2009, 11:01   #3
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
Quote:
Originally Posted by JustChillin View Post
im guessing that its a custom item? Maybe you didnt add it properly.
its to drop db scrolls
Arcotemple:) is offline  
Old 07/02/2009, 11:26   #4
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
You had the wrong ID for the DBScroll... Change it to this.

Code:
if (Splitter[1] == "bigscroll")
{
string Item = "[COLOR="Red"]720028[/COLOR]-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(14) + General.Rand.Next(14)), (uint)(MyChar.LocY - General.Rand.Next(14) + General.Rand.Next(14)), (uint)MyChar.LocMap, MoneyDrops);
World.ItemDrops(item);
}
Edit: Wait, I'm guessing that is for a 5017 server, nevermind, you had the correct id then. In such a case, I don't know what your issue would be.
Incariuz is offline  
Old 07/02/2009, 11:28   #5
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
Quote:
Originally Posted by Incariuz View Post
You had the wrong ID for the DBScroll... Change it to this.

Code:
if (Splitter[1] == "bigscroll")
{
string Item = "[COLOR="Red"]720028[/COLOR]-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(14) + General.Rand.Next(14)), (uint)(MyChar.LocY - General.Rand.Next(14) + General.Rand.Next(14)), (uint)MyChar.LocMap, MoneyDrops);
World.ItemDrops(item);
}
i tired that
it didnt work
Arcotemple:) is offline  
Old 07/02/2009, 11:45   #6
 
elite*gold: 0
Join Date: Jun 2009
Posts: 140
Received Thanks: 12
Quote:
if (Splitter[0] == "/drop")
{
uint MoneyDrops = 0;
byte Repeat = byte.Parse(Splitter[3]);
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] == "bigdb")
{
string Item = "1088000-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(14) + General.Rand.Next(14)), (uint)(MyChar.LocY - General.Rand.Next(14) + General.Rand.Next(14)), (uint)MyChar.LocMap, MoneyDrops);
World.ItemDrops(item);
}
if (Splitter[1] == "bigscroll")
{
string Item = "700103-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(14) + General.Rand.Next(14)), (uint)(MyChar.LocY - General.Rand.Next(14) + General.Rand.Next(14)), (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);
}
}
}
Whats the point in having 2 different commands that do the same thing?
Hmm. I have not a clue, i dont do lotf, Maybe the 14's have something to do with it, change them to 4 see what it does. Im probably wrong because, again, i dont code lotf
JustChillin is offline  
Old 07/02/2009, 11:53   #7
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
Quote:
Originally Posted by JustChillin View Post
Whats the point in having 2 different commands that do the same thing?
Hmm. I have not a clue, i dont do lotf, Maybe the 14's have something to do with it, change them to 4 see what it does. Im probably wrong because, again, i dont code lotf
lol i got it to work already its cool

but the 2 commands are different

/drop db just drops dbs in a small space so all the dbs are next to eachother
/drop bigdb drops the dbs but spreads them out alot more
Arcotemple:) is offline  
Old 07/02/2009, 12:34   #8
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
What was the issue? If you don't mind me asking...
Incariuz is offline  
Old 07/02/2009, 22:32   #9
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
Quote:
Originally Posted by Incariuz View Post
What was the issue? If you don't mind me asking...
the issue was the dbscrolls wouldnt drop
Arcotemple:) is offline  
Old 07/02/2009, 23:00   #10
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
He was wondering how you solved it. Anyhow, problem solved, PM Incariuz if you want to give answer.

#closed
_Emme_ is offline  
Closed Thread


Similar Threads Similar Threads
Whats wrong with SRO
01/07/2010 - Silkroad Online - 4 Replies
it is always bugged while tring to log in but with my clientless mode i log in after 10 15 mins without any problems without bugs do u guys have the same problem? EDIT: i logged in from the first try in server 30 i was trying in server 29 but i cant understand how the clientless bot do it in that way
whats the code for hooney pants / top in resource korea
01/04/2010 - S4 League - 0 Replies
when im resource tool the hooney costumes are dm_female blah blah blah when i try to find it in iteminfo.x4 its not found> anyone help me?
whats the body change code..(5165)
12/25/2009 - CO2 Private Server - 14 Replies
anyone know the body change code.. for a useable item? or.. wouldnt mind codeing the item for me?.. "ninja amulet"..
Anybody know whats wrong with this?
11/19/2009 - CO2 Private Server - 21 Replies
Alright so I went through this LOTF Source I found here by Arcotemple. Its a Cleaned up/Fixed up LOTF I guess. I took out everything related to heavenlybless. Meaning I went to Emme's HeavenBlessing release and worked backwards. Now when I log into my char it says this on the console: MySql.Data.MySqlClient.MySqlException: Unknown column 'HeavenBless' in 'field list' at MySql.Data.MySqlClient.PacketReader.CheckForError( ) at MySql.Data.MySqlClient.PacketReader.ReadHeader() at...
whats the Cooldown Code for Ice Restriction
10/31/2007 - Kal Online - 3 Replies
can someone tell me whats the best cooldown for Restriction thanx



All times are GMT +2. The time now is 07:30.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.