#include "NPCs.h"#include "Player.h"#include "NPCsScripts.h"#include "Inventory.h"int type;int ticket;// Lith Harbor - Philvoid NPCsScripts::npc_1002000(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("Hey, there. My name is Phil!\r\nI run the ticket booth here in #bLith Harbor#k. If you want to go to another town, then talk to me! I'll gladly take you to your destination!"); npc->sendNext(); } if(state == 1){ npc->addText("Do you wanna head over to some other town?\r\n#L0#Henesys#l\r\n#L1#Kerning City#l\r\n#L2#Perion#l\r\n#L3#Ellinia#l"); npc->sendSimple(); } if(state == 2){ type = npc->getSelected(); npc->setVariable("type", type); if(type == 0){ // Heneseys npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bHeneseys#k?"); npc->sendYesNo(); } else if(type == 1){ // Kerning npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bKerning City#k?"); npc->sendYesNo(); } else if(type == 2){ // Perion npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bPerion#k?"); npc->sendYesNo(); } else if(type == 3){ // Ellinia npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bEllinia#k?"); npc->sendYesNo(); } } if(state == 3 && type == 0){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(100000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 1){ if(npc->getSelected() == YES){ npc->teleport(103000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 2){ if(npc->getSelected() == YES){ npc->teleport(102000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 3){ if(npc->getSelected() == YES){ npc->teleport(101000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); }}// Heneseys - Regular Cabvoid NPCsScripts::npc_1012000(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("What’s up? I drive the Regular Cab. If you want to go from town to town safely and fast, then ride our cab! We’ll gladly take you to your destination!"); npc->sendNext(); } if(state == 1){ npc->addText("Please choose where you would like to go:\r\n#L0#Perion#l\r\n#L1#Kerning City#l\r\n#L2#Lith Harbor#l\r\n#L3#Ellinia#l"); npc->sendSimple(); } if(state == 2){ type = npc->getSelected(); npc->setVariable("type", type); if(type == 0){ // Perion npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bPerion#k?"); npc->sendYesNo(); } else if(type == 1){ // Kerning npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bKerning City#k?"); npc->sendYesNo(); } else if(type == 2){ // Lith Harbor npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bLith Harbor#k?"); npc->sendYesNo(); } else if(type == 3){ // Ellinia npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bEllinia#k?"); npc->sendYesNo(); } } if(state == 3 && type == 0){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(102000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 1){ if(npc->getSelected() == YES){ npc->teleport(103000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 2){ if(npc->getSelected() == YES){ npc->teleport(104000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 3){ if(npc->getSelected() == YES){ npc->teleport(101000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); }}// Perion - Regular Cabvoid NPCsScripts::npc_1022001(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("What’s up? I drive the Regular Cab. If you want to go from town to town safely and fast, then ride our cab! We’ll gladly take you to your destination!"); npc->sendNext(); } if(state == 1){ npc->addText("Please choose where you would like to go:\r\n#L0#Henesys#l\r\n#L1#Kerning City#l\r\n#L2#Lith Harbor#l\r\n#L3#Ellinia#l"); npc->sendSimple(); } if(state == 2){ type = npc->getSelected(); npc->setVariable("type", type); if(type == 0){ // Heneseys npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bHeneseys#k?"); npc->sendYesNo(); } else if(type == 1){ // Kerning npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bKerning City#k?"); npc->sendYesNo(); } else if(type == 2){ // Lith Harbor npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bLith Harbor#k?"); npc->sendYesNo(); } else if(type == 3){ // Ellinia npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bEllinia#k?"); npc->sendYesNo(); } } if(state == 3 && type == 0){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(100000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 1){ if(npc->getSelected() == YES){ npc->teleport(103000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 2){ if(npc->getSelected() == YES){ npc->teleport(104000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 3){ if(npc->getSelected() == YES){ npc->teleport(101000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); }}// Ellinia - Regular Cabvoid NPCsScripts::npc_1032000(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("What’s up? I drive the Regular Cab. If you want to go from town to town safely and fast, then ride our cab! We’ll gladly take you to your destination!"); npc->sendNext(); } if(state == 1){ npc->addText("Please choose where you would like to go:\r\n#L0#Henesys#l\r\n#L1#Kerning City#l\r\n#L2#Lith Harbor#l\r\n#L3#Perion#l"); npc->sendSimple(); } if(state == 2){ type = npc->getSelected(); npc->setVariable("type", type); if(type == 0){ // Heneseys npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bHeneseys#k?"); npc->sendYesNo(); } else if(type == 1){ // Kerning npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bKerning City#k?"); npc->sendYesNo(); } else if(type == 2){ // Lith Harbor npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bLith Harbor#k?"); npc->sendYesNo(); } else if(type == 3){ // Perion npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bPerion#k?"); npc->sendYesNo(); } } if(state == 3 && type == 0){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(100000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 1){ if(npc->getSelected() == YES){ npc->teleport(103000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 2){ if(npc->getSelected() == YES){ npc->teleport(104000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 3){ if(npc->getSelected() == YES){ npc->teleport(102000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); }}// Kerning City - Regular Cabvoid NPCsScripts::npc_1052016(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("What’s up? I drive the Regular Cab. If you want to go from town to town safely and fast, then ride our cab! We’ll gladly take you to your destination!"); npc->sendNext(); } if(state == 1){ npc->addText("Please choose where you would like to go:\r\n#L0#Henesys#l\r\n#L1#Ellinia#l\r\n#L2#Lith Harbor#l\r\n#L3#Perion#l"); npc->sendSimple(); } if(state == 2){ type = npc->getSelected(); npc->setVariable("type", type); if(type == 0){ // Heneseys npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bHeneseys#k?"); npc->sendYesNo(); } else if(type == 1){ // Ellinia npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bEllinia#k?"); npc->sendYesNo(); } else if(type == 2){ // Lith Harbor npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bLith Harbor#k?"); npc->sendYesNo(); } else if(type == 3){ // Perion npc->addText("You don’t have anything else to do here, huh? Do you really want to go to #bPerion#k?"); npc->sendYesNo(); } } if(state == 3 && type == 0){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(100000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 1){ if(npc->getSelected() == YES){ npc->teleport(103000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 2){ if(npc->getSelected() == YES){ npc->teleport(101000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); } if(state == 3 && type == 3){ if(npc->getSelected() == YES){ npc->teleport(102000000); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } npc->end(); }}// Lith Harbor - VIP Cabvoid NPCsScripts::npc_1002004(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("Hi there! This cab is for VIP customers only. Instead of just taking you to different towns like the regular cabs, we offer a much better service worthy of VIP class. I will take you safely to the #bAnt Tunnel#k."); npc->sendNext(); } else if(state == 1){ npc->addText("The #bAnt Tunnel#k is located deep inside the dungeon that lies at the center of Victoria Island, where the 24 Hour Mobile Store is.\r\nWould You like to go there?"); npc->sendYesNo(); } else if(state == 2){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(105050000); } else { npc->addText("This town also has a lot to offer. Come back to me if you feel the need to go to the #bAnt Tunnel#k!"); npc->sendOK(); } } else if(state == 3){ npc->end(); }}// Ellinia - VIP Cabvoid NPCsScripts::npc_1032005(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("Hi there! This cab is for VIP customers only. Instead of just taking you to different towns like the regular cabs, we offer a much better service worthy of VIP class. I will take you safely to the #bAnt Tunnel#k."); npc->sendNext(); } else if(state == 1){ npc->addText("The #bAnt Tunnel#k is located deep inside the dungeon that lies at the center of Victoria Island, where the 24 Hour Mobile Store is.\r\nWould You like to go there?"); npc->sendYesNo(); } else if(state == 2){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(105050000); } else { npc->addText("This town also has a lot to offer. Come back to me if you feel the need to go to the #bAnt Tunnel#k!"); npc->sendOK(); } } else if(state == 3){ npc->end(); }}// Florina Beach - Pisonvoid NPCsScripts::npc_1081001(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("So you want to leave #bFlorina Beach#k? If you want, I can take you back to #bLith Harbor#k.\r\n#L0#I would like to go back now!#l\r\n#L1#No, I forgot to do something!#l"); npc->sendSimple(); } else if(state == 1){ type = npc->getSelected(); npc->setVariable("type", type); if(type == 0){ npc->addText("Alright, hope you had a wonderful time here, at Florina Beach!"); npc->sendOK(); } if(type == 1){ npc->addText("I don’t blame you! I love it here so much that I wound up living here. Just come talk to me if you feel like going back to #bLith Harbor#k."); npc->sendOK(); } } else if(state == 2){ if(type == 0){ npc->end(); npc->teleport(104000000); } else { npc->end(); } }}// Lith Harbor - Pasonvoid NPCsScripts::npc_1002002(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("Have you ever wanted to be on a beach with a spectacular view of the ocean? If so, #bFlorina Beach#b is the place for you!\r\n#L0#Sounds great!#l\r\n#L1#No thanks...#l"); npc->sendSimple(); } else if(state == 1){ type = npc->getSelected(); npc->setVariable("type", type); if(type == 0){ npc->addText("Alright, then, but just be aware that you may be running into ferocious crabs while visiting! Would you like to head over to #bFlorina Beach#k?"); npc->sendYesNo(); } if(type == 1){ npc->addText("You must have some business to take care of here? No problem. But if you feel the need to take a break, come back to me and visit #bFlorina Beach#k!"); npc->sendOK(); } } else if(state == 2){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(110000000); } else { npc->addText("You must have some business to take care of here? No problem. But if you feel the need to take a break, come back to me and visit #bFlorina Beach#k!"); npc->sendOK(); } } else if(state == 3){ npc->end(); }}// New Leaf City/Phantom Forest - NLC Taxi void NPCsScripts::npc_9201056(NPC* npc){ int state = npc->getState(); if(npc->getPlayerMap() == 600000000){ if(state == 0){ npc->addText("Hey, there. Want to take a trip deeper into the Masterian wilderness? A lot of this continent is still quite unknown and untamed... so there's still not much in the way of roads. Good thing we've got this baby... We can go offroading, and in style too!"); npc->sendNext(); } else if(state == 1){ npc->addText("Right now, I can drive you to the #bPhantom Forest#k. The old #bPrendergast Mansion#k is located there. Some people say the place is haunted!"); npc->sendBackNext(); } else if(state == 2){ npc->addText("What do you say...? Want to head over there?"); npc->sendYesNo(); } else if(state == 3){ if(npc->getSelected() == YES){ npc->addText("Alright! Buckle your seat belt, and let's head to the Mansion!\r\nIt's going to get bumpy!"); npc->sendNext(); } else{ npc->addText("Really? I don't blame you... Sounds like a pretty scary place to me too! If you change your mind, I'll be right here."); npc->sendOK(); } } else if(state == 4){ if(npc->getSelected() == YES){ npc->teleport(682000000); } npc->end(); } } if(npc->getPlayerMap() == 682000000){ if(state == 0){ npc->addText("Hey, there. Hope you had fun here! Ready to head back to #bNew Leaf City#k?"); npc->sendYesNo(); } else if(state == 1){ if(npc->getSelected() == YES){ npc->addText("Back to civilization it is! Hop in and get comfortable back there... We'll have you back to the city in a jiffy!"); npc->sendNext(); } else{ npc->addText("Oh, you want to stay and look around some more? That's understandable. If you wish to go back to #bNew Leaf City#k, you know who to talk to!"); npc->sendOK(); } } else if(state == 2){ if(npc->getSelected() == YES){ npc->teleport(600000000); } npc->end(); } }}// Spinel - World Tourvoid 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 #bMaple Travel Agency#k 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(4170004, 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 #bMaple Travel Agency#k 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 #bMaple Travel Agency#k 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 #bMaple Travel Agency#k 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 #bMaple Travel Agency#k 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 #bMaple Travel Agency#k 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 #bMaple Travel Agency#k 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 #bMaple Travel Agency#k 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() == 240000000){ 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 #bMaple Travel Agency#k 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() == 250000000){ 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 #bMaple Travel Agency#k 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(4000214, 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#.#l"); npc->addText("\r\n#L1#Ellinia - You need: 1 Ellinia #t4170001#.#l"); npc->addText("\r\n#L2#Henesys - You need: 1 Henesys #t4170000#.#l"); npc->addText("\r\n#L3#Kerning City - You need: 1 Kerning City #t4170002#.#l"); npc->addText("\r\n#L4#Perion - You need: 1 Perion #t4170003#.#l"); npc->addText("\r\n#L5#Ludibrium - You need: 1 Ludibrium #t4170005#.#l"); npc->addText("\r\n#L6#Orbis - You need: 1 Orbis #t4170006#.#l"); npc->addText("\r\n#L7#Amoria - You need: 1 Aquarium #t4170007#.#l"); npc->addText("\r\n#L8#Leafre - You need: 1 #t4000217#.#l"); npc->addText("\r\n#L9#Mu Lung - You need: 1 #t4000214#.#l"); npc->sendSimple(); } else if(state == 1){ type = npc->getSelected(); npc->setVariable("type", type); if(type == 0){ ticket = 0; if(npc->checkhasItem(npc->getPlayer(), 4170004) == 1) { npc->addText("Hope you enjoyed your stay! Goodbye!"); npc->sendOK(); } else { npc->addText("You do not have 1 El Nath #t4170004#."); npc->sendBackOK(); ticket = 10; } } if(type == 1){ ticket = 1; if(npc->checkhasItem(npc->getPlayer(), 4170001) == 1) { npc->addText("Hope you enjoyed your stay! Goodbye!"); npc->sendOK(); } else { npc->addText("You do not have 1 Ellinia #t4170001#."); npc->sendBackOK(); ticket = 10; } } if(type == 2){ ticket = 2; if(npc->checkhasItem(npc->getPlayer(), 4170000) == 1) { npc->addText("Hope you enjoyed your stay! Goodbye!"); npc->sendOK(); } else { npc->addText("You do not have 1 Henesys #t4170000#."); npc->sendBackOK(); ticket = 10; } } if(type == 3){ ticket = 3; if(npc->checkhasItem(npc->getPlayer(), 4170002) == 1) { npc->addText("Hope you enjoyed your stay! Goodbye!"); npc->sendOK(); } else { npc->addText("You do not have 1 Kerning City #t4170002#."); npc->sendBackOK(); ticket = 10; } } if(type == 4){ ticket = 4; if(npc->checkhasItem(npc->getPlayer(), 4170003) == 1) { npc->addText("Hope you enjoyed your stay! Goodbye!"); npc->sendOK(); } else { npc->addText("You do not have 1 Perion #t4170003#."); npc->sendBackOK(); ticket = 10; } } if(type == 5){ ticket = 5; if(npc->checkhasItem(npc->getPlayer(), 4170005) == 1) { npc->addText("Hope you enjoyed your stay! Goodbye!"); npc->sendOK(); } else { npc->addText("You do not have 1 Ludibrium #t4170005#."); npc->sendBackOK(); ticket = 10; } } if(type == 6){ ticket = 6; if(npc->checkhasItem(npc->getPlayer(), 4170006) == 1) { npc->addText("Hope you enjoyed your stay! Goodbye!"); npc->sendOK(); } else { npc->addText("You do not have 1 Orbis #t4170006#."); npc->sendBackOK(); ticket = 10; } } if(type == 7){ ticket = 7; if(npc->checkhasItem(npc->getPlayer(), 4170007) == 1) { npc->addText("Hope you enjoyed your stay! Goodbye!"); npc->sendOK(); } else { npc->addText("You do not have 1 Aquarium #t4170007#."); npc->sendBackOK(); ticket = 10; } } if(type == 8){ ticket = 8; if(npc->checkhasItem(npc->getPlayer(), 4000217) == 1) { npc->addText("Hope you enjoyed your stay! Goodbye!"); npc->sendOK(); } else { npc->addText("You do not have 1 #t4000217#."); npc->sendBackOK(); ticket = 10; } } if(type == 9){ ticket = 9; if(npc->checkhasItem(npc->getPlayer(), 4000214) == 1) { npc->addText("Hope you enjoyed your stay! Goodbye!"); npc->sendOK(); } else { npc->addText("You do not have 1 #t4000214#."); npc->sendBackOK(); ticket = 10; } } } else if(state == 2){ if(ticket == 0){ int number = npc->getItemAmount(4170004); npc->end(); npc->giveItem(4170004, -number); npc->teleport(104000000); } if(ticket == 1){ int number = npc->getItemAmount(4170001); npc->end(); npc->giveItem(4170001, -number); npc->teleport(101000000); } if(ticket == 2){ int number = npc->getItemAmount(4170000); npc->end(); npc->giveItem(4170000, -number); npc->teleport(100000000); } if(ticket == 3){ int number = npc->getItemAmount(4170002); npc->end(); npc->giveItem(4170002, -number); npc->teleport(103000000); } if(ticket == 4){ int number = npc->getItemAmount(4170003); npc->end(); npc->giveItem(4170003, -number); npc->teleport(102000000); } if(ticket == 5){ int number = npc->getItemAmount(4170005); npc->end(); npc->giveItem(4170005, -number); npc->teleport(220000000); } if(ticket == 6){ int number = npc->getItemAmount(4170006); npc->end(); npc->giveItem(4170006, -number); npc->teleport(200000000); } if(ticket == 7){ int number = npc->getItemAmount(4170007); npc->end(); npc->giveItem(4170007, -number); npc->teleport(680000000); } if(ticket == 8){ int number = npc->getItemAmount(4000217); npc->end(); npc->giveItem(4000217, -number); npc->teleport(240000000); } if(ticket == 9){ int number = npc->getItemAmount(4000214); npc->end(); npc->giveItem(4000214, -number); npc->teleport(250000000); } if(ticket == 10){ npc->end(); } } else { npc->end(); } }}// The Pier near Sea - Dolphinvoid NPCsScripts::npc_2093004(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("Would you like to return to the #bAquarium#k?"); npc->sendYesNo(); } else if(state == 1){ if(npc->getSelected() == YES){ npc->addText("Alright, come back soon!"); npc->sendOK(); } else{ npc->addText("No problem, just come back to me when you would like to return to the #bAquarium#k."); npc->sendOK(); } } else if(state == 2){ if(npc->getSelected() == YES){ npc->teleport(230000000); } npc->end(); }}// Aquarium - Dolphinvoid NPCsScripts::npc_2060009(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("I can take you to #bHerb Town#k, an area populated with the Panda-like creatures, and where valuable Bellflower and Ginseng plants grow. Would you like to go to #bHerb Town#k?"); npc->sendYesNo(); } else if(state == 1){ if(npc->getSelected() == YES){ npc->addText("I hope you enjoy your stay in #bHerb Town#k!"); npc->sendOK(); } else{ npc->addText("You must have things to do here? That's fine, just come back to me if you would like to go to #bHerb Town#k."); npc->sendOK(); } } else if(state == 2){ if(npc->getSelected() == YES){ npc->teleport(251000100); } npc->end(); }} // Kerning City/New Leaf City - Bellvoid NPCsScripts::npc_9201057(NPC* npc){ int state = npc->getState(); if(npc->getPlayerMap() == 103000100) { if(state == 0){ npc->addText("I can take you to #bNew Leaf City#k, a town founded on the ruins of an ancient city, called Old Sappe Village, that sunk into the ocean over 1000 years ago! Would you like to go to #bNew Leaf City#k?"); npc->sendYesNo(); } else if(state == 1){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(600010001); } else{ npc->addText("There’s a lot to see in this town, too. Come back and find me when you need to go to a different town."); npc->sendOK(); } } else if(state == 2){ npc->end(); } } if(npc->getPlayerMap() == 600010001) { if(state == 0){ npc->addText("Would you like to return to #bKerning City#k?"); npc->sendYesNo(); } else if(state == 1){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(103000100); } else{ npc->addText("There’s a lot to see in #bNew Leaf City#k, too. Come back and find me when you want to go back to #bKerning City#k."); npc->sendOK(); } } else if(state == 2){ npc->end(); } }}// Orbis - Agathavoid NPCsScripts::npc_2012000(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("Hello, my name is Agatha and I can take you to many destinations in this world. Where would you like to go?"); npc->addText("\r\n#L0#Ellinia#l"); npc->addText("\r\n#L1#Ludibrium#l"); npc->addText("\r\n#L2#Leafre#l"); npc->addText("\r\n#L3#Mu Lung#l"); npc->sendSimple(); } else if(state == 1){ type = npc->getSelected(); npc->setVariable("type", type); if(type == 0){ npc->addText("Alright, #bEllinia#k is a great place to go! Are you sure you want to go to #bEllinia#k?"); npc->sendYesNo(); } if(type == 1){ npc->addText("Ah, #bLudibrium#k, the floating town supported by Eos and Helios tower! I personally call it 'Legoland', but that's just me! Are you sure you want to go to #bLudibrium#k?"); npc->sendYesNo(); } if(type == 2){ npc->addText("#bLeafre#k, the city of dragons? I hear the river surrounding #bLeafre#k is just to keep the dragons that inhabit the city from invading! Are you sure you want to go to #bLeafre#k?"); npc->sendYesNo(); } if(type == 3){ npc->addText("#bMu Lung#k, eh? The panda inhabited town located in the Ossyrian mountains? I go to #bMr. Do#k all the time for his eccentric and unique potions! Are you sure you want to go to #bMu Lung#k?"); npc->sendYesNo(); } } else if(state == 2){ if(type == 0){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(101000300); } else{ npc->addText("There’s a lot to see here in #bOrbis#k, too. Come back and find me when you want to leave!"); npc->sendOK(); } } if(type == 1){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(220000100); } else{ npc->addText("There’s a lot to see here in #bOrbis#k, too. Come back and find me when you want to leave!"); npc->sendOK(); } } if(type == 2){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(240000100); } else{ npc->addText("There’s a lot to see here in #bOrbis#k, too. Come back and find me when you want to leave!"); npc->sendOK(); } } if(type == 3){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(250000100); } else{ npc->addText("There’s a lot to see here in #bOrbis#k, too. Come back and find me when you want to leave!"); npc->sendOK(); } } } else if(state == 3){ npc->end(); }}// Leafre - Mue void NPCsScripts::npc_2082000(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("Would you like to return to #bOrbis#k?"); npc->sendYesNo(); } else if(state == 1){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(200000100); } else { npc->addText("You must have things to do here? That's fine, just come back to me if you would like to return to #bOrbis#k."); npc->sendOK(); } }}// Ludibrium - Melvoid NPCsScripts::npc_2040000(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("Would you like to return to #bOrbis#k?"); npc->sendYesNo(); } else if(state == 1){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(200000100); } else { npc->addText("You must have things to do here? That's fine, just come back to me if you would like to return to #bOrbis#k."); npc->sendOK(); } }}// Ellinia - Joelvoid NPCsScripts::npc_1032007(NPC* npc){ int state = npc->getState(); if(state == 0){ npc->addText("Hello, my name is Joel! I could take you to #bOrbis#k, a town run by fairies! I would reccommend visiting the Cloud Park, a floating park filled with Pixies and Kitties! Would you like to go to the bright and cheeful town of #bOrbis#k?"); npc->sendYesNo(); } else if(state == 1){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(200000100); } else { npc->addText("You must have things to do here? That's fine, just come back to me if you would like to visit #bOrbis#k."); npc->sendOK(); } } else if(state == 3){ npc->end(); }}// Mu Lung/Herb Town - Hakvoid NPCsScripts::npc_2090005(NPC* npc){ int state = npc->getState(); if(npc->getPlayerMap() == 250000100){ if(state == 0){ npc->addText("Hey there! I can take you to a few places of your choosing. Where would you like to go?"); npc->addText("\r\n#L0#Orbis#l"); npc->addText("\r\n#L1#Herb Town#l"); npc->sendSimple(); } if(state == 1){ type = npc->getSelected(); npc->setVariable("type", type); if(type == 0){ npc->addText("All done here? Would you would like to return to Orbis?"); npc->sendYesNo(); } if(type ==1){ npc->addText("I can take you to #bHerb Town#k, an area populated with the Panda-like creatures, and where valuable Bellflower and Ginseng plants grow. Would you like to go to #bHerb Town#k?"); npc->sendYesNo(); } } if(state == 2){ if(type == 0){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(200000100); } else { npc->addText("You must have things to do here? That's fine, just come back to me if you would like to return to #bOrbis#k."); npc->sendOK(); } } if(type == 1){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(251000000); } else { npc->addText("There’s a lot to see in this town, too. Come back and find me when you would like to visit #bHerb Town#k."); npc->sendOK(); } } } } if(npc->getPlayerMap() == 251000000){ if(state == 0){ npc->addText("Would you like to return to #bMu Lung#k?"); npc->sendYesNo(); } else if(state == 1){ if(npc->getSelected() == YES){ npc->end(); npc->teleport(250000100); } else { npc->addText("You must have things to do here? That's fine, just come back to me if you would like to return to #bOrbis#k."); npc->sendOK(); } } }}