[Release] Extra - Strength - Fredrick - Hired merchants
PHP Code:
/*Made by Noob Media.
Aka Hector of LastStory - Idea from Mosh Extra mesos.
*/
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 \r\n#b#L1#Items#l");
else if (status == 2) {
cm.sendNext("Let me pull up your files...");
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) {
if (cm.getPlayer().getMeso() + cm.getHiredMerchantMesos() <= 2147483647) {
cm.sendNext("Thank you for using my services, your mesos has been recieved");
cm.gainMeso(cm.getHiredMerchantMesos());
cm.setMerchantMesos();
} else {
cm.sendYesNo("You have too much mesos with you would you like to take some of it out?");
cm.getHiredMerchantMesos(2147483647);
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 have not got items in the database. Please come back anytime!");
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();
}
}
}
}
Well this npc just makes sure that it doesn't make you lose your mesos if you have more than 2bil. lol
Idea was by Mosh, his was broken i fixed :D.
Re: [Release] Extra - Strength - Fredrick - Hired merchants
Re: [Release] Extra - Strength - Fredrick - Hired merchants
Quote:
Originally Posted by
IWannaWin
I guess this is good. =]
Whoa! Finally got a good comment out of you, Lmao.
Re: [Release] Extra - Strength - Fredrick - Hired merchants
Lol nice release but whats different then the regular one?
Re: [Release] Extra - Strength - Fredrick - Hired merchants
I thought you quit MapleStory developement ishan
Re: [Release] Extra - Strength - Fredrick - Hired merchants
Quote:
Originally Posted by
legendxzero3
Lol nice release but whats different then the regular one?
The regular one like deletes ur messos if u have over 2bil this one checks if u haver over 2bil if you do it takes you to a different selection and asks will you take 2bil out and you'll sitll have hte other mesos
Re: [Release] Extra - Strength - Fredrick - Hired merchants
Nice Haithem.
But yeah, thought you finished with MS?
Re: [Release] Extra - Strength - Fredrick - Hired merchants
cm.getHiredMerchantMesos(-2147483647);
huh?
Not sure if thats right but i guess it depends on the source o-o
Re: [Release] Extra - Strength - Fredrick - Hired merchants
lol , i did but every now and then people come to my msn =\
anujan that might ove been an error lol lemme check
EDIT: yes it was an error i are sorry :o!
Re: [Release] Extra - Strength - Fredrick - Hired merchants
Re: [Release] Extra - Strength - Fredrick - Hired merchants
Quote:
Originally Posted by
FloppyDisk
There's errors.
o_o... Where? this was tested
Re: [Release] Extra - Strength - Fredrick - Hired merchants
Hmm, I don't really get it xP So whatever nice release =D Since you know Beng ;]!
Re: [Release] Extra - Strength - Fredrick - Hired merchants
Quote:
Originally Posted by
AzuS
Hmm, I don't really get it xP So whatever nice release =D Since you know Beng ;]!
Lol, beng is just that sexy. Rofl, hes pro.
Re: [Release] Extra - Strength - Fredrick - Hired merchants
Quote:
Originally Posted by
ishan1996
Lol, beng is just that sexy. Rofl, hes pro.
I wanted him to help Dev for me =P! But nooo, he loves you too much ;]! Kinda jealous...Lol
Re: [Release] Extra - Strength - Fredrick - Hired merchants
Quote:
Originally Posted by
AzuS
I wanted him to help Dev for me =P! But nooo, he loves you too much ;]! Kinda jealous...Lol
lol. beng quit ms dev i think =\
lmao