; The military training quest
;
; Token 126 - You accepted the military training and are trained in the arts of the Samurais.
; Token 127 - You rejected the training (which was very very foolish =P).
; Token 128 - You died during the Samurai training... Play Evergreen and learn there how to fight!	
; We need T128, but it doesn't do something else than telling that the person who died is a weakling.
; [added]
; This token gives some advantages and disadvantages later and causes a small change in the story line.
; People will need to visit Fastom in order to use rebuffs and debuffs, it's fun!
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
;info for Atsu:
;
;SCENE 1100 (Samurai training)
;
;REQUIRED TOKEN TO ENTER - 167
;
;PLACE - Elliar
; ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
; SCENE 1123 (Guardian 1)
;
; REQUIRED TOKEN TO ENTER - none
;
; PLACE - Green Destiny South West Island
;
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


SCENE 1100 	militarytraining, SCENE, "Fastom's Dojo", 0, 0

SET slavaon, #<rating>	
#include banscripts.txt

	THEME 	0
	WEATHER 	0	
	ACTOR 	1, "Fastom", a4, 4, 50, 95

	IF T127, @S5
	IF T128, @S6
	IF T126, @S4
	IF DEAD-T126-T127-T128, @dead2
	IF ALIVE, @S10
	
@S10
	COMPARE #<num.peopleInScene>, "1"
	IF>, @toomanypeople
	1: I see you are new here, %1.
	1: The Emperor mentioned we have a new recruit.
	1: I am Fastom and I train the recruits how to fight.
	HOST_GIVE T198
	SET fan00x, "-990"
	1: Do you wish to be trained in the arts of the Samurai?
	ASK 30.0
	IF YES, @S1
	IF NO, @S2
	GOTO @S10
@S1 
	GIVE T126	
	1: Good, let your training begin.
	FIGHT2 500
	IF DEAD, @dead
	WAIT 5.0
	1: Very good, you killed your first opponent, now kill the others.
	WAIT 4.0
	FIGHT2 523
	IF DEAD, @dead
	WAIT 5.0
	N: You received a %I1, use it wisely!
	HOST_GIVE I1
	WAIT 4.0	
	FIGHT2 524
	IF DEAD, @dead	
	WAIT 5.0
	1: I see that you have killed them all.
	1: I have nothing more to teach you.
	1: Here are some items that you need on your long and harsh journey.
	WAIT 3.0
	HOST_GIVE I202 
	HOST_GIVE I252 
	HOST_GIVE I707 
	HOST_GIVE I802
	HOST_GIVE I902
	HOST_GIVE I951
	1: Here is also a small gift to improve your abilities.
	WAIT 3.0
	N: You received a %I8.
	GIVE I8	
	1: I will also teach you my %S161 attack.
	WAIT 3.0
	GIVE S161
	IF GS, @goldensoul
	1: To make your journey a bit easier I will give you some gold, I hope that you will make good use of it.
	WAIT 3.0
	HOST_GIVE G2500
	1: Always fight with honor and someday you will become a good soldier.
	1: Farewell my student.
	END
	
@goldensoul
	1: To make your journey a bit easier I will give you some gold, I hope that you will make good use of it.
	1: Since you are a golden soul you will receive some more gold then normal souls.
	WAIT 3.0
	HOST_GIVE G3500
	1: The emperor has requested your presence, you should talk to him as soon as possible.
	1: Always fight with honor and someday you will become a good soldier.
	1: Farewell my student.
	END
	
@S2
	H: I don't need your training, I can train perfectly alone.
	1: Don't be foolish, you will NOT get a second chance.
	1: For the last time, do you want to be trained in the arts of the Samurai?
	ASK 30.0
	IF NO @S3
	IF YES @S1
	GOTO @S2
@S3
	GIVE T127
	H: I DON'T want your stupid training okay!?
	WAIT 5.0
	1: ...
	1: You have 5 seconds to leave...
	1: 5...
	WAIT 1.0
	1: 4...
	WAIT 1.0	
	1: 3...
	WAIT 1.0	
	1: 2...
	WAIT 1.0
	1: 1...
	WAIT 1.0
	1: Guards remove this fool out of my sight!
	FIGHT 501, 501
	IF DEAD, @S7

	1: Mm, it seems you're are not as foolish as I thought.
	1: I will kill you myself!
	WAIT 3.0
	SOUND "thunder1.wav"
	TAKE H500
	IF DEAD, @S7
	IF ALIVE, @stillalive
	
@S7
	1: Whahaha!
	1: I hope you have learned from your mistakes.
	1: Now begone!
	END
	
@stillalive
	SOUND growl7
	1: Grrrr.
	1: Leave this place, you are no longer welcome here.
	WAIT 4.0
	GOTO EXIT
	
@S4	
	IF H5|V50,@studentwell
	1: I see my student is doing fine.
	1: Return when you're five hours old or level 50, then I will teach you about rebuffing.
	END
	
@S5
	IF H6|V55, @pissedoff
	1: YOU AGAIN!
	1: Leave this place!
	END
	
@dead
	TAKE T126
	GIVE T128
	1: What the heck?
	1: How could you have died, you %3!
	1: Out of my eyes with you!
	WAIT 3.0
	GOTO EXIT
	
@S6
	IF H7|V55, @pissed
	1: Out of my eyes you weakling!
	END

@dead2
	1: You should visit the well first %2, you look pretty dead...
	1: But since I don't have much to do right now...
	1: I guess I could rez you.
	WAIT 3.0
	SOUND "thunder1.wav"
	GIVE L1
	GIVE H5000
	GIVE M5000
	WAIT 3.0
	GOTO, @S10
@toomanypeople
	1: I'm sorry, but I can only train one student at a time.
	1: Please return later when you are less crowded.
	END
;
; Added later, you first need to visit fastom to learn about rebuffing and debuffing before you can use these spells.
; It's logical, so normall classes will need to train. Special classes are all knowing, so they already know how to use
; these special techniques. 
;
@pissed
	IF H8|V55, @pissed2
	
@pissed3
	IF T178, @learnedwell
	1: Out of my eyes you-...
	H: Hey I think I have heard that enough now.
	H: I'm sorry that I died but I learned a lot and I am a lot stronger now.
	1: Very well, appologies accepted.
	1: Let me teach you how to rebuff.
	GOTO SCENE 1127
	END
	
@learnedwell
	1: You know everything I can teach you about rebuffing.
	1: Return later to learn about debuffing.
	END
	
@pissed2
	IF -T178,@pissed3
	IF T179, @learnedwell2
	1: I see you are old enough now to learn the mysteries of debuffing.
	1: Let our training begin!
	GOTO SCENE 1128
	END
	
@learnedwell2
	1: There is absolutely nothing more I can teach you.
	1: Live long and prosper.
	END
	
@pissedoff
	IF H8|V60,@pissedoff2
		
@pissedoff3
	IF T178,@learnedwell
	1: You again!
	H: Hey, wait!
	H: I have heard that enough now.
	H: I managed to train alone and stay alive, despite that I didn't have your training.
	1: Very well, you would have been a fine student.
	1: I guess you deserved to learn how to rebuff and debuff.
	1: Let our training begin!
	GOTO SCENE 1127	
	END
	
@pissedoff2
	IF -T178,@pissedoff3
	IF T179,@learnedwell2
	1: I see you are old enough now to learn about debuffing.
	1: Let the traning begin!
	GOTO SCENE 1128
	END
	
@studentwell
	IF H4|V50, @studentwell2
@studentwell3	
	IF T178,@learnedwell
	1: I see you have returned to learn more about the Samurai techniques, %1.
	1: I will teach you everything that I know about rebuffing.
	1: Let our training begin!
	GOTO SCENE 1127
	END
	
@studentwell2
	IF -T178,@studentwell3
	IF T179,@learnedwell2
	1: You are old and wise enough now to use debuffing techniques.
	1: Let the training begin!
	GOTO SCENE 1128
	END


SCENE 1127 	militarytraining, CUT, "Rebuff Training", 0, 0

	WAIT 4.0
	N: Fastom trains you for hours and hours in the secrets of rebuffing.
	WAIT 3.0
	N: But since we don't have time for that you only need to wait 10 seconds.
	TAKE T163
	TAKE T164
	TAKE T165
	TAKE T166	
	COUNTDOWN 10
	WAIT 10.0
	HOST_GIVE T178
	HOST_GIVE S20
	HOST_GIVE S21
	HOST_GIVE S22
	HOST_GIVE S23
	HOST_GIVE S24
	GOTO SCENE 1100
	END

	
SCENE 1128 	militarytraining, CUT, "Debuff Training", 0, 0

	WAIT 4.0
	N: Fastom trains you for hours and hours in the secrets of debuffing.
	WAIT 3.0
	N: But since we don't have time for that you only need to wait 20 seconds.
	WAIT 3.0
	N: Yes, that is twice as much as study time as learning buffs, but learning how to debuff is harder!
	TAKE T163
	TAKE T164
	TAKE T165
	TAKE T166	
	COUNTDOWN 20
	WAIT 20.0
	HOST_GIVE T179
	HOST_GIVE S78
	HOST_GIVE S79
	HOST_GIVE S80
	HOST_GIVE S81
	HOST_GIVE S82
	GOTO SCENE 1100
	END






;
; TOKENS
;
; TOKEN 173 - You solved the first riddle and can now acces the first teleport.
; TOKEN 174 - You solved the second riddle and can now acces the second teleport.
; TOKEN 175 - You solved the third riddle and can now acces the third teleport.
; TOKEN 176 - You solved the fourth riddle and can now acces the fourth teleport.
;
;
SCENE 1124 mounts, SCENE, "Guardian One"0,0

	ACTOR 	1, "Guardian One", monster129, 4, 20, 65
	
	1: I am the first guardian of the Green Destiny.
	1: If you want to pass through the first teleport then you will have to solve my riddle.
	1: Do you wish to solve my riddle?
	ASK 30.0
	IF YES, @continue
	1: Too bad, I hoped to meet somebody who was up for a small challenge.
	1: Maybe later.
	END
@continue
	1: Good, I hope you are up for a small challenge.
	1: Here is my riddle:
	1: 


END

; This quest is not needed anymore. Instead I scripted something that fits more in the storyline.
; Couldn't find any decent riddles anyway.





; Comment: Euh... got no inspiration today :-/