PHP Code:
var status = 0; // dont touch
var map = 180000000;// map it warps u to after ur done
//created by Astro only edit some stuff the rest is done for u
var item = 3010002; // change this to what ever item u want
var getitem = 3010002; // the item u get when u beat the quest
var amount = 1; // the amount of the reward u get
var amount1 = 20; // the amount u need to beat the quest
//var exp = 4000; this isnt working
//var exprate = 1500; same w/ this
var nx = 3000; //amount of nx u get
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (status >= 2 && mode == 0) {
cm.sendOk ("TeddyBearMS RAWR~");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0 ) {
cm.sendNext ("hello, " + cm.getChar().getName() + " can u get me "+amount1+" #i"+item+"#! "); // edit everything thats grey not black
}
else if (status == 1) {
if (cm.haveItem(item,amount1)) {
cm.gainItem(item,-20);
cm.gainItem(item, 10);
cm.warp(map);
cm.showEffect("quest/party/clear"); // makes the pig clear sign apear
cm.playSound("Party1/Clear"); // makes the music for the big clear sign play
cm.sendOk ("great heres "+ nx +" nx");// if u dont want it to give any nx delete this line
cm.modifyNx(nx);// if u dont want it to give any nx delete this line
cm.dispose();
}
if (!cm.haveItem(item,amount1)) {
cm.sendOk ("You have not collected "+amount1+"#i"+item+"#!");// edit everything thats grey not black
cm.dispose();
}
}
else if (status == 2) {
cm.showEffect("quest/party/clear");
cm.playSound("Party1/Clear");
cm.dispose();
}
}
}