; ===================================
; QGO Market Def NPC File : 9Equ-Q016
; Andy (female!)
; Quest = 8Koai-Jin (Secret Store)
; -----------------------------------
; Name: Andy
; Job:  Craftsmistress
; Map No: Q016
; Pos X   14
; Pos Y   21
; File name: 9Equ-Q016.txt
; Comment: 8Koai-Jin - the Secret Store
; ----------------------------------------------------------------------
; QUEST INFO:
; QUEST 02 8KoaiJin (Secret Store)
; ----------------------------------------------------------------------
; Flags Affected by this Trader File
; [317] Set by Andy when an item has been crafted for the player.
;		** Constant flag - player never gets anything again from NPC
;------------------------------------------------------------------------------
[@main]
#IF
#ACT
	goto @QUEST


; -----------------------------------
[@QUEST]
#IF
	check [317] 1
#ACT
	goto @Q317
	break

#IF
#ACT
	mov p1 0
	mov p2 0
	mov p3 0
	mov p4 0
	goto @Q316
	break


; -----------------------------------
[@Q316]
#IF
#SAY
		;   ,  ׳   . \
		;  ⿡ 鼭  ǵ  ֽϴ. \
		; ǵ  󿡼 󸶳 ϴ  𸣰. \
		;  ǵ鿡  ڽŰ  ֽϴ. \
		; ǵ   ðڽϱ?? \ \
;-------------NEW TEXT-------------------
So, you have seen Jonathan? I hope he is well, we shared some\
pleasant times together... but he was upset because I love my\
work more than I could ever love a man. He has probably told you\
that I am a craftsperson. I make special items, but I do not stock\
them; I will make them to your specifications if you have the raw\
materials. I take pride in my crafting; would you like me to tell\
you about what I can do?\\
;-----------END NEW TEXT-----------------
		;ѹ  ⳪ <Ѵ/@Q316_1> \
		;Ⱥ </@Q316_2>
<Tell me/@Q316_1>   <No thank you/@Q316_2>


; -----------------------------------
[@Q316_2]
#IF
#SAY
		;ȺŴ ̰ǰ? ׷.. Ⱥ , ׷ٸ ư... \ \
;-------------NEW TEXT-------------------
Suit yourself, I have better things to do with my time\
than to stand here indulging in idle chatter with you!\\
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Goodbye/@exit>



; -----------------------------------
[@Q316_1]
#IF
	checkjob warrior
#ACT
	goto @warr
	break
#IF 
	checkjob wizard
#ACT
	goto @wiza
	break
#IF
	checkjob taoist
#ACT
	goto @taoi
	break


; -----------------------------------
[@warr]
#IF
#SAY
		;  ִ   ְڽϴ.   \
;-------------NEW TEXT-------------------
Let me tell you that the items that I can make for warriors\
are a Great Axe (using 1 Gold Bar and 5 Gold Ores of purity\
13 or more) or I can make a Benediction Oil, from 5 medium\
Sun Potions and 500,000 Gold.\
Think about it and tell me what you want!\\
;-----------END NEW TEXT-----------------
		;   (ݱ 1, 13̻ ݱ 5)   <ŹѴ/@Q316_1_1> \
		;ູǱ⸧ ( 50,ȭ() 5)      <ŹѴ/@Q316_1_4> \
		;<׸д/@exit> 
<Great Axe/@Q316_1_1>\
<Benediction Oil/@Q316_1_4>\
<Cancel/@exit>

; ###################################
; ## --------- QGO --------------  ##
; ## THESE ARE IN THE WRONG PLACE  ##
; ## HAVE MOVED THEM TO POINT WHEN ##
; ## ITEMS ARE GIVEN TO PLAYER     ##
; ###################################
;#ACT
;	SET [317] 1



; -----------------------------------
[@wiza]
#IF
#SAY
		;  ִ   ְڽϴ.   \ 
;-------------NEW TEXT-------------------
Let me tell you that the items that I can make for wizards\
are a Mage Staff (using 1 Gold Bar and 3 Gold Ores of purity\
13 or more) or I can make a Benediction Oil, from 5 medium Sun\
Potions and 500,000 Gold.\
Think about it and tell me what you want!\\
;-----------END NEW TEXT-----------------
<Mage Staff/@Q316_1_3>\
<Benediction Oil/@Q316_1_4>\
<Cancel/@exit>

;#ACT
;	SET [317] 1


; -----------------------------------
[@taoi]
#IF
#SAY
;-------------NEW TEXT-------------------
Let me tell you that the items that I can make for taoists\
are a Serpent Sword (using 1 Gold Bar and 4 Gold Ores of purity\
13 or more) or I can make a Benediction Oil, from 5 medium Sun\
Potions and 500,000 Gold.\
Think about it and tell me what you want!\\
;-----------END NEW TEXT-----------------
<Serpent Sword/@Q316_1_2>\
<Benediction Oil/@Q316_1_4>\
<Cancel/@exit>

;#ACT
;	SET [317] 1


; -----------------------------------
[@Q316_1_1]
#IF
	equal p1 1
#ACT
	goto @Nopay1
#ELSEACT
	goto @Q316_1_1_1


; -----------------------------------
[@Nopay1]
#IF
#SAY
		;˼ մϴ. δ 1   ϴ. \ \
;-------------NEW TEXT-------------------
I'm sorry but I will only craft one Great Axe for you.\\
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Close/@exit>


; -----------------------------------
[@Q316_1_1_1]
#IF
	checkitem GoldBar 1
	checkitem GoldOre 5
	checkduraeva GoldOre 13
#ACT
	take GoldOre 5
	take GoldBar 1
#SAY
		;θ  ڴ ̰ǰ?? ׷  ٸ. \ \
;-------------NEW TEXT-------------------
So you want me to craft you a Great Axe?\
Then you must wait a while before it is ready!\\ 
;-----------END NEW TEXT-----------------
		;<  /@Q316_1_1_1_1>
<Continue/@Q316_1_1_1_1>

#ELSESAY
		; θ  ؼ, Ʊ  ᰡ ʿմϴ. \
		; Ḧ  ־  ִ , \
		;   ʰڽϱ? \ \
;-------------NEW TEXT-------------------
To make a Great Axe for you, I need those raw materials that\
I told you about. Once you bring me those, I can then craft\
it for you; without them I can do nothing for you.\\
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Close/@exit>



; -----------------------------------
; ###########################################
; ## -------------- QGO -----------------  ##
; ## FLAG 317 SET HERE WHEN ITEM IS GIVEN  ##
; ###########################################
[@Q316_1_1_1_1]
#IF
#ACT
	set [317] 1
	mov p1 1
	give GreatAxe 1
#SAY
		;  ֽϴ.  . \ \
;-------------NEW TEXT-------------------
Here is your new weapon. Use it well, my friend!\\
;-----------END NEW TEXT-----------------
		;<  /@exit> 
<Close/@exit>


; -----------------------------------
[@Q316_1_2]
#IF
	equal p2 1
#ACT
	goto @Nopay2
#ELSEACT
	goto @Q316_1_2_1

[@Nopay2]
#IF
#SAY
		;˼ մϴ. ˴ 1   ϴ. \ \
;-------------NEW TEXT-------------------
I'm sorry but I will only craft one Serpent Sword for you.\\ 
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Close/@exit>

; -----------------------------------
[@Q316_1_2_1]
#IF
	checkitem GoldBar 1
	checkitem GoldOre 4
	checkduraeva GoldOre 13
#ACT
	take GoldOre 4
	take GoldBar 1
#SAY
		;˸  ڴ ̰ǰ?? ׷  ٸ. \ \
;-------------NEW TEXT-------------------
So you want me to craft you a Serpent Sword?\
Then you must wait a while before it is ready!\\ 
;-----------END NEW TEXT-----------------
		;<  /@Q316_1_2_1_1>
<Continue/@Q316_1_2_1_1>

#ELSESAY
		;   ؼ, Ʊ  ᰡ ʿմϴ. \
		; Ḧ  ־  ִ ,\
		;   ʰڽϱ? \ \
;-------------NEW TEXT-------------------
To make a Serpent Sword for you, I need those raw materials\
that I told you about. Once you bring me those, I can then\
craft it for you; without them I can do nothing for you.\\
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Close/@exit>

; -----------------------------------
[@Q316_1_2_1_1]
#IF
#ACT
	set [317] 1
	mov p2 1
	give SerpentSword 1
#SAY
		;  ֽϴ.  . \ \
;-------------NEW TEXT-------------------
Here is your new weapon. Use it well, my friend!\\
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Close/@exit>


; -----------------------------------
[@Q316_1_3]
#IF
	equal p3 1
#ACT
	goto @Nopay3
#ELSEACT
	goto @Q316_1_3_1

; -----------------------------------
[@Nopay3]
#IF
#SAY
		;˼ մϴ. û 1   ϴ. \ \
;-------------NEW TEXT-------------------
I'm sorry but I will only craft one Mage Staff for you.\\ 
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Close/@exit>

; -----------------------------------
[@Q316_1_3_1]
#IF
	checkitem GoldOre 3
	checkitem GoldBar 1
	checkitem GoldOre 13
#ACT
	take GoldBar 1
	take GoldOre 3
#SAY
		;û带  ڴ ̰ǰ?? ׷  ٸ. \ \
;-------------NEW TEXT-------------------
So you want me to craft you a Mage Staff?\
Then you must wait a while before it is ready!\\ 
;-----------END NEW TEXT-----------------
		;<  /@Q316_1_3_1_1>
<Continue/@Q316_1_3_1_1>

#ELSESAY
		;   ؼ, Ʊ  ᰡ ʿմϴ. \
		; Ḧ  ־  ִ , \
		;   ʰڽϱ? \ \
;-------------NEW TEXT-------------------
To make a Mage Staff for you, I need those raw materials\
that I told you about. Once you bring me those, I can then\
craft it for you; without them I can do nothing for you.\\
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Close/@exit>


; -----------------------------------
[@Q316_1_3_1_1]
#IF
#ACT
	set [317] 1
	mov p3 1
	give MageStaff 1
#SAY
		;  ֽϴ.  . \ \
;-------------NEW TEXT-------------------
Here is your new weapon. Use it well, my friend!\\
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Close/@exit>


; -----------------------------------
[@Q316_1_4]
#IF
	equal p4 5
#ACT
	goto @Nopay4
#ELSEACT
	goto @Q316_1_4_1


; -----------------------------------
[@Nopay4]
#IF
#SAY
		;˼ մϴ. ູǱ⸧ 5   ϴ. \ \
;-------------NEW TEXT-------------------
I'm sorry but I will make no more than\
five Benediction Oils for you.\\
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Close/@exit>


; -----------------------------------
[@Q316_1_4_1]
#IF
	checkgold 500000
	checkitem Sunpotion(M) 5
#ACT
	take Gold 500000
	take Sunpotion(m) 5 
#SAY
		;ູ ⸧  ڴ ̰ǰ?? ׷  ٸ. \ \
;-------------NEW TEXT-------------------
So you want me to make you a Benediction Oil?\
Then you must wait a while before it is ready!\\ 
;-----------END NEW TEXT-----------------
		;<  /@Q316_1_4_1_1>
<Continue/@Q316_1_4_1_1>

#ELSESAY
		; ູ ⸧  ؼ, Ʊ  ᰡ ʿմϴ. \
		; Ḧ  ־  ִ ,\
		;   ʰڽϱ? \ \
;-------------NEW TEXT-------------------
To make a Benediction Oil for you, I need those raw materials\
that I told you about. Once you bring me those, I can then\
craft it for you; without them I can do nothing for you.\\
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Close/@exit>


; -----------------------------------
[@Q316_1_4_1_1]
#IF
#ACT
	set [317] 1
	inc p4 1
	give BenedictionOil 1
#SAY
		;  ֽϴ.  . \ \
;-------------NEW TEXT-------------------
Here is your new bottle of oil. Use it well, my friend!\\
;-----------END NEW TEXT-----------------
	;<  /@Q316_1_4>
<Next/@Q316_1_4>


; -----------------------------------
[@Q317]
#IF
#SAY
		;  帮  ѹ ŷĿ ٽô ŷ \
		; ʽϴ.    \ \
;-------------NEW TEXT-------------------
Hello again! I hope you are faring well, adventurer!\
Please do not ask me to make anything for you, since\
it is my rule that I craft my weapons once only.\
I never make items for the same person a second time.\
Goodbye and good fortune!\\
;-----------END NEW TEXT-----------------
		;<  /@exit>
<Close/@exit>

