|
You last visited: Today at 07:26
Advertisement
Dbscroll Packing Command
Discussion on Dbscroll Packing Command within the CO2 Private Server forum part of the Conquer Online 2 category.
01/09/2016, 02:25
|
#1
|
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
|
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..
|
|
|
01/09/2016, 05:09
|
#2
|
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.
|
|
|
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;
}
|
|
|
01/09/2016, 10:07
|
#4
|
elite*gold: 0
Join Date: Feb 2014
Posts: 156
Received Thanks: 81
|
Quote:
Originally Posted by arneljan
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.
|
|
|
01/09/2016, 10:14
|
#5
|
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.
|
|
|
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
|
|
|
01/09/2016, 10:30
|
#7
|
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.
|
|
|
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
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
|
|
|
01/14/2016, 10:31
|
#9
|
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
|
Quote:
Originally Posted by Spirited
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.
|
|
|
01/17/2016, 10:08
|
#10
|
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!
|
|
|
01/19/2016, 09:30
|
#11
|
elite*gold: 0
Join Date: Feb 2014
Posts: 156
Received Thanks: 81
|
Quote:
Originally Posted by Soulfly25
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
|
|
|
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.
|
|