;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@main]
#IF
Check [253] 1
Check [254] 0
#ACT
FormatStr "FLD_QUEST ='Adrian' and FLD_CHARACTER='%s'" %USERNAME
ReadValueSql "TBL_StingQuests" %A9 "FLD_Stage" @AdrianQuestStage
Break

#IF
Check [253] 1
Check [254] 1
#SAY
Thanks again m8, your help was appreciated.\
<[ Exit ]/@exit>\\

#ELSESAY
OMG OMG OMG, your just in time!!!\
<[ Whats up with you? ]/@Main>\
#ELSEACT
Set  [253] 1


[@AdrianQuestStage()]
#IF
#ACT
Mov   D1   %ARG(1)

#IF
Equal  D1  0
#ACT
Goto @AdrianQuest0
Break

#IF
Equal  D1  1
#ACT
Goto @AdrianQuest1
Break

#IF
Equal  D1  2
#ACT
Goto @AdrianQuest2
Break

#IF
Equal  D1  3
#ACT
Goto @AdrianQuest3
Break

#IF
Equal  D1  4
#ACT
Goto @AdrianQuest4
Break

#IF
Equal  D1  5
#ACT
Goto @AdrianQuest5
Break

#IF
Equal  D1  6
#ACT
Goto @AdrianQuest6
Break

#IF
#SAY
<$OUTPUT(D1)> D1 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Part 0
[@AdrianQuest0]
#SAY
Damn {FCOLOR/10}Skeletons{FCOLOR/12}.  They are causing a real problem\
in {FCOLOR/10}BichonCave1F{FCOLOR/12}. Any chance you can go and wipe some\
out for me?\\
<[ Dead Easy! ]/@AdrianQuest0_1>\
<[ No, Ive got things to do ]/@exit>\\\
#ACT
Break

[@AdrianQuest0_1]
#SAY
Your a top person.. thanks.\\
<[ Exit ]/@exit>\
#ACT
Mov  A0  %USERNAME
Mov  A1  "Adrian"
Mov  D0  1
FormatStr "'%s','%s',%s" %A0 %A1 %D0
Mov A8 %A9
FormatStr "FLD_CHARACTER='%s' and FLD_QUEST='%s'" %A0 %A1
WriteValueSql "TBL_StingQuests" %A9 "FLD_CHARACTER,FLD_QUEST,FLD_STAGE" %A8

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Part 1
[@AdrianQuest1]
#SAY
Any luck with those {FCOLOR/10}Skeletons{FCOLOR/12}?\
best to try {FCOLOR/10}BichonCave1F{FCOLOR/12}\\
<[ I'm working on it! ]/@exit>\\
#ACT
Break

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Part 2
[@AdrianQuest2]

#IF
#SAY
Well done, that was a great help. By the way, while\
you were in {FCOLOR/10}BichonCave{FCOLOR/12}, did you happen to spot any\
{FCOLOR/10}AxeHurlers{FCOLOR/12}?\
One of them has my best {FCOLOR/10}WoodChoppingAxe{FCOLOR/12} ,\
and Id really like to have it back. Do you think\
you could try and get it back for me? You might \
have better luck on the {FCOLOR/10}Second floor{FCOLOR/12}\\
<[ Not a problem ]/@AdrianQuest2_1>\
<[ No, I'm busy ]/@exit>\\\

#ACT
Give Gold 50000
Mov  A0  %USERNAME
Mov  A1  "Adrian"
Mov  D0  3
FormatStr "FLD_STAGE=%s" %D0
Mov A8 %A9
FormatStr "FLD_CHARACTER='%s' and FLD_QUEST='%s'" %A0 %A1
UpdateValueSql "TBL_StingQuests" %A9 %A8
Break

[@AdrianQuest2_1]
#SAY
Thanks again m8, I would go myself but I really\
need to stick around here in case anything happens\\
<[ Exit ]/@exit>\
#ACT
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Part 3
[@AdrianQuest3]
#SAY
{FCOLOR/10}AxeHurlers{FCOLOR/12} giving you jipp?  If you can't handle\
it I can find someone else if you want??\
You do realise how much that {FCOLOR/10}WoodChoppingAxe{FCOLOR/12}\
means to me!\
Get to {FCOLOR/10}BichonCave2F{FCOLOR/12} and get it for me\\
<[ I'll do it, don't worry! ]/@exit>\
#ACT
Break

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Part 4
[@AdrianQuest4]

#IF
CheckItem WoodChoppingAxe 1
#SAY
Woohoo, I cant believe it, thanks a lot! Dont \
suppose you fancy doing me another favour?\\
<[ Maybe, depends what it is ]/@AdrianQuest4_1>\
<[ Jeez, what did your last slave die of? ]/@exit>\\\

#ACT
Take WoodChoppingAxe 1
Give Gold 75000
Mov  A0  %USERNAME
Mov  A1  "Adrian"
Mov  D0  5
FormatStr "FLD_STAGE=%s" %D0
Mov A8 %A9
FormatStr "FLD_CHARACTER='%s' and FLD_QUEST='%s'" %A0 %A1
UpdateValueSql "TBL_StingQuests" %A9 %A8
Break

#ELSESAY
Please hurry, I really need that Axe\\
<[ I'll Look Now ]/@exit>\

#ELSEACT
Break

[@AdrianQuest4_1]
#SAY
Well, on {FCOLOR/10}BichonCave3F{FCOLOR/12}, theres a\
{FCOLOR/10}SkeletonLord{FCOLOR/12}, not a nice chap, and hes been \
running around at night causing a lot of aggro \
in Bichon and terrorising the locals. Id be \
eternally grateful if you could get rid of him \
for us. Will you give it a try? Ill make it \
worth your while!!\\
<[ Exit ]/@exit>\
#ACT

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Part 5
[@AdrianQuest5]
#SAY
I can understand if you want to quit, that\
{FCOLOR/10}SkeletonLord{FCOLOR/12} is a slimy git.\\
<[ No, No, No, I can kill him ]/@exit>\
#ACT
Break

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Part 6
[@AdrianQuest6]

#IF
#SAY
Oh my god, I cant believe it! Weve been \
trying for ages to get rid of him! Thankyou \
so much! Take this, I hope its of some use to you\\
<[ There is nothing I cannot do!!!! ]/@exit>\

#ACT
Mov  A0  %USERNAME
Mov  A1  "Adrian"
Mov  D0  7
FormatStr "FLD_STAGE=%s" %D0
Mov A8 %A9
FormatStr "FLD_CHARACTER='%s' and FLD_QUEST='%s'" %A0 %A1
UpdateValueSql "TBL_StingQuests" %A9 %A8
Set  [254]  1

#IF
CheckJob Taoist
#ACT
Give Scimitar 1
Break

#IF
CheckJob Warrior
#ACT
Give BronzeAxe 1
Break

#IF
CheckJob Taoist
#ACT
Give Trident 1
Break

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;