void NPCsScripts::npc_9000020(NPC* npc){
int state = npc->getState();
if(npc->getPlayerMap() == 104000000){
if(state == 0){
npc->addText("If you’re tired of the monotonous daily life: How about getting out for a change? There’s nothing quite like soaking up a new culture, or learning something new by the minute! It’s time for you to get out and travel.");
npc->sendNext();
}
else if(state == 1){
npc->addText("We, at the Maple travel Agency recommend you going on a #bWorld Tour#k! Are you worried about the travel expense? You shouldn’t be! We, the #bMaple Travel Agency#k, have carefully come up with a limited time plan to let you travel for free!");
npc->sendBackNext();
}
else if(state == 2){
npc->addText("We currently offer this place for your traveling pleasure:\r\n#bMushroom Shrine Of Japan#k.\r\nI’ll be there serving you as a travel guide. Rest assured, the number of destinations will increase over time. Now, would you like to head over to the Mushroom Shrine?\r\n#L0#Yes, take me to the Mushroom Shine (Japan)#l");
npc->sendSimple();
}
else if(state == 3){
type = npc->getSelected();
npc->setVariable("type", type);
if(type == 0){
npc->addText("Would you like to travel to the #bMushroom Shrine of Japan#k?\r\nIf you desire to feel the essence of Japan, there’s nothing like visiting the Shrine, a Japanese cultural melting pot. Mushroom Shrine is a mythical place that serves the incomparable Mushroom God from ancient times.");
npc->sendNext();
}
}
else if(state == 4){
npc->addText("I strongly recommend trying Takoyaki, Yakisoba, and the other delicious foods that Japan has to offer. Now let’s head over to the #bMushroom Shrine#k!\r\nEnjoy your stay!");
npc->sendBackOK();
}
else if(state == 5){
npc->teleport(800000000);
npc->giveItem(4000217, 1);
}
else {
npc->end();
}
}
if(npc->getPlayerMap() == 101000000){
if(state == 0){
npc->addText("If you’re tired of the monotonous daily life: How about getting out for a change? There’s nothing quite like soaking up a new culture, or learning something new by the minute! It’s time for you to get out and travel.");
npc->sendNext();
}
else if(state == 1){
npc->addText("We, at the Maple travel Agency recommend you going on a #bWorld Tour#k! Are you worried about the travel expense? You shouldn’t be! We, the #bMaple Travel Agency#k, have carefully come up with a limited time plan to let you travel for free!");
npc->sendBackNext();
}
else if(state == 2){
npc->addText("We currently offer this place for your traveling pleasure:\r\n#bMushroom Shrine Of Japan#k.\r\nI’ll be there serving you as a travel guide. Rest assured, the number of destinations will increase over time. Now, would you like to head over to the Mushroom Shrine?\r\n#L0#Yes, take me to the Mushroom Shine (Japan)#l");
npc->sendSimple();
}
else if(state == 3){
type = npc->getSelected();
npc->setVariable("type", type);
if(type == 0){
npc->addText("Would you like to travel to the #bMushroom Shrine of Japan#k?\r\nIf you desire to feel the essence of Japan, there’s nothing like visiting the Shrine, a Japanese cultural melting pot. Mushroom Shrine is a mythical place that serves the incomparable Mushroom God from ancient times.");
npc->sendNext();
}
}
else if(state == 4){
npc->addText("I strongly recommend trying Takoyaki, Yakisoba, and the other delicious foods that Japan has to offer. Now let’s head over to the #bMushroom Shrine#k!\r\nEnjoy your stay!");
npc->sendBackOK();
}
else if(state == 5){
npc->teleport(800000000);
npc->giveItem(4170001, 1);
}
else {
npc->end();
}
}
if(npc->getPlayerMap() == 100000000){
if(state == 0){
npc->addText("If you’re tired of the monotonous daily life: How about getting out for a change? There’s nothing quite like soaking up a new culture, or learning something new by the minute! It’s time for you to get out and travel.");
npc->sendNext();
}
else if(state == 1){
npc->addText("We, at the Maple travel Agency recommend you going on a #bWorld Tour#k! Are you worried about the travel expense? You shouldn’t be! We, the #bMaple Travel Agency#k, have carefully come up with a limited time plan to let you travel for free!");
npc->sendBackNext();
}
else if(state == 2){
npc->addText("We currently offer this place for your traveling pleasure:\r\n#bMushroom Shrine Of Japan#k.\r\nI’ll be there serving you as a travel guide. Rest assured, the number of destinations will increase over time. Now, would you like to head over to the Mushroom Shrine?\r\n#L0#Yes, take me to the Mushroom Shine (Japan)#l");
npc->sendSimple();
}
else if(state == 3){
type = npc->getSelected();
npc->setVariable("type", type);
if(type == 0){
npc->addText("Would you like to travel to the #bMushroom Shrine of Japan#k?\r\nIf you desire to feel the essence of Japan, there’s nothing like visiting the Shrine, a Japanese cultural melting pot. Mushroom Shrine is a mythical place that serves the incomparable Mushroom God from ancient times.");
npc->sendNext();
}
}
else if(state == 4){
npc->addText("I strongly recommend trying Takoyaki, Yakisoba, and the other delicious foods that Japan has to offer. Now let’s head over to the #bMushroom Shrine#k!\r\nEnjoy your stay!");
npc->sendBackOK();
}
else if(state == 5){
npc->teleport(800000000);
npc->giveItem(4170000, 1);
}
else {
npc->end();
}
}
if(npc->getPlayerMap() == 103000000){
if(state == 0){
npc->addText("If you’re tired of the monotonous daily life: How about getting out for a change? There’s nothing quite like soaking up a new culture, or learning something new by the minute! It’s time for you to get out and travel.");
npc->sendNext();
}
else if(state == 1){
npc->addText("We, at the Maple travel Agency recommend you going on a #bWorld Tour#k! Are you worried about the travel expense? You shouldn’t be! We, the #bMaple Travel Agency#k, have carefully come up with a limited time plan to let you travel for free!");
npc->sendBackNext();
}
else if(state == 2){
npc->addText("We currently offer this place for your traveling pleasure:\r\n#bMushroom Shrine Of Japan#k.\r\nI’ll be there serving you as a travel guide. Rest assured, the number of destinations will increase over time. Now, would you like to head over to the Mushroom Shrine?\r\n#L0#Yes, take me to the Mushroom Shine (Japan)#l");
npc->sendSimple();
}
else if(state == 3){
type = npc->getSelected();
npc->setVariable("type", type);
if(type == 0){
npc->addText("Would you like to travel to the #bMushroom Shrine of Japan#k?\r\nIf you desire to feel the essence of Japan, there’s nothing like visiting the Shrine, a Japanese cultural melting pot. Mushroom Shrine is a mythical place that serves the incomparable Mushroom God from ancient times.");
npc->sendNext();
}
}
else if(state == 4){
npc->addText("I strongly recommend trying Takoyaki, Yakisoba, and the other delicious foods that Japan has to offer. Now let’s head over to the #bMushroom Shrine#k!\r\nEnjoy your stay!");
npc->sendBackOK();
}
else if(state == 5){
npc->teleport(800000000);
npc->giveItem(4170002, 1);
}
else {
npc->end();
}
}
if(npc->getPlayerMap() == 102000000){
if(state == 0){
npc->addText("If you’re tired of the monotonous daily life: How about getting out for a change? There’s nothing quite like soaking up a new culture, or learning something new by the minute! It’s time for you to get out and travel.");
npc->sendNext();
}
else if(state == 1){
npc->addText("We, at the Maple travel Agency recommend you going on a #bWorld Tour#k! Are you worried about the travel expense? You shouldn’t be! We, the #bMaple Travel Agency#k, have carefully come up with a limited time plan to let you travel for free!");
npc->sendBackNext();
}
else if(state == 2){
npc->addText("We currently offer this place for your traveling pleasure:\r\n#bMushroom Shrine Of Japan#k.\r\nI’ll be there serving you as a travel guide. Rest assured, the number of destinations will increase over time. Now, would you like to head over to the Mushroom Shrine?\r\n#L0#Yes, take me to the Mushroom Shine (Japan)#l");
npc->sendSimple();
}
else if(state == 3){
type = npc->getSelected();
npc->setVariable("type", type);
if(type == 0){
npc->addText("Would you like to travel to the #bMushroom Shrine of Japan#k?\r\nIf you desire to feel the essence of Japan, there’s nothing like visiting the Shrine, a Japanese cultural melting pot. Mushroom Shrine is a mythical place that serves the incomparable Mushroom God from ancient times.");
npc->sendNext();
}
}
else if(state == 4){
npc->addText("I strongly recommend trying Takoyaki, Yakisoba, and the other delicious foods that Japan has to offer. Now let’s head over to the #bMushroom Shrine#k!\r\nEnjoy your stay!");
npc->sendBackOK();
}
else if(state == 5){
npc->teleport(800000000);
npc->giveItem(4170003, 1);
}
else {
npc->end();
}
}
if(npc->getPlayerMap() == 220000000){
if(state == 0){
npc->addText("If you’re tired of the monotonous daily life: How about getting out for a change? There’s nothing quite like soaking up a new culture, or learning something new by the minute! It’s time for you to get out and travel.");
npc->sendNext();
}
else if(state == 1){
npc->addText("We, at the Maple travel Agency recommend you going on a #bWorld Tour#k! Are you worried about the travel expense? You shouldn’t be! We, the #bMaple Travel Agency#k, have carefully come up with a limited time plan to let you travel for free!");
npc->sendBackNext();
}
else if(state == 2){
npc->addText("We currently offer this place for your traveling pleasure:\r\n#bMushroom Shrine Of Japan#k.\r\nI’ll be there serving you as a travel guide. Rest assured, the number of destinations will increase over time. Now, would you like to head over to the Mushroom Shrine?\r\n#L0#Yes, take me to the Mushroom Shine (Japan)#l");
npc->sendSimple();
}
else if(state == 3){
type = npc->getSelected();
npc->setVariable("type", type);
if(type == 0){
npc->addText("Would you like to travel to the #bMushroom Shrine of Japan#k?\r\nIf you desire to feel the essence of Japan, there’s nothing like visiting the Shrine, a Japanese cultural melting pot. Mushroom Shrine is a mythical place that serves the incomparable Mushroom God from ancient times.");
npc->sendNext();
}
}
else if(state == 4){
npc->addText("I strongly recommend trying Takoyaki, Yakisoba, and the other delicious foods that Japan has to offer. Now let’s head over to the #bMushroom Shrine#k!\r\nEnjoy your stay!");
npc->sendBackOK();
}
else if(state == 5){
npc->teleport(800000000);
npc->giveItem(4170005, 1);
}
else {
npc->end();
}
}
if(npc->getPlayerMap() == 200000000){
if(state == 0){
npc->addText("If you’re tired of the monotonous daily life: How about getting out for a change? There’s nothing quite like soaking up a new culture, or learning something new by the minute! It’s time for you to get out and travel.");
npc->sendNext();
}
else if(state == 1){
npc->addText("We, at the Maple travel Agency recommend you going on a #bWorld Tour#k! Are you worried about the travel expense? You shouldn’t be! We, the #bMaple Travel Agency#k, have carefully come up with a limited time plan to let you travel for free!");
npc->sendBackNext();
}
else if(state == 2){
npc->addText("We currently offer this place for your traveling pleasure:\r\n#bMushroom Shrine Of Japan#k.\r\nI’ll be there serving you as a travel guide. Rest assured, the number of destinations will increase over time. Now, would you like to head over to the Mushroom Shrine?\r\n#L0#Yes, take me to the Mushroom Shine (Japan)#l");
npc->sendSimple();
}
else if(state == 3){
type = npc->getSelected();
npc->setVariable("type", type);
if(type == 0){
npc->addText("Would you like to travel to the #bMushroom Shrine of Japan#k?\r\nIf you desire to feel the essence of Japan, there’s nothing like visiting the Shrine, a Japanese cultural melting pot. Mushroom Shrine is a mythical place that serves the incomparable Mushroom God from ancient times.");
npc->sendNext();
}
}
else if(state == 4){
npc->addText("I strongly recommend trying Takoyaki, Yakisoba, and the other delicious foods that Japan has to offer. Now let’s head over to the #bMushroom Shrine#k!\r\nEnjoy your stay!");
npc->sendBackOK();
}
else if(state == 5){
npc->teleport(800000000);
npc->giveItem(4170006, 1);
}
else {
npc->end();
}
}
if(npc->getPlayerMap() == 680000000){
if(state == 0){
npc->addText("If you’re tired of the monotonous daily life: How about getting out for a change? There’s nothing quite like soaking up a new culture, or learning something new by the minute! It’s time for you to get out and travel.");
npc->sendNext();
}
else if(state == 1){
npc->addText("We, at the Maple travel Agency recommend you going on a #bWorld Tour#k! Are you worried about the travel expense? You shouldn’t be! We, the #bMaple Travel Agency#k, have carefully come up with a limited time plan to let you travel for free!");
npc->sendBackNext();
}
else if(state == 2){
npc->addText("We currently offer this place for your traveling pleasure:\r\n#bMushroom Shrine Of Japan#k.\r\nI’ll be there serving you as a travel guide. Rest assured, the number of destinations will increase over time. Now, would you like to head over to the Mushroom Shrine?\r\n#L0#Yes, take me to the Mushroom Shine (Japan)#l");
npc->sendSimple();
}
else if(state == 3){
type = npc->getSelected();
npc->setVariable("type", type);
if(type == 0){
npc->addText("Would you like to travel to the #bMushroom Shrine of Japan#k?\r\nIf you desire to feel the essence of Japan, there’s nothing like visiting the Shrine, a Japanese cultural melting pot. Mushroom Shrine is a mythical place that serves the incomparable Mushroom God from ancient times.");
npc->sendNext();
}
}
else if(state == 4){
npc->addText("I strongly recommend trying Takoyaki, Yakisoba, and the other delicious foods that Japan has to offer. Now let’s head over to the #bMushroom Shrine#k!\r\nEnjoy your stay!");
npc->sendBackOK();
}
else if(state == 5){
npc->teleport(800000000);
npc->giveItem(4170007, 1);
}
else {
npc->end();
}
}
if(npc->getPlayerMap() == 800000000){
if(state == 0){
npc->addText("Where would you like to return to?");
npc->addText("\r\n#L0#Lith Harbor - You need: 1 El Nath #t4170004#s.#l");
npc->addText("\r\n#L1#Ellinia - You need: 1 Ellinia #t4170001#s.#l");
npc->addText("\r\n#L2#Henesys - You need: 1 Henesys #t4170000#s.#l");
npc->addText("\r\n#L3#Kerning City - You need: 1 Kerning City #t4170002#s.#l");
npc->addText("\r\n#L4#Perion - You need: 1 Perion #t4170003#s.#l");
npc->addText("\r\n#L5#Ludibrium - You need: 1 Ludibrium #t4170005#s.#l");
npc->addText("\r\n#L6#Orbis - You need: 1 Orbis #t4170006#s.#l");
npc->addText("\r\n#L7#Amoria - You need: 1 Aquarium #t4170007#s.#l");
npc->sendSimple();
}
else if(state == 1){
type = npc->getSelected();
npc->setVariable("type", type);
if(type == 0){
ticket = 0;
npc->addText("Hope you enjoyed your stay! Goodbye!");
npc->sendOK();
}
if(type == 1){
ticket = 1;
npc->addText("Hope you enjoyed your stay! Goodbye!");
npc->sendOK();
}
if(type == 2){
ticket = 2;
npc->addText("Hope you enjoyed your stay! Goodbye!");
npc->sendOK();
}
if(type == 3){
ticket = 3;
npc->addText("Hope you enjoyed your stay! Goodbye!");
npc->sendOK();
}
if(type == 4){
ticket = 4;
npc->addText("Hope you enjoyed your stay! Goodbye!");
npc->sendOK();
}
if(type == 5){
ticket = 5;
npc->addText("Hope you enjoyed your stay! Goodbye!");
npc->sendOK();
}
if(type == 6){
ticket = 6;
npc->addText("Hope you enjoyed your stay! Goodbye!");
npc->sendOK();
}
if(type == 7){
ticket = 7;
npc->addText("Hope you enjoyed your stay! Goodbye!");
npc->sendOK();
}
}
else if(state == 2){
if(ticket == 0){
int number = npc->getItemAmount(4170004);
npc->end();
npc->takeItem(npc->getPlayer(), 4170004, -number);
npc->teleport(104000000);
}
if(ticket == 1){
int number = npc->getItemAmount(4170001);
npc->end();
npc->takeItem(npc->getPlayer(), 4170001, -number);
npc->teleport(101000000);
}
if(ticket == 2){
int number = npc->getItemAmount(4170000);
npc->end();
npc->takeItem(npc->getPlayer(), 4170000, -number);
npc->teleport(100000000);
}
if(ticket == 3){
int number = npc->getItemAmount(4170002);
npc->end();
npc->takeItem(npc->getPlayer(), 4170002, -number);
npc->teleport(103000000);
}
if(ticket == 4){
int number = npc->getItemAmount(4170003);
npc->end();
npc->takeItem(npc->getPlayer(), 4170003, -number);
npc->teleport(102000000);
}
if(ticket == 5){
int number = npc->getItemAmount(4170005);
npc->end();
npc->takeItem(npc->getPlayer(), 4170005, -number);
npc->teleport(220000000);
}
if(ticket == 6){
int number = npc->getItemAmount(4170006);
npc->end();
npc->takeItem(npc->getPlayer(), 4170006, -number);
npc->teleport(200000000);
}
if(ticket == 7){
int number = npc->getItemAmount(4170007);
npc->end();
npc->takeItem(npc->getPlayer(), 4170007, -number);
npc->teleport(680000000);
}
}
else {
npc->end();
}
}
}