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
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.
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.
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.
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!
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
[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.