;;; HalloweenNPC / Used to run Halloween Event / Toxin ;;;


[@HalloweenNPC1]
{
#SAY
The Halloween map is now disabled\
You can still exchange seeds though\
;Happy Halloween <$USERNAME>\
;How can I help you today?\
\
<[ Tell Me More ]/@HalloweenInfo> about Halloween Island\\
;<[ Teleport Me ]/@HalloweenIsland> to Halloween Island\\
<[ Exchange ]/@SeedSwap> some PumpkinSeeds\\
<[ It's nothing ]/@exit>\\\
#ELSESAY
This will be available soon :)


[@HalloweenInfo]
#SAY
What would you like to know more about?\
\
<[ HalloweenIsland ]/@HalloweenInfoOne>\
<[ TricksOrTreats ]/@HalloweenInfoTwo>\
;<[ Treats ]/@HalloweenInfoThree>\
<[ PumpkinSeeds ]/@HalloweenInfoFour>\
;<[ The Cursed Statues ]/@HalloweenInfoFive>\\
<[ I'm fine thanks ]/@main>\\\


[@HalloweenInfoOne]
#SAY
HalloweenIsland is the resting place of the fallen\
monsters of Mir.  Around Halloween time their souls\
are awakened to fight once more but they can only\
exist within the cursed lands of HalloweenIsland.\\
I can take you to this evil place but you must\
be sure you want to go for only my brother can\
bring you back to this world.\\
<[ Ok, thanks ]/@main>\\\

[@HalloweenInfoTwo]
#SAY
For slaying the deads souls and laying them to\
rest once more you can find special items.\
TrickOrTreats. \
You can use these items right away to get special\
prizes.  Just double click to use and\
who knows what you might receive...\\
;<[ What about Treats? ]/@HalloweenInfoThree>\
<[ Ok, thanks ]/@main>\\\

;[@HalloweenInfoThree]
;#SAY
;Treats are another item you can use right away.\
;These are harder to find than Tricks but the\
;possible rewards are so much higher if you find\
;the right ones.  Double click them to find out\
;what treats you're in for\\
;<[ Ok, thanks ]/@main>\\\

[@HalloweenInfoFour]
#SAY
PumpkinSeeds can be gained from battling the\
souls of the dead on HalloweenIsland and used\
in various ways.  You can trade them with me\
for TrickOrTreats as long as you collect\
enough.\\
;5 PumpkinSeeds will get you a Trick.\
10 PumpkinSeeds will get you a TrickOrTreat.\
50 PumpkinSeeds will get you 5 Integral Points\
;100 PumpkinSeeds will get you a HalloweenAid for 2 hours! (Upto Level 50).\
______with the Integral NPC.\\
<[ Thanks for the info ]/@main>\\\

[@HalloweenInfoFive]
#SAY
There are three cursed statues on\
HalloweenIsland that are believed to be the\
legendary Three Heroes of the past.  It's\
said that they still have the power to\
communicate across time with people who\
have follwed in their footsteps of training\
methods.  There's the Mighty Warrior, Skillful\
Wizard and Resourceful Taoist.  I think it\
would be a good idea for you to find your\
bloodline statue incase it has secrets to\
share with you too.\\
<[ Thanks, I'll look for them ]/@main>



[@HalloweenIsland]
#IF
Check [100] 0
#ACT
Set  [100]  1
Mov  A0  %USERNAME
Mov  A1  "Halloween"
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
Goto @HalloweenIslandNext

#ELSEACT
Goto @MoveToIsland

[@HalloweenIslandNext]
#ACT
FormatStr "FLD_QUEST ='Halloween' and FLD_CHARACTER='%s'" %USERNAME
mov   A8     %A9
FormatStr "FLD_VAR1='%s'" 0
UPDATEVALUESQL "TBL_StingQuests" %A8 %A9
Goto @MoveToIsland


[@MoveToIsland]
#ACT
MapMove 13 170 127
Break



[@SeedSwap]
#SAY
What would you like to swap your seeds for?\
\
;<[ Trick ]/@SeedSwapTrick> 5 Seeds\
<[ TrickOrTreat ]/@SeedSwapTreat> 10 Seeds\
<[ Integral ]/@SeedSwapInt> 50 Seeds\
;<[ HalloweenAid ]/@SeedSwapAid> 100 Seeds\
\
<[ Nothing ]/@exit>\\\

;[@SeedSwapTrick]
;#IF
;checkitem PumpkinSeed 5

;#ACT
;take PumpkinSeed 5
;give Trick 1
;break

;#ELSESAY
;You don't have enough seeds for that.\
;<[ back ]/@main>\\\

[@SeedSwapTreat]
#IF
checkitem PumpkinSeed 10

#ACT
take PumpkinSeed 10
give TrickOrTreat 1
break

#ELSESAY
You don't have enough seeds for that.\
<[ back ]/@main>

[@SeedSwapInt]
#IF
checkitem PumpkinSeed 50

#ACT
take PumpkinSeed 50
give Integral(1) 5
break

#ELSESAY
You don't have enough seeds for that.\
<[ back ]/@main>


[@SeedSwapAid]
#IF
!CHECKLEVEL 50

#SAY
Are you sure?\
<[ Yes ]/@NextAid>\
<[ Exit ]/@exit>

#ELSESAY
Sorry you're too higher level to recieve HalloweenAid.\
<[ Exit ]/@exit>

[@NextAid]
#IF
CHECKMONRECALL

#ACT
GOTO @NextAid1

#ELSESAY 
Sorry you already have a pet.\
<[ Exit ]/@exit>


[@NextAid1]
#IF 
checkitem PumpkinSeed 100

#ACT
TAKE PumpkinSeed 100
monrecall HalloweenAid 2 1

#SAY
Here's your HalloweenAid! Beware after 2 hours this beast will untame!\
Would you like to go to Halloween Island now?\
<[ Yes ]/@MoveToIsland>\
<[ Exit ]/@exit>

#ELSESAY
Sorry you don't have enough PumpkinSeeds to recieve \HalloweenAid.\
<[ Exit ]/@exit>

}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;