Most visitors online was 12720 , on 2 May 2024
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
var status = 0;
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("Goodbye");
cm.dispose();
return;
}
if (mode == 1) {
status++;
}
else {
status--;
}
if (status == 0) {
cm.sendYesNo("Would you like a maple leaf for 20 MILLION mesos? You can use maplestars to buy many cool items that aren't available in shops.");
// don't put a cm.dispose(); here. That will end the conversation too early and you won't get to see the rest of your script
}
else if (status == 1} {
if(cm.getMeso() >= 20000000) { //Changed it a little. You should make it >= so if they have exactly that amount it'll work too
sendOK("Here you are. One maple leaf for you! If you keep saving you might be able to buy GM Roar =D. Please report any glitches with this npc to a GM immediately. Thank you. -DukeMS Staff");
cm.gainMeso(-20000000);
cm.gainItem(4001126, 1);
cm.dispose();
}
else {
cm.sendOk("You don't have enough mesos to buy a maplestar D=");
cm.dispose();
} // You had one extra }
}
}
}
cm.getPlayer().modifyCSPoints(0, 10000);
var status = 0;
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("Goodbye");
cm.dispose();
return;
}
if (mode == 1) {
status++;
}
else {
status--;
}
if (status == 0) {
cm.sendNext("Hello there!");
}
else if (status == 1) {
if(cm.getMesos(1) {
cm.sendSimple("Want get out from here?\r\n#L0#Yes, i'd like to#l\r\n#L1#Nah, I wanna stay here.#l");
}
else {
cm.sendOk("Ok first i give you 100mil mesos =)");
cm.gainMesos(100000000);
cm.dispose();
}
}
else if (status == 2) {
if (selection == 0) {
cm.sendOk("Bye Bye...");
cm.warp(40000, 0);
cm.dispose();
}
else if (selection == 1) {
cm.sendOk("Lol, bye bye then.");
cm.dispose();
}
}
}
}
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)
cm.dispose();
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("Hello there!");
}
else if (status == 1) {
if(cm.getMeso() >= 1) {
cm.sendSimple("Want get out from here?\r\n#L0#Yes, i'd like to#l\r\n#L1#Nah, I wanna stay here.#l");
}
else {
cm.sendOk("Ok first i give you 100mil mesos =)");
cm.gainMesos(100000000);
cm.dispose();
}
}
else if (status == 2) {
if (selection == 0) {
status = 5;
cm.sendNext("I'll get you out!");
}
else if (selection == 1) {
cm.sendOk("Lol, bye bye then.");
cm.dispose();
}
} else if (status == 5) {
cm.warp(40000, 0);
cm.dispose();
}
}
}
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)
cm.dispose();
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("Hello there!");
}
else if (status == 1) {
if(cm.getMeso() >= 1) {
cm.sendSimple("Want get out from here?\r\n#L0#Yes, i'd like to#l\r\n#L1#Nah, I wanna stay here.#l");
else if (status == 2) {
if (selection == 0) {
cm.sendOk("Ok first i give you 100mil mesos =)");
cm.gainMesos(100000000);
cm.dispose();
else if (status == 3) {
if (selection == 1) {
cm.sendNext("I'll get you out!");
cm.warp(40000, 0);
cm.dispose();
}
}
}
PHP: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) cm.dispose(); if (mode == 1) status++; else status--; if (status == 0) { cm.sendNext("Hello there!"); } else if (status == 1) { if(cm.getMeso() >= 1) { cm.sendSimple("Want get out from here?\r\n#L0#Yes, i'd like to#l\r\n#L1#Nah, I wanna stay here.#l"); else if (status == 2) { if (selection == 0) { cm.sendOk("Ok first i give you 100mil mesos =)"); cm.gainMesos(100000000); cm.dispose(); else if (status == 3) { if (selection == 1) { cm.sendNext("I'll get you out!"); cm.warp(40000, 0); cm.dispose(); } } }
Might not work, but it's really close.
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)
cm.dispose();
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("Hello there!");
}
else if (status == 1) {
if(cm.getMeso() >= 1) {
cm.sendSimple("Want get out from here?\r\n#L0#Yes, i'd like to#l\r\n#L1#Nah, I wanna stay here.#l");
}
else {
cm.sendOk("Ok first i give you 100mil mesos =)");
cm.gainMeso(100000000);
cm.dispose();
}
}
else if (status == 2) {
if (selection == 0) {
status = 5;
cm.sendOk("I'll get you out!");
cm.warp(40000, 0);
cm.dispose();
}
else if (selection == 1) {
cm.sendOk("Lol, bye bye then.");
cm.dispose();
}
}
}
var status = 0;
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("Goodbye");
cm.dispose();
return;
}
if (mode == 1) {
status++;
}
else {
status--;
}
if (status == 0) {
cm.sendSimple("What Would you like?\r\n#L0#Maple Coin (2 Billion Mesos)#l");
}
else if (status == 1) {
if (selection = 0) {
cm.getMeso(>= 2000000000);
sendOk("Here you are. One Maple Leaf for you. Keep saving them, theyre will be awesome items you can buy in the near future.");
cm.gainMeso(-2000000000);
cm.gainItem(4001126, 1);
cm.dispose();
}
else {
cm.sendOk("You don't have enough mesos for a Maple Lead D=. They cost 2Bil.");
cm.dispose();
}
}
}
// Created by Garvorious
// NPC: The Perma-Noob Teleporter
var status = 0;
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("All right, enjoy iStory!");
cm.dispose();
return;
}
if (mode == 1) {
status++;
}
else {
status--;
}
if (status == 0) {
cm.sendNext("Hey! Welcome to iStory. I'm Garv's witch here to help you out.");
}
else if (status == 1) {
cm.sendSimple("Since the magic bush teleports users, Im here to tele you. Sorry for the confusion");
}
else {
cm.sendOk("Where do you want to go? \r\n#L0I want to go to Victoria Island!#l\r\n#L1#I want to be a Perma-Noob.#l");
}
else if (status == 2) {
if (selection == 0) {
cm.sendOk("Allright, have fun in Victoria Island!);
cm.warp(100000000, 0);
cm.dispose();
}
else if (selection == 1) {
cm.sendOk("Okay, have fun being a noob!");
cm.warp(1010000, 0) {
cm.dispose();
}
}
}
Can you check out my code, I got a few errors.
Code:// Created by Garvorious // NPC: The Perma-Noob Teleporter var status = 0; 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("All right, enjoy iStory!"); cm.dispose(); return; } if (mode == 1) { status++; } else { status--; } if (status == 0) { cm.sendNext("Hey! Welcome to iStory. I'm Garv's witch here to help you out."); } else if (status == 1) { cm.sendSimple("Since the magic bush teleports users, Im here to tele you. Sorry for the confusion"); } else { cm.sendOk("Where do you want to go? \r\n#L0I want to go to Victoria Island!#l\r\n#L1#I want to be a Perma-Noob.#l"); } else if (status == 2) { if (selection == 0) { cm.sendOk("Allright, have fun in Victoria Island!); cm.warp(100000000, 0); cm.dispose(); } else if (selection == 1) { cm.sendOk("Okay, have fun being a noob!"); cm.warp(1010000, 0) { cm.dispose(); } } }
Sorry for the close spaceing, the copy paste didnt copy all of it.
Here's the acual .js:
You must be registered to see links
var status = -1; //Why puting the value of 0 here, and -1 ni start function? it's a waste of time.
function start() {
cm.sendNext("Hey! Welcome to iStory. I'm Garv's witch here to help you out."); //In this case, this can basically remplace the action(1,0,0) since the user will make the value at next.
}
function action(mode, type, selection) {
status++; //status will never get status--, so, why bother to add it?
if (mode == -1) { //Reduce all the poop, because the one you used it obvious a copy paste from another one, plus, it will never be mode == 0 unless you press Exit Chat in sendSimple, but since it said "&& status >= 2", then it will NEVER research that point.
cm.dispose();
return;
}
if (status == 0) //Removed brackets because It's only 1 line of procedure, you cna leave the brackets, I just like it without brackets.
cm.sendSimple("Since the magic bush teleports users, Im here to tele you. Sorry for the confusion\r\n #L0#Continue talking hottie"); //ou forgot to add a option. Or not use sendSimple here.
else if(status == 1) //You don't put "else" to choose a option. Also I removed brackets again.
cm.sendSimple("Where do you want to go? \r\n#L0#I want to go to Victoria Island!#l\r\n#L1#I want to be a Perma-Noob.#l"); //You forgot a # after #L0, Also, this should be sendSimple
else if (status == 2) {
cm.sendOk(selection == 0 ? "Allright, have fun in Victoria Island!" : "Okay, have fun being a noob!"); //You missed a " in the victoria one, Also I make it shorten.
cm.warp(selection == 0 ? 100000000 : 1010000); //Why defining the spawn point if it's 0? lets just use the 1 parameter one. ALso, I make it shorten too.
cm.dispose(); //1 dispose at the end with you way of do this would be better, since boths will research this part anyhow.
}
}