Register for your free account! | Forgot your password?

You last visited: Today at 15:05

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

Advertisement



ShoppingMall

Discussion on ShoppingMall 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
ShoppingMall

K i got +1 and +2 stones in my shopping mall
but they dont work
i can buy them but i cant use them to compose
anyone know whats the deal?
Arcotemple:) is offline  
Thanks
2 Users
Old 07/26/2009, 03:55   #2
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
most likely its just +1 stone, not +1Stone(+1)
f0am is offline  
Old 07/26/2009, 03:59   #3
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
yeah thats it
but idk how to make ti (+1) is what im sayin
Arcotemple:) is offline  
Thanks
2 Users
Old 07/26/2009, 05:05   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
itemtype
f0am is offline  
Old 07/26/2009, 05:12   #5
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
It should work fine based on the one available in the itemtype.dat

It worked fine for me when I was working on an LOTF source.

730001
Incariuz is offline  
Old 07/26/2009, 06:02   #6
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
I addressed this, but as usual it was overlooked.

Code:
if (BuyItem.ItemID >= 730001 && BuyItem.ItemID <= 730009)
    BuyItem.Plus = int.Parse(BuyItem.ItemID.ToString().Substring(5));
Zeroxelli is offline  
Thanks
1 User
Old 07/26/2009, 06:14   #7
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
nvm i made a solution
i made +1 and +2stonpacks available in shoppin gmall
Arcotemple:) is offline  
Thanks
1 User
Old 07/26/2009, 08:55   #8
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
..+2 stone pack?


Also, that's no solution to the problem. Such actions are what lead to an abrupt end in this industry. Solve the problem, then add the packs. Makes everyone happier.
Zeroxelli is offline  
Old 07/26/2009, 08:59   #9
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Quote:
Originally Posted by Zeroxelli View Post
I addressed this, but as usual it was overlooked.

Code:
if (BuyItem.ItemID >= 730001 && BuyItem.ItemID <= 730009)
    BuyItem.Plus = int.Parse(BuyItem.ItemID.ToString().Substring(5));
if (BuyItem.ItemID / 10 == 73000)
BuyItem.Plus = BuyItem.ItemID % 10;
kinshi88 is offline  
Old 07/26/2009, 09:05   #10
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
#request close i fixed it
Arcotemple:) is offline  
Old 07/26/2009, 21:10   #11
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Quote:
Originally Posted by kinshi88 View Post
if (BuyItem.ItemID / 10 == 73000)
BuyItem.Plus = BuyItem.ItemID % 10;
If my math is still good, you'd have to round that.

Code:
BuyItem.ItemID / 10
Should equal:
73000.1
73000.2
etc
Zeroxelli is offline  
Old 07/26/2009, 22:03   #12
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Quote:
Originally Posted by Zeroxelli View Post
If my math is still good, you'd have to round that.

Code:
BuyItem.ItemID / 10
Should equal:
73000.1
73000.2
etc
Only double and decimal values include the decimal.
So it would be 73000.

If it didnt work, you could always do:
Code:
(int)(BuyItem.ItemID / 10)
kinshi88 is offline  
Old 07/26/2009, 23:23   #13
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
lol i still dont know how to fix it instead of just putting +1 and +2StonePacks in my shopppingmall
Arcotemple:) is offline  
Old 07/26/2009, 23:33   #14
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Quote:
Originally Posted by kinshi88 View Post
Only double and decimal values include the decimal.
So it would be 73000.

If it didnt work, you could always do:
Code:
(int)(BuyItem.ItemID / 10)
You'd have to cast it as int depending on your compiler, most would cast it to double once you divided it. And, I haven't even touched any CO source in a long time now. Been making little games from scratch with the XNA framework, Here's a small example of the starting of one simpler game:



It's rather fun to mess with.
Zeroxelli is offline  
Old 07/26/2009, 23:50   #15
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
No, if you divide an int by an int it'll produce an int.
There's only one 'real' C# compiler; as for IDEs there's visual studio and #develop as the main ones, but both of them use the microsoft compiler ('csc.exe'). That compiler will produce an int when two ints are divided. (Even if you do this..
Code:
int i = 3;
int o = 2;
double d = i / o;
'd' still equals 1.)
_tao4229_ is offline  
Closed Thread


Similar Threads Similar Threads
Adding pets to shoppingmall
08/23/2010 - EO PServer Hosting - 3 Replies
i dont know how add pets into the mall.. plz help.
EliteCoemu shoppingmall fix
08/13/2010 - CO2 PServer Guides & Releases - 2 Replies
this is the shopping mall fix for Elite Coemu 5095 in my source whenever you bought an item from shopping mall the item wouldnt appear in your inventory until you logged out and logged back in. so i when to itembuy.cs and changed a few things. this is the coding for the new itembuy.cs it worked for me so it should work for you. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading;
ShoppingMall and Arrows
05/18/2010 - CO2 Private Server - 5 Replies
Hello me again asking lol... i downloaded another code it's work better than older... but i have 2 bugs i cant fix alone cuz im noob xD i'm searching but no answers at google and internet yet... so it's: 1 - i Cant use another arrows better speedarrow for example: FatalArrow MineArrow and etc 2 - When i open the Shopping mall i got the messenger in red blinking in the game saying: "create item for Shoperror¬Idtype=0" , i see that has a button Repair in the window so i see at shop.dat i...
help i cant see shoppingmall
03/16/2010 - EO PServer Hosting - 11 Replies
hi every1 when i put lama mount in my server:bandit: i cant see anything in shoppingmall:mad: when open shoppingmall say (create item for shop error idtype=190770):( what i must to do now :confused::confused:
Everything 1 ep from shoppingmall
11/18/2007 - Eudemons Online - 19 Replies
My friend has a hack to get everything out of shopping mall but there is nothing we can do to hide it. we buy 1 code on the noob and do this make everything 1 ep but every one noob we try this with gets Banned the next maintenance. We've tried dropping and picking up. Selling Giving nearly everything is there anyway you could help us disguise this hack or should we just give up.



All times are GMT +1. The time now is 15:05.


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.