My suggestion is that we use presents.
//Currency NPC
//By Sickness
//For Duffel(DZstory)
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {//ExitChat
cm.dispose();
}else if (mode == 0){//No
cm.sendOk("Ok, talk to me when your sure you want to spend your presents.");
cm.dispose();
}else{ //Regular Talk
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendYesNo("You have spent great time getting those pretty presents for me. Would you like to trade with me for my presents that i got this year that i don't really want." );
}else if (status == 1) {
if(cm.getitem(4000422) < 50){
cm.sendOk("Sorry, You have to 50 presents to get one of mine.");
cm.dispose();
}else{
cm.sendOk("Yay! You want to trade presents?!");
}
}else if (status == 2) {
cm.getitem(uh random item id that you want to give);
cm.getitem(4000422,-50);
cm.sendNext("Enjoy the present that you got.");
cm.dispose();
}
}
}
okay i finished it. this will only give one item though. if you want me to make it mutiple options tell me o.o