- Joined
- Apr 13, 2008
- Messages
- 365
- Reaction score
- 12
Fixed some errors. What a waste of my life. 10 seconds.
And
PHP:
var status = 0;
var mapid = PUTMAPIDHERE;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
}
else {
if (status >= 2 && mode == 0) {
if(cm.getChar().isDonator() == true) { //checks for donator
cm.sendYesNo("Would you like to go to the donator map?");
cm.warp(mapid,0);
cm.dispose();
}else if (status == 1) {
cm.sendOk("Alright then, happy Mapling!");
cm.dispose();
}
}
}
PHP:
var status = 0;
var mapid = PUTHENESYSMAPIDHERE;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
}
else {
if (status >= 2 && mode == 0) {
if(cm.getChar().isDonator() == true) { //checks for donator
cm.sendSimple("I am the donator NPC for ThisMS. Please choose what you would like to do. #L0#Can you summon some super EXP snails for me?#l#\r\n#L1#Warp me to Henesys, please.");
cm.spawnMonster(100**** 1, 1, 1, 2000000, 0, 0, 10, 655, -146);
cm.dispose();
}
}else{
if (status = 1) {
cm.sendOK("Alrighty, come back later.");
cm.warp(mapid,0);
cm.dispose();
}
}
}


