Thread: skillcape shop crash

Results 1 to 4 of 4
  1. #1 skillcape shop crash 
    Registered Member
    Join Date
    Jun 2012
    Posts
    16
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    new to coding but i have looked up the fix to this and all i can find is fixes for servers with 24 skills.. my server only has 21 so im quite un sure.. basically when u open the store with money in inv it crashes client. i fixed this by changing some number from 15000 to 50000 which i saw in a guide somewhere, now there are dwarf remains in shop, and when u try to buy a cape nothing happens, no money is taken, and no cape is recieved. im sooooo confused please help.. heres the shop


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

    /*
    * public int[][] skillCapes =
    * {{0,9747,4319,2679},{1,2683,4329,2685},{2,2680
    * ,4359,2682},{3,2701,4341,2703
    * },{4,2686,4351,2688},{5,2689,4347,2691},{6,2692,43 43,2691},
    * {7,2737,4325,2733
    * },{8,2734,4353,2736},{9,2716,4337,2718},{10,2728,4 335,2730
    * },{11,2695,4321,2697},{12,2713,4327,2715},{13,2725 ,4357,2727},
    * {14,2722,4345
    * ,2724},{15,2707,4339,2709},{16,2704,4317,2706},{17 ,2710,4361,
    * 2712},{18,2719,4355,2721},****,2737,4331,2739},{20 ,2698,4333,2700}};
    */
    public int[] skillCapes = { 9747, 9753, 9750, 9768, 9756, 9759, 9762, 9801,
    9807, 9783, 9798, 9804, 9780, 9795, 9792, 9774, 9771, 9777, 9786,
    9810, 9765 };

    public int get99Count() {
    int count = 0;
    for (int j = 0; j < c.playerLevel.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 > ShopHandler.MaxShopItems) {
    TotalItems = ShopHandler.MaxShopItems;
    }
    c.getOutStream().createFrameVarSizeWord(53);
    c.getOutStream().writeWord(3900);
    c.getOutStream().writeWord(TotalItems);
    for (int i = 0; i < 21; i++) {
    if (c.getLevelForXP(c.playerXP[i]) < 99)
    continue;
    c.getOutStream().writeByte(1);
    c.getOutStream().writeWordBigEndianA(skillCapes[i] + 2);
    }
    c.getOutStream().endFrameVarSizeWord();
    c.flushOutStream();
    }
    }

    public void skillBuy(int item) {
    int nn = get99Count();
    if (nn > 1)
    nn = 1;
    else
    nn = 0;
    for (int j = 0; j < skillCapes.length; j++) {
    if (skillCapes[j] == item || skillCapes[j] + 1 == item) {
    if (c.getItems().freeSlots() > 1) {
    if (c.getItems().playerHasItem(995, 99000)) {
    if (c.getLevelForXP(c.playerXP[j]) >= 99) {
    c.getItems().deleteItem(995,
    c.getItems().getItemSlot(995), 99000);
    c.getItems().addItem(skillCapes[j] + nn, 1);
    c.getItems().addItem(skillCapes[j] + 2, 1);
    } else {
    c.sendMessage("You must have 99 in the skill of the cape you're trying to buy.");
    }
    } else {
    c.sendMessage("You need 99k to buy this item.");
    }
    } else {
    c.sendMessage("You must have at least 1 inventory spaces to buy this item.");
    }
    }
    }
    c.getItems().resetItems(3823);
    }

    public void openVoid() {
    }

    public void buyVoid(int item) {
    }

    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jun 2012
    Posts
    16
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    the number i changed was client sided under item def...

    streamIndices = new int[totalItems + 50000];
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Aug 2013
    Age
    27
    Posts
    1,128
    Thanks given
    373
    Thanks received
    754
    Rep Power
    0
    Quote Originally Posted by 99mageking View Post
    new to coding but i have looked up the fix to this and all i can find is fixes for servers with 24 skills.. my server only has 21 so im quite un sure.. basically when u open the store with money in inv it crashes client. i fixed this by changing some number from 15000 to 50000 which i saw in a guide somewhere, now there are dwarf remains in shop, and when u try to buy a cape nothing happens, no money is taken, and no cape is recieved. im sooooo confused please help.. heres the shop
    http://www.rune-server.org/runescape...crash-fix.html
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2012
    Posts
    16
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    that doesnt work, its for 24 skills like i said i have 21.......
    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. PI Skillcape shop crash
    By Impervious in forum Help
    Replies: 1
    Last Post: 01-03-2012, 12:37 AM
  2. skillcape shop crashing o.O
    By OodlesOfNoodles in forum Help
    Replies: 6
    Last Post: 06-18-2011, 10:23 PM
  3. Replies: 12
    Last Post: 06-11-2011, 08:13 PM
  4. Open skillcape shop > crash
    By bloodz in forum Tutorials
    Replies: 14
    Last Post: 05-14-2011, 10:44 PM
  5. Open skillcape shop > crash
    By bloodz in forum Help
    Replies: 1
    Last Post: 05-06-2011, 11:51 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •