Register for your free account! | Forgot your password?

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

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

Advertisement



Dbscroll Packing Command

Discussion on Dbscroll Packing Command within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
Smile Dbscroll Packing Command

Can Some One Tell Me How To Make Command To Pack 10 DB or Meteor To DBScroll Or MetoerScroll

Can Some One Give Me Sample Of Command..
arneljan is offline  
Old 01/09/2016, 05:09   #2
 
Asphy×ia's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 156
Received Thanks: 81
Wherever you've coded your item usages:

case xxxx:
{
if (player.inventory.contains(dbID, 10)
{
removeItem(DbId, 10);
addItem(DbscrollId, 1);
}
else
Text("You don't have enough to create a DBscroll.");

You don't have to use the else, but that is a simple version of doing it - not specifying which source you are using, it's plainly simple

same for met scroll.
Asphy×ia is offline  
Thanks
1 User
Old 01/09/2016, 07:47   #3
 
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
Ty For sharing this.. i use source 5530

Is This The Right Command To Pack

case "DBScroll":
{
if (client.Inventory.Contains(1088000, 10))
{
client.Inventory.Add(720027, 0, 1);//DBScroll
}
if (client.Inventory.Contains(1088000, 10))
{
client.Inventory.Remove(1088000, 10);
}
break;
}
case "MetScroll":
{
if (client.Inventory.Contains(1088001, 10))
{
client.Inventory.Add(720027, 0, 1);//Meteor Scroll
}
if (client.Inventory.Contains(1088001, 10))
{
client.Inventory.Remove(1088001, 10);
}
break;
}
arneljan is offline  
Old 01/09/2016, 10:07   #4
 
Asphy×ia's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 156
Received Thanks: 81
Quote:
Originally Posted by arneljan View Post
Ty For sharing this.. i use source 5530

Is This The Right Command To Pack

case "DBScroll":
{
if (client.Inventory.Contains(1088000, 10))
{
client.Inventory.Add(720027, 0, 1);//DBScroll
}
if (client.Inventory.Contains(1088000, 10))
{
client.Inventory.Remove(1088000, 10);
}
break;
}
case "MetScroll":
{
if (client.Inventory.Contains(1088001, 10))
{
client.Inventory.Add(720027, 0, 1);//Meteor Scroll
}
if (client.Inventory.Contains(1088001, 10))
{
client.Inventory.Remove(1088001, 10);
}
break;
}
Sure but you're accumulating useless checks.

case "DBScroll":
{
if (client.Inventory.Contains(1088000, 10))
{
client.Inventory.Remove(1088000, 10);
client.Inventory.Add(720027, 0, 1);//DBScroll
}
break;
}

You were checking if the inventory contained 10 dbs twice, which isn't needed. Just throw the main check, if it's good: remove the 10 dbs and replace with a DBScroll. Same for mets.
Asphy×ia is offline  
Thanks
1 User
Old 01/09/2016, 10:14   #5
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
Wait, don't tell me that **** actually switches based on string comparisons. That can't be real source code. I feel ill.
Spirited is offline  
Thanks
3 Users
Old 01/09/2016, 10:16   #6
 
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
Ty Its Working Now Thanks For The Help
arneljan is offline  
Old 01/09/2016, 10:30   #7
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
NO. That was actual source code?! WHYY?? At best it's hashing strings, at worst it's a sequence of string compares! Why are you doing this?! Please don't do that.
Spirited is offline  
Old 01/09/2016, 16:53   #8
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by Spirited View Post
NO. That was actual source code?! WHYY?? At best it's hashing strings, at worst it's a sequence of string compares! Why are you doing this?! Please don't do that.
Halloween came early this year
pro4never is offline  
Thanks
2 Users
Old 01/14/2016, 10:31   #9
 
InsomniacPro's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
Quote:
Originally Posted by Spirited View Post
Wait, don't tell me that **** actually switches based on string comparisons. That can't be real source code. I feel ill.
I already have a headache.
InsomniacPro is offline  
Old 01/17/2016, 10:08   #10
 
Soulfly25's Avatar
 
elite*gold: 0
Join Date: Mar 2006
Posts: 600
Received Thanks: 69
Suggestion. Why u make a command for the Dbscroll?. why not make it directly right click the meteor in the inventory and wallah the 10meteor has become 1 meteorscroll!

Bravo!
Soulfly25 is offline  
Old 01/19/2016, 09:30   #11
 
Asphy×ia's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 156
Received Thanks: 81
Quote:
Originally Posted by Soulfly25 View Post
Suggestion. Why u make a command for the Dbscroll?. why not make it directly right click the meteor in the inventory and wallah the 10meteor has become 1 meteorscroll!

Bravo!
He's not making a command, he's trying to do what you just stated
Asphy×ia is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Sell] >> [DBScroll] Server : Scorpio -- Only 16.99$
10/02/2012 - Conquer Online 2 Trading - 0 Replies
Sell Dragonball Scroll For 16.99$ On Server : Scorpio Ways :: LibertyReserve ,,, SolidTrustPay ,,, PerfectMoney . Thanks, anyway .
sell dbscroll on ruby server
04/16/2012 - Conquer Online 2 Trading - 1 Replies
i am selling 1 dbscroll on runby server... price is 1.5usd each or 1 euro contact: YM id: dragomirdaniel_web skype id: dany2good2 first one is comming to buy is first served.



All times are GMT +1. The time now is 07:27.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.