Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- itemid = [1002082, 1002081, 1002080, 1002391, 1002395, 1002394, 1002083, 1072012, 1072054, 1072055, 1072056, 1082223, 1082230, 1102064, 1112000, 1032001];
- statamount = [69, 137, 310, 650, 1400, 3000, 6500, 80, 175, 350, 800, 250, 250, 200, 13337, 300];
- watk = [10, 30, 65, 105, 155, 235, 350, 15, 40, 69, 120, 90, 20, 69, 137, 60];
- matk = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 90, 0, 0, 120];
- req1 = [4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895];
- amt1 = [5, 10, 22, 45, 100, 200, 400, 7, 20, 40, 100, 60, 60, 50, 500, 40];
- req2 = [4001126, 4000010, 4001126, 1002080, 1002391, 1002395, 1002394, 4001126, 4001126, 4001126, 4001126, 4001126, 4001126, 4001126, 4000313, 4000015];
- amt2 = [400, 50, 1600, 1, 1, 1, 1, 450, 900, 1800, 3500, 1337, 1337, 1000, 5, 200];
- req3 = [4031895, 4001126, 1002081, 4000003, 4001126, 4000022, 4000049, 4031895, 1072012, 1072054, 1072055, 4000180, 4000224, 4000171, 4010000, 4000313];
- amt3 = [0, 800, 1, 320, 6800, 700, 800, 0, 1, 1, 1, 700, 650, 300, 800, 2];
- req4 = [4031895, 1002082, 4000019, 4001126, 4000006, 4000313, 40000076, 4031895, 4000000, 4000004, 4000081, 4031895, 4031895, 4031895, 4000175, 4031895];
- amt4 = [0, 1, 200, 3200, 500, 20, 500, 0, 250, 420, 700, 0, 0, 0, 500, 0];
- req5 = [4031895, 4031895, 4031895, 4031895, 4031895, 4000021, 4000313, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895];
- amt5 = [0, 0, 0, 0, 0, 290, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0];
- req6 = [4031895, 4031895, 4031895, 4031895, 4031895, 4001126, 4000060, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895];
- amt6 = [0, 0, 0, 0, 0, 200, 1600, 0, 0, 0, 0, 0, 0, 0, 0, 0];
- 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;
- {
- else
- status--;
- if (status == 0) {
- cm.sendSimple ("#eWelcome To TestMS! My name is #rHero#k. \r\nWhen purchasing from me, #rPLEASE MAKE SURE YOU DON'T ALREADY HAVE THE PURCHASED ITEM IN YOUR INVENTORY. #k\r\n\\r\n#fUI/UIWindow.img/QuestIcon/3/0#\r\n\#L80#Hero's Hat#k\r\n\#L81#Hero's Shoe#k\r\n\#L82#Hero's Glove#k\r\n\#L83#Hero's Cape#k\r\n\#L84#Hero's Ring#k\r\n\#L85#Hero's Earring#l\r\n\r\n\r\n#d-Price are subject to change");
- if (selection == 80) {
- cm.sendSimple (" This is the Hat Stats Item. #e#d" +
- "#k\r\n\r\n#L0##r#v1002082#Yellow Bandana. 69tats Each & 10WA\r\n\#k5Pieces of Cheese and 400 Maple Leafs " +
- "#k\r\n\r\n#L1##r#v1002081#Blue Bandana.137 Stats Each & 30Wa\r\n\#k10Pieces of Cheese, 50 Slime bubbles, 800 Maple Leafs and 1 Yellow Bandana" +
- "#k\r\n\r\n#L2##r#v1002080#Red Bandana 310 Stats Each & 65WA\r\n\#k200 Snail Shell, 22 Pieces of Cheese, 1600 Maple Leafs and 1 Blue Bandana" +
- "#k\r\n\r\n#L3##r#v1002391#Green Bandana 650 Stats Each & 105WA\r\n\#k320 Tree Branch, 45 Pieces of Cheese, 3200 Maple Leafs and 1 Red Bandana" +
- "#k\r\n\r\n#L4##r#v1002395#Purple Bandana 1400 Stats Each & 155WA\r\n\#k500 Octopus Leg, 100 Pieces of Cheese, 6800 Maple Leafs and 1 Green Bandana" +
- "#k\r\n\r\n#L5##r#v1002394#Grey Bandana 3000 Stats Each & 235WA\r\n\#k290 Leather, 700 Stone Golem Rubble, 10 Golden Maple Leafs, 200 Maple Leafs, 200 Pieces of Cheese and 1 Purple Bandana" +
- "#k\r\n\r\n#L6##r#v1002083#Black Bandana 6500 Stats Each & 350WA\r\n\#k800 Yeti Horn, 500 Fly-Eye Wing, 1600 Lunar Pixie's Moonpiece, 20 Golden Maple Leafs, 400 Pieces of Cheese and 1 Grey Bandana");
- } else if (selection == 81) {
- cm.sendSimple ("This is the Shoe Stats Item. #e#d" +
- "#k\r\n\r\n#L7##b#v1072012#Red Whitebottom Boots. 80tats Each & 15WA\r\n#k7Pieces of Cheese and 450 Maple Leafs" +
- "#k\r\n\r\n#L8##b#v1072054#Orange Whitebottom Boots. 175tats Each & 40WA\r\n#k20Pieces of Cheese, 900 Maple Leafs and 250 Blue Snail Shell and 1 Red Whitebottom Boots." +
- "#k\r\n\r\n#L9##b#v1072055#Pink Whitebottom Boots. 350tats Each & 69WA\r\n#k40Pieces of Cheese, 1800 Maple Leafs,420 Squishy Liquid and 1 Orange Whitebottom Boots." +
- "#k\r\n\r\n#L10##b#v1072056#Blue Whitebottom Boots. 800stats Each & 120WA\r\n#k100Pieces of Cheese, 3500 Maple Leafs , 700 Firebomb Flames and 1 Pink Whitebottom Boots." );
- } else if (selection == 82) {
- cm.sendSimple ("This is the Glove Stats Item. #e#d#k\r\n\r\n#L11##d#v1082223#Stormcaster Glove. 250Stats Each, 90WA & 30MA\r\b#k60Pieces of Cheese, 1337 Maple Leafs and 700 Shark Denture.#k\r\n\r\n#L12##d#v1082230#Glitter Glove. 250Each Stats, 90MA & 20WA\r\n#k 60Pieces of Cheese, 1337 Maple Leafs and 650 Sabots.");
- } else if (selection == 83) {
- cm.sendSimple ("This is the Cape Stats Item. #e#d" +
- "#k\r\n\r\n#L13##g#v1102064#Goblin Cape. 200Stats Each & 69WA\r\n#k50Pieces of Cheese, 1000 Maple Leafs and 300 Tiger Skin");
- } else if (selection == 84) {
- cm.sendSimple ("This is the Ring Stats Item #e#d" +
- "#k\r\n\r\n#L14##b#v1112000#Sparkling Ring. 13337stats Each & 137WA\r\n#k500Pieces of Cheese, 5 Golden Maple Leafs , 500 Miniature Pianus and 800 Bronze Ore. ");
- } else if (selection == 85) {
- cm.sendSimple("This is Earrings Stats Item #e#d" +
- "#k\r\n\r\n#L15##b#v1032001#Single Earring. 300 stats each, 60WA and 120 MA \r\n#k 40 cheese, 200 Horny Mushroom Caps, 2 Golden Maple Leaves. ");
- }
- } else if (status == 2 && cm.haveItem(req1[selection], amt1[selection]) && cm.haveItem(req2[selection], amt2[selection]) && cm.haveItem(req3[selection], amt3[selection]) && cm.haveItem(req4[selection], amt4[selection]) && cm.haveItem(req5[selection], amt5[selection]) && cm.haveItem(req6[selection], amt6[selection])) {
- if (cm.canHold(1112000)) {
- cm.gainItem(req1[selection], -amt1[selection]);
- cm.gainItem(req2[selection], -amt2[selection]);
- cm.gainItem(req3[selection], -amt3[selection]);
- cm.gainItem(req4[selection], -amt4[selection]);
- cm.gainItem(req5[selection], -amt5[selection]);
- cm.gainItem(req6[selection], -amt6[selection]);
- cm.gainItem(itemid[selection], 1);
- Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "str", statamount[selection]);
- Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "dex", statamount[selection]);
- Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "int", statamount[selection]);
- Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "luk", statamount[selection]);
- Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "watk", watk[selection]);
- Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "matk", matk[selection]);
- cm.reloadChar();
- cm.sendOk("Here is your #i"+itemid[selection]+"#. Enjoy!!! :)");
- cm.dispose();
- }
- else {
- cm.sendNext("Oh wait.... I don't have enough space in my inventory to get a #i"+itemid[selection]+"#.", 3);
- cm.dispose();
- }
- }
- else if (status == 2) {
- cm.sendNext("Oh wait.... I didn't meet the requirements to get a #i"+itemid[selection]+"#.", 3);
- cm.dispose();
- }
- else {
- cm.sendOk("Error o_O.... Please try again.");
- cm.dispose();
- }
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement