- Joined
- Apr 6, 2008
- Messages
- 296
- Reaction score
- 3
After seeing the release that was just posted, i decided to post the correct one i made.
This asks if you want to buy fame for 10m mesos,
And if you accept it gives fame for 10m mesos and gives 1 fame.
This is the correct one and doesnt STEAL any money. Lol
I tested it and it worked.
Credits: Me(Killshadow05) of ShadowMS
Code:
/*
This file is part of the DuckStory Maple Story Server
Copyright (C) 2008 Dhaniram Heera
Zirak Chowdhry
Waqar Ahmed
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
/*
Fame Seller (10mil mesos per fame)
*/
var status = 0;
var price = 10000000;
var fame = 1;
function start() {
action(1, 0, 0);
}
function action(mode, type, selection) {
if (status == 0) {
cm.sendYesNo("Do you wish to buy some #fUI/UIWindow.img/QuestIcon/6/0# for 10m mesos?");
status++;
} else {
if ((status == 1 && type == 1 && selection == -1 && mode == 0) || mode == -1) {
cm.dispose();
} else {
if (status == 1) {
if (cm.getMeso() >= price) {
cm.gainFame(+fame);
cm.gainMeso(-price);
cm.dispose();
} else {
cm.sendOk("You need atleast 10m Mesos.");
cm.dispose();
}
}
}
}
}
And if you accept it gives fame for 10m mesos and gives 1 fame.
This is the correct one and doesnt STEAL any money. Lol
I tested it and it worked.
Credits: Me(Killshadow05) of ShadowMS
Last edited: