Blocking Items From Cash Shop

Results 1 to 11 of 11
  1. #1
    Member Reso is offline
    MemberRank
    Apr 2013 Join Date
    74Posts

    Blocking Items From Cash Shop

    I'm using SourceDev v116 and there are Cash packages in the cash shop. Like Super Miracle Cube Packages, Premium Cube Pacakages, Etc.. I need to block these but i can not find the id's. IS there anyway of removing them from XML?

    When you buy the cash cube packages it says "Failed to purchase" but you still obtain the items.
    Last edited by Reso; 01-07-13 at 04:09 PM.


  2. #2
    Valued Member EastW is offline
    MemberRank
    Jun 2010 Join Date
    110Posts

    Re: Blocking Items From Cash Shop

    If not mistaken,maybe in the gameconstants.java

  3. #3
    - potimus is offline
    MemberRank
    Dec 2012 Join Date
    Ontario, CanadaLocation
    330Posts

    Re: Blocking Items From Cash Shop

    Add the ID's to this list in gameconstants.java

    Code:
    public static final int[] cashBlock =

  4. #4
    Member Reso is offline
    MemberRank
    Apr 2013 Join Date
    74Posts

    Re: Blocking Items From Cash Shop

    The package ID's do not have an ID unless I'm mistaken. The cubes are blocked. Yet when you buy cash shop packages it says "Failed to purchase" but you still obtain the items.

  5. #5
    - potimus is offline
    MemberRank
    Dec 2012 Join Date
    Ontario, CanadaLocation
    330Posts

    Re: Blocking Items From Cash Shop

    The package couldn't exist without an ID, its just a matter of finding it. Could you provide me with the packages exact names?

  6. #6
    Member Reso is offline
    MemberRank
    Apr 2013 Join Date
    74Posts

    Re: Blocking Items From Cash Shop

    Super Miracle Cube Package

  7. #7
    - potimus is offline
    MemberRank
    Dec 2012 Join Date
    Ontario, CanadaLocation
    330Posts

    Re: Blocking Items From Cash Shop

    I'll keep a look out for it in the future, couldn't find one off hand though. Maybe do some searching the wz files using harepacker, see if you can find some sort of ID. I find it unbelievable that they don't have an ID, but you could be right.

    I'll keep my eyes open and let you know what I find out.

  8. #8
    I'm overrated. Fraysa is offline
    MemberRank
    Apr 2008 Join Date
    4,891Posts

    Re: Blocking Items From Cash Shop

    I don't know what this cube is, well, maybe because I haven't played in a while. But looking through this "SourceDEV", in CashShopOperation.java file, I've found this:

    Code:
     } else if (action == 33) {
                slea.skip(1);
                final int toCharge = slea.readInt();
                final CashItemInfo item = CashItemFactory.getInstance().getItem(slea.readInt());
                List<Integer> ccc = null;
                if (item != null) {
                    ccc = CashItemFactory.getInstance().getPackageItems(item.getId());
                }
    Basically, this is the handler for package purchasing, I suppose. Each package has it's own ID, of course (or, serial number, what ever it's called). So, after this, there are these lines:

    Code:
     for (int iz : GameConstants.cashBlock) {
                        if (itemz.getItemId() == iz) {
                            continue;
    This, loops through the items in the package, finds out if they're blocked in the GameConstants file and skips them if they are. So basically, what you have to do is - add all the items ID in the cash shop to the blocked items in that file, and you're done.

  9. #9
    Member Reso is offline
    MemberRank
    Apr 2013 Join Date
    74Posts

    Re: Blocking Items From Cash Shop

    So you're saying i have to add super miracle cubes, normal cubes ID's? If you're saying that, i already have. IT says "Failed to purchase" but you still obtain the item.

  10. #10
    Account Upgraded | Title Enabled! Joakim432710 is offline
    MemberRank
    Oct 2008 Join Date
    222Posts

    Re: Blocking Items From Cash Shop

    All packages have something called a "special ID" using an if statement in CashOperation you can easily block it out.

  11. #11
    Member Reso is offline
    MemberRank
    Apr 2013 Join Date
    74Posts

    Re: Blocking Items From Cash Shop

    If i could only find the "Special ID"



Advertisement