Well this is my first release and I thought I'd share it with you guys . Its not done yet but ill be updating it frequently.
If you find any bugs or anything wrong post here and ill fix it up.PHP Code://Made by Anujan of HeartlessMS and Ragezone Forums.
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.getDonationPoints() <= 0) {
cm.sendOk("You don't have any #g#eDonation Points#k#n, please buy some from #b#eAnujan#k#n or #e#rJen#k#n before you try to trade them in.");
cm.dispose();
} else {
cm.sendSimple("Hello, #b#h #.#k Would you like to trade in your Donation Points for some awesome items. Some of these items include: #v2340000# #v1122000# #v1002140#. \r\n What would you like to do?\r\n#L1# Trade 1 Donation Point for 5 #v2340000##l\r\n #L2# Trade 2 Donation Points for 12 #v2340000##l\r\n#L3# Trade 5 Donator Points for 1 #v1002357##l\r\n#L4# Trade 5 Donation Points for 1 #v2014200##l\r\n#L5#Trade 25 Donation Points for 1 #v1002140##l\r\n#L6# Ill come back later with more points for better prizes#l");
}
} else if (status == 1) {
if (selection == 1) {
if (cm.getDonationPoints() >= 1) {
cm.gainDonationPoints(-1);
cm.gainItem(2340000, 5);
cm.dispose();
} else {
cm.sendOk("You don't have any Donation Points. Please come back when you have some to cash in.");
cm.dispose();
}
} else if (selection == 2) {
if (cm.getDonationPoints() >= 2) {
cm.gainDonationPoints(-2);
cm.gainItem(2340000, 12);
cm.dispose();
} else {
cm.sendOk("You don't have any Donation Points. Please come back when you have some to cash in.");
cm.dispose();
}
} else if (selection == 3) {
if (cm.getDonationPoints() >= 5) {
cm.gainDonationPoints(-5);
cm.gainItem(1122000, 1);
cm.dispose();
} else {
cm.sendOk("You don't have any Donation Points. Please come back when you have some to cash in.");
cm.dispose();
}
} else if (selection == 4) {
if (cm.getDonationPoints() >= 5) {
cm.gainDonationPoints(-5);
cm.gainItem(2041200, 1);
cm.dispose();
} else {
cm.sendOk("You don't have any Donation Points. Please come back when you have some to cash in.");
cm.dispose();
}
}else if (selection == 5) {
if (cm.getDonationPoints() >= 25) {
cm.gainDonationPoints(-25);
cm.gainItem(1002140, 1);
cm.dispose();
} else {
cm.sendOk("You don't have any Donation Points. Please come back when you have some to cash in.");
cm.dispose();
}
}else {
cm.sendOk("Ok, just talk to me when you want to trade! Ill add more items to my collection when I see Lahos again.");
cm.dispose();
}
}
}
}
Credits to MikeTheMak and Kipee



Reply With Quote


