Guest User

Untitled

a guest
May 16th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. var status;
  3.  
  4. function start() {
  5. status = -1;
  6. action( 1, 0, 0);
  7. }
  8.  
  9. function action (m, t, s) {
  10. cm.dispose();
  11. if (mode == 1) {
  12.      status++;
  13.  }else{
  14.        status--;
  15. }
  16. if (status == 0) {
  17. cm.sendSimple("Hi #b#h ##k, I exchange vote points for items. You currently have #r" +cm.getVotePoints() + "#k Vote Points, If you would like you get more vote points please vote on our site."
  18. + "\r\n\r\n#fUI/UIWindow.img/QuestIcon/3/0#\r\n"
  19. + "\r\n#L0#Item 1"
  20. + "\r\n#L1#Item 2"
  21. + "\r\n#L2#Item 3"); // add more if you'd like L = line next would be #L3# n so forth
  22. } else if (status == 1) {
  23. if (s == 0) {
  24. if (cm.getVotePoints()>=1) { //change the 1 to how many vote points you want for item 1
  25. cm.gain(item1, 1);
  26. cm.gainVotePoints(-1);
  27. cm.sendOk("Enjoy your #vItemCodeHere#");
  28. cm.dispose();
  29. }else{
  30. cm.sendOk("Sorry but you don't have enough Vote Points");
  31. cm.dispose();
  32. }
  33. } else if (s == 1) {
  34. if (cm.getVotePoints()>=1){ //change the 1 to how many vote points you want for item 1
  35. cm.gain(item1, 1);
  36. cm.gainVotePoints(-1);
  37. cm.sendOk("Enjoy your #vItemCodeHere#");
  38. cm.dispose();
  39. }else{
  40. cm.sendOk("Sorry but you don't have enough Vote Points");
  41. cm.dispose();
  42. }
  43. } else if (s == 2) {
  44. if (cm.getVotePoints()>=1){ //change the 1 to how many vote points you want for item 1
  45. cm.gain(item1, 1);// the ,1 means how many of that item they get
  46. cm.gainVotePoints(-1); //change to how many vote points they lose
  47. cm.sendOk("Enjoy your #vItemCodeHere#");
  48. cm.dispose();
  49. }else{
  50. cm.sendOk("Sorry but you don't have enough Vote Points");
  51. cm.dispose();
  52. }
  53. }
  54. }
  55. }
Add Comment
Please, Sign In to add comment