Hey Sergio/Ace
I've scripted a golden maple leaf system.. As many people wants to store their mesos... Here it is. I think it should works
I've scripted a golden maple leaf system.. As many people wants to store their mesos... Here it is. I think it should works
- Code:
var status = 0;
var map = Array(240010501);
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1)
cm.dispose();
else {
if (mode == 0 && status == 0)
cm.dispose();
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple("Hello, I am the AkatsukiMS gold leaf to item converter. Would you like to trade in a #b#v4000313##k for a #b#1442008##k? Or would you prefer trading a #b#v4000313##k for a #b#1302014##k?\r\n#L1# I would like to trade a #b#v4000313##k for a #b#1442008##k!#l\r\n\#L2# I would like to exchange a #b#v4000313##k for a #b#1302014##k!#l");
} else if (status == 1) {
if (selection == 1) {
if(cm.haveItem(4000313)) {
cm.gainItem(1442008);
cm.gainItem(4000313, -1);
cm.sendOk("Thank you for your leaf!");
} else {
cm.sendOk("Sorry, you don't have a #b#v4000313##k!");
cm.dispose();
}
} else if (selection == 2) {
if(cm.haveItem(4000313)) {
cm.gainItem(1302014);
cm.gainItem(4000313, -1);
cm.sendOk("Thank you for your leaf!");
} else {
cm.sendOk("Sorry, you don't have a leaf.");
cm.dispose();
}
}
}