Code:/*Fredrick NPC (9030000) *By Moogra (Fixed by Ronald) */ importPackage(net.sf.odinms.server); var status; var choice; function start() { status = -1; action(1, 0, 0); } function action(mode, type, selection) { if (mode == 1) status++; else { cm.dispose(); return; } if (status == 0) cm.sendNext("Hi, I'm the store banker."); else if (status == 1) cm.sendSimple("Would you like to withdraw\r\n#b#L0#Mesos#l #L1#Items#l"); else if (status == 2) { cm.sendNext("Let me check if you have any...."); choice = selection; } else { if (choice == 0) { if (status == 3) { var mesoEarnt = cm.getHiredMerchantMesos(); if (mesoEarnt > 0) cm.sendYesNo("You have made "+mesoEarnt+" mesos in your store so far. Would you like to withdraw them?"); else { cm.sendNext("You have not made any mesos"); cm.dispose(); } } else if (status == 4) { cm.sendNext("Thank you for using my services, your mesos has been recieved"); cm.gainMeso(cm.getHiredMerchantMesos()); cm.setHiredMerchantMesos(0); cm.dispose(); } } else { if (status == 3) { var items = cm.getHiredMerchantItems(); if (items.size() > 0) { var text = "Please select an item\r\n"; for (var i = 0; i < items.size(); i++) text += "#L"+i+"##i"+items.get(i).getRight().getItemId()+"##l "; cm.sendSimple(text); } else { cm.sendNext("You do not have any items from your store"); cm.dispose(); } } else if (status == 4) { var items = cm.getHiredMerchantItems(); if (cm.getC() == null) cm.getPlayer().dropMessage("Received"); MapleInventoryManipulator.addFromDrop(cm.getC(), items.get(selection).getRight()); cm.sendNext("Thank you for using my services, your item has been recieved"); cm.removeHiredMerchantItem(items.get(selection).getLeft()); cm.dispose(); } } } }
Just replace your script with that.
Credits to Moogra for ThePack II and the Script
Me for fixing it up.



Reply With Quote![[Release] Fixed Fredrick in ThePack II](http://ragezone.com/hyper728.png)


