//===== rAthena Script ======================================= 
//= Ayotaya Town
//===== By: ================================================== 
//= MasterOfMuppets
//===== Current Version: =====================================
//= 1.9
//===== Compatible With: ===================================== 
//= rAthena SVN
//===== Description: ========================================= 
//= [Official Conversion]
//= Ayotaya Town Script
//===== Additional Comments: ================================= 
//= 1.6 Rescripted to Aegis 10.3 standards. [L0ne_W0lf]
//= 1.7 Fixed character's anme bugs [Lupus]
//= 1.8 Moved Alberta NPC to pre-re/re paths. [Euphy]
//= 1.9 Updated Renewal warp coordinates.
//============================================================ 

// Ayothaya Transportation
//============================================================
-	script	::Aibakthing_ayothaya	-1,{
	mes "[]";
	mes "! ! ! ! ܣ";
	mes "ʥֳصĹ磬";
	mes "Ӵ̩Ű!!";
	next;
	switch(select("йذӴ̩ŵ˵:ǰӴ̩:ȡ")) {
	case 1:
		mes "[]";
		mes "һȺӵ,";
		mes "źƽ̤ʵ,";
		mes "Ȼ΢,";
		mes "ǳºûϢ";
		next;
		mes "[]";
		mes "رʳܺó,";
		mes ",Ϻ,Ĵͳʳ";
		mes "'̩ʽBBQ'ŲܱȽϵģ";
		mes "ζζ";
		mes "пȥԳԿ";
		next;
		mes "[]";
		mes "⣬һֲĹ£";
		mes "һֻרŶż";
		mes "ģ";
		mes "ϻħ";
		next;
		mes "[]";
		mes "!!!!";
		mes "˭ղܵģҪĵ";
		mes "!!";
		mes "ҲȥĻ";
		mes "ʱҾͿ!";
		close;
	case 2:
		mes "[]";
		mes "ҪȥƯĹ磬";
		mes "Ӵ̩ŵĻҪ10000 ң";
		mes "!!!!";
		next;
		if (select("׼ˣǳɣ:ȥ...") == 1) {
			if (Zeny > 9999) {
				mes "[]";
			mes "!!!!";
			mes "ҵƯĹ";
			mes "һ°!!";
				close2;
				set zeny,zeny-10000;
				warp "ayothaya",149,71;
				end;
			}
			mes "[]";
			mes "Ҹ߹...";
			mes " 10000 zenyĻҲȥǶ.";
			close;
		}
		mes "[]";
		mes "ÿһλ˶һ";
		mes "ƽƯĵطĻǸط...";
		mes "ҵĹ磬Ӵ̩ ";
		close;
	case 3:
		mes "[]";
		mes "ҪȥƯĹ磬";
		mes "Ӵ̩ŵĻҪ10,000 ң";
		mes "! ! ! !";
		close;
	}
}

ayothaya,152,68,1	script	#ayo2	843,{
	mes "[]";
	mes "!!!!˺öط,";
	mes "ҲӦó˺ö̩ʽBBQ ԰?";
	mes "ôҪȥ?";
	next;
	if (select("Ҫص:ȡ") == 1) {
		mes "[]";
		mes "ʲôʱٻ";
		mes "Ƕģ";
		mes "ԵݵĻҸı飬";
		mes "ټ... ! !";
		close2;
		if (checkre(0))
			warp "alberta",235,45;
		else
			warp "alberta",238,22;

		end;
	}
	mes "[]";
	mes "ѽҪ뿪ƯĹ磬";
	mes "Ӵ̩... Ǻѵһ飬";
	mes "ʹҲܲ뿪ѽ";
	mes "Ĺ֮뿪";
	close;
}

// Generic Ayothaya NPCs
//============================================================ 
ayothaya,189,120,3	script	#Thang	843,{
	mes "[]";
	mes "ǴһŴ";
	mes "Ǿ";
	mes "ܼɻ䲻ȥĳ";
	next;
	mes "[]";
	mes "żкܺǿðռǣ";
	mes "˷Ȱ֮ʶ֮";
	mes "δ˻Ż";
	next;
	mes "[]";
	mes "Ǹǳֲĳ...";
	mes "ʲô?";
	next;
	mes "[]";
	mes ".....ˣҪ";
	mes "ԼĻ";
	mes "ʹðΣȥսҲ";
	close;
}
	
ayothaya,171,152,5	script	Ů#Lalitha	838,{
	set .@sit,rand(1,5);
	if (.@sit > 0 && .@sit < 3) {
		mes "[]";
		mes "!";
		mes "Ҳ";
		mes "ǰ.";
		next;
		mes "[]";
		mes "ҵһμѽ?";
		mes "Ǿ~";
		mes "Ć?";
		mes "ΪҶˣ";
		mes "ָư~";
		next;
		mes "[]";
		mes "..Ǵ~";
		mes "~ҵŮӣ";
		mes "ƽʲôķװ~?";
		mes "лʲôװƷ..";
		emotion e_what;
		next;
		mes "[" +strcharinfo(0)+ "]";
		mes ".........";
		next;
		mes "[]";
		mes "..........";
		emotion e_swt;
		next;
		mes "[]";
		mes "Ǳ߹ҵĸ綼?";
		mes "ʲôеĸ?";
		mes "Ǳߵϲʲô?";
		mes "Һ֪!";
		close;
	}
	else if (.@sit > 2 && .@sit < 6) {
		mes "[]";
		mes "ұ߳";
		mes "Ŵż";
		mes "Ĺǳ";
		mes "Ǹֲܿĵط";
		next;
		mes "[]";
		mes "ȥĻ";
		mes "׼װ";
		next;
		mes "[]";
		mes "...";
		mes "νʿ";
		mes "~~";
		emotion e_lv;
		next;
		mes "["+strcharinfo(0)+"]";
		mes "Don't you mean...";
		mes "Knight in shining armor";
		mes "riding a white horse?";
		next;
		mes "[]";
		mes "...?";
		mes "Oh, well...";
		mes "I'll take them both!";
		mes "~!";
		close;
	}
	mes "[]";
	mes "...?";
	mes "ô?";
	close;
}
	
ayothaya,143,102,5	script	#ayothaya	842,{
	mes "[]";
	mes " ..";
	mes "?";
	mes "ԭ˰";
	mes "ȿȿ..ҪȥŶ?";
	mes "Ҫȥ㳡";
	next;
	mes "[]";
	mes "..ʲôţ";
	mes "˴Ǳߵ㳡";
	mes ",˽ָҮ!";
	mes "˰";
	mes "˵ö";
	next;
	mes "[]";
	mes "ҵֻΪǲ";
	mes "û뵽һϦ¸Ү..";
	mes "......";
	next;
	mes "[]";
	mes "ҵֻΪǲ";
	mes "û뵽һϦ¸Ү..";
	mes "......";
	next;
	mes "[]";
	mes "ιĺ";
	mes "ʰ";
	mes "һҪ֮뿪";
	mes "ȿ..";
	close;
}
	
ayothaya,197,189,5	script	#1ayothaya	841,{
	mes "[]";
	mes "ݣȰ?";
	mes "ҲǴѽ?";
	mes "оÿԽԽ";
	next;
	mes "[]";
	mes "ʱҪСร";
	mes "Ļһ޴";
	mes "...";
	mes "ǳΣգ˸Ͳ";
	mes "ȥ";
	next;
	mes "[]";
	mes "Һϴĳַ";
	mes "ĻܽȥƵ..";
	next;
	mes "[]";
	mes "Ҳ̫";
	mes "ȰòҪ̫Σյĵطף";
	mes "찡";
	close;
}
	
ayothaya,214,142,5	script	#5ayothaya	843,{
	mes "[]";
	mes "ǰӴ̩ŵΪǿǣ";
	mes "ŬĶŴͳ";
	next;
	mes "[]";
	mes "Ҳǿ׳ĻѧһѧӴ̩ŵ";
	mes "ͳհɣ";
	mes "Իа";
	close;
}
	
ayothaya,241,264,5	script	#5ayothaya2	843,{
	mes "[]";
	mes "...";
	mes "ǿ׳";
	mes "ҪҪҽһ?";
	next;
	if (select("ãһ°ɣ:~~") == 1) {
		mes "[]";
		mes "ϣֻǿЦû뵽";
		mes "ұһ...";
		mes "Ҳ񵽣ȥ˵";
		next;
		mes "[]";
		mes "ǿ׳ǿ໥ɵ!";
		emotion e_wah;
		close;
	}
	mes "[]";
	mes "㲻Ҫ¶, ?";
	emotion e_pif;
	close;
}

//============================================================ 
// Old changelog
//============================================================ 
//= 0.1 Added a Sailor NPC to get back to Alberta [ZoDIaC]
//= 0.2 fixed coords, dialogues
//= 0.3 Fixed Warp name, ayotaya doesn't exist, even though iRO 
//=     decided to call it Ayotaya, it really is Ayothaya, like 
//=     that Yuno/Juno thing
//= 0.4 Added the official warp npc for Ayothaya. [MasterOfMuppets]
//= 1.0 Added most of the official npcs. The following quests were added: [MasterOfMuppets]
//=     Tom Yum Goong quest, Holy Threads quest and Holier threads quest.
//= 1.0a some checks, optimization [Lupus]
//= 1.1 Missing delitem fixed by Poki#3 [Lupus]
//= 1.1a Fixed a typo and clarified a comment at the bottom of the script [MasterOfMuppets]
//= 1.2 Fixed exploits [Lupus]
//= 1.3 Removed Duplicates [Silent]
//= 1.4 Moved quests to quests/quests_ayothaya.txt [Evera]
//= 1.5 Moved a few NPC's to quests/quests_ayothaya.txt [MasterOfMuppets]
//============================================================ 
