Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var status;
- function start() {
- status = -1;
- action( 1, 0, 0);
- }
- function action (m, t, s) {
- cm.dispose();
- if (mode == 1) {
- status++;
- }else{
- status--;
- }
- if (status == 0) {
- 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."
- + "\r\n\r\n#fUI/UIWindow.img/QuestIcon/3/0#\r\n"
- + "\r\n#L0#Item 1"
- + "\r\n#L1#Item 2"
- + "\r\n#L2#Item 3"); // add more if you'd like L = line next would be #L3# n so forth
- } else if (status == 1) {
- if (s == 0) {
- if (cm.getVotePoints()>=1) { //change the 1 to how many vote points you want for item 1
- cm.gain(item1, 1);
- cm.gainVotePoints(-1);
- cm.sendOk("Enjoy your #vItemCodeHere#");
- cm.dispose();
- }else{
- cm.sendOk("Sorry but you don't have enough Vote Points");
- cm.dispose();
- }
- } else if (s == 1) {
- if (cm.getVotePoints()>=1){ //change the 1 to how many vote points you want for item 1
- cm.gain(item1, 1);
- cm.gainVotePoints(-1);
- cm.sendOk("Enjoy your #vItemCodeHere#");
- cm.dispose();
- }else{
- cm.sendOk("Sorry but you don't have enough Vote Points");
- cm.dispose();
- }
- } else if (s == 2) {
- if (cm.getVotePoints()>=1){ //change the 1 to how many vote points you want for item 1
- cm.gain(item1, 1);// the ,1 means how many of that item they get
- cm.gainVotePoints(-1); //change to how many vote points they lose
- cm.sendOk("Enjoy your #vItemCodeHere#");
- cm.dispose();
- }else{
- cm.sendOk("Sorry but you don't have enough Vote Points");
- cm.dispose();
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment