/* Made by Joey from NobodyMS
ThatEchoKid On RageZone.
And Made by Faithless from TrueStory */
var wui = 0;
function start() {
cm.sendSimple ("Hello, I'm the Timeless trader. If you have any Trophies you could exchange them here for Timeless items.\r\n#L0# #r#r10#k trophies for a #rTimeless One hand Sword#k.#k #l\r\n#L1##r10#k trophies for #rTimeless 2 Hand Sword.#k #l\r\n#L2##r10#k trophies for a #rTimeless one hand mace#k. #l\r\n#L3##r10#k Tropies for a #rTimeless 2 Hand Mace#k #l\r\n#L4##r10#k trophies for a #rTimeless One hand Axe#r#k #l\r\n#L5##r10#k trophies for a #rTimeless Two hand Axe#r#k");
}
function action(mode, type, selection) {
cm.dispose();
if (selection == 0) {
if (cm.haveItem(4000038, 10)) {
cm.gainItem(1302081,1);
cm.gainItem(4000038, -10);
cm.sendOk("May Time Never End!!!!!!");
cm.dispose();
} else {
cm.sendOk(" Sorry. You do not have enough trophies. ");
cm.dispose();
}
} else if (selection == 1) {
if (cm.haveItem(4000038, 10)) {
cm.gainItem(1402046,1);
cm.gainItem(4000038, -10);
cm.sendOk("May Time Never End!!!!!!");
cm.dispose();
} else {
cm.sendOk(" Sorry. You do not have enough trophies. ");
cm.dispose();
}
} else if (selection == 2) {
if (cm.haveItem(4000038, 10)) {
cm.gainItem(1322060,1);
cm.gainItem(4000038, -10);
cm.sendOk("May Time Never End!!!!!!");
cm.dispose();
} else {
cm.sendOk(" Sorry. You do not have enough trophies. ");
cm.dispose();
}
} else if (selection == 3) {
if (cm.haveItem(4000038, 10)) {
cm.gainItem(1422037,1);
cm.gainItem(4000038, -10);
cm.sendOk("May Time Never End!!!!!!");
cm.dispose();
} else {
cm.sendOk(" Sorry. You do not have enough trophies. ");
cm.dispose();
}
} else if (selection == 4) {
if (cm.haveItem(4000038, 10)) {
cm.gainItem(1312037,1);
cm.gainItem(4000038, -10);
cm.sendOk("May Time Never End!!!!!!");
cm.dispose();
} else {
cm.sendOk(" Sorry. You do not have enough trophies. ");
cm.dispose();
}
} else if (selection == 5) {
if (cm.haveItem(4000038, 10)) {
cm.gainItem(1412033,1);
cm.gainItem(4000038, -10);
cm.sendOk("May Time Never End!!!!!!");
cm.dispose();
} else {
cm.sendOk(" Sorry. You do not have enough trophies. ");
cm.dispose();
}
cm.dispose();
}
}