Thread: Skillcape Shop Problem

Results 1 to 2 of 2
  1. #1 Skillcape Shop Problem 
    Registered Member

    Join Date
    Sep 2010
    Posts
    843
    Thanks given
    7
    Thanks received
    30
    Rep Power
    108
    No it is not freezing



    So apparently this is my skillcape shop, spent a few hours trying to fix it and I can't find a fix. You can't buy the hoods or other random items, and they aren't skillcapes? >.>

    here is all of my skillcape methods.

    Spoiler for ShopAssistant.java:
    public void openSkillCape() {
    int capes = get99Count();
    if (capes > 1)
    capes = 1;
    else
    capes = 0;
    c.myShopId = 14;
    setupSkillCapes(capes, get99Count());
    }

    //public int[] skillCapes = {9747,9753,9750,9768,9756,9759,9762,9801,9807,9783 ,9798,9804,9780,9795,9792,9774,9771,9777,9786,9810 ,9765,9948,12169};
    public int[] skillCapes = {9747,9753,9750,9768,9756,9759,9762,9801,9807,9783 ,9798,9804,9780,9795,9792,9774,9771,9777,9786,9810 ,9765,9948,12169,18508};
    public int get99Count() {
    int count = 0;
    for (int j = 0; j < skillCapes.length; j++) {
    if (c.getLevelForXP(c.playerXP[j]) >= 99) {
    count++;
    }
    }
    return count;
    }

    public void setupSkillCapes(int capes, int capes2) {
    synchronized(c) {
    c.getItems().resetItems(3823);
    c.isShopping = true;
    c.myShopId = 14;
    c.getPA().sendFrame248(3824, 3822);
    c.getPA().sendFrame126("Skillcape Shop", 3901);

    int TotalItems = 0;
    TotalItems = capes2;
    if (TotalItems > Server.shopHandler.MaxShopItems) {
    TotalItems = Server.shopHandler.MaxShopItems;
    }
    c.getOutStream().createFrameVarSizeWord(53);
    c.getOutStream().writeWord(3900);
    c.getOutStream().writeWord(TotalItems);
    int TotalCount = 0;
    int off = (capes > 1 ? 2 : 0);
    for (int i = 0; i < skillCapes.length; i++) {
    if (c.getLevelForXP(c.playerXP[i]) < 99)
    continue;
    c.getOutStream().writeByte(1);
    c.getOutStream().writeWordBigEndianA(skillCapes[i] + off); // why the +2? uhh this is just from the original nrpk? i think
    TotalCount++;
    }
    c.getOutStream().endFrameVarSizeWord();
    c.flushOutStream();
    }
    }

    Real Eyes
    Realize
    Real Lies
    Reply With Quote  
     

  2. #2  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    The sending is correct (judged by the print screen you've got there).
    For this it's the handling of the buying we're interested in.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Skillcape shop problem
    By 4ces0fsp4des in forum Help
    Replies: 11
    Last Post: 07-30-2012, 06:08 PM
  2. [PI] Problem with skillcape shops
    By Runescapme.NET in forum Help
    Replies: 2
    Last Post: 07-30-2011, 11:43 PM
  3. New shop problems
    By mudvayne5493 in forum Help
    Replies: 7
    Last Post: 02-25-2009, 08:06 AM
  4. Major Shop Problem...
    By LunarKnight in forum Help
    Replies: 3
    Last Post: 02-08-2009, 02:29 AM
  5. Shop problems
    By .:Programing God:. in forum Help
    Replies: 6
    Last Post: 02-04-2009, 03:37 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •