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 wui = 0;

function start() {
    cm.sendSimple (" Hello there #b #h # #k, Welcome to MapleGamerZ! Type @commands to see a list of player commands...So what job do you want? \r\n#L0##bSuper Beginner!#k #l\r\n#L1##bBowman#k #l\r\n#L2##bMagician#k #l\r\n#L3##bWarrior#k #l\r\n#L4##bRogue#k #l\r\n#L5##bPirate#k #l");
}

function action(mode, type, selection) {
cm.dispose();
    if (selection == 0) {         
        cm.gainMeso(1000000);
        cm.gainItem(1442039,1);//Level 10 tuna
        cm.gainItem(2002023 ,500);
cm.gainItem(1002186 ,1);
cm.gainItem(1082102 ,1);
cm.gainItem(1012031 ,1);
cm.gainItem(1012003 ,1);
cm.gainItem(5160003 ,1);
cm.gainItem(5160006, 1);
cm.gainItem(5160013, 1);
cm.gainItem(3010000, 1);
        cm.gainExp(3347); //Level 1 - 10
        cm.warp(980000400, 0);
        } else if (selection == 1) {
        cm.changeJob(net.sf.odinms.client.MapleJob.BOWMAN);
        cm.gainMeso(1000000);
        cm.gainItem(1452002,1);//Level 10 bow
        cm.gainItem(1462001,1);//Level 12 xbow
        cm.gainItem(2060000,2000);//Arrows
        cm.gainItem(2061000,2000);//Arrows
        cm.gainItem(2002023 ,500);
cm.gainItem(1002186 ,1);
cm.gainItem(1082102 ,1);
cm.gainItem(1012031 ,1);
cm.gainItem(1012003 ,1);
cm.gainItem(5160003 ,1);
cm.gainItem(5160006, 1);
cm.gainItem(5160013, 1);
cm.gainItem(3010000, 1);
        cm.gainExp(3347); //Level 9 - 10
        cm.warp(980000400, 0);
        } else if (selection == 2) {
        cm.changeJob(net.sf.odinms.client.MapleJob.MAGICIAN);
        cm.gainMeso(1000000);
        cm.gainItem(1372005,1);//Level 8 Wand
        cm.gainItem(1382000,1);//Level 10 Staff
        cm.gainItem(2002023 ,500);
cm.gainItem(1002186 ,1);
cm.gainItem(1082102 ,1);
cm.gainItem(1012031 ,1);
cm.gainItem(1012003 ,1);
cm.gainItem(5160003 ,1);
cm.gainItem(5160006, 1);
cm.gainItem(5160013, 1);
cm.gainItem(3010000, 1);
        cm.gainExp(1265); //Level 1 - 8
        cm.warp(980000400, 0);
        } else if (selection == 3) {
        cm.changeJob(net.sf.odinms.client.MapleJob.WARRIOR);
        cm.gainMeso(1000000);
        cm.gainItem(1302007,1);//Level 10 1-H Sword
        cm.gainItem(1402001,1);//Level 10 2-H Sword
        cm.gainItem(1442000,1);//Level 10 Polearm
        cm.gainItem(1432000,1);//Level 10 Spear
        cm.gainItem(2002023 ,500);
cm.gainItem(1002186 ,1);
cm.gainItem(1082102 ,1);
cm.gainItem(1012031 ,1);
cm.gainItem(1012003 ,1);
cm.gainItem(5160003 ,1);
cm.gainItem(5160006, 1);
cm.gainItem(5160013, 1);
cm.gainItem(3010000, 1);
        cm.gainExp(3347); //Level 1 - 10
        cm.warp(980000400, 0);
        } else if (selection == 4) {
        cm.changeJob(net.sf.odinms.client.MapleJob.THIEF)
        cm.gainMeso(1000000); 
        cm.gainItem(1472000,1);//Level 10 Claw
        cm.gainItem(1332007,1);//Level 8 Dagger
        cm.gainItem(1332000,1);//Level 12 Dagger
        cm.gainItem(2070000,700);//Subi Star
        cm.gainItem(2070000,700);//Subi Star
        cm.gainItem(2002023 ,500);
cm.gainItem(1002186 ,1);
cm.gainItem(1082102 ,1);
cm.gainItem(1012031 ,1);
cm.gainItem(1012003 ,1);
cm.gainItem(5160003 ,1);
cm.gainItem(5160006, 1);
cm.gainItem(5160013, 1);
cm.gainItem(3010000, 1);
        cm.gainExp(3347); //Level 1 - 10
        cm.warp(980000400, 0);
        } else if (selection == 5) {
        cm.changeJob(net.sf.odinms.client.MapleJob.PIRATE)
        cm.gainMeso(1000000);
        cm.gainItem(1482000,1);//Level 10 Knuckle
        cm.gainItem(1492000,1);//Level 10 Gun
        cm.gainItem(2330000,1000);//Level 10 Bullet
        cm.gainItem(2330000,1000);//Level 10 Bullet
        cm.gainItem(2002023 ,500);
cm.gainItem(1002186 ,1);
cm.gainItem(1082102 ,1);
cm.gainItem(1012031 ,1);
cm.gainItem(1012003 ,1);
cm.gainItem(5160003 ,1);
cm.gainItem(5160006, 1);
cm.gainItem(5160013, 1);
cm.gainItem(3010000, 1);
        cm.gainExp(3347); //Level 1 - 10
        cm.warp(980000400, 0);
        }

    if (mode == 0 || wui == 1) {
        cm.dispose();
    } else {
        wui = 1;
        var statup = new java.util.ArrayList();
        var p = cm.c.getPlayer();
        var totAp = p.getRemainingAp() + p.getStr() + p.getDex() + p.getInt() + p.getLuk();
        p.setStr(4);
        p.setDex(4);
        p.setInt(4);
        p.setLuk(4);
        p.setRemainingAp (totAp - 16);
        statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.STR, java.lang.Integer.valueOf(4)));
        statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.DEX, java.lang.Integer.valueOf(4)));
        statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.LUK, java.lang.Integer.valueOf(4)));
        statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.INT, java.lang.Integer.valueOf(4)));
        statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.AVAILABLEAP, java.lang.Integer.valueOf(p.getRemainingAp())));

        p.getClient().getSession().write (net.sf.odinms.tools.MaplePacketCreator.updatePlayerStats(statup));
        cm.openNpc(2042004);
    }
}

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