// Made by Sickness
// Donor Island Warper (For Duffel)
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (cm.getChar().gmLevel() > 1) { // Level 1 GM = Donor
cm.sendOk("Hello #h # \r\nAs a reward for donating, I'll warp you to #bDonor Island#k Where dreams await for you.");
} else {
cm.sendOk("You are not a donater. Please donate to use me");
cm.dispose();
}
} else if (status == 1) {
cm.warp(insert donor map here, 0);
cm.dispose();
}
}
}