//===== eAthena Script =======================================
//= Auction system
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
//= 1.3
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: ========================================= 
//= [Aegis Conversion]
//= Auction house releated NPCs, and warps
//===== Additional Comments: =================================
//= 1.0 First version, place holders only. [L0ne_W0lf]
//= 1.1 Moved Morroc Auction NPCs to Morroc Ruins. [L0ne_W0lf]
//= 1.2 Warp fixed. Dialog in Ruins/Lighthalzen changed. [Kisuka]
//= 1.3 Duplicates now spawn from floating NPCs. [L0ne_W0lf]
//============================================================

//  
//============================================================
moc_ruins,78,173,6	script	 Ա#moc	98,{
	callfunc "F_AuctionWarper",1;
}

prontera,218,120,4	script	 Ա#prt	117,{
	callfunc "F_AuctionWarper",2;
}

yuno,129,116,0	script	 Ա#yuno	90,{
	callfunc "F_AuctionWarper",3;
}

lighthalzen,205,169,6	script	 Ա#lhz	833,{
	callfunc "F_AuctionWarper",4;
}

function	script	F_AuctionWarper	{
	mes "[ Ա]";
	mes "Ҫȥ?";
	next;
	if (select("ǵ:") == 1) {
		if (getarg(0) == 1 || getarg(0) == 4) {
			mes "[ Ա]"; 
			mes "̫ˣô"; 
			mes "ף~"; 
		}else{
			mes "[ Ա]";
			mes "ôףһ·˳~";
		}
		close2;
		switch(getarg(0)) {
		case 1:
			warp "auction_01",179,53; end;
		case 2:
			warp "auction_01",21,43; end;
		case 3:
			warp "auction_02",151,23; end;
		case 4:
			warp "auction_02",43,24; end;
		}
	}
	mes "[ Ա]";
	mes "ôһ";
	close;
}

// ʾ
//============================================================
-	script	 ʾ#dum::AuctionSign	-1,{
	mes "[]";
	mes "ƶ Ա";
	close;
}

moc_ruins,76,176,6	duplicate(AuctionSign)	 ʾ#moc	837
prontera,216,120,4	duplicate(AuctionSign)	 ʾ#prt	837
yuno,131,116,0	duplicate(AuctionSign)	 ʾ#yuno	837
lighthalzen,207,169,6	duplicate(AuctionSign)	 ʾ#lhz	837

// ͵
//============================================================
auction_01,180,49,0	warp	auction_entrance_moc	1,1,moc_ruins,78,171
auction_01,22,37,0	warp	auction_entrance_prt	1,1,prontera,214,120
auction_02,151,17,0	warp	auction_enterance_juno	1,1,yuno,132,119
auction_02,43,17,0	warp	auction_enterance_lhz	1,1,lighthalzen,209,169

// NPC
//============================================================
-	script	#dum::AuctionBroker	-1,{
	mes "[ٽ]";
	mes "һν»";
	mes "Ҫ?";
	next;
	if (select("ǵ:") == 1) {
		mes "[ٽ]";
		mes "Ͽ..";
		OpenAuction;
		close;
	}
	mes "[ٽ]";
	mes "ôһڿ";
	close;
}

auction_01,182,68,6	duplicate(AuctionBroker)	#moc1	98
auction_01,182,75,0	duplicate(AuctionBroker)	#moc2	99
auction_01,177,75,2	duplicate(AuctionBroker)	#moc3	98
auction_01,177,68,4	duplicate(AuctionBroker)	#moc4	99
auction_01,21,74,4	duplicate(AuctionBroker)	#prt1	117
auction_01,27,78,4	duplicate(AuctionBroker)	#prt2	116
auction_01,16,78,4	duplicate(AuctionBroker)	#prt3	115
auction_02,158,47,6	duplicate(AuctionBroker)	#yuno1	90
auction_02,145,47,2	duplicate(AuctionBroker)	#yuno2	90
auction_02,151,54,0	duplicate(AuctionBroker)	#yuno3	90
auction_02,152,41,4	duplicate(AuctionBroker)	#yuno4	90
auction_02,57,46,2	duplicate(AuctionBroker)	#lhz1	874
auction_02,31,46,6	duplicate(AuctionBroker)	#lhz2	874
auction_02,43,65,4	duplicate(AuctionBroker)	#lhz3	833
