fork download
  1. var status = -1;
  2.  
  3. var exchangeItem = 4000437;
  4.  
  5. function action(mode, type, selection) {
  6.  
  7. if (mode == 1) {
  8.  
  9. status++;
  10.  
  11. } else {
  12.  
  13. cm.sendOk("87咩咩咩~~");
  14. cm.dispose();
  15. }
  16.  
  17. if (status == 0) {
  18.  
  19. cm.sendSimple("咩咩咩~~羋羋羋羋羋~~(聽不太懂,不過好像是…有需要的話,我可以免費幫你製作東西唷^___^)#1");
  20.  
  21. } else if (status == 1) {
  22. cm.sendYesNo("好啦還是講中文好了,給我 巫婆的青蛙實驗x600、粗糙的皮革x600、苗木x200、犁杖x200、綠色魔法粉x100#l 我就施
  23.  
  24. 展失傳的秘術做禮物給你唷");
  25.  
  26. } else if (status == 2) {
  27. if (!cm.canHold(1902008, 1)&& !cm.canHold(1912003, 1)) {
  28.  
  29. cm.sendOk("空出一些其他欄位吧,不然我不會幫你做的咩~!");
  30. } else if (!(cm.haveItem(4000041, 600) && cm.haveItem(4000440, 600) && cm.haveItem(4000195, 200) && cm.haveItem(4000193, 200)
  31.  
  32. && cm.haveItem(4007003, 100))) {
  33. cm.sendOk("你沒有收集好材料,走開咩咩!!!!");
  34. cm.dispose();
  35.  
  36. } else if (!(cm.haveItem(4000041, 600) && cm.haveItem(4000440, 600) && cm.haveItem(4000195, 200) && cm.haveItem
  37.  
  38. (4000193, 200) && cm.haveItem(4007003, 100)) {
  39.  
  40. cm.gainItem(1902008, 1, true);
  41. cm.gainItem(1912003, 1, true);
  42.  
  43. cm.gainItem(4000041, -600);
  44. cm.gainItem(4000440, -600);
  45. cm.gainItem(4000195, -200);
  46. cm.gainItem(4000193, -200);
  47. cm.gainItem(4007003, -100);
  48.  
  49. cm.sendOk("不用太感激我,咩咩咩咩咩!!!!");
  50.  
  51. }
  52.  
  53. cm.dispose();
  54.  
  55. }
  56.  
  57. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:22:22: warning: missing terminating " character
         cm.sendYesNo("好啦還是講中文好了,給我 巫婆的青蛙實驗x600、粗糙的皮革x600、苗木x200、犁杖x200、綠色魔法粉x100#l 我就施
                      ^
prog.cpp:22:9: error: missing terminating " character
         cm.sendYesNo("好啦還是講中文好了,給我 巫婆的青蛙實驗x600、粗糙的皮革x600、苗木x200、犁杖x200、綠色魔法粉x100#l 我就施
         ^
prog.cpp:24:1: error: stray '\345' in program
 展失傳的秘術做禮物給你唷");
 ^
prog.cpp:24:1: error: stray '\261' in program
prog.cpp:24:1: error: stray '\225' in program
prog.cpp:24:1: error: stray '\345' in program
prog.cpp:24:1: error: stray '\244' in program
prog.cpp:24:1: error: stray '\261' in program
prog.cpp:24:1: error: stray '\345' in program
prog.cpp:24:1: error: stray '\202' in program
prog.cpp:24:1: error: stray '\263' in program
prog.cpp:24:1: error: stray '\347' in program
prog.cpp:24:1: error: stray '\232' in program
prog.cpp:24:1: error: stray '\204' in program
prog.cpp:24:1: error: stray '\347' in program
prog.cpp:24:1: error: stray '\247' in program
prog.cpp:24:1: error: stray '\230' in program
prog.cpp:24:1: error: stray '\350' in program
prog.cpp:24:1: error: stray '\241' in program
prog.cpp:24:1: error: stray '\223' in program
prog.cpp:24:1: error: stray '\345' in program
prog.cpp:24:1: error: stray '\201' in program
prog.cpp:24:1: error: stray '\232' in program
prog.cpp:24:1: error: stray '\347' in program
prog.cpp:24:1: error: stray '\246' in program
prog.cpp:24:1: error: stray '\256' in program
prog.cpp:24:1: error: stray '\347' in program
prog.cpp:24:1: error: stray '\211' in program
prog.cpp:24:1: error: stray '\251' in program
prog.cpp:24:1: error: stray '\347' in program
prog.cpp:24:1: error: stray '\265' in program
prog.cpp:24:1: error: stray '\246' in program
prog.cpp:24:1: error: stray '\344' in program
prog.cpp:24:1: error: stray '\275' in program
prog.cpp:24:1: error: stray '\240' in program
prog.cpp:24:1: error: stray '\345' in program
prog.cpp:24:1: error: stray '\224' in program
prog.cpp:24:1: error: stray '\267' in program
prog.cpp:24:37: warning: missing terminating " character
 展失傳的秘術做禮物給你唷");
                                     ^
prog.cpp:24:1: error: missing terminating " character
 展失傳的秘術做禮物給你唷");
 ^
prog.cpp:1:1: error: 'var' does not name a type
 var status = -1;
 ^
prog.cpp:3:1: error: 'var' does not name a type
 var exchangeItem = 4000437;
 ^
prog.cpp:5:1: error: 'function' does not name a type
 function action(mode, type, selection) {
 ^
stdout
Standard output is empty