//================= Hercules Script =======================================
//=       _   _                     _
//=      | | | |                   | |
//=      | |_| | ___ _ __ ___ _   _| | ___  ___
//=      |  _  |/ _ \ '__/ __| | | | |/ _ \/ __|
//=      | | | |  __/ | | (__| |_| | |  __/\__ \
//=      \_| |_/\___|_|  \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2016  Hercules Dev Team
//= Copyright (C)  Ridley
//= Copyright (C)  Euphy
//= Copyright (C)  Streusel
//= Copyright (C)  Masao
//= Copyright (C)  Justin84
//= Copyright (C)  Nana
//= Copyright (C)  Athena
//=
//= 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/>.
//=========================================================================
//= Izlude Warp Script (Renewal)
//================= Description ===========================================
//= Warp Points for Izlude
//================= Current Version =======================================
//= 1.8
//=========================================================================

//= Izlude City ==============================================
prt_fild08,371,212,0	warp	prtf005	3,3,izlude,24,98
izlude,20,98,0	warp	iz001	3,3,prt_fild08,367,212
izlude_in,116,46,0	warp	iz02-1	3,2,izlude,128,98
izlude,110,182,0	warp	iz01	2,2,izlude_in,65,87
izlude_in,65,84,0	warp	iz01-1	2,2,izlude,112,179
izlude,52,172,0	warp	iz04	2,2,izlude_in,74,161
izlude_in,74,158,0	warp	iz04-1	3,2,izlude,52,168
izlude_in,43,169,0	warp	w219	2,3,izlude_in,63,169
izlude_in,87,169,0	warp	iz05-1	2,3,izlude_in,111,169
izlude_in,108,169,0	warp	iz05	2,3,izlude_in,84,169
izlude_in,148,127,0	warp	iz03-1	2,5,izlude,210,161
izlude_in,172,139,0	warp	iz07	3,2,izlude_in,172,161
izlude_in,172,158,0	warp	iz07-1	3,2,izlude_in,172,136
izlude_in,172,116,0	warp	iz06-1	3,2,izlude_in,172,94
izlude_in,171,97,0	warp	iz06	3,2,izlude_in,172,119

//= Izlude & Prontera Field 8 Duplicates =====================
prt_fild08a,371,212,0	warp	prtf005_a	3,3,izlude_a,24,98
prt_fild08b,371,212,0	warp	prtf005_b	3,3,izlude_b,24,98
prt_fild08c,371,212,0	warp	prtf005_c	3,3,izlude_c,24,98
prt_fild08d,371,212,0	warp	prtf005_d	3,3,izlude_d,24,98
izlude_a,20,98,0	warp	iz001_a	3,3,prt_fild08a,367,212
izlude_b,20,98,0	warp	iz001_b	3,3,prt_fild08b,367,212
izlude_c,20,98,0	warp	iz001_c	3,3,prt_fild08c,367,212
izlude_d,20,98,0	warp	iz001_d	3,3,prt_fild08d,367,212
izlude_a,110,182,0	warp	iz01_a	2,2,izlude_in,65,87
izlude_b,110,182,0	warp	iz01_b	2,2,izlude_in,65,87
izlude_c,110,182,0	warp	iz01_c	2,2,izlude_in,65,87
izlude_d,110,182,0	warp	iz01_d	2,2,izlude_in,65,87
izlude_a,52,172,0	warp	iz04_a	2,2,izlude_in,74,161
izlude_b,52,172,0	warp	iz04_b	2,2,izlude_in,74,161
izlude_c,52,172,0	warp	iz04_c	2,2,izlude_in,74,161
izlude_d,52,172,0	warp	iz04_d	2,2,izlude_in,74,161

//= iz_int(Intro) & int_land(Secluded Island) ================
iz_int,27,30,0	script	noviship#room1-1	WARPNPC,2,2,{
	end;

OnTouch:
	warp(strnpcinfo(NPC_MAP), 51, 30);
	end;

OnInit:
	questinfo(QTYPE_QUEST, 1);
	setquestinfo(QINFO_JOB, Job_Novice);
	setquestinfo(QINFO_QUEST, 21001, 1);
	end;
}

iz_int,47,30,3	script	noviship#room1-2	WARPNPC,2,2,{
	end;

OnTouch:
	@display = 0;
	warp(strnpcinfo(NPC_MAP), 22, 30);
	end;
}

iz_int,56,15,0	script	noviship	WARPNPC,2,2,{
	end;

OnTouch:
	savepoint("int_land"+strnpcinfo(NPC_NAME_HIDDEN), 77, 101);
	warp("int_land"+strnpcinfo(NPC_NAME_HIDDEN), 85, 107);
	end;
}

int_land,49,57,0	script	noviship#izlude	WARPNPC,2,2,{
	end;

OnTouch:
	mes("^4d4dffOnce you left this island there is no way back.");
	mes("Are you sure you want to go directly to Izlude?^000000");
	next();
	mes("^4d4dffIf you do, the quest got deleted from your Quest Log.^000000");
	next();
	if (select("Do not go to Izlude yet", "Sail to Izlude!") == 1) {
		mes("[Sailor]");
		mes("You want to stay here longer?");
		mes("Good, then I wait until you're ready~");
		close();
	}
	mes("[Sailor]");
	mes("Lets head toward Izlude!");
	close2();
	if (questprogress(21001))
		erasequest(21001);
	if (questprogress(21002))
		erasequest(21002);

	.@map$ = "izlude";
	if (strnpcinfo(NPC_NAME_HIDDEN) != "izlude")
		.@map$ = .@map$ + strnpcinfo(NPC_NAME_HIDDEN);

	warp(.@map$, 196, 209);
	end;
}

//= iz_int(Intro) & int_land(Secluded Island) Duplicates =====
iz_int01,27,30,0	duplicate(noviship#room1-1)	noviship#room1-1a	WARPNPC,2,2
iz_int02,27,30,0	duplicate(noviship#room1-1)	noviship#room1-1b	WARPNPC,2,2
iz_int03,27,30,0	duplicate(noviship#room1-1)	noviship#room1-1c	WARPNPC,2,2
iz_int04,27,30,0	duplicate(noviship#room1-1)	noviship#room1-1d	WARPNPC,2,2
iz_int01,47,30,0	duplicate(noviship#room1-2)	noviship#room1-2a	WARPNPC,2,2
iz_int02,47,30,0	duplicate(noviship#room1-2)	noviship#room1-2b	WARPNPC,2,2
iz_int03,47,30,0	duplicate(noviship#room1-2)	noviship#room1-2c	WARPNPC,2,2
iz_int04,47,30,0	duplicate(noviship#room1-2)	noviship#room1-2d	WARPNPC,2,2
iz_int01,56,15,0	duplicate(noviship)	noviship#01	WARPNPC,2,2
iz_int02,56,15,0	duplicate(noviship)	noviship#02	WARPNPC,2,2
iz_int03,56,15,0	duplicate(noviship)	noviship#03	WARPNPC,2,2
iz_int04,56,15,0	duplicate(noviship)	noviship#04	WARPNPC,2,2
int_land01,49,57,0	duplicate(noviship#izlude)	noviship#_a	WARPNPC,2,2
int_land02,49,57,0	duplicate(noviship#izlude)	noviship#_b	WARPNPC,2,2
int_land03,49,57,0	duplicate(noviship#izlude)	noviship#_c	WARPNPC,2,2
int_land04,49,57,0	duplicate(noviship#izlude)	noviship#_d	WARPNPC,2,2

//= Izlude Academy ===========================================
izlude,125,257,0	warp	#to_ac01	2,2,iz_ac01,99,29
izlude,130,257,0	warp	#to_ac02	2,2,iz_ac01,99,29
iz_ac01,100,24,0	warp	#to_ac01-1	2,2,izlude,127,253
iz_ac01,78,25,0	warp	#to_ac2f01	2,2,iz_ac02,104,27
iz_ac01,122,25,0	warp	#to_ac2f02	2,2,iz_ac02,104,27
iz_ac02,94,27,0	warp	#to_ac1f01	2,2,iz_ac01,78,28
iz_ac02,113,27,0	warp	#to_ac1f02	2,2,iz_ac01,122,28
new_1-3,96,176,0	warp	#to_ac01-2	1,1,iz_ac01,49,73

//= Izlude Academy Duplicates ================================
izlude_a,125,257,0	warp	#to_ac01_a	2,2,iz_ac01_a,99,29
izlude_b,125,257,0	warp	#to_bc01_b	2,2,iz_ac01_b,99,29
izlude_c,125,257,0	warp	#to_cc01_c	2,2,iz_ac01_c,99,29
izlude_d,125,257,0	warp	#to_dc01_d	2,2,iz_ac01_d,99,29
izlude_a,130,257,0	warp	#to_ac02_a	2,2,iz_ac01_a,99,29
izlude_b,130,257,0	warp	#to_bc02_b	2,2,iz_ac01_b,99,29
izlude_c,130,257,0	warp	#to_cc02_c	2,2,iz_ac01_c,99,29
izlude_d,130,257,0	warp	#to_dc02_d	2,2,iz_ac01_d,99,29
iz_ac01_a,100,24,0	warp	#to_ac01-1_a	2,2,izlude_a,127,253
iz_ac01_b,100,24,0	warp	#to_bc01-1_b	2,2,izlude_b,127,253
iz_ac01_c,100,24,0	warp	#to_cc01-1_c	2,2,izlude_c,127,253
iz_ac01_d,100,24,0	warp	#to_dc01-1_d	2,2,izlude_d,127,253
iz_ac01_a,78,25,0	warp	#to_ac2f01_a	2,2,iz_ac02_a,104,27
iz_ac01_b,78,25,0	warp	#to_bc2f01_b	2,2,iz_ac02_b,104,27
iz_ac01_c,78,25,0	warp	#to_cc2f01_c	2,2,iz_ac02_c,104,27
iz_ac01_d,78,25,0	warp	#to_dc2f01_d	2,2,iz_ac02_d,104,27
iz_ac01_a,122,25,0	warp	#to_ac2f02_a	2,2,iz_ac02_a,104,27
iz_ac01_b,122,25,0	warp	#to_bc2f02_b	2,2,iz_ac02_b,104,27
iz_ac01_c,122,25,0	warp	#to_cc2f02_c	2,2,iz_ac02_c,104,27
iz_ac01_d,122,25,0	warp	#to_dc2f02_d	2,2,iz_ac02_d,104,27
iz_ac02_a,94,27,0	warp	#to_ac1f01_a	2,2,iz_ac01_a,78,28
iz_ac02_b,94,27,0	warp	#to_bc1f01_b	2,2,iz_ac01_b,78,28
iz_ac02_c,94,27,0	warp	#to_cc1f01_c	2,2,iz_ac01_c,78,28
iz_ac02_d,94,27,0	warp	#to_dc1f01_d	2,2,iz_ac01_d,78,28
iz_ac02_a,113,27,0	warp	#to_ac1f02_a	2,2,iz_ac01_a,122,28
iz_ac02_b,113,27,0	warp	#to_bc1f02_b	2,2,iz_ac01_b,122,28
iz_ac02_c,113,27,0	warp	#to_cc1f02_c	2,2,iz_ac01_c,122,28
iz_ac02_d,113,27,0	warp	#to_dc1f02_d	2,2,iz_ac01_d,122,28
