- Joined
- Oct 22, 2011
- Messages
- 658
- Reaction score
- 338
Ok, so here's the release RageZone people. hmm?
edit the file called: HiredMerchantHandler.java search for displayMerch and replace with this:
then COMPILE make a store, close it and you'll see.
claps claps claps enjoy
edit the file called: HiredMerchantHandler.java search for displayMerch and replace with this:
then COMPILE make a store, close it and you'll see.
claps claps claps enjoy
Code:
public static void displayMerch(MapleClient c) {
final int conv = c.getPlayer().getConversation();
boolean merch = World.hasMerchant(c.getPlayer().getAccountID(), c.getPlayer().getId());
if (merch) {
c.getPlayer().dropMessage(1, "Please close the existing store and try again.");
c.getPlayer().setConversation(0);
} else if (c.getChannelServer().isShutdown()) {
c.getPlayer().dropMessage(1, "The world is going to shut down.");
c.getPlayer().setConversation(0);
} else if (conv == 3) { // Hired Merch
final MerchItemPackage pack = loadItemFrom_Database(c.getPlayer().getAccountID());
if (pack == null) {
c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "I don't think you have any items or money to retrieve here.\r\nThis is where you retrieve the items and mesos that you couldn't get from your Hired Merchant. You'll also need to see me as the character that opened the Personal Store.", "00 00", (byte) 0));
c.getPlayer().setConversation(0);
} else if (pack.getItems().size() <= 0) { //error fix for complainers.
if (!check(c.getPlayer(), pack)) {
c.getSession().write(PlayerShopPacket.merchItem_Message((byte) 0x21));
return;
}
if (deletePackage(c.getPlayer().getAccountID(), pack.getPackageid(), c.getPlayer().getId())) {
//c.getPlayer().fakeRelog();
c.getPlayer().gainMeso(pack.getMesos(), false);
c.getSession().write(PlayerShopPacket.merchItem_Message((byte) 0x1d));
c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "I see that you forgot something here right?\r\nHere is your money sir " + pack.getMesos(), "00 00", (byte) 0));
c.getPlayer().setConversation(0);
} else {
c.getPlayer().dropMessage(1, "An unknown error occured.");
}
c.getPlayer().setConversation(0);
} else {
c.getSession().write(PlayerShopPacket.merchItemStore_ItemData(pack));
MapleInventoryManipulator.checkSpace(c, conv, conv, null);
for (final Item item : pack.getItems()) {
if(c.getPlayer().getInventory(GameConstants.getInventoryType(item.getItemId())).isFull()){
c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "Sir, if you want your items back please clean up your inventory before you come here!", "00 00", (byte) 0));
c.getPlayer().setConversation(0);
break;
}
MapleInventoryManipulator.addFromDrop(c, item, true);
deletePackage(c.getPlayer().getAccountID(), pack.getPackageid(), c.getPlayer().getId());
c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "I saved your items sir, next time don't forget them, have a nice day.", "00 00", (byte) 0));
c.getPlayer().setConversation(0);
}
}
}
c.getSession().write(CWvsContext.enableActions());
}