Thread: Need help with these Errors! Tryed doing MoneyPouch for 667/711

Results 1 to 8 of 8
  1. #1 Need help with these Errors! Tryed doing MoneyPouch for 667/711 
    RuneSoul Developer
    'Brad's Avatar
    Join Date
    Jun 2008
    Age
    27
    Posts
    577
    Thanks given
    17
    Thanks received
    13
    Discord
    View profile
    Rep Power
    0
    I tryed doing Moneypouch for my 667/711
    Heres the thread i did it from:
    [Only registered and activated users can see links. ]

    Heres a screenie of my errors in buttonhandler


    All the other things added fine like the moneypouch.java and in player.java compiled and no errors when i add these i get tons of errors please help?


    Buttonhandler stuff.

    Code:
    } else if ((interfaceId == 746 && componentId == 207) || (interfaceId == 548 && componentId == 159)) {
    if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) {
    player.getMoneyPouch().switchPouch();
    } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) {

    } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET)
    player.getMoneyPouch().sendExamine();
    else
    if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) {
    if (player.getInterfaceManager().containsScreenInter( )) {
    player.getPackets()
    .sendGameMessage(
    "Please finish what you're doing before opening the price checker.");
    return;
    }
    player.stopAll();
    player.getPriceCheckManager().openPriceCheck();
    }
    }
    Code:
    public void depositMoneyPouch(boolean banking) {
    int coinsCount = player.getMoneyPouch().getCoinsAmount();
    int space = addItems(new Item[] {new Item(955, coinsCount) }, banking);
    if(space != 0) {
    if (space < 1) {
    player.getPackets().sendGameMessage("Not enough space in your bank.");
    return;
    }
    player.getMoneyPouch().sendDynamicInteraction(coin sCount, true);
    }
    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2012
    Posts
    165
    Thanks given
    53
    Thanks received
    3
    Rep Power
    8
    u're missing a bracket...
    Reply With Quote  
     

  3. #3  
    RuneSoul Developer
    'Brad's Avatar
    Join Date
    Jun 2008
    Age
    27
    Posts
    577
    Thanks given
    17
    Thanks received
    13
    Discord
    View profile
    Rep Power
    0
    Quote Originally Posted by empires View Post
    u're missing a bracket...
    That was good help never really told me where im missing the backet.
    Reply With Quote  
     

  4. #4  
    Registered Member blayke's Avatar
    Join Date
    Feb 2012
    Posts
    99
    Thanks given
    20
    Thanks received
    0
    Rep Power
    11
    if you can read, you can see that it says the error is on line...1361 ect...
    Reply With Quote  
     

  5. #5  
    RuneSoul Developer
    'Brad's Avatar
    Join Date
    Jun 2008
    Age
    27
    Posts
    577
    Thanks given
    17
    Thanks received
    13
    Discord
    View profile
    Rep Power
    0
    Quote Originally Posted by blayke View Post
    if you can read, you can see that it says the error is on line...1361 ect...
    This is it this is what i need to fix what do i put on it?

    } else if ((interfaceId == 746 && componentId == 207) || (interfaceId == 548 && componentId == 159)) {
    if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) {
    player.getMoneyPouch().switchPouch();
    } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) {

    } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET)
    player.getMoneyPouch().sendExamine();
    else
    if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) {
    if (player.getInterfaceManager().containsScreenInter( )) {
    player.getPackets()
    .sendGameMessage(
    "Please finish what you're doing before opening the price checker.");
    return;
    }
    player.stopAll();
    player.getPriceCheckManager().openPriceCheck();
    }
    }
    Reply With Quote  
     

  6. #6  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    u copy n pasted it wrong, remove n try again

    Reply With Quote  
     

  7. #7  
    RuneSoul Developer
    'Brad's Avatar
    Join Date
    Jun 2008
    Age
    27
    Posts
    577
    Thanks given
    17
    Thanks received
    13
    Discord
    View profile
    Rep Power
    0
    All the other things added fine like the moneypouch.java and in player.java compiled and no errors when i add these i get tons of errors please help?


    Buttonhandler stuff.

    Code:
    } else if ((interfaceId == 746 && componentId == 207) || (interfaceId == 548 && componentId == 159)) {
    if (packetId == WorldPacketsDecoder.ACTION_BUTTON1_PACKET) {
    player.getMoneyPouch().switchPouch();
    } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON2_PACKET) {

    } else if (packetId == WorldPacketsDecoder.ACTION_BUTTON3_PACKET)
    player.getMoneyPouch().sendExamine();
    else
    if (packetId == WorldPacketsDecoder.ACTION_BUTTON4_PACKET) {
    if (player.getInterfaceManager().containsScreenInter( )) {
    player.getPackets()
    .sendGameMessage(
    "Please finish what you're doing before opening the price checker.");
    return;
    }
    player.stopAll();
    player.getPriceCheckManager().openPriceCheck();
    }
    }
    Code:
    public void depositMoneyPouch(boolean banking) {
    int coinsCount = player.getMoneyPouch().getCoinsAmount();
    int space = addItems(new Item[] {new Item(955, coinsCount) }, banking);
    if(space != 0) {
    if (space < 1) {
    player.getPackets().sendGameMessage("Not enough space in your bank.");
    return;
    }
    player.getMoneyPouch().sendDynamicInteraction(coin sCount, true);
    }
    }
    Reply With Quote  
     

  8. #8  
    RuneSoul Developer
    'Brad's Avatar
    Join Date
    Jun 2008
    Age
    27
    Posts
    577
    Thanks given
    17
    Thanks received
    13
    Discord
    View profile
    Rep Power
    0
    Anyone help please?
    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. [667/***] Simple MoneyPouch Replacment
    By `Godliike in forum Tutorials
    Replies: 19
    Last Post: 08-04-2012, 02:40 AM
  2. Replies: 14
    Last Post: 06-15-2012, 05:08 PM
  3. Replies: 0
    Last Post: 06-15-2012, 03:01 AM
  4. Replies: 9
    Last Post: 05-06-2012, 03:19 PM
  5. Replies: 8
    Last Post: 06-06-2009, 11:33 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
  •