AkatsukiMs

Would you like to react to this message? Create an account in a few clicks or log in to continue.

AkatSukiMs


    Continue the GolDen Maple Leaf System

    [HeadGM]-Harry-
    [HeadGM]-Harry-
    Moderator
    Moderator


    Posts : 135
    Join date : 2009-02-10
    Age : 1353
    Location : Beside You. o.O

    Continue the GolDen Maple Leaf System Empty Continue the GolDen Maple Leaf System

    Post  [HeadGM]-Harry- Wed Feb 18, 2009 7:42 am

    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

    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();
            }
        }
    }

      Current date/time is Fri Nov 15, 2024 11:11 pm