RawrMS unqiue Server
Would you like to react to this message? Create an account in a few clicks or log in to continue.

BoiHeart (Reward NPC)

Go down

BoiHeart (Reward NPC) Empty BoiHeart (Reward NPC)

Post by BoiHeart Tue May 11, 2010 3:27 pm

/*
Trophy Trader
*/
var wui = 0;
var item = 4030002;//item in question

function start() {
cm.sendSimple (
"Welcome #h #, I am RawrMS's #i4030002# Tretris Rewarder. "+
"Each Tretris Piece you bring and exchange for crazy prizes, you'll gain 5 Guild Points as well.\r\n " +
"If you have any Tretris Pieces you could exchange them here for awesome prizes. "+
"Each prize is worth an amount of Tretris Pieces.\r\n"+
"#L0#A Worth 1000 #i1002140# Wizet Invincible Hat#l\r\n"+
"#L1#A Worth 500 #i1042003# Wizet Plain Suit #l\r\n"+
"#L2#A Worth 500 #i1062007# Wizet Plain Suit Pants#l\r\n"+
"#L3#A Worth 1000 #i1322013# Wizet Secret Agent Suitcase#l"
);
}

function action(mode, type, selection) {
if (selection == 0) {
if (cm.haveItem(item, 1)) {
cm.gainItem(item, -1);
cm.gainItem(1002140, 1);
cm.getGuild().gainGP(5);
cm.dispose();
} else {
cm.sendOk("Sorry. You do not have enough Tretris Pieces.");
cm.dispose();
}
} else if (selection == 1) {
if (cm.haveItem(item, 1)) {
cm.gainItem(item, -1);
cm.gainItem(1042003,1);
cm.getGuild().gainGP(5);
cm.dispose();
} else {
cm.sendOk("Sorry. You do not have enough Tretris Pieces.");
cm.dispose();
}
} else if (selection == 2) {
if (cm.haveItem(item, 1)) {
cm.gainItem(item, -1);
cm.gainItem(1062007,1);
cm.getGuild().gainGP(5);
cm.dispose();
} else {
cm.sendOk("Sorry. You do not have enough Tretris Pieces.");
cm.dispose();
}
} else if (selection == 3) {
if (cm.haveItem(item, 1)) {
cm.gainItem(item, -1);
cm.gainItem(1322013,1);
cm.getGuild().gainGP(5);
cm.dispose();
} else {
cm.sendOk("Sorry. You do not have enough Tretris Pieces.");
cm.dispose();
}
} else {
cm.sendOk("Come back here later! Have fun Rawring and everyone!");
cm.dispose();
}
}

BoiHeart
Special Players
Special Players

Posts : 4
Rawr Points : 51020
Rawr Reputation : 0
Join date : 2010-05-11

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum