Advertisement
Guest User

Untitled

a guest
Nov 11th, 2011
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.55 KB | None | 0 0
  1. itemid = [1002082, 1002081, 1002080, 1002391, 1002395, 1002394, 1002083, 1072012, 1072054, 1072055, 1072056, 1082223, 1082230, 1102064, 1112000, 1032001];
  2. statamount = [69, 137, 310, 650, 1400, 3000, 6500, 80, 175, 350, 800, 250, 250, 200, 13337, 300];
  3. watk = [10, 30, 65, 105, 155, 235, 350, 15, 40, 69, 120, 90, 20, 69, 137, 60];
  4. matk = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 90, 0, 0, 120];
  5. req1 = [4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895];
  6. amt1 = [5, 10, 22, 45, 100, 200, 400, 7, 20, 40, 100, 60, 60, 50, 500, 40];
  7. req2 = [4001126, 4000010, 4001126, 1002080, 1002391, 1002395, 1002394, 4001126, 4001126, 4001126, 4001126, 4001126, 4001126, 4001126, 4000313, 4000015];
  8. amt2 = [400, 50, 1600, 1, 1, 1, 1, 450, 900, 1800, 3500, 1337, 1337, 1000, 5, 200];
  9. req3 = [4031895, 4001126, 1002081, 4000003, 4001126, 4000022, 4000049, 4031895, 1072012, 1072054, 1072055, 4000180, 4000224, 4000171, 4010000, 4000313];
  10. amt3 = [0, 800, 1, 320, 6800, 700, 800, 0, 1, 1, 1, 700, 650, 300, 800, 2];
  11. req4 = [4031895, 1002082, 4000019, 4001126, 4000006, 4000313, 40000076, 4031895, 4000000, 4000004, 4000081, 4031895, 4031895, 4031895, 4000175, 4031895];
  12. amt4 = [0, 1, 200, 3200, 500, 20, 500, 0, 250, 420, 700, 0, 0, 0, 500, 0];
  13. req5 = [4031895, 4031895, 4031895, 4031895, 4031895, 4000021, 4000313, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895];
  14. amt5 = [0, 0, 0, 0, 0, 290, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0];
  15. req6 = [4031895, 4031895, 4031895, 4031895, 4031895, 4001126, 4000060, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895, 4031895];
  16. amt6 = [0, 0, 0, 0, 0, 200, 1600, 0, 0, 0, 0, 0, 0, 0, 0, 0];
  17. function start() {
  18. status = -1;
  19. action(1, 0, 0);
  20. }
  21.  
  22. function action(mode, type, selection) {
  23. if (mode == -1) {
  24. cm.dispose();
  25. } else {
  26. if (mode == 0 && status == 0) {
  27. cm.dispose();
  28. return;
  29. {
  30. else
  31. status--;
  32. if (status == 0) {
  33. 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");
  34.  
  35. if (selection == 80) {
  36. cm.sendSimple (" This is the Hat Stats Item. #e#d" +
  37. "#k\r\n\r\n#L0##r#v1002082#Yellow Bandana. 69tats Each & 10WA\r\n\#k5Pieces of Cheese and 400 Maple Leafs " +
  38. "#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" +
  39. "#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" +
  40. "#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" +
  41. "#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" +
  42. "#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" +
  43. "#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");
  44. } else if (selection == 81) {
  45. cm.sendSimple ("This is the Shoe Stats Item. #e#d" +
  46. "#k\r\n\r\n#L7##b#v1072012#Red Whitebottom Boots. 80tats Each & 15WA\r\n#k7Pieces of Cheese and 450 Maple Leafs" +
  47. "#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." +
  48. "#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." +
  49. "#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." );
  50. } else if (selection == 82) {
  51. 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.");
  52. } else if (selection == 83) {
  53. cm.sendSimple ("This is the Cape Stats Item. #e#d" +
  54. "#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");
  55. } else if (selection == 84) {
  56. cm.sendSimple ("This is the Ring Stats Item #e#d" +
  57. "#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. ");
  58. } else if (selection == 85) {
  59. cm.sendSimple("This is Earrings Stats Item #e#d" +
  60. "#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. ");
  61. }
  62.  
  63. } 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])) {
  64. if (cm.canHold(1112000)) {
  65. cm.gainItem(req1[selection], -amt1[selection]);
  66. cm.gainItem(req2[selection], -amt2[selection]);
  67. cm.gainItem(req3[selection], -amt3[selection]);
  68. cm.gainItem(req4[selection], -amt4[selection]);
  69. cm.gainItem(req5[selection], -amt5[selection]);
  70. cm.gainItem(req6[selection], -amt6[selection]);
  71. cm.gainItem(itemid[selection], 1);
  72. Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "str", statamount[selection]);
  73. Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "dex", statamount[selection]);
  74. Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "int", statamount[selection]);
  75. Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "luk", statamount[selection]);
  76. Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "watk", watk[selection]);
  77. Packages.server.MapleInventoryManipulator.editEquipById(cm.getPlayer(), 1, itemid[selection], "matk", matk[selection]);
  78. cm.reloadChar();
  79. cm.sendOk("Here is your #i"+itemid[selection]+"#. Enjoy!!! :)");
  80. cm.dispose();
  81. }
  82. else {
  83. cm.sendNext("Oh wait.... I don't have enough space in my inventory to get a #i"+itemid[selection]+"#.", 3);
  84. cm.dispose();
  85. }
  86. }
  87. else if (status == 2) {
  88. cm.sendNext("Oh wait.... I didn't meet the requirements to get a #i"+itemid[selection]+"#.", 3);
  89. cm.dispose();
  90. }
  91. else {
  92. cm.sendOk("Error o_O.... Please try again.");
  93. cm.dispose();
  94. }
  95.  
  96.  
  97. }}
  98.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement