• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Question about cash shop

Skilled Illusionist
Joined
Apr 26, 2015
Messages
302
Reaction score
77
I was messing around with the CashShop file Commodity.xml and I was wondering how the client decides If the item is an event/new item?

I didn't find a flag that states If the item is event or new, so I guess it's probably based on the serial number.

Anyone have more informations about it?
 
Joined
Apr 25, 2010
Messages
479
Reaction score
49
Cash Shop item is controlled by the SN node (Serial Number).
Class the 'HOT' 'EVENT' 'SALE' ...

Class = tags:
0 = NEW
1 = SALE (discounts)
2 = HOT (popular)
3 = EVENT (temp items)
4/no class = no tag)
Serial works like this

SN=
First number = category (start as 1)
Third number = sub category (start as 0)
 
Upvote 0
Custom Title Activated
Loyal Member
Joined
Mar 14, 2010
Messages
5,363
Reaction score
1,343
here's a visual representation of it

br1337 - Question about cash shop - RaGEZONE Forums
 
Upvote 0
Custom Title Activated
Loyal Member
Joined
Jan 18, 2010
Messages
3,109
Reaction score
1,139
You can additionally modify the flag without wz edits to Commodity.xml by handling the EncodeModifiedData portion of the SetCashShop packet (it should be the Class mask). This allows you to represent items as new/event/etc.

The list of available Icon Class flags for the Cash Shop is as follows:
Code:
enum IconClass
{
  ID_ICON_CLASS_NEW = 0x0,
  ID_ICON_CLASS_SALE = 0x1,
  ID_ICON_CLASS_HOT = 0x2,
  ID_ICON_CLASS_EVENT = 0x3,
  ID_ICON_CLASS_LIMIT = 0x4,
};

Hope this helps.
 
Upvote 0
Back
Top