// creator  : weidu.exe (version 23100)
// argument : C6ELHAN.DLG
// game		 : .
// source	 : ./DATA/DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~C6ELHAN~

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #55368 /* ~General Sovalidaas~ */
  IF ~~ THEN REPLY #55369 /* ~Target has no items.~ */ JOURNAL #11722 /* ~Chapter 6

Leaving Spellhold and following Irenicus and Bodhi, I ended up in the Underdark.  There I learned that the pair had contrived to steal the eggs of Adalon, a silver dragon... and had bargained them to the Dark Elves in return for passage and perhaps a service I am unaware of.  The dragon disguised me as a Drow so that I could infiltrate Ust Natha, and through her efforts and mine I was able to survive the Underdark, learning a bit of Irenicus and his plan along the way. 

As near as I can figure, the actions of Irenicus nullified Adalon's influence as the guardian of an Elven temple, and though the Drow care little for conquest above ground, it has allowed them to deliver an insulting blow to the surface elves.  The Drow have now destroyed a very ancient and symbolic elven holy site, drawing a large elven force to secure the area and retaliate if necessary.  Many have died on either side.  Obviously Irenicus plans to use the carnage to his advantage... but how?~ */ FLAGS 128 GOTO 1
  IF ~~ THEN REPLY #55468 /* ~~ [LEOPA05] */ JOURNAL #11722 /* ~Chapter 6

Leaving Spellhold and following Irenicus and Bodhi, I ended up in the Underdark.  There I learned that the pair had contrived to steal the eggs of Adalon, a silver dragon... and had bargained them to the Dark Elves in return for passage and perhaps a service I am unaware of.  The dragon disguised me as a Drow so that I could infiltrate Ust Natha, and through her efforts and mine I was able to survive the Underdark, learning a bit of Irenicus and his plan along the way. 

As near as I can figure, the actions of Irenicus nullified Adalon's influence as the guardian of an Elven temple, and though the Drow care little for conquest above ground, it has allowed them to deliver an insulting blow to the surface elves.  The Drow have now destroyed a very ancient and symbolic elven holy site, drawing a large elven force to secure the area and retaliate if necessary.  Many have died on either side.  Obviously Irenicus plans to use the carnage to his advantage... but how?~ */ FLAGS 128 GOTO 1
  IF ~~ THEN REPLY #55469 /* ~~ [LEOPA06] */ JOURNAL #11722 /* ~Chapter 6

Leaving Spellhold and following Irenicus and Bodhi, I ended up in the Underdark.  There I learned that the pair had contrived to steal the eggs of Adalon, a silver dragon... and had bargained them to the Dark Elves in return for passage and perhaps a service I am unaware of.  The dragon disguised me as a Drow so that I could infiltrate Ust Natha, and through her efforts and mine I was able to survive the Underdark, learning a bit of Irenicus and his plan along the way. 

As near as I can figure, the actions of Irenicus nullified Adalon's influence as the guardian of an Elven temple, and though the Drow care little for conquest above ground, it has allowed them to deliver an insulting blow to the surface elves.  The Drow have now destroyed a very ancient and symbolic elven holy site, drawing a large elven force to secure the area and retaliate if necessary.  Many have died on either side.  Obviously Irenicus plans to use the carnage to his advantage... but how?~ */ FLAGS 128 GOTO 2
  IF ~~ THEN REPLY #55470 /* ~~ [LEOPA07] */ JOURNAL #11722 /* ~Chapter 6

Leaving Spellhold and following Irenicus and Bodhi, I ended up in the Underdark.  There I learned that the pair had contrived to steal the eggs of Adalon, a silver dragon... and had bargained them to the Dark Elves in return for passage and perhaps a service I am unaware of.  The dragon disguised me as a Drow so that I could infiltrate Ust Natha, and through her efforts and mine I was able to survive the Underdark, learning a bit of Irenicus and his plan along the way. 

As near as I can figure, the actions of Irenicus nullified Adalon's influence as the guardian of an Elven temple, and though the Drow care little for conquest above ground, it has allowed them to deliver an insulting blow to the surface elves.  The Drow have now destroyed a very ancient and symbolic elven holy site, drawing a large elven force to secure the area and retaliate if necessary.  Many have died on either side.  Obviously Irenicus plans to use the carnage to his advantage... but how?~ */ FLAGS 128 GOTO 60
  IF ~~ THEN REPLY #55472 /* ~~ [CLAYG02] */ JOURNAL #11722 /* ~Chapter 6

Leaving Spellhold and following Irenicus and Bodhi, I ended up in the Underdark.  There I learned that the pair had contrived to steal the eggs of Adalon, a silver dragon... and had bargained them to the Dark Elves in return for passage and perhaps a service I am unaware of.  The dragon disguised me as a Drow so that I could infiltrate Ust Natha, and through her efforts and mine I was able to survive the Underdark, learning a bit of Irenicus and his plan along the way. 

As near as I can figure, the actions of Irenicus nullified Adalon's influence as the guardian of an Elven temple, and though the Drow care little for conquest above ground, it has allowed them to deliver an insulting blow to the surface elves.  The Drow have now destroyed a very ancient and symbolic elven holy site, drawing a large elven force to secure the area and retaliate if necessary.  Many have died on either side.  Obviously Irenicus plans to use the carnage to his advantage... but how?~ */ FLAGS 128 GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.1 0.0
  SAY #55370 /* ~Greater Lacedon~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 60.0 1.0 0.4 0.2
  SAY #55371 /* ~Greater Lacedon~ */
  IF ~~ THEN REPLY #55372 /* ~Spell trigger is much like spell sequencer in that it allows the caster to store several spells in a trigger item that can be released upon any target, including the caster. The spells stored in the sequencer are cast as any other spell and can be accessed through the special abilities button on the main screen.  It is important to note that when you choose the spells to be stored in the trigger, they will disappear from the ones you have memorized.  However, the trigger will last until used so the caster may rest and gain those spells back.  The main use for this spell would be to allow the caster to release multiple spells upon a target very quickly in combat without the possibility of being interrupted.~ */ GOTO 3
  IF ~~ THEN REPLY #55462 /* ~~ [AIREL05] */ GOTO 3
  IF ~~ THEN REPLY #55463 /* ~~ [AIREL06] */ GOTO 58
  IF ~~ THEN REPLY #55465 /* ~~ [LEOPA02] */ GOTO 3
  IF ~~ THEN REPLY #55466 /* ~~ [LEOPA03] */ GOTO 59
END

IF ~~ THEN BEGIN 3 // from: 59.0 58.0 2.3 2.1 2.0
  SAY #55373 /* ~Contingency spells allow the caster to store a spell(s) inside his body.  The spell in question will then be released upon the caster when the condition specified at casting occurs.  For example, a wizard could place stoneskins in a contingency which could then be set to go off when the caster reaches 50% of his hit points.  Then when the caster reaches 50% of his hit points, the spell will be released and cast upon the wizard.  The uses for this spell are limited only by the imagination of the caster.~ */
  IF ~!IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("KORGAN")
!IsValidForPartyDialogue("KELDORN")
!IsValidForPartyDialogue("EDWIN")~ THEN GOTO 4
  IF ~IsValidForPartyDialogue("CERND")~ THEN EXTERN ~CERNDJ~ 121
  IF ~IsValidForPartyDialogue("KORGAN")
!IsValidForPartyDialogue("CERND")~ THEN EXTERN ~KORGANJ~ 160
  IF ~IsValidForPartyDialogue("KELDORN")
!IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~KELDORJ~ 219
  IF ~IsValidForPartyDialogue("EDWIN")
!IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("KORGAN")
!IsValidForPartyDialogue("KELDORN")~ THEN EXTERN ~EDWINJ~ 130
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #55374 /* ~minor spell sequencer~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #55375 /* ~spell trigger~ */
  IF ~~ THEN REPLY #55376 /* ~chain contingency~ */ GOTO 6
  IF ~~ THEN REPLY #55460 /* ~~ [AIREL03] */ GOTO 6
  IF ~~ THEN REPLY #55461 /* ~~ [AIREL04] */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.2 5.1 5.0
  SAY #55377 /* ~~ [SNAKE01] */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #55378 /* ~~ [SNAKE02] */
  IF ~!IsValidForPartyDialogue("ANOMEN")
!IsValidForPartyDialogue("KORGAN")~ THEN GOTO 8
  IF ~IsValidForPartyDialogue("ANOMEN")~ THEN EXTERN ~ANOMENJ~ 279
  IF ~!IsValidForPartyDialogue("ANOMEN")
IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~KORGANJ~ 162
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #55379 /* ~~ [SNAKE03] */
  IF ~~ THEN REPLY #55380 /* ~~ [SNAKE04] */ GOTO 9
  IF ~~ THEN REPLY #55458 /* ~Intrigue with Jarlaxle

I have been ambushed into the service of Jarlaxle. While his men are indeed captives of the Lich Deirex, Visaj's story about stealing the rope was false. Now it appears I must retrieve certain gems from the Lich's tower and return them to Jarlaxle, lest he reveal my identity in this place. It is not without promise, however, and I may have opportunity to loot the tower as well as the House Jae'llat in this deal. I have one day to do it.~ */ GOTO 9
  IF ~~ THEN REPLY #55459 /* ~Intrigue with Jarlaxle

Lies again, of course. The gems Jarlaxle wished stolen did not contain the souls of his men, whom he never risked by attacking the Lich to begin with. The gems were actually valuable artifacts belonging to House Jae'llat, of which the Lich was an ally. Jarlaxle concocted this whole affair for his original goal of retribution against the House that failed to pay him. I may have gained the means to enter two Drow dwellings, but this chicanery makes my head spin. The Rope will get me back to where I should be.~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.2 8.1 8.0
  SAY #55381 /* ~~ [SNAKE06] */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #55382 /* ~~ [SNAKE07] */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #55383 /* ~~ [GRNDHG06] */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #55384 /* ~~ [GRNDHG07] */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #55385 /* ~~ [FIREE01] */
  IF ~~ THEN REPLY #55386 /* ~~ [FIREE02] */ GOTO 14
  IF ~~ THEN REPLY #55456 /* ~~ [OTYUG07] */ GOTO 14
  IF ~~ THEN REPLY #55457 /* ~~ [OTYUG03] */ GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.2 13.1 13.0
  SAY #55387 /* ~~ [FIREE03] */
  IF ~!IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("KORGAN")
!IsValidForPartyDialogue("MAZZY")~ THEN GOTO 15
  IF ~IsValidForPartyDialogue("KORGAN")
~ THEN EXTERN ~KORGANJ~ 161
  IF ~IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~HAERDAJ~ 130
  IF ~IsValidForPartyDialogue("MAZZY")
!IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~MAZZYJ~ 183
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #55388 /* ~~ [FIREE04] */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #55389 /* ~~ [FIREE05] */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #55390 /* ~~ [FIREE06] */
  IF ~~ THEN GOTO 18
END

IF ~~ THEN BEGIN 18 // from: 17.0
  SAY #55391 /* ~~ [FIREE07] */
  IF ~~ THEN REPLY #55392 /* ~~ [PSEUD01] */ GOTO 19
  IF ~~ THEN REPLY #55453 /* ~~ [OTYUG02] */ GOTO 19
  IF ~~ THEN REPLY #55454 /* ~~ [OTYUG05] */ GOTO 19
  IF ~~ THEN REPLY #55455 /* ~~ [OTYUG06] */ GOTO 19
END

IF ~~ THEN BEGIN 19 // from: 18.3 18.2 18.1 18.0
  SAY #55393 /* ~~ [PSEUD02] */
  IF ~~ THEN GOTO 20
END

IF ~~ THEN BEGIN 20 // from: 19.0
  SAY #55394 /* ~~ [PSEUD03] */
  IF ~!IsValidForPartyDialogue("NALIA")
!IsValidForPartyDialogue("MINSC")
!IsValidForPartyDialogue("CERND")~ THEN GOTO 21
  IF ~IsValidForPartyDialogue("NALIA")~ THEN EXTERN ~NALIAJ~ 289
  IF ~IsValidForPartyDialogue("MINSC")
!IsValidForPartyDialogue("NALIA")~ THEN EXTERN ~MINSCJ~ 186
  IF ~IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("NALIA")
!IsValidForPartyDialogue("MINSC")~ THEN EXTERN ~CERNDJ~ 122
END

IF ~~ THEN BEGIN 21 // from: 20.0
  SAY #55395 /* ~~ [PSEUD04] */
  IF ~~ THEN REPLY #55396 /* ~~ [PSEUD06] */ GOTO 22
  IF ~~ THEN REPLY #55450 /* ~~ [PANTH06] */ GOTO 22
  IF ~~ THEN REPLY #55451 /* ~~ [PANTH07] */ GOTO 22
  IF ~~ THEN REPLY #55452 /* ~~ [OTYUG01] */ GOTO 22
END

IF ~~ THEN BEGIN 22 // from: 21.3 21.2 21.1 21.0
  SAY #55397 /* ~~ [PSEUD07] */
  IF ~~ THEN GOTO 23
END

IF ~~ THEN BEGIN 23 // from: 22.0
  SAY #55398 /* ~~ [SMSPID01] */
  IF ~~ THEN GOTO 24
END

IF ~~ THEN BEGIN 24 // from: 23.0
  SAY #55399 /* ~~ [SMSPID02] */
  IF ~~ THEN GOTO 25
END

IF ~~ THEN BEGIN 25 // from: 24.0
  SAY #55400 /* ~~ [SMSPID03] */
  IF ~GlobalLT("LensPlot","GLOBAL",7)~ THEN GOTO 26
  IF ~GlobalGT("LensPlot","GLOBAL",6)~ THEN GOTO 27
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #55401 /* ~~ [SMSPID06] */
  IF ~~ THEN GOTO 27
END

IF ~~ THEN BEGIN 27 // from: 26.0 25.1
  SAY #55402 /* ~~ [SMSPID07] */
  IF ~~ THEN REPLY #55403 /* ~Katana +2
To enchant a katana is no simple process.  Unlike conventional weapons, the katana is already a near-perfect fighting sword.  To improve it usually requires a sacrifice, perhaps a dying samurai might beg a Wu Jen to infuse his fighting spirit into the spirit of the katana.  The wielder of an enchanted katana, such as this one, must respect the customs of Kara-Tur and of the samurai who once carried this blade into battle.  Not doing so could drastically change one's luck for the worse.

STATISTICS:

THAC0: +2 bonus
Damage:  1D10 + 2
Damage type:  slashing
Weight:  4
Speed Factor: 2
Proficiency Type: Katana
Type:  1-handed
Requires: 6 Strength
Not Usable By:
 Druid
 Cleric
 Mage
 Beast Master~ */ GOTO 28
  IF ~~ THEN REPLY #55448 /* ~~ [PANTH05] */ GOTO 28
  IF ~~ THEN REPLY #55449 /* ~~ */ GOTO 28
END

IF ~~ THEN BEGIN 28 // from: 27.2 27.1 27.0
  SAY #55404 /* ~Spectator~ */
  IF ~GlobalLT("LensPlot","GLOBAL",7)~ THEN GOTO 29
  IF ~GlobalGT("LensPlot","GLOBAL",6)~ THEN GOTO 57
END

IF ~~ THEN BEGIN 29 // from: 28.0
  SAY #55405 /* ~Spirit Troll~ */
  IF ~~ THEN REPLY #55406 /* ~Rengaard~ */ GOTO 30
  IF ~~ THEN REPLY #55445 /* ~~ [PANTH02] */ UNSOLVED_JOURNAL #57937 /* ~~ */ GOTO 30
  IF ~~ THEN REPLY #55446 /* ~~ [PANTH03] */ UNSOLVED_JOURNAL #57937 /* ~~ */ GOTO 30
END

IF ~~ THEN BEGIN 30 // from: 29.2 29.1 29.0
  SAY #55407 /* ~Cromwell's home~ */
  IF ~GlobalLT("LensPlot","GLOBAL",5)~ THEN UNSOLVED_JOURNAL #57940 /* ~The Elven city requires my aid.

I must also find 3 pieces of the Lanthorn, individual panes of glass that focus its energy. Elhan says that his sages have divined clues as to where they are. I will detail them individually.~ */ GOTO 31
  IF ~Global("LensPlot","GLOBAL",5)~ THEN UNSOLVED_JOURNAL #54686 /* ~The Elven city requires my aid.

I must also find 2 pieces of the Lanthorn, individual panes of glass that focus its energy. Elhan says that his sages have divined clues as to where they are. I will detail them individually.~ */ GOTO 55
  IF ~Global("LensPlot","GLOBAL",6)~ THEN UNSOLVED_JOURNAL #57944 /* ~The Elven city requires my aid.

I must also find a separate piece of the Lanthorn, an individual pane of glass that focuses the energy of the complete lantern. Elhan says that his sages have divined clues as to where it might be. I will detail it separately to keep my instruction clear.~ */ GOTO 56
END

IF ~~ THEN BEGIN 31 // from: 30.0
  SAY #55408 /* ~Find the Worshippers of Ghaunadaur

A rather imperious female drow has commanded me to go to the southeastern corner of the drow city and destroy a sect of Ghaunadaur worshippers which are hiding out.  I'm not sure what refusing this task would accomplish... nothing good, I expect.~ */
  IF ~~ THEN DO ~SetGlobal("PlayerNeedsPanes","GLOBAL",3)
SetGlobal("PlayerToldOfPlot","GLOBAL",0)
~ GOTO 32
END

IF ~~ THEN BEGIN 32 // from: 81.0 56.0 55.0 31.0
  SAY #55409 /* ~Find the Worshippers of Ghaunadaur

I have found and destroyed the sect of worshippers... a thankless task, it seems, as I received no reward for it from the drow matron.  Other than my 'continued existence', apparently.~ */
  IF ~!Dead("TROLLENS")
!Global("PlayerToldOfTrollMound","GLOBAL",1)
GlobalLT("PlayerToldOfPlot","GLOBAL",3)~ THEN DO ~IncrementGlobal("PlayerToldOfPlot","GLOBAL",1)
SetGlobal("PlayerToldOfTrollMound","GLOBAL",1)~ GOTO 33
  IF ~!Dead("UnseeingEye")
GlobalLT("PlayerToldOfPlot","GLOBAL",3)
!Global("PlayerToldOfUnseeingEye","GLOBAL",1)~ THEN DO ~IncrementGlobal("PlayerToldOfPlot","GLOBAL",1)
SetGlobal("PlayerToldOfUnseeingEye","GLOBAL",1)~ GOTO 34
  IF ~!Dead("TORGAL")
GlobalLT("PlayerToldOfPlot","GLOBAL",3)
!Global("PlayerToldOfTorgal","GLOBAL",1)~ THEN DO ~IncrementGlobal("PlayerToldOfPlot","GLOBAL",1)
SetGlobal("PlayerToldOfTorgal","GLOBAL",1)~ GOTO 35
  IF ~!Dead("SAMIA")
GlobalLT("PlayerToldOfPlot","GLOBAL",3)
!Global("PlayerToldOfSamia","GLOBAL",1)~ THEN DO ~IncrementGlobal("PlayerToldOfPlot","GLOBAL",1)
SetGlobal("PlayerToldOfSamia","GLOBAL",1)~ GOTO 36
  IF ~!Dead("MAEVAR")
GlobalLT("PlayerToldOfPlot","GLOBAL",3)
!Global("PlayerToldOfMaeVar","GLOBAL",1)~ THEN DO ~IncrementGlobal("PlayerToldOfPlot","GLOBAL",1)
SetGlobal("PlayerToldOfMaeVar","GLOBAL",1)~ GOTO 37
  IF ~!Dead("MEKRATH")
!Global("MekrathLeft","GLOBAL",1)
GlobalLT("PlayerToldOfPlot","GLOBAL",3)
!Global("PlayerToldOfMekrath","GLOBAL",1)~ THEN DO ~IncrementGlobal("PlayerToldOfPlot","GLOBAL",1)
SetGlobal("PlayerToldOfMekrath","GLOBAL",1)~ GOTO 38
  IF ~!Dead("SHADEL")
GlobalLT("PlayerToldOfPlot","GLOBAL",3)
!Global("PlayerToldOfShadelord","GLOBAL",1)~ THEN DO ~IncrementGlobal("PlayerToldOfPlot","GLOBAL",1)
SetGlobal("PlayerToldOfShadelord","GLOBAL",1)~ GOTO 39
  IF ~GlobalGT("PlayerToldOfPlot","GLOBAL",2)~ THEN GOTO 40
END

IF ~~ THEN BEGIN 33 // from: 32.0
  SAY #55410 /* ~Invoke Courage~ */
  IF ~~ THEN UNSOLVED_JOURNAL #57946 /* ~The Elven city requires my aid.

'A pane of elven origin is held amidst the servants of nature, in the grasp of the beasts that die to the fire.'~ */ GOTO 81
END

IF ~~ THEN BEGIN 34 // from: 32.1
  SAY #55411 /* ~~ */
  IF ~~ THEN UNSOLVED_JOURNAL #57948 /* ~The Elven city requires my aid.

'Beneath the streets in human city, within the kingdom of the blind, the beast does not see what it has even now.'~ */ GOTO 81
END

IF ~~ THEN BEGIN 35 // from: 32.2
  SAY #55412 /* ~This dagger weighs heavily in your hand, and is warm to the touch. Merely having it on your person makes you feel uneasy for some reason. The gem mounted in the hilt seems to have an inner light of some sort, though how it can have such illuminations and still be so deathly black at its core, you do not know.

Damage:  1D4 + 4
THAC0:  +4 bonus
Effect:  15% Chance of Level Drain
Damage type:  piercing
Weight: 1
Speed Factor: 0
Proficiency Type: Dagger
Type:  1-handed
Requires: 3 Strength
Not Usable By:
 Cleric
 Beast Master~ */
  IF ~~ THEN UNSOLVED_JOURNAL #57949 /* ~The Elven city requires my aid.

'Long hidden with a family's past, abandoned unintentionally with the sealing of the horrors below. Unearthed by invaders of troll and digger, they know not what they have.'~ */ GOTO 81
END

IF ~~ THEN BEGIN 36 // from: 32.3
  SAY #55413 /* ~Lellyn's Journal~ */
  IF ~~ THEN UNSOLVED_JOURNAL #57950 /* ~The Elven city requires my aid.

'In the lair of a crimson wyrm, but not a trinket in the hoard, a liar points the way to treasure, though she knows not the one she holds.'~ */ GOTO 81
END

IF ~~ THEN BEGIN 37 // from: 32.4
  SAY #55414 /* ~~ [AIREL02] */
  IF ~~ THEN UNSOLVED_JOURNAL #57951 /* ~The Elven city requires my aid.

'A traitor among the thieves, he seeks the height of leadership within a guild anew, not knowing the prize he holds.'~ */ GOTO 81
END

IF ~~ THEN BEGIN 38 // from: 32.5
  SAY #55415 /* ~~ [VAMPF01] */
  IF ~~ THEN UNSOLVED_JOURNAL #57952 /* ~The Elven city requires my aid.

'Jailor of the Tiefling, he knows not what he has. On the path of minstrels and troubadours lies a prize within the altar.'~ */ GOTO 81
END

IF ~~ THEN BEGIN 39 // from: 32.6
  SAY #55416 /* ~~ [VAMPF02] */
  IF ~~ THEN UNSOLVED_JOURNAL #57954 /* ~The Elven city requires my aid.

'In the talons of a beast of shadow, amidst the ruins of light near witches and hills. The pane is a curiosity, but he knows its power not.'~ */ GOTO 81
END

IF ~~ THEN BEGIN 40 // from: 81.1 32.7
  SAY #55417 /* ~~ [VAMPF03] */
  IF ~~ THEN GOTO 41
END

IF ~~ THEN BEGIN 41 // from: 57.0 40.0
  SAY #55418 /* ~~ [VAMPF04] */
  IF ~~ THEN GOTO 42
END

IF ~~ THEN BEGIN 42 // from: 41.0
  SAY #55419 /* ~~ [VAMPF05] */
  IF ~~ THEN REPLY #55420 /* ~~ [VAMPF06] */ GOTO 43
  IF ~~ THEN REPLY #55440 /* ~~ [SALAM07] */ GOTO 43
  IF ~~ THEN REPLY #55441 /* ~~ [SALAM08] */ GOTO 44
  IF ~GlobalLT("LensPlot","GLOBAL",8)~ THEN REPLY #55442 /* ~~ [SALAM09] */ GOTO 44
END

IF ~~ THEN BEGIN 43 // from: 42.1 42.0
  SAY #55421 /* ~~ [VAMPF07] */
  IF ~~ THEN GOTO 44
END

IF ~~ THEN BEGIN 44 // from: 43.0 42.3 42.2
  SAY #55422 /* ~~ [OTYUG04] */
  IF ~!IsValidForPartyDialogue("JAN")
!IsValidForPartyDialogue("MAZZY")
!IsValidForPartyDialogue("EDWIN")
!IsValidForPartyDialogue("MINSC")
!IsValidForPartyDialogue("ANOMEN")~ THEN GOTO 45
  IF ~IsValidForPartyDialogue("JAN")~ THEN EXTERN ~JANJ~ 169
  IF ~IsValidForPartyDialogue("MAZZY")
!IsValidForPartyDialogue("JAN")~ THEN EXTERN ~MAZZYJ~ 184
  IF ~IsValidForPartyDialogue("EDWIN")
!IsValidForPartyDialogue("JAN")
!IsValidForPartyDialogue("MAZZY")~ THEN EXTERN ~EDWINJ~ 155
  IF ~IsValidForPartyDialogue("MINSC")
!IsValidForPartyDialogue("JAN")
!IsValidForPartyDialogue("MAZZY")
!IsValidForPartyDialogue("EDWIN")~ THEN EXTERN ~MINSCJ~ 205
  IF ~IsValidForPartyDialogue("ANOMEN")
!IsValidForPartyDialogue("JAN")
!IsValidForPartyDialogue("MAZZY")
!IsValidForPartyDialogue("EDWIN")
!IsValidForPartyDialogue("MINSC")~ THEN EXTERN ~ANOMENJ~ 295
END

IF ~~ THEN BEGIN 45 // from: 44.0
  SAY #55423 /* ~~ [IMPPP01] */
  IF ~~ THEN DO ~GiveItemCreate("miscAU",LastTalkedToBy,3,0,0)
GiveItemCreate("misc6W",LastTalkedToBy,0,0,0)
GiveItemCreate("misc6W",LastTalkedToBy,0,0,0)
GiveItemCreate("misc6W",LastTalkedToBy,0,0,0)
GiveItemCreate("misc6W",LastTalkedToBy,0,0,0)~ GOTO 46
END

IF ~~ THEN BEGIN 46 // from: 45.0
  SAY #55424 /* ~~ [IMPPP02] */
  IF ~~ THEN GOTO 47
END

IF ~~ THEN BEGIN 47 // from: 46.0
  SAY #55425 /* ~~ [IMPPP03] */
  IF ~OR(4)
Dead("Viconia")
!InParty("Viconia")
!See("Viconia")
StateCheck("Viconia",STATE_SLEEPING)~ THEN EXIT
  IF ~!Dead("VICONIA")
InParty("Viconia")
See("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)~ THEN GOTO 48
END

IF ~~ THEN BEGIN 48 // from: 47.1
  SAY #55426 /* ~~ [IMPPP04] */
  IF ~~ THEN EXTERN ~VICONIJ~ 118
END

IF ~~ THEN BEGIN 49 // from:
  SAY #55428 /* ~~ [IMPPP06] */
  IF ~~ THEN REPLY #55429 /* ~~ [IMPPP07] */ EXTERN ~VICONIJ~ 119
  IF ~~ THEN REPLY #55439 /* ~~ [SALAM03] */ GOTO 50
END

IF ~~ THEN BEGIN 50 // from: 49.1
  SAY #55431 /* ~~ [RABBIT06] */
  IF ~!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("KORGAN")
!IsValidForPartyDialogue("MINSC")
!IsValidForPartyDialogue("CERND")~ THEN EXTERN ~VICONIJ~ 120
  IF ~IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~JAHEIRAJ~ 512
  IF ~IsValidForPartyDialogue("KORGAN")
!IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~KORGANJ~ 181
  IF ~IsValidForPartyDialogue("MINSC")
!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~MINSCJ~ 206
  IF ~IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("KORGAN")
!IsValidForPartyDialogue("MINSC")~ THEN EXTERN ~CERNDJ~ 133
END

IF ~~ THEN BEGIN 51 // from:
  SAY #55433 /* ~~ [RABBIT07] */
  IF ~~ THEN EXTERN ~VICONIJ~ 121
END

IF ~~ THEN BEGIN 52 // from:
  SAY #55435 /* ~Intrigue with Jarlaxle

Visaj told me of Jarlaxle and his failed attempt to get revenge on a House that refused him payment for services rendered. Visaj says that he stole a magical rope from Jarlaxle.  With it I would be immune to Imprisonment and I can loot the home of Deirex safely, protected from the Lich inside. I suppose there is only one way to test it.~ */
  IF ~~ THEN EXTERN ~VICONIJ~ 122
END

IF ~~ THEN BEGIN 53 // from:
  SAY #55437 /* ~~ [SALAM01] */
  IF ~~ THEN GOTO 54
END

IF ~~ THEN BEGIN 54 // from: 53.0
  SAY #55438 /* ~~ [SALAM02] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 55 // from: 30.1
  SAY #55443 /* ~~ [SALAM10] */
  IF ~~ THEN DO ~SetGlobal("PlayerToldOfPlot","GLOBAL",1)
SetGlobal("PlayerNeedsPanes","GLOBAL",2)~ GOTO 32
END

IF ~~ THEN BEGIN 56 // from: 30.2
  SAY #55444 /* ~~ [PANTH01] */
  IF ~~ THEN DO ~SetGlobal("PlayerToldOfPlot","GLOBAL",2)
SetGlobal("PlayerNeedsPanes","GLOBAL",1)~ GOTO 32
END

IF ~~ THEN BEGIN 57 // from: 28.1
  SAY #55447 /* ~~ [PANTH04] */
  IF ~~ THEN UNSOLVED_JOURNAL #57914 /* ~The Elven city requires my aid.

Elhan has requested my service none too subtly.  To reach Irenicus I must first help the elves gain entry to their own city, Suldanessellar.  Irenicus has hidden it using illusionary magics of some sort that defy dispelling.  If we are to regain access, I have to retrieve the Rhynn Lanthorn, an artifact lantern that is attuned to the elven nation.  Elhan believes that someone powerful that follows Irenicus stole it from the desecrated elven temple, and I have a very clear idea just who that might be.  I will not receive help from the elves in tracking her, even though I am certain I am familiar with her old stomping ground.  Elhan has advised that he cannot follow with his battalions for risk of causing an even larger incident, this time with paranoid human forces.  He suggested that I seek out allies among the groups I have already met within human territories.~ */ GOTO 41
END

IF ~~ THEN BEGIN 58 // from: 2.2
  SAY #55464 /* ~~ [LEOPA01] */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 59 // from: 2.4
  SAY #55467 /* ~~ [LEOPA04] */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 60 // from: 0.3
  SAY #55471 /* ~~ [CLAYG01] */
  IF ~~ THEN GOTO 2
END

IF ~Global("ElvenCityTree","GLOBAL",0)~ THEN BEGIN 61 // from:
  SAY #55473 /* ~~ [CLAYG03] */
  IF ~GlobalGT("PlayerNeedsPanes","GLOBAL",0)
!PartyHasItem("c6lantho")
!NumItemsPartyGT("c6lens",0)~ THEN GOTO 62
  IF ~Global("PlayerNeedsPanes","GLOBAL",3)
PartyHasItem("c6lantho")
!NumItemsParty("c6lens",3)~ THEN GOTO 64
  IF ~Global("PlayerNeedsPanes","GLOBAL",3)
!PartyHasItem("c6lantho")
NumItemsParty("c6lens",3)~ THEN GOTO 65
  IF ~Global("PlayerNeedsPanes","GLOBAL",3)
PartyHasItem("c6lantho")
NumItemsParty("c6lens",3)~ THEN GOTO 67
  IF ~Global("PlayerNeedsPanes","GLOBAL",0)
PartyHasItem("c6lantho")
~ THEN GOTO 72
  IF ~Global("PlayerNeedsPanes","GLOBAL",0)
!PartyHasItem("c6lantho")
~ THEN GOTO 73
  IF ~Global("PlayerNeedsPanes","GLOBAL",2)
!PartyHasItem("c6lantho")
NumItemsParty("c6lens",2)~ THEN GOTO 65
  IF ~Global("PlayerNeedsPanes","GLOBAL",1)
!PartyHasItem("c6lantho")
NumItemsParty("c6lens",1)~ THEN GOTO 65
  IF ~Global("PlayerNeedsPanes","GLOBAL",2)
PartyHasItem("c6lantho")
NumItemsParty("c6lens",2)~ THEN GOTO 67
  IF ~Global("PlayerNeedsPanes","GLOBAL",1)
PartyHasItem("c6lantho")
NumItemsParty("c6lens",1)~ THEN GOTO 67
  IF ~Global("PlayerNeedsPanes","GLOBAL",2)
PartyHasItem("c6lantho")
!NumItemsPartyGT("c6lens",1)~ THEN GOTO 64
  IF ~Global("PlayerNeedsPanes","GLOBAL",1)
PartyHasItem("c6lantho")
!NumItemsPartyGT("c6lens",0)~ THEN GOTO 82
END

IF ~~ THEN BEGIN 62 // from: 61.0
  SAY #55474 /* ~~ [CLAYG04] */
  IF ~~ THEN GOTO 63
END

IF ~~ THEN BEGIN 63 // from: 62.0
  SAY #55475 /* ~~ [CLAYG05] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 64 // from: 61.10 61.1
  SAY #55476 /* ~~ [CLAYG06] */
  IF ~~ THEN GOTO 83
END

IF ~~ THEN BEGIN 65 // from: 61.7 61.6 61.2
  SAY #55477 /* ~~ [CLAYG07] */
  IF ~~ THEN GOTO 66
END

IF ~~ THEN BEGIN 66 // from: 65.0
  SAY #55478 /* ~~ [MIST01] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 67 // from: 61.9 61.8 61.3
  SAY #55479 /* ~~ [MIST02] */
  IF ~~ THEN DO ~TakePartyItem("c6lantho")
TakePartyItem("c6lens")
TakePartyItem("c6lens")
TakePartyItem("c6lens")~ GOTO 68
END

IF ~~ THEN BEGIN 68 // from: 72.0 67.0
  SAY #55480 /* ~~ [MIST03] */
  IF ~~ THEN DO ~SetGlobal("udMind","GLOBAL",41)
AddXPObject(Player1,85000)
AddXPObject(Player2,85000)
AddXPObject(Player3,85000)
AddXPObject(Player4,85000)
AddXPObject(Player5,85000)
AddXPObject(Player6,85000)
EraseJournalEntry(57914)
EraseJournalEntry(57937)
EraseJournalEntry(57940)
EraseJournalEntry(54686)
EraseJournalEntry(57944)
EraseJournalEntry(57946)
EraseJournalEntry(57948)
EraseJournalEntry(57949)
EraseJournalEntry(57950)
EraseJournalEntry(57951)
EraseJournalEntry(57952)
EraseJournalEntry(57954)
~ GOTO 69
END

IF ~~ THEN BEGIN 69 // from: 68.0
  SAY #55481 /* ~~ [MIST04] */
  IF ~~ THEN GOTO 70
END

IF ~~ THEN BEGIN 70 // from: 69.0
  SAY #55482 /* ~~ [MIST05] */
  IF ~~ THEN REPLY #55483 /* ~~ [MIST06] */ GOTO 71
  IF ~~ THEN REPLY #55485 /* ~Wandering Horror~ */ GOTO 71
  IF ~~ THEN REPLY #55486 /* ~~ [WIZEYE01] */ GOTO 71
END

IF ~~ THEN BEGIN 71 // from: 70.2 70.1 70.0
  SAY #55484 /* ~~ [MIST07] */
  IF ~~ THEN DO ~SetGlobal("ElvenCityTree","GLOBAL",1)
StartCutSceneMode()
StartCutScene("cut50a")~ SOLVED_JOURNAL #57958 /* ~The Elven city requires my aid.

The Rhynn Lanthorn will now guide us into Suldanessellar. The majority of Elhan's elves will have to remain here to rout the Drow, meaning I will be left to deal with Irenicus and whatever he has unleashed upon the city.  Elhan has still not revealed the origins of Irenicus' hatred towards the elves, and has shed little light on why he refers to the mage as 'the Exile', saying only that the crime was great, the punishment greater.  Irenicus must have done something especially abhorrent to the elves.  Once in the city I will see if the high priestess Demin has any more information, if the city is intact at all.~ */ EXIT
END

IF ~~ THEN BEGIN 72 // from: 61.4
  SAY #55487 /* ~~ [WIZEYE02] */
  IF ~~ THEN GOTO 68
END

IF ~~ THEN BEGIN 73 // from: 61.5
  SAY #55488 /* ~You may choose <number> spells to put in your spell book.  These will be the spells that your character currently has the ability to cast.~ */
  IF ~~ THEN GOTO 74
END

IF ~~ THEN BEGIN 74 // from: 73.0
  SAY #55489 /* ~You may choose <number> spells to put in your spell book.  These will be the spells that your character currently has knowledge. 

Specialist mage spells that belong to their school have a green outline on them.
~ */
  IF ~~ THEN EXIT
END

IF ~Global("ElvenCityTree","GLOBAL",1)~ THEN BEGIN 75 // from:
  SAY #55490 /* ~~ [EARTH02] */
  IF ~~ THEN DO ~SetGlobal("ElvenCityTree","GLOBAL",2)
StartCutSceneMode()
StartCutScene("cut50c")
~ EXIT
END

IF ~Global("ElvenCityTree","GLOBAL",2)~ THEN BEGIN 76 // from:
  SAY #55491 /* ~~ [EARTH03] */
  IF ~!Race(Player1,ELF)
~ THEN JOURNAL #23513 /* ~Chapter 7: Part 1

Elhan, the leader of the elven army, has filled in many pieces of the puzzle regarding Irenicus.  The mage and his sister were once elves... and their ambition, their desire for power to rival the gods, led them to perform an atrocity that resulted in everything that was elven being stripped from them.  Left to the longevity of a human, they each found different ways to extend their lives... Bodhi through vampirism, Irenicus through power... both plotting to regain entry into Suldanessellar so that they could have their revenge, as well as another chance to gain the power they desired.

Irenicus had invaded Suldanessellar while the elven army busied itself with the drow... and then he cloaked the elven city in an illusion that hid it from anyone else.  Elhan sent me to collect the a mystic lantern, the Rhynn Lanthorn, that would dispel the illusion.  The item was stolen from the elven holy site by Bodhi... resulting in a difficult confrontation that destroyed the vampire once and for all.  Now all that remains to be dealt with is Irenicus.  His plans must be stopped, and I must regain my soul or be damned to death... or worse...~ */ FLAGS 128 GOTO 77
  IF ~Race(Player1,ELF)
~ THEN JOURNAL #23513 /* ~Chapter 7: Part 1

Elhan, the leader of the elven army, has filled in many pieces of the puzzle regarding Irenicus.  The mage and his sister were once elves... and their ambition, their desire for power to rival the gods, led them to perform an atrocity that resulted in everything that was elven being stripped from them.  Left to the longevity of a human, they each found different ways to extend their lives... Bodhi through vampirism, Irenicus through power... both plotting to regain entry into Suldanessellar so that they could have their revenge, as well as another chance to gain the power they desired.

Irenicus had invaded Suldanessellar while the elven army busied itself with the drow... and then he cloaked the elven city in an illusion that hid it from anyone else.  Elhan sent me to collect the a mystic lantern, the Rhynn Lanthorn, that would dispel the illusion.  The item was stolen from the elven holy site by Bodhi... resulting in a difficult confrontation that destroyed the vampire once and for all.  Now all that remains to be dealt with is Irenicus.  His plans must be stopped, and I must regain my soul or be damned to death... or worse...~ */ FLAGS 128 GOTO 80
END

IF ~~ THEN BEGIN 77 // from: 76.0
  SAY #55492 /* ~~ [EARTH04] */
  IF ~~ THEN GOTO 78
END

IF ~~ THEN BEGIN 78 // from: 80.0 77.0
  SAY #55493 /* ~~ [EARTH05] */
  IF ~OR(4)
Dead("Viconia")
!InParty("Viconia")
!See("Viconia")
StateCheck("Viconia",STATE_SLEEPING)~ THEN DO ~EscapeArea()~ EXIT
  IF ~!Dead("Viconia")
InParty("Viconia")
See("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)~ THEN GOTO 79
END

IF ~~ THEN BEGIN 79 // from: 78.1
  SAY #55494 /* ~~ [EARTH06] */
  IF ~~ THEN DO ~EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 80 // from: 76.1
  SAY #55495 /* ~~ [EARTH07] */
  IF ~~ THEN GOTO 78
END

IF ~~ THEN BEGIN 81 // from: 39.0 38.0 37.0 36.0 35.0 34.0 33.0
  SAY #55496 /* ~~ */
  IF ~GlobalLT("PlayerToldOfPlot","GLOBAL",3)~ THEN GOTO 32
  IF ~GlobalGT("PlayerToldOfPlot","GLOBAL",2)~ THEN GOTO 40
END

IF ~~ THEN BEGIN 82 // from: 61.11
  SAY #55938 /* ~Sahuagin Treasury Key~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 83 // from: 64.0
  SAY #55939 /* ~Door to the Inner Chambers~ */
  IF ~~ THEN EXIT
END
