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:
/*
Credits: Timmy
*/

var townmaps = Array(109030001, 109040000, 682000200, 900000000, 101000100, 105040310, 105040310, 105040312, 105040314, 105040316, 103000900, 103000903, 103000906, 990000401 );
var chosenMap = -1;
var towns = 0;

importPackage(net.sf.odinms.client);

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (mode == -1) {
        cm.dispose();
    }
    else {
        if (status >= 3 && mode == 0) {
            cm.sendOk("See you next time!");
            cm.dispose();
            return;   
        }
        if (mode == 1) {
            status++;
        }
        else {
            status--;
        }
        if (status == 0) {
            cm.sendNext("Hey #g#h ##k, I'm the Jump quest Warper!");
        }
        if (status == 1) {
            cm.sendSimple("#fUI/UIWindow.img/QuestIcon/3/0#\r\n#L0#Jump quest#l\r\n#L1#Leave#l");
        }
        else if (status == 2) {
            if (selection == 0) {
                cm.sendSimple("#fUI/UIWindow.img/QuestIcon/3/0#\r\n#L0#Jump quest Maps#l\r\n#l");
            }
            else if (selection == 1) {
                cm.dispose();
            }
        }
        else if (status == 3) {
            if (selection == 0) {
                var selStr = "Select your destination.#b";
                for (var i = 0; i < townmaps.length; i++) {
                    selStr += "\r\n#L" + i + "##m" + townmaps[i] + "#";
                }
                cm.sendSimple(selStr);
                towns = 1;
            }
        }
        else if (status == 4) {
            if (towns == 1) {
                cm.sendYesNo("Do you want to go to #m" + townmaps[selection] + "#?");
                chosenMap = selection;
                towns = 2;
            }
        }
        else if (status == 5) {
            if (towns == 2) {
                cm.warp(townmaps[chosenMap], 0);
                cm.dispose();
            }
        }
             
    }
}

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