//===== rAthena Script ======================================= 
//= Louyang City NPCs 
//===== By: ================================================== 
//= Vidar (1.0)
//= Mass Zero (1.1)
//= Dino9021, roughly translated by Celest (1.2)
//= Mass Zero (1.3)
//= MasterOfMuppets (2.0)
//= rAthena Dev Team
//===== Current Version: ===================================== 
//= 3.0
//===== Compatible With: ===================================== 
//= rAthena SVN
//===== Description: ========================================= 
//= [Official Conversion]
//= Louyang Town Script
//===== Additional Comments: ================================= 
//= 2.9 Rescripted to Aegis 10.3 Standards. [L0ne_W0lf]
//= 3.0 Moved Alberta NPC to pre-re/re paths. [Euphy]
//============================================================

// Louyang Transportation
//============================================================
-	script	::Girl_louyang	-1,{
	mes "[]";
	mes "~";
	mes "~";
	mes "ҪȥҰӪ~";
	mes "~";
	next;
	switch(select(".:ȥ.:ȡ.")) {
	case 1:
		mes "[]";
		mes ", , Ȥ?";
		mes "Թ۹˵, Ǹѵĵط.";
		next;
		mes "[]";
		mes "һܳʷ, кܶڴ淨ʦսʿĹ.";
		mes "Ҳд˵кܶε.";
		next;
		mes "[]";
		mes "кܶҩ, ʱյĹ,";
		mes "ʦ!";
		next;
		mes "[]";
		mes "ʱ춼ѧ. Ǻ, ʵҺǿ׳!";
		next;
		mes "[]";
		mes "ȥĻ, ͺ˵.";
		mes "֧һЩǮҾͿ԰˳~";
		close;
	case 2:
		mes "[]";
		mes "ϾҪȥ.";
		mes "һεķΪ 10,000 Zeny.";
		next;
		mes "[]";
		mes "׼Ī?";
		next;
		if (select("ǵģ׼ˣ:û.") == 1) {
			if (Zeny > 9999) {
				mes "[]";
				mes "~";
				mes "!";
				mes "ף!";
				close2;
				set zeny,zeny-10000;
				warp "lou_fild01",190,101;
				end;
			}
			mes "[]";
			mes "...";
			mes "òô 10,000 Zeny...";
			mes "ȥõǮ˵!";
			close;
		}
		mes "[]";
		mes "Ŷ...";
		mes "ʧ.";
		mes "ô, ٻῩ!";
		close;
	case 3:
		mes "[]";
		mes "Ŷ...";
		mes "ٻῩ!";
		close;
	}
}

lou_fild01,190,100,7	script	#1lou	815,{
	mes "[]";
	mes "Ҫذ?";
	next;
	if (select("ذ.:ȡ.") == 1) {
		mes "[]";
		mes "ϣ´ټ!";
		mes "( ^_^ )/~~ݰ!";
		close2;
		if (checkre(0))
			warp "alberta",236,40;
		else
			warp "alberta",235,45;
		end;
	}
	mes "[]";
	mes "ϲطĻ, һ, Կǵĳʳ, ķ羰!";
	next;
	if (Sex) {
		mes "[]";
		mes ", ˵羰...";
		mes "˵Щ!";
		mes "~";
	}
	else {
		mes "[]";
		mes "˧~";
	}
	close;
}

// Generic Louyang NPCs
//============================================================
louyang,297,167,2	script	ⷢŮ#lou	815,{
	if (!Sex) {
		mes "[]";
		mes "Ů˶Ů. ҲŮ.";
		next;
		mes "[]";
		mes "в˿, ԰ûŮԸ밳.";
		emotion e_dots;
		close;
	}
	mes "[]";
	mes "...";
	next;
	mes "[]";
	mes "...";
	mes "......";
	next;
	mes "[]";
	mes "æ, һ˴һ.";
	close;
}

louyang,274,136,4	script	ȥ#lou	819,{
	mes "[]";
	mes "ϰ 'ӥצ.' Ҫȭ, Ҫѧȥ̬.";
	next;
	mes "[]";
	mes "ÿһ书Ҫȥ־.";
	mes "Ϊʶٿص.";
	mes "㹻ǿ, һؽڲƿ!";
	next;
	mes "[]";
	mes "ѧϰĻ,";
	mes "äĿͶڻѵ֮ǰҪһЩص֪ʶ.";
	next;
	mes "[]";
	mes "ϰ, ֪.";
	mes "ƿ֮ǰ, ҪȴﵽΪľ.";
	close;
}

louyang,276,136,4	script	ȭʦ#lou	819,{
	mes "[Ф]";
	mes "...";
	mes " 'ӥצ!'";
	next;
	mes "[Ф]";
	mes "⹦֮ǰһ˲, ֮ǰҪʱѧϰʷ, ͨڤҵľ.";
	next;
	mes "[Ф]";
	mes "Ȼ, ҵĵʦŻӥצؼ. ˵, Ѿ˵ʮ.";
	next;
	mes "[Ф]";
	mes "ܽ...ȻԤĴԲʮ.";
	mes ", ƴ˵ʱ...";
	next;
	mes "[Ф]";
	mes ", ֻһʮȥ, , һǳϣ...";
	next;
	mes "[Ф]";
	mes "ѧϰʱ,ҪźܿĿԾж... ǲܵ! ˵, ôҲΥ׷ĳԼı...";
	close;
}

louyang,276,133,0	script	ѵ#1lou::LouTrainee	819,{
	mes "[ѵ]";
	mes "ѽѽѽѽ~!";
	mes "~~!!";
	mes "~.";
	close;
}

louyang,276,131,0	script	ѵ#2lou	819,{
	mes "[ѵ]";
	mes "߾ ߾ ߾!";
	mes "~~!!";
	mes "~";
	close;
}

louyang,276,129,0	script	ѵ#3lou	819,{
	mes "[ѵ]";
	mes "!";
	mes "ѽ!!";
	close;
}

louyang,274,133,0	script	ѵ#4lou	819,{
	mes "[ѵ]";
	mes "߾!";
	mes "߾!";
	mes "--!";
	close;
}

louyang,274,131,0	script	ѵ#5lou	819,{
	mes "[ѵ]";
	mes "ѽ ѽ ѽ!";
	mes "~~!!";
	mes "!";
	close;
}

louyang,274,129,0	script	ѵ#6lou	819,{
	mes "[ѵ]";
	mes "ѽѽѽ~!";
	mes "߾~~!!";
	mes "~";
	close;
}

louyang,278,133,0	duplicate(LouTrainee)	Trainee#7lou	819
louyang,278,131,0	duplicate(LouTrainee)	Trainee#8lou	819
louyang,278,129,0	duplicate(LouTrainee)	Trainee#9lou	819
louyang,272,133,0	duplicate(LouTrainee)	Trainee#10lou	819
louyang,272,131,0	duplicate(LouTrainee)	Trainee#11lou	819
louyang,272,129,0	duplicate(LouTrainee)	Trainee#12lou	819

// Louyang Viewing Tower
//============================================================
lou_in01,25,23,5	script	ܺŮʿ#lo	817,{
	mes "[]";
	mes "ӭ.";
	next;
	mes "[]";
	mes "ͨ۹ĵ.";
	mes "ֻҪ֧ķ, ͿʹǰȫٵĴͷ. Ҫһ?";
	next;
	switch(select("ϸ.:.:´ΰ.")) {
	case 1:
		mes "[]";
		mes "ο˶֮, ۹ڽ, ο;Ϳ.";
		next;
		mes "[]";
		mes "Ϊĵ,";
		mes "ҪĻ, ο˵.";
		next;
		mes "[]";
		mes "ĵȥͿԵ۹. ȫֿ, һֻҪ 500 Zeny.";
		close;
	case 2:
		if (Zeny < 500) {
			mes "[]";
			mes "Ǹ, ϵ Zeny . ´. ϣ߹.";
			close;
		}
		mes "[]";
		mes "ллݹ.";
		mes "ǻŬõ. ӭ´.";
		next;
		set zeny,zeny-500;
		warp "lou_in01",17,19;
		end;
	case 3:
		mes "[]";
		mes "´.";
		mes "ף߹.";
		close;
	}
}

louyang,84,254,0	script	#lou	111,{
	mes "^3355FFн.";
	mes "ҪҪʹ?^000000";
	next;
	if (select("ʹ.:.") == 1) {
		if (rand(1,100) == 34) {
			percentheal -99,0;
			warp "louyang",86,269;
			mapannounce "louyang",""+strnpcinfo(0)+" : ,ҵ~~!!!!",bc_map;
		}
		else {
			warp "lou_in01",10,18;
		}
		end;
	}
	close;
}

//============================================================ 
// Old changelog
//============================================================ 
//= Originally made for Vidar
//= 1.2 - Added official warp NPC's
//= 1.3 - Fixed gramatical errors. (Like wtf's with the weird
//	  texts celest? xD)
//= 2.0 - Completely rewrote the current scripts based on iRO.
//        Added the 'Shouting Quest' and the 'Medicine Quest'
//= 2.1 Optimized, made quest vars unique [Lupus]
//= 2.1a minor fix, 2.1b Fixed Typos [Nexon]
//= 2.2 Fixed exploits [Lupus]
//= 2.2a Updated the color codes a little and fixed the shouting quest
//=	 to broadcast green text.
//= 2.2b A small fix to the shout quest npc in louyang field not warping you
//=	 back up to the tower if you died or teleported out of there. [MasterOfMuppets]
//= 2.3 A small fix, the code is so messy I can't believe I scripted it >.< [MasterOfMuppets]
//= 2.4 Implemented a few more npcs, thanks to Prometheus for them. [MasterOfMuppets]
//= 2.5 Implemented the Poison King quest, beware of potential bugs. [MasterOfMuppets]
//= 2.6 Removed Duplicates [Silent]
//= 2.6a Updated a few names with new item_db.txt names [Evera]
//= 2.7 Split quests to quests/quests_louyang.txt [Evera]
//= 2.7a Minor optimizations before Louyang quests [Lupus]
//= 2.7b Moved guides to the Guides folder. 2.7 more typos [Lupus]
//= 2.8 Moved some quest-related NPCs to proper file. [SinSloth]
//= 2.9 Rescripted to Aegis 10.3 Standards. [L0ne_W0lf]
//============================================================
