Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1.  
  2.  
  3. var status = 0;
  4. function start() {
  5. status = -1;
  6. action(1, 0, 0);
  7. }
  8.  
  9. function action(mode, type, selection) {
  10.  
  11. if (mode == -1) {
  12. cm.dispose();
  13. }
  14. else {
  15. if (status == 0 && mode == 0) {
  16. cm.dispose();
  17. return;
  18. }
  19. if (mode == 1) {
  20. status++;
  21. }
  22. else {
  23. status--;
  24. }
  25. if (status == 0) {cm.sendYesNo(Hi would you like to trade 2 ds eggs for a Ioc?" ) ;
  26.  
  27. if (cm.haveItem(4170012, 2 ) ) {
  28. cm.gainItem(4170012 , 1);
  29. cm.dispose () ;
  30. 4170012 Event Trophy
  31. } else {
  32. cm.sendOk ("You do not have enough
  33. Ds Egg . ") ;
  34. cm.dispose() ;
  35. }
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement