beach_dun3,174,142,4	script	The Fishmaster	4_M_TWOLDMAN,{

	if(questprogress(30050) == 1){
		if (catched == 2){
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("Well I hope you're happy with your new fish.");
			close();
		}
		if (!catched){
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("Oh! Did you go to the Undersea tunnel as instructed?");
			next;
			mes("[ ^257995"+strcharinfo(PC_NAME)+"^000000 ]");
			mes("Yeah and there was this strange wall who told me to catch a fish here...");
			next;
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("I'm sure I can assist you in catching fish! I bet you need the rare fish which only resides here?.");
			next;
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("Alright then here we go~");
			mes("Remember fishing is all about patience and timing!.");
			next;
		} else {
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("Would you like to try catching again?");
			next;
			if (select("Sure", "No, I don't have patience.") == 2) {
				close();
			}
		}
		mes("^257995You stand quitely on the shore waiting to see a fish.^000000");
		progressbar "ffffff",10; 
		.@chance = rand(100);
		if (!catched) catched = 1;
		if (.@chance <= 10) {
			next;
			mes("^257995You leaped forward, clutching your hand around a slimy, wriggling fish which tried to get off but you held on tight, not letting it go.^000000");
			getitem Soul_Of_Fish,1;
			next;
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("That's it! That's it! That's the spirit of the fish! Quick put it in this bottle!");
			next;
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("The spirit of fish is a very special fish, it embodies the essence of the fish!.");
			next;
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("Catching one is extremely difficult since spirit of a fish is almost purely made out of water."); 
			mes("You're very lucky my friend.");
			catched = 2;
			close();
		} else {
			switch (rand(2)){
			case 1:
				next;
				mes("^257995You leaped down and tried to catch a fish but as you caught it the fish slipped out of your hands.^000000");
				close();
			case 0:
			case 2:
				next;
				mes("^257995You saw a fish but as you leaped towards it you slipped and hit your head.^000000");
				Hp -= (Hp * .10);
				close();
			}
		}
		close();
	}

	if(questprogress(30049) == 1){
		mes("[ ^ff0000The Fish Master^000000 ]");
		mes("In the Undersea tunnel, you'll find something good there.");
		close();		
	}
	mes("[ ^ff0000The Fish Master^000000 ]");
	mes("HUSH!");
	mes("You'll scare away the fish if you make that kind of ruckus!");
	next;
	mes("[ ^257995"+strcharinfo(PC_NAME)+"^000000 ]");
	mes("But... You don't even have a rod...");
	next;
	mes("[ ^ff0000The Fish Master^000000 ]");
	mes("Pffffff Rods are for beginners!");
	mes("True experts use their bare hands!");
	next;
	mes("[ ^257995"+strcharinfo(PC_NAME)+"^000000 ]");
	mes("... Oooooookay ...");
	next;
	switch(select("Ignore and leave.", "Wow I just saw a fish in there!", "Did you hit your head?", "You are so wise master." )) {
	case 1: // I think I'll be going now...
		mes("[ ^257995"+strcharinfo(PC_NAME)+"^000000 ]");
		mes("I think I'll be going now...");
		next;
		mes("[ ^ff0000The Fish Master^000000 ]");
		mes("Go quitely or you'll scare all fish away.");
		close();
	case 2: // Wow I just saw a fish in there!
		mes("^257995As you say that, the man just jump in the water right at the fish.^000000");
		next;
		mes("[ ^ff0000The Fish Master^000000 ]");
		mes("HIYA!");
		next;
		mes("[ ^ff0000The Fish Master^000000 ]");
		mes("HA! I got it!");
		next;
		mes("^257995He is holding a small fish that looks strangely like a Megalodon.^000000");
		next;
		mes("[ ^ff0000The Fish Master^000000 ]");
		mes("Thank you my friend! I see you have keen eyes for someone as young as yourself.");
		next;
		mes("[ ^ff0000The Fish Master^000000 ]");
		mes("Come join me for feast as we eat this delicious fish!");
		next;
		if (select("Errrr.", "OF COURSE!") == 1) {
			mes("^257995You quitely slip away as the man is savoring his victory.^000000");
			close();
		} else {
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("Come come! Let us eat.");
			next;
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("Ah! That was delicious don't you agree?");
			next;
			mes("[ ^257995"+strcharinfo(PC_NAME)+"^000000 ]");	
			mes("Errmm! yeahhhhhh!");
			mes("Delicious!");
			next;
			mes("[ ^ff0000The Fish Master^000000 ]");	
			mes("You know you're a lot nicer than most people I meet here. No one ever wants to eat the fish I catch with me.  They just tell me that it's disgusting!");
			next;
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("The fools!!");
			mes("In any case, I'll share a little secret with you since you're so nice.");
			next;
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("The Undersea tunnel, on the top left corner, you'll find something good there.");
			next;
			mes("[ ^257995"+strcharinfo(PC_NAME)+"^000000 ]");
			mes("Good?");
			next;
			mes("[ ^ff0000The Fish Master^000000 ]");
			mes("Yup!!!");
			setquest(30049);
			close();
		}
	case 3: // Did you hit your head?
		mes("[ ^ff0000The Fish Master^000000 ]");
		mes("What makes you think that?");
		next;
		mes("^ff0000The man suddenly leaps in the water right where there was a fish.^000000");
		next;
		mes("^ff0000*He caught one!*^000000");
		next;
		mes("[ ^ff0000The Fish Master^000000 ]");
		mes("What are you still looking at?");
		mes("Go away and let me eat my dinner in peace!");
		close();
	case 4: // You are so wise master.
		mes("[ ^ff0000The Fish Master^000000 ]");
		mes("Of course! After all, I am the ^ff0000FISHMASTER^000000!");
		close();
	}

end;
}

iz_dun01,36,272,4	script	Wall	HIDDEN_NPC,{
	disable_items();
	if(questprogress(30050) == 2){
		mes("[ ^ff0000The Wall^000000 ]");
		mes("Enjoy your hat");
		close();		
	}
	if(questprogress(30050) == 1){
		if(countitem(Fish_Tail) > 99 && countitem(Lip_Of_Ancient_Fish) > 49 && countitem(Delicious_Fish) > 24 && countitem(Tooth_Of_Ancient_Fish) > 4 && countitem(Hat_) > 0 && Zeny > 14999 && countitem(Soul_Of_Fish) > 0){
			mes("[ ^ff0000The Wall^000000 ]");
			mes("Enjoy your hat");
			delitem Fish_Tail,100;
			delitem Lip_Of_Ancient_Fish,50;
			delitem Delicious_Fish,25;
			delitem Tooth_Of_Ancient_Fish,5;
			delitem Hat_,1;
			delitem Soul_Of_Fish,1;
			Zeny = Zeny - 15000;  
			getitem Fish_In_Mouth,1;
			completequest(30050);
			close();
		} else {
			mes("[ ^ff0000The Wall^000000 ]");
			mes("There's some stuff i need you to bring me.");
			next;
			mes("[ ^ff0000The Wall^000000 ]");
			mes("^ff0000100x "+getitemname(Fish_Tail)+"^000000 ");
			mes("^ff000050x "+getitemname(Lip_Of_Ancient_Fish)+"^000000 ");
			mes("^ff000025x "+getitemname(Delicious_Fish)+"^000000 ");
			mes("^ff00005x "+getitemname(Tooth_Of_Ancient_Fish)+"^000000 ");
			mes("^ff00001x "+getitemname(Hat_)+"^000000 ");
			mes("^ff000015000 Zeny^000000 ");
			next;
			mes("[ ^ff0000The Wall^000000 ]");
			mes("Oh and one special fish you can only catch in a certain spot inside Comodo caves. There is a man there who may help you acquire one.");
			close();
		}	
	}
	if(questprogress(30049) == 1){	
		if (isequipped(Glasses)){
			mes("^257995With the glasses on you, you can see the scribbled text clearly^000000.");
			next;
			mes("^257995The greatest fish can be received here. If you think you are ready to receive it, you must say so.^000000");
			next;
			mes("[ ^257995"+strcharinfo(PC_NAME)+"^000000 ]");
			mes("Oh god.... More fish ...");
			next;
			if (select("I want it.", "I don't want it.") == 1) {
				mes("[ ^257995"+strcharinfo(PC_NAME)+"^000000 ]");
				mes("Well fine I'll take the fish you offer!.");
				next;
				mes("[ ^ff0000The Wall^000000 ]");
				mes("Excellent! Now I'll need a few things...");
				mes("^ff0000100x "+getitemname(Fish_Tail)+"^000000 ");
				mes("^ff000050x "+getitemname(Lip_Of_Ancient_Fish)+"^000000 ");
				mes("^ff000025x "+getitemname(Delicious_Fish)+"^000000 ");
				mes("^ff00005x "+getitemname(Tooth_Of_Ancient_Fish)+"^000000 ");
				mes("^ff00001x "+getitemname(Hat_)+"^000000 ");
				mes("^ff000015000 Zeny^000000 ");
				next;
				mes("[ ^ff0000The Wall^000000 ]");
				mes("Oh and one special fish you can only catch in a certain spot inside Comodo caves. There is a man there who may help you acquire one.");
				next;
				mes("[ ^257995"+strcharinfo(PC_NAME)+"^000000 ]");
				mes("Whoa Whoa Whoa .... Why does a wall need zeny anyway?");  
				mes("This is strangely suspicious....");
				next;
				mes("[ ^ff0000The Wall^000000 ]");
				mes("Well a wall has to eat too you know!!!");
				next;	
				mes("[ ^257995"+strcharinfo(PC_NAME)+"^000000 ]");
				mes("Riiiiigghhhhht!");
				changequest(30049,30050);
				close();
			} else {
				close();
			}

		} else {
			mes("^257995There is something scribbed in the wall but you can't quite make anything out of it.^000000");
			next;
			mes("Maybe if you had ^ff0000Glasses^000000 you could make something out of it.");
			close();
		}
	}	
end;
}