;
%100
+0
+42

;---------------------------------------------------------
;
;[104]  ־
;[105] ǿ ģϱ 
;[106] ʿŸ ã ֱ 
;[107] ʿŸ   
;[108] ǿ ù°  
;
;----------------------------------------------------------

;ȭ, '*' : ȭ ±
[@main]
;ÿ.  Ϸ ̽ϱ?\ \
Welcome.  What can I do for you?\ \
; </@buy>\
<Buy/@buy>potion\
; <Ǵ/@sell>\
<Sell/@sell>potion\
;<ȭ Ѵ/@talkwith>\
<Talk with/@talkwith>\
<Teleport out/@tele>\
;<׸д/@exit>
<Cancel/@exit>
<>

[@buy]
;  ʿϽŰ?\ \ \
What item do you want to buy?\ \ \
;<ڷ/@main>
<Back/@main>

[@sell]
;  ֽÿ.   ĵ帮.\ \ \
Show me your item to sell. I'll offer you good money.\ \ \
;<ڷ/@main>
<Back/@main>

;#####################################################

[@talkwith]
#IF
checkunit  [1] 0
#ACT
goto  @talkwith_1


;#####################################################


[@talkwith_1]
;  
#IF
check [103] 1
check [104] 0
check [105] 0
#ACT
goto @talk_about_letter
break

;ģ Ǳ ϰ ٽ 
#IF
check  [103]  1
check  [104]  1
check  [106]  0
#ACT
goto @talk_1_1
break

;ʿŸ ַ
#IF
check  [104]  1
check  [106]  1
check  [107]  0
#ACT
goto @talk_2_1
break

;ǿǾ1  
#IF
check  [104]  1
check  [106]  1
check  [107]  1
check  [108]  0
#ACT
goto 	@talk_3_1
break

;ƹ ǵ   ȭ
#IF
check  [105] 1
#SAY
;<$USERNAME> ̾ϳ..  ٺ \
<$USERNAME>, sorry but.. I'm busy now.\
; ã  ȵǰڴ°...\
Would you come again later?\
;̾ϳ..\
Sorry...\
#ACT
break

#IF
#SAY
;̾ϳ..  ٻڴ ߿ ãƿð\
Sorry... I'm busy now so would you come again later?\



;-------------------------------------------------------
; ϱ ؼ 
;-------------------------------------------------------

[@talk_about_letter]
;...  ƹԲ    ִٴ\
You mean you get the letter from my father??\
;̷α. Ϸ  ?\
What happen?\
;  ֽʽÿ.\ \
Please give me the letter!\ \
;< Ѵ./@give_letter>\
<Give letter/@give_letter>\
;<Ҿ ȴٰ Ѵ./@no_give_letter>\
<Tell him that the letter get lost/@no_give_letter>\

[@give_letter]
#IF
CHECKITEM  HealerLetter 1
#ACT
TAKE  HealerLetter 1
SET   [104]   1
#SAY
;, ̷   ֽôٴ\
Thank you for delivering the letter,\
; , ̸̶ ˾ ڼ\
I really appreciate. Can you let me know your name?\
; ǿ̶ Ͽ\
I'm Spencer...\
; ̸ ̿?\ \
What's your name?\ \
;≮ ˷ش./@say_my_name>\
<Tell him your name/@say_my_name>\
#ELSESAY
;  ٴ, ׷ ߿ Ҿ ȴٴ\
You don't have the letter? You mean you lost the letter on your way back?\
;Դϱ? .... ãµ  ֽÿ.\
Please deliver me the letter as soon as you find it.\
[@no_give_letter]
;ƴ,  Ҿ ȴٴ,...\
Oh, you lost the letter,...\
;,.. Ƽ̴. ׷ٰ ׷\
Well... It's okay.\
;̾ ϴ  ѹٸ 𸣰ڼ\
 Never mind and take it easy,\
;׸   ÿ\
I am ok so go back now...\

[@say_my_name]
;<$USERNAME> ̶,  ݰ\
Well <$USERNAME>, nice to meet you\
;̰͵ 쿬ε 츮 ģϰ ô.\
Let's stay in good relationship.\
; ̰Ŵ  ̴ ÿ\
This is a gift for you. Please accept it\
;ȭ ε   ̶\ \
This is a SunPotion that is really good medicine!\ \
;<ȭ ޴´./@ok_take_drug>
<Take SunPotion./@ok_take_drug>

[@ok_take_drug]
#ACT
SET  [105]    1
GIVE Sunpotion(M) 1
#SAY
;, ׸   ٽ ÿ...\
Please come again soon...\
;  ô.\
See you later.\

;-------------------------------------------------------
;  ϰ   . ʿ ֱ 
;-------------------------------------------------------

[@talk_1_1]
#SAY
; <$USERNAME>,  Գ... \
Ah <$USERNAME>, welcome... \
;ڳ״   ְ\
How are you?\
;  ʿŰ ʿѵ \
I need Cannibalfruit now \
;ڳװ    ָ    ܼ\
Please find out it for me, I'll offer you good price \
; ׷ ־ ڳ׸..\
Please help me...\
;ٸ ְڳ...\
I'll waiting for you...\
#ACT
SET  [106] 1

;-------------------------------------------------------
; ʿŸ ַ
;-------------------------------------------------------

[@talk_2_1]
#IF
CHECKITEM  CannibalFruit 1
#SAY
; ڳ,  ʰ Ա\
You made it...\
;ʿŸ   Ѱ ְԳ..\ \
If you get Cannibal Fruit give me one by one...\ \
;< Ÿ ش./@give_sg_1>\
<Give Cannibal Fruit/@give_sg_1>\
#ELSEACT
GOTO  @talk_1_1

[@give_sg_1]
#IF
CHECKITEM  Cannibalfruit 1
#ACT
TAKE Cannibalfruit 1
GIVE Gold 600
GOTO @check_enough_1

; Ÿ  ޾Ҵ ˻
[@check_enough_1]
#IF
RANDOM 10
DAYTIME SUNSET
#ACT
SET  [107] 1
#SAY
;, <$USERNAME>  ʿŴ\
Thank you, <$USERNAME> CannibalFruit is enough for my needs\
;ϳ,  ڳ ̶...\
Thank you very much...\
;    ϴµ,  Ǳ⸦\
Now I would like to make some new drugs...\
; ְԳ...\
;׷  ..\
Come to meet me soon so I can show you the results.\
#ELSEACT
GOTO @give_sg_2

[@give_sg_2]
#IF
CHECKITEM CannibalFruit 1
#ACT
GOTO @talk_2_1
#ELSEACT
CLOSE


;-------------------------------------------------------
;ǿ 1°   
;-------------------------------------------------------

[@talk_3_1]
#if
daytime day
#act
goto 	@talk_3_2
#elsesay
;<$USERNAME>,  Գ..   ϼ\
<$USERNAME>, welcome.. Drug is not ready yet ...\
;ʾҴٳ..  ϼǸ   Ź ְ\
When drug will be ready I'll have to ask you a favor\
;  ϼǾ ٵ...\
Please come back soon...\

[@talk_3_2]
;<$USERNAME>,   ߳׸,\
<$USERNAME>, my drug is ready now but \
; ذ  κ ־ ´Կ\
there is problem I need to find out;\
;ڹ غ ڳ. ڳ׿ Ź ִµ\
I should ask advice to my teacher\
;   ִ°?\ \
can you ask him that for me?\ \
;<Ź ش./@ok_h_order>\
<Accept/@ok_h_order>\

[@ok_h_order]
;,    ̽ ǿ\
Thank you. Please deliver this drug to the old man Yu\
; ָ鼭  ࿡  κ \
and ask him to check the problem with this drug...\
; ְ..      \
Unfortunately I have to stay at drug store,\
;ڳװ   ְԳ..\
please help me..\
;׷  ´ ҽ  Ǽ\
I am bit worried since I haven't heard him for long time\
so you may face lots of problems to find him...\
;̸ ¾... ģ ̾   Źϳ..\
Sorry but please... Do this favor to me!\
;<Ź ش./@ok_h_order_now>\
<Accept/@ok_h_order_now>\

[@ok_h_order_now]
#if
#act
set  [108] 1
;give ǿǾ1 1
give SpencerDrug1 1
goto @exit

[@tele]
#IF
checklevel 1
#ACT
mapmove 0 647 621

;-------------------------------------------------------
;
;-------------------------------------------------------


;[goods]
[goods]
;Ǵ ǰ                     hour
(HP)DrugSmall             200        1
(MP)DrugSmall             200        1
(HP)DrugMedium            100        1
(MP)DrugMedium            100        1
(HP)DrugLarge             100        1
(MP)DrugLarge             100        1
(HP)SDrugBundl            100        1
(MP)SDrugBundl            100        1
(HP)MDrugBundl            100        1
(MP)MDrugBundl            100        1
(HP)DrugBundle            100        1
(MP)DrugBundle            100        1
