Excellzone

Forum and disscussions since 2010


You are not connected. Please login or register

View previous topic View next topic Go down Message [Page 1 of 1]

#1
Excell

avatar
Head Administer
Head Administer
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();
            return;
        }
        if (mode == 1)
            status++;
        else
            status--;
        if (status == 0) {
            cm.sendSimple("Hello, I am the Nexon Cash seller of LipsMs .can i help you??\r\n\#L1# I Would like To Get 10k Nexon Cash For 8  #b#v4000252##k!#l\r\n\#L2# I Would Like To Get 25k Nexon Cash For 15 #b#v4000252##k!#l");
        } else if (status == 1) {
            if (selection == 1) {
                if(cm.haveItem(4000252, 8)) { 
                    cm.gainNX(10000);
                    cm.gainItem(4000252, -8);
                    cm.sendOk("Enjoy Ur Nexon Cash!");
                } else {
                    cm.sendOk("Sorry, you don't have 8 #b#v4000252##k!");
                }
                cm.dispose();
        } else if (status == 2) {
        } else if (selection == 2) {
            if(cm.haveItem(4000174, 15)) {
                    cm.gainNX(25000);
                    cm.gainItem(4000174, -15);
                    cm.sendOk("Enjoy ur Nexon Cash!");
                } else {
                    cm.sendOk("Sorry, you don't have 15 #b#v4000252##k!");
                }
                cm.dispose();
            }
            else{
                cm.sendOk("All right. Come back later");
            }
        }
    }
}

View user profile http://excellzone.mrforum.net

View previous topic View next topic Back to top Message [Page 1 of 1]


Permissions in this forum:
You cannot reply to topics in this forum