u're missing a bracket...
|
|
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:
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();
}
}
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);
}
}
u're missing a bracket...
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();
}
}

u copy n pasted it wrong, remove n try again



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:
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();
}
}
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);
}
}
Anyone help please?
| « 667 Drop when moving.. | [667/***] Button Help [/667/***] » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |