//================= Hercules Script =======================================
//=       _   _                     _
//=      | | | |                   | |
//=      | |_| | ___ _ __ ___ _   _| | ___  ___
//=      |  _  |/ _ \ '__/ __| | | | |/ _ \/ __|
//=      | | | |  __/ | | (__| |_| | |  __/\__ \
//=      \_| |_/\___|_|  \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2016  Hercules Dev Team
//= Copyright (C) 2016  Ridley
//= Copyright (C) 2016  Nova
//=
//= Hercules 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, either version 3 of the License, or
//= (at your option) any later version.
//=
//= 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, see <http://www.gnu.org/licenses/>.
//=========================================================================
//= Dimensional Gap NPCs
//================= Description ===========================================
//= The Dimensional Gap, or Dimensional Crack, is an opening into the
//= vacuum of time and space that separates dimensions.
//================= Current Version =======================================
//= 1.0
//=========================================================================

mid_camp,207,290,6	script	Expedition Guide#01	4_M_EIN_SOLDIER,{
	mes("[Expedition Guide]");
	mes("Are you going to enter the ^0000FFDimensional Gap^000000? Please use this Transport Device you see here.");
	next();
	if (select("What is the Dimensional Gap?", "End Conversation.") == 2) {
		mes("[Expedition Guide]");
		mes("Take care.");
		close();
	}
	mes("[Expedition Guide]");
	mes("As you know we've already entered through the Dimensional Rift to get to Ash Vacuum right? The Dimensional Gap is an expansion of that initial discovery.");
	next();
	mes("[Expedition Guide]");
	mes("A member of the Expedition team found these backdoor passages to get through the Dimensional Rifts.");
	next();
	mes("[Expedition Guide]");
	mes("This is like a Rune Midgard Alliance version of the Bifrost bridge so it can connect us to different parts of the New World.");
	next();
	mes("[Expedition Guide]");
	mes("Time and space is distorted in the Dimensional Gap. Not all passageways have been discovered so please be sure to use caution when entering an unverified area.");
	next();
	mes("[Expedition Guide]");
	mes("Anyone who has become lost here has yet to return.");
	close();
}

mid_camp,212,290,4	script	Expedition Guide#02	4_M_EIN_SOLDIER,{
	mes("[Expedition Guide]");
	mes("Please use a ^0000FFTransport Device^000000 if you wish to travel through the dimensional rift. The insides have not been fully explored yet so please be careful in there.");
	close();
}

moc_fild22b,225,198,6	duplicate(Expedition Guide#01)	Expedition Guide#03	4_M_MOC_SOLDIER
moc_fild22b,223,203,4	duplicate(Expedition Guide#02)	Expedition Guide#04	4_M_MOC_SOLDIER
bif_fild01,314,155,6	duplicate(Expedition Guide#01)	Expedition Guide#05	4_M_EIN_SOLDIER
bif_fild01,320,154,4	duplicate(Expedition Guide#02)	Expedition Guide#06	4_M_EIN_SOLDIER
dic_fild02,236,33,6	duplicate(Expedition Guide#01)	Expedition Guide#07	4_M_EIN_SOLDIER
dic_fild02,239,36,4	duplicate(Expedition Guide#02)	Expedition Guide#08	4_M_EIN_SOLDIER

dali,137,87,4	script	Allied Forces Soldier	4_M_MOCASS1,{
	mes("[Allied Forces Soldier]");
	mes("This dimensional rift is connected to the Allied Forces ^0000FFExpedition Camp^000000 in Jotunheim.");
	next();
	mes("[Allied Forces Soldier]");
	mes("Do not worry, it has been set up after testing hundreds of experiments for safe teleportation.");
	close();
}

dali,122,60,4	script	Morroc Soldier	4_M_MOC_SOLDIER,{
	mes("[Morroc Soldier]");
	mes("This dimensional rift is connected to ^0000FFMorroc^000000 back in Rune Midgard.");
	next();
	mes("[Morroc Soldier]");
	mes("This is the fastest gateway back to our world. The area is still destroyed but restoration efforts will soon be on the way.");
	close();
}

dali,51,104,6	script	Spledide Soldier	4_M_FAIRYSOLDIER2,{
	mes("[Spledide Soldier]");
	mes("This dimensional rift is connected to the south of ^0000FFBifrost^000000. It enables quick travel to the Splendide frontline.");
	next();
	mes("[Spledide Soldier]");
	mes("If we use it properly, it enables us to advance more easily to the capital of the Sapha.");
	next();
	mes("[Spledide Soldier]");
	mes("The Mayor has asked us to cooperate as best we can instead of fighting, so I'm under orders not to do anything. Since we have a common enemy we won't fight the Sapha... for now...");
	close();
}

dali,56,126,4	script	Dispatched Sapha	4_MAN_BENKUNI,{
	mes("[Dispatched Sapha]");
	mes("This dimensional rift is connected to the southern area of the ^0000FFKamidal Mountains^000000 in El Dicastes. I just dropped by for my research, but it is incredible.");
	next();
	mes("[Dispatched Sapha]");
	mes("Moreover it is next to the Laphine capital..... Hmm... Do not worry, I do not want to fight in such a place.");
	close();
}

dali,109,94,4	trader	Sundries Merchant	4_M_MERCAT2,{
OnInit:
	sellitem Spectacles;
	sellitem Arrow;
	sellitem Booby_Trap;
	end;
}

dali,112,95,4	script	Logistics Manager	4_M_MERCAT2,{
	mes("[Logistics Manager]");
	mes("Welcome. I am in charge of logistics to take care of your items in this weird place. Do you need to access your storage?");
	next();
	if (select("Open Storage 200 Zeny.", "No Thanks.") == 2) {
		mes("[Logistics Manager]");
		mes("Let me know if you change your mind.");
		close();
	}
	if (basicskillcheck() && getskilllv(NV_BASIC) < 6) {
		mes("[Logistics Manager]");
		mes("You are not yet qualified to use the Storage.");
	} else if (Zeny < 200) {
		mes("[Logistics Manager]");
		mes("You need at least 200 zeny to use the Storage.");
	} else {
		Zeny -= 200;
		openstorage();
	}
	close();
}

dali,115,85,5	script	Party Leader#dali	2_M_SWORDMASTER,{
	if (.dalichatactive)
		end;
	initnpctimer();
	.dalichatactive = 1;
	end;
OnTimer10:
	npctalk(_("Attention!!!"), "Party Leader#dali");
	end;
OnTimer2000:
	npctalk(_("Here, here. Everybody be quiet and line up!"), "Party Leader#dali");
	end;
OnTimer3000:
	npctalk(_("We have now entered the inside of the Dimensional Crack. Where should be go first?"), "Party Leader#dali");
	end;
OnTimer4000:
	npctalk(_("Anyone has an opinion?"), "Party Leader#dali");
	end;
OnTimer6000:
	npctalk(_("I heard rumors about some magic swordman. Let's go find him."), "Party Member#MONK");
	end;
OnTimer7500:
	npctalk(_("We heard about a magic competition being held here!"), "Party Member#WANDERER");
	end;
OnTimer9000:
	npctalk(_("Where is it?!"), "Party Member#MONK");
	end;
OnTimer10500:
	npctalk(_("Uh, I'm a little bit hungry... I wonder if anybody is selling some warm sweet potatoes or even dumplings..."), "Party Member#CRU");
	end;
OnTimer12000:
	npctalk(_("You want to eat again?"), "Party Member#GUILL");
	end;
OnTimer13500:
	npctalk(_("I am just wondering about the tournament.."), "Party Member#WANDERER");
	end;
OnTimer15000:
	npctalk(_("I need to eat something before doing anything."), "Party Member#CRU");
	end;
OnTimer16500:
	npctalk(_("By the way, I also heard about something called the Devil's Tower."), "Party Member#MONK");
	end;
OnTimer18000:
	npctalk(_("I just saw a street trader passing by... Where is he?"), "Party Member#GUILL");
	end;
OnTimer19500:
	emotion(e_yawn, 0, "Party Member#SURA");
	npctalk(_("Huh? What is this? You still haven't entered?"), "Party Member#SURA");
	end;
OnTimer20000:
	npctalk(_("I am curious about the Faceworms I heard about from a Laphine."), "Party Member#MONK");
	end;
OnTimer21000:
	npctalk(_("Can I come back after having a meal?"), "Party Member#CRU");
	end;
OnTimer22500:
	npctalk(_("Can you even catch that?"), "Party Member#WANDERER");
	npctalk(_("Are you awake?"), "Party Member#SHADOW");
	end;
OnTimer24000:
	emotion(e_an, 0, "Party Member#SURA");
	npctalk(_("Why are you still here?"), "Party Member#SURA");
	end;
OnTimer24500:
	npctalk(_("Hang on a bit. The merchant is going to pass by soon."), "Party Member#GUILL");
	end;
OnTimer25500:
	npctalk(_("That is your wish...."), "Party Member#MONK");
	end;
OnTimer27000:
	npctalk(_("I want to buy cold grape juice~"), "Party Member#CRU");
	end;
OnTimer28500:
	npctalk(_("I have no idea. There might be an accident up front."), "Party Member#SHADOW");
	end;
OnTimer30000:
	npctalk(_("What? How dare you?!"), "Party Member#WANDERER");
	end;
OnTimer31500:
	npctalk(_("Give me a sip of juice."), "Party Member#GUILL");
	end;
OnTimer32000:
	npctalk(_("Cough~ Cough~"), "Party Member#EINOLD");
	end;
OnTimer33000:
	emotion(e_an, 0, "Party Member#SURA");
	end;
OnTimer34000:
	npctalk(_("Damn! I am pissed off! I came here because I heard only a party is allowed to get in!"), "Party Member#SURA");
	end;
OnTimer36000:
	npctalk(_("Are you going to hit me? Do it!"), "Party Member#MONK");
	emotion(e_ag, 0, "Party Member#MONK");
	npctalk(_("You pay for your food."), "Party Member#CRU");
	end;
OnTimer37500:
	emotion(e_an, 0, "Party Member#SURA");
	end;
OnTimer39000:
	npctalk(_("Whatever, I'm not eating."), "Party Member#WANDERER");
	npctalk(_("So mean.. I won't eat then."), "Party Member#GUILL");
	npctalk(_("Right.. I should have entered with another group!"), "Party Member#SHADOW");
	end;
OnTimer40500:
	emotion(e_gg, 0, "Party Member#CRU");
	npctalk(_("Hey. Are you pissed off?"), "Party Member#CRU");
	end;
OnTimer42000:
	npctalk(_("Not at all."), "Party Member#GUILL");
	end;
OnTimer43500:
	emotion(e_gg, 0, "Party Member#MONK");
	npctalk(_("Look at him snoozing. Hehe."), "Party Member#MONK");
	end;
OnTimer45000:
	emotion(e_yawn, 0, "Party Member#SURA");
	npctalk(_("Bah, I don't care. I'm gonna take a nap, so wake me up when we're ready."), "Party Member#SURA");
	end;
OnTimer46500:
	emotion(e_gg, 0, "Party Member#CRU");
	npctalk(_("You are upset!!"), "Party Member#CRU");
	npctalk(_("Can I get back before I die..."), "Party Member#WANDERER");
	npctalk(_("What? You, we gotta talk! I've been too nice to you!"), "Party Member#EINOLD");
	end;
OnTimer48000:
	npctalk(_("Excuse me..... everyone.............?"), "Party Leader#dali");
	end;
OnTimer49500:
	emotion(e_ag, 0, "Party Member#GUILL");
	npctalk(_("No!!!!!!!!!"), "Party Member#GUILL");
	npctalk(_("Whatever~"), "Party Member#MONK");
	end;
OnTimer51000:
	emotion(e_sob, 0, "Party Leader#dali");
	npctalk(_("Please listen to me...."), "Party Leader#dali");
	npctalk(_("He's angry all right...."), "Party Member#WANDERER");
	npctalk(_("Take a nap. I am sleepy too, so we'll take shifts."), "Party Member#SHADOW");
	end;
OnTimer52500:
	.dalichatactive = 0;
	stopnpctimer();
	end;
}

dali,117,81,7	script	Party Member#WANDERER	4_F_WANDERER,{
	end;
}

dali,117,79,5	script	Party Member#CRU	4_F_CRU,{
	end;
}

dali,118,83,3	script	Party Member#MONK	4_F_MONK,{
	end;
}

dali,119,76,7	script	Party Member#SHADOW	4_F_SHADOWCHASER,{
	end;
}

dali,119,78,2	script	Party Member#GUILL	4_M_JPNOJI,{
	end;
}

dali,120,77,4	script	Party Member#SURA	4_F_SURA,{
	end;
}

dali,120,81,3	script	Party Member#EINOLD	4_M_EINOLD,{
	end;
}

dali,102,83,5	script	Merchant Prince#HUMERC	4_M_HUMERCHANT,2,2,{
	mes("[Prince Canet]");
	mes("Who're you?");
	next();
	mes("[Prince Canet]");
	mes("What do you want? You looking something in particular?");
	next();
	mes("[Prince Canet]");
	mes("So some enforcers have been cracking down on merchants lately. I can not sell anything.");
	next();
	mes("[Prince Canet]");
	mes("Come here...");
	next();
	mes("[Jumpy Knight]");
	mes("I knew you would be here!! No illegal trading is allowed here! Don't you know?");
	hideoffnpc("Jumpy Knight#JP_RUN");
	next();
	mes("[Prince Canet]");
	mes("Says who?");
	next();
	mes("[Jumpy Knight]");
	mes("Ok, then show me your permit.");
	next();
	mes("[Prince Canet]");
	mes("Permit\r"
		"No one's in charge here!");
	next();
	mes("[Prince Canet]");
	mes("You! If you need anything come to me ok?");
	next();
	mes("[Jumpy Knight]");
	mes("I will catch you!");
	hideonnpc("Merchant Prince#HUMERC");
	close2();
	hideonnpc("Jumpy Knight#JP_RUN");
	enablenpc("Merchant Prince#HUMERC2");
	hideoffnpc("Merchant Prince#HUMERC2");
	disablenpc("Merchant Prince#HUMERC");
	end;

OnTouch:
	mes("[Prince Canet]");
	mes("Cold juice!\r"
		"Apple, grape, orange~\r"
		"Anything you want!");
	next();
	mes("[Prince Canet]");
	mes("Sweet potato, dumpling~\r"
		"Here we have delicious desserts~");
	close();
}

dali,105,82,1	script	Jumpy Knight#JP_RUN	4_M_JP_RUN,{
	end;

OnInit:
	hideonnpc("Jumpy Knight#JP_RUN");
	end;
}

dali,63,112,7	script	Merchant Prince#HUMERC2	4_M_HUMERCHANT,2,2,{
	mes("[Prince Canet]");
	mes("You need to pay a toll to get past here.");
	next();
	select("What toll?");
	mes("[Prince Canet]");
	mes("You did not know?\r"
		"500 zeny");
	next();
	mes("[Jumpy Knight]");
	mes("You there! Stop right there!");
	hideoffnpc("Jumpy Knight#JP_RUN2");
	next();
	mes("[Prince Canet]");
	mes("Ugh! How are you always following me? Got some kind of crush on me or something? I don't think you and I make a good match...");
	next();
	mes("[Jumpy Knight]");
	mes("Why don't we find out then?");
	next();
	mes("[Prince Canet]");
	mes("That's it no more talking.\r"
		"I'm outta here~");
	next();
	mes("[Jumpy Knight]");
	mes("Keep running you sneaky coward!");
	hideonnpc("Merchant Prince#HUMERC2");
	close2();
	hideonnpc("Jumpy Knight#JP_RUN2");
	hideoffnpc("Merchant Prince#HUMERC3");
	disablenpc("Merchant Prince#HUMERC2");
	end;

OnInit:
	disablenpc("Merchant Prince#HUMERC2");
	end;
OnTouch:
	mes("[Prince Canet]");
	mes("500 zeny");
	close();
}

dali,67,113,3	script	Jumpy Knight#JP_RUN2	4_M_JP_RUN,{
	end;

OnInit:
	hideonnpc("Jumpy Knight#JP_RUN2");
	end;
}

dali,89,97,3	script	Merchant Prince#HUMERC3	4_M_HUMERCHANT,{
	mes("[Prince Canet]");
	mes("You are lucky that you have met up with me.\r"
		"Who am I?\r"
		"I'm here to become a merchant King.");
	next();
	mes("[Prince Canet]");
	mes("I might be working a street stall now but I'll have an actual shop some day.");
	next();
	mes("[Prince Canet]");
	mes("It's my first day so I'm having a major sale.");
	next();
	mes("[Prince Canet]");
	mes("Let's see I've got a... Ring of something! Sword of stuff! A backpack of some sort!");
	next();
	mes("[Prince Canet]");
	mes("Tell me if you need anything,");
	hideoffnpc("Jumpy Knight#JP_RUN3");
	next();
	mes("[Prince Canet]");
	mes("What are you doing here? This is my spot for a shop Get outta my turf!");
	next();
	mes("[Jumpy Knight]");
	mes("Bah!!\r"
		"You're gonna regret those words!");
	next();
	mes("[Prince Canet]");
	mes("I'm shaking...");
	hideonnpc("Merchant Prince#HUMERC3");
	close2();
	hideonnpc("Jumpy Knight#JP_RUN3");
	enablenpc("Merchant Prince#HUMERC");
	hideoffnpc("Merchant Prince#HUMERC");
	end;

OnInit:
	hideonnpc("Merchant Prince#HUMERC3");
	end;
}

dali,89,94,7	script	Jumpy Knight#JP_RUN3	4_M_JP_RUN,{
	end;

OnInit:
	hideonnpc("Jumpy Knight#JP_RUN3");
	end;
}

dali02,58,123,3	script	Curious Knight#KY_KNT	4_M_KY_KNT,{
	mes("[Curious Knight]");
	mes("The Royal Guard in here was desperate for help. We entered through a secret place in the palace.");
	next();
	mes("[Curious Knight]");
	mes("We were whisked away here... No idea where I am but I have to establish a base here for the Knighthood.");
	close();
}

dali02,51,112,5	script	Confused Thief#DST_SOL	4_DST_SOLDIER,{
	mes("[Confused Thief]");
	mes("One minute I'm in a bar... The next minute I'm here... What is this place?");
	next();
	mes("[Confused Thief]");
	mes("There's no night or day in here. Hmm, something has to be valuable in this place...");
	close();
}

dali02,65,115,5	script	Adventurous Rafflesia#ra	4_M_RAFLE_GR,{
	mes("[Adventurous Rafflesia]");
	mes("No no this has to be Thanatos Tower... I sense dark magic here.");
	next();
	mes("[Guide]");
	mes("Oh, we're back here again. I cannot find a way out! We are trapped in this maze!");
	next();
	mes("[Tourist]");
	mes("Is this place the famous Prontera? It is dark just like a big city!");
	next();
	mes("[Traveller]");
	mes("I hear a ticking clock. This place must be Geffen!");
	close();
}

dali02,68,117,5	script	Guide#ra	4_M_RAFLE_GR,{
	mes("[Guide]");
	mes("Oh, we're back here again. I cannot find a way out! We are trapped in this maze!");
	next();
	mes("[Tourist]");
	mes("Is this place the famous Prontera It is dark just like a big city!");
	next();
	mes("[Traveller]");
	mes("I hear a ticking clock. This place must be Geffen!");
	next();
	mes("[Adventurous Rafflesia]");
	mes("No no this has to be Thanatos Tower... I sense dark magic here.");
	close();
}

dali02,65,119,5	script	Tourist#ra	4_M_RAFLE_GR,{
	mes("[Tourist]");
	mes("Is this place the famous Prontera? It is dark just like a big city!");
	next();
	mes("[Adventurous Rafflesia]");
	mes("No no this has to be Thanatos Tower... I sense dark magic here.");
	next();
	mes("[Guide]");
	mes("Oh, we're back here again. I cannot find a way out! We are trapped in this maze!");
	next();
	mes("[Traveller]");
	mes("I hear a ticking clock. This place must be Geffen!");
	close();
}

dali02,69,122,5	script	Traveller#ra	4_M_RAFLE_GR,{
	mes("[Traveller]");
	mes("I hear a ticking clock. This place must be Geffen!");
	next();
	mes("[Guide]");
	mes("Oh, we're back here again. I cannot find a way out! We are trapped in this maze!");
	next();
	mes("[Tourist]");
	mes("Is this place the famous Prontera? It is dark just like a big city!");
	next();
	mes("[Adventurous Rafflesia]");
	mes("No no this has to be Thanatos Tower... I sense dark magic here.");
	close();
}
