Question about cash shop

Results 1 to 5 of 5
  1. #1
    Account Upgraded | Title Enabled! br1337 is offline
    MemberRank
    Apr 2015 Join Date
    295Posts

    Question about cash shop

    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?


  2. #2
    Account Upgraded | Title Enabled! br1337 is offline
    MemberRank
    Apr 2015 Join Date
    295Posts

    Re: Question about cash shop


  3. #3
    Account Upgraded | Title Enabled! GabrielSin is offline
    MemberRank
    Apr 2010 Join Date
    483Posts

    Re: Question about cash shop

    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)

  4. #4
    Omega sunnyboy is offline
    MemberRank
    Mar 2010 Join Date
    6,109Posts

    Re: Question about cash shop

    here's a visual representation of it


  5. #5
    Moderator Eric is offline
    ModeratorRank
    Jan 2010 Join Date
    DEV CityLocation
    3,188Posts

    Re: Question about cash shop

    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.



Advertisement