scripts/npcs/NLC_Taxi.lua
--[[
Copyright (C) 2008-2016 Vana Development Team

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
--]]
-- New Leaf City/Phantom Forest - NLC Taxi

dofile("scripts/utils/npcHelper.lua");

if getMap() == 600000000 then
	addText("Hey, there. ");
	addText("Want to take a trip deeper into the Masterian wilderness? ");
	addText("A lot of this continent is still quite unknown and untamed... so there's still not much in the way of roads. ");
	addText("Good thing we've got this baby... ");
	addText("We can go offroading, and in style too!");
	sendNext();

	addText("Right now, I can drive you to the " .. blue("Phantom Forest") .. ". ");
	addText("The old " .. blue("Prendergast Mansion") .. " is located there. ");
	addText("Some people say the place is haunted!");
	sendBackNext();

	addText("What do you say...? ");
	addText("Want to head over there?");
	answer = askYesNo();

	if answer == answer_yes then
		addText("Alright! ");
		addText("Buckle your seat belt, and let's head to the Mansion!\r\n");
		addText("It's going to get bumpy!");
		sendNext();

		setMap(682000000);
	else
		addText("Really? ");
		addText("I don't blame you... ");
		addText("Sounds like a pretty scary place to me too! ");
		addText("If you change your mind, I'll be right here.");
		sendOk();
	end
elseif getMap() == 682000000 then
	addText("Hey, there. ");
	addText("Hope you had fun here! ");
	addText("Ready to head back to " .. blue("New Leaf City") .. "?");
	answer = askYesNo();

	if answer == answer_yes then
		addText("Back to civilization it is! ");
		addText("Hop in and get comfortable back there... ");
		addText("We'll have you back to the city in a jiffy!");
		sendNext();

		setMap(600000000);
	else
		addText("Oh, you want to stay and look around some more? ");
		addText("That's understandable. ");
		addText("If you wish to go back to " .. blue("New Leaf City") .. ", you know who to talk to!");
		sendOk();
	end
end