// creator  : weidu.exe (version 23600)
// argument : HENTOL.DLG
// game     : .
// source   : ./override/HENTOL.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~HENTOL~

IF ~  StateCheck(Myself,STATE_CHARMED)
HasItem("DAGG03",Myself)
~ THEN BEGIN 0 // from:
  SAY #8855 /* ~If you're my friend, you'll let me get away from this place! A ghoulish creature pursues me in my head. I canna sleep a wink of restful sleep. I didn't mean to steal from its grave! Well, maybe I did... But I'm still sorry! Please take it back to his lonely grave for me, friend. Pal?~ */
  IF ~~ THEN DO ~GiveItem("DAGG03",LastTalkedToBy)
~ EXIT
END

IF ~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 1 // from:
  SAY #8671 /* ~Please, no! Don't let him get me... please...~ */
  IF ~~ THEN GOTO 12
  IF ~Global("X#HENTOL1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#HENTOL1","GLOBAL",1)~ EXTERN ~XANJ~ 233
  IF ~Global("X#HENTOL1","GLOBAL",0)
InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#HENTOL1","GLOBAL",1)~ EXTERN ~DYNAHJ~ 258
END

IF ~  NumberOfTimesTalkedTo(1)
Global("HelpHentold","GLOBAL",0)
~ THEN BEGIN 2 // from:
  SAY #8678 /* ~Nooo... who... You again! Have you come to quicken my death, or just to watch me suffer?~ */
  IF ~~ THEN REPLY #8679 /* ~Settle down sir, just settle down. No one here is going to hurt you. Tell me what your problem is.~ */ GOTO 7
  IF ~~ THEN REPLY #8680 /* ~I fear I do not have the time to assist you.~ */ GOTO 6
  IF ~~ THEN REPLY #8681 /* ~Relax, ye simpering fool, I am just passing by. You do not interest me in the least.~ */ GOTO 5
END

IF ~  PartyHasItem("DAGG03")
Global("HELPHENTOLD","GLOBAL",1)
~ THEN BEGIN 3 // from:
  SAY #8690 /* ~Please hurry! I canna bear this sleepless torment much longer!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~  True()
~ THEN BEGIN 4 // from:
  SAY #9265 /* ~Leave me to my misery!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 12.3 2.2
  SAY #8684 /* ~Why SHOULD I interest you? I am to be dead soon enough! Leave me then, leave me to my doom!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 12.4 2.1
  SAY #8685 /* ~Fine! Go then, and leave me to my fate! May the Nine Hells take you for leaving me to die, and may they take me for ever going near that damnable tomb in the first place!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 12.0 2.0
  SAY #8686 /* ~Wha... my problem? My problem is the horrible death replaying in my mind! I canna concentrate, my mind is... my mind... I didn't mean it! I'll give it back! You! You can take it to him! Here! Give it back!~ */
  IF ~~ THEN REPLY #8691 /* ~I will help thee, but what must I return? Who should I return it to?~ */ GOTO 9
  IF ~~ THEN REPLY #8692 /* ~I am no messenger pigeon! Your problems do not interest me, though I shall keep this trinket as compensation for suffering your company!~ */ GOTO 8
  IF ~~ THEN REPLY #8694 /* ~It would seem that you have brought this on yourself. Whatever happens to you shall be your own fault. I'll not help a petty thief.~ */ GOTO 10
END

IF ~~ THEN BEGIN 8 // from: 7.1
  SAY #8687 /* ~Just take it! I will have nothing more to do with it! Take it to his lonely grave and I swear I'll never rob another tomb as long as I hope to live! Blast the southern sun for leading me that way!~ */
  IF ~~ THEN DO ~SetGlobal("HelpHentold","GLOBAL",1)
GiveItem("DAGG03",LastTalkedToBy)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 7.0
  SAY #8688 /* ~A cave! It's but a short way's east... there was a grave... I opened... Oh, by all that's good, I disturbed its lonely slumber with my foolishness! It haunts me, and I get no rest in sleep! Please! I shall go mad if it is not returned! Take this dagger to the tomb...~ */
  IF ~~ THEN DO ~SetGlobal("HelpHentold","GLOBAL",1)
GiveItem("DAGG03",LastTalkedToBy)
EscapeArea()
~ EXIT
  IF ~Global("X#GarHen","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarHen","GLOBAL",1)~ EXTERN ~GARRIJ~ 69
END

IF ~~ THEN BEGIN 10 // from: 7.2
  SAY #8689 /* ~Know you no charity? Shall I be condemned for one slight against someone long since dead? I'd wager you have looted the far more recently deceased in your own travels, and yet you judge me? Fie! A pox on you! Begone and leave me to die!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 11 // from: 12.2
  SAY #8683 /* ~You... By the Nine Hells, who are you? Bah, I care not. You want this trinket? So be it. But I warn you, take it back lest you suffer as I have! Take it back lest you die as I would have! He gets in your head, he does! I disturbed his lonely slumber, so he ruins mine as penance! Return it east, lest you pay as well!~ */
  IF ~~ THEN DO ~SetGlobal("HelpHentold","GLOBAL",1)
GiveItem("DAGG03",LastTalkedToBy)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 1.0
  SAY #8672 /* ~AHHH! Who are you?! Don't kill me! Please! I'm so sorry! I'll give it back, just don't kill me!~ */
  IF ~~ THEN REPLY #8673 /* ~Settle down, sir, just settle down. No one here is going to hurt you. Tell me what your problem is.~ */ GOTO 7
  IF ~  ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #8674 /* ~Yeah! You had better... give it back. Right quick too!~ */ GOTO 13
  IF ~  ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #8675 /* ~Yeah! You had better... give it back. Right quick too!~ */ GOTO 11
  IF ~~ THEN REPLY #8676 /* ~Relax, you simpering fool. I am just passing by. You do not interest me in the least.~ */ GOTO 5
  IF ~~ THEN REPLY #8677 /* ~I fear I do not have the time to assist you.~ */ GOTO 6
END

IF ~~ THEN BEGIN 13 // from: 12.1
  SAY #8682 /* ~Here! Take it! Just get out of my dreams so I can rest! I swear I'll never go grave robbing down there again! Blast the southern sun for leading me there in the first place! I swear I'll no do it again!~ */
  IF ~~ THEN DO ~SetGlobal("HelpHentold","GLOBAL",1)
GiveItem("DAGG03",LastTalkedToBy)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 14 // from: GARRIJ:69.1
  SAY #46761 /* ~I just want to be rid of it... please!~ */
  IF ~~ THEN DO ~SetGlobal("HelpHentold","GLOBAL",1)
GiveItem("DAGG03",LastTalkedToBy)
EscapeArea()
~ EXIT
END
