Thread: PI Rank system fix???

Results 1 to 7 of 7
  1. #1 PI Rank system fix??? 
    Registered Member
    Join Date
    Jun 2012
    Posts
    16
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    I am new to coding so go easy on me, i cant exactly find out what is wrong. but last night i added donator rank and for some reason in my player files the isdonator is on the same line as pc points

    pc-points = 0isDonator = 0

    thats what it does, and if i use the ::givedonor command, the player logs out and cannot log back in.. This now happens with any of the ranks(ex. if i try to give someone mod, admin, or owner through a command it kicks them but they cant re join.)

    Now i cant even log in on my owner account but if i make a new account it logs in just fine. im so confused and dont know what to do. please help.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    Lol, because you didn't write it in a new line.

    Code:
    filename.newLine();
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2012
    Posts
    16
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    what a fail... thank you so much lmao i erased the newline for pc points when i added the donator. will this fix all the login problems too?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2012
    Posts
    16
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    also when i open skillcape shop with money in inv it crashes.. i got it so it would stop crashing but now if u try to buy a cape it doesnt take money or give you the cape. i tried looking up tuts for this but only came up with 24-skill fixes and this server only has 21 skills. any idea?
    Reply With Quote  
     

  5. #5  
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED


    Join Date
    May 2013
    Age
    28
    Posts
    2,992
    Thanks given
    5
    Thanks received
    937
    Rep Power
    183
    Delete the methods for the other skills being called. Easy to do
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2012
    Posts
    16
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    not quite sure how to do that, as i said im new. i fixed the crash thing by changing 15000 to 50000 because i saw some suggestion about that. now dwarf remains are in the shop? i dont even remember where i found that number haha is it client or server sided.



    this is 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  
     

  7. #7  
    Registered Member
    Join Date
    Jun 2012
    Posts
    16
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    any help with the shop?
    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. Drop system fix [PI]
    By fucking retad in forum Buying
    Replies: 4
    Last Post: 08-28-2013, 04:03 AM
  2. [PI]100 ERRORS 14 rank system[PI]
    By Gold phat in forum Help
    Replies: 4
    Last Post: 01-04-2013, 09:30 AM
  3. [PI] Buying [RANK] System.
    By Jordy? in forum Buying
    Replies: 4
    Last Post: 06-27-2012, 09:17 PM
  4. Adding a Ranking System (vBulletin 3.6.8)
    By Designer in forum Website Development
    Replies: 4
    Last Post: 03-21-2009, 05:58 PM
  5. Runescape Private Server Ranking system.
    By thefifthlord in forum RS2 Server
    Replies: 41
    Last Post: 06-30-2008, 11:03 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
  •