;;不要删掉此行

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

[@Main]
#ACT
Loadvalue A1 "QuestDiary\Guild\Palace.txt" [PalaceQuest] %GUILDNAME

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

#IF
Equal A1 "Start"
#ACT
GoTo @Stage0
BREAK

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

#IF
Equal A1 "Stage1"
#ACT
GoTo @Stage1
BREAK

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

#IF
Equal A1 "Stage2"
#ACT
GoTo @Stage2
BREAK

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

#IF
Equal A1 "Stage3"
#ACT
GoTo @Stage3
BREAK

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

#IF
Equal A1 "Stage4"
#ACT
GoTo @Stage4
BREAK

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

#ELSESAY
{FCOLOR/10}(I have nothing to say to you...){FCOLOR/12}

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

[@Stage0]
#SAY
Well <$USERNAME>\
I see you found me here. \
I can unrust a {FCOLOR/10}Rusted Palace Key{FCOLOR/12}\
If you want me to do this for you please \
{FCOLOR/10}Investigate 4th Floor{FCOLOR/12} to find my {FCOLOR/10}Special Oil{FCOLOR/12}...\\
<I will go now/@SaveStage>\
<Leave/@Exit>

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

[@SaveStage]
#IF
CheckItem RustedPalaceKey 1
#ACT
Take RustedPalaceKey 1
SaveValue "QuestDiary\Guild\Palace.txt" [PalaceQuest] %GUILDNAME Stage1
CLOSE
#ELSESAY
Sorry you must have your {FCOLOR/10}Rusted Palace Key{FCOLOR/12}...\
<Leave/@Exit>

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

[@SaveStage1]
#IF
CheckItem KeepersOil 1
#ACT
Take KeepersOil 1
SaveValue "QuestDiary\Guild\Palace.txt" [PalaceQuest] %GUILDNAME Stage3
CLOSE
#ELSESAY
Sorry you must have your {FCOLOR/10}Keepers Oil {FCOLOR/12}...\
<Leave/@Exit>

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

[@Stage1]
#SAY
Please {FCOLOR/10}Investigate 4th Floor{FCOLOR/12} to find my {FCOLOR/10}Special Oil{FCOLOR/12}...\\
<Leave/@Exit>

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

[@Stage2]
#SAY
Yes! Thats the oil!\\
Thank you please come back soon...\\
<Ok Ill be back soon/@SaveStage1>

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

[@Stage3]
#ACT
Give BrokenPalaceKey 1
SaveValue "QuestDiary\Guild\Palace.txt" [PalaceQuest] %GUILDNAME Stage4
#SAY
Sorry...\\
The rust has gone but the key is broken...\
May be the {FCOLOR/10}Palace Keeper{FCOLOR/12} can help?\\
<Ok thanks for your help/@Exit>

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

[@Stage4]
#SAY
May be the {FCOLOR/10}Palace Keeper{FCOLOR/12} can help?\\
<Leave/@Exit>

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

;;不要删掉此行