//===== eAthena Script ======================================= 
//= Blacksmith Skills Quests
//===== By: ================================================== 
//= Lupus, Reddozen
//===== Current Version: ===================================== 
//= 1.3a
//===== Compatible With: ===================================== 
//= eAthena Revision 3800+
//===== Description: ========================================= 
//= Temp quests for new skills for 2nd classes
//===== Additional Comments: ================================= 
//= 1.0 for fully working skills only [Lupus]
//= 1.1 Added more new skill quests for more classes [Lupus]
//= Somehow eA engine doesn't let you keep learn't skill V_V'
//= 1.2 Added to correct locations, correct NPC's, fixed
//= some of the items required and made them into real
//= quests. [Reddozen] 
//= 1.3 Fixed bugs and minor typos. Optimized [Lupus]
//= 1.3a fixed an item ID typo, thx 2Spiritual Kid
//= 1.3b Splitted into different files [DracoRPG]
//= 1.3c Inverted the weight check for Greed [DracoRPG]
//============================================================


//============================================================
//  - ̰ + Ƶ
//============================================================
//== GOODDAY - GREED SKILL ===================================
geffen.gat,172,52,7	script		826,{
	mes "[]";
	if(BaseJob!=Job_Blacksmith) goto L_nosmith;
	if(getskilllv(1013)) goto L_alreadyhave;
	if(Weight < MaxWeight-5000) goto L_notstrong; // You must carry so much that you cannot add 500 more (weight is x10!)


	mes "㿴ǳǿ׳";
	mes "ܽ~";
	mes "ʦƶһ";
	skill 1013,1,0;
	close;

L_notstrong:
	mes "ǿ׳ЩҰ";
	mes "ĸس500";
	close;

L_nosmith:
	mes "Ǹĳа.";
	mes "ѵ㲻Ϊ?";
	next;
	emotion e_omg;
	mes "[]";
	mes "ʲô";
	mes "㲻룿!";
	close;

L_alreadyhave:
	mes "Ѿ֪Ĵڸ";
	mes "㲻ٻ";
	close;
}

//== AKI - Ƶ ==================================
geffen.gat,178,72,7	script		726,{
	mes "[]";
	if(BaseJob!=Job_Blacksmith) goto L_nosmith;
	if(getskilllv(1012)) goto L_alreadyhave;
	if(getskilllv(1013)<1) goto L_nogreed;
	if(JobLevel<30) goto L_nojob;
	mes "Ҫ㶫";
	mes "ҴҾͽ:";
	mes "2 ";
	mes "8 ú";
	mes "2 ";
	mes "1 ҩˮ";
	mes "500 Zeny";
	next;
	
	mes "[]";
	mes "ҼƷ.";
	next;
	
	if(countitem(999)<2 || countitem(1003)<8 || countitem(613)<2 || countitem(971)<1 || zeny<500) goto L_noitems;//Items: Steel, Coal, Iron_Hammer, Detrimindexta,
	delitem 999, 2;//Items: Steel,
	delitem 1003, 8;//Items: Coal,
	delitem 613, 2;//Items: Iron_Hammer,
	delitem 971, 1;//Items: Detrimindexta,
	set zeny, zeny-500;
	
	mes "[]";
	mes "ܺãѶ";
	mes "ǿʼѧϰ~";
	skill 1012,1,0;
	next;
	
	specialeffect 183;
	mes "ۣѧ죡";
	mes "úʹ¼!";
	close;

L_noitems:
	mes "[]";
	mes "û㹻ĶŶ.";
	mes "Ұ";
	close;
	
L_nosmith:
	mes "Ҫĵĵط.";
	mes "~ȴϲĵĵط~";
	emotion e_laugh;
	close;

L_nogreed:
	mes "㻹ѧʲô";
	mes "վ˵~";
	close;

L_alreadyhave:
	mes "Ѿѧ";
	mes "Ҳѧ~";
	close;
	
L_nojob:
	mes "Ϊ";
	mes "30";
	close;
}
