////////////////////////////////Add CD_STATE_NOTVALID state

APPEND ~STATE.IDS~ ~0x80101FEF CD_STATE_NOTVALID~
            UNLESS ~CD_STATE_NOTVALID~ 
            
ACTION_IF GAME_IS ~bg2ee eet~ THEN BEGIN
 INCLUDE ~Eilistraee/lib/fl#add_kit_ee.tpa~
 INCLUDE ~Eilistraee/lib/functions.tph~
END


///////////////////////////////////JOURNAL EE

ACTION_IF GAME_IS ~bg2ee eet~ THEN BEGIN
  LOAD_TRA ~Eilistraee/Translations/%LANGUAGE%/Setup_EE.TRA~

  ADD_JOURNAL @500 @501 @502 @503 @504 @505 @506 @507 @508 @509 @510 @511 @600 @601 @602 @603
END


////////////////////////////////TRA FOR SOME LANGUAGES

ACTION_IF GAME_IS ~bg2ee eet~ THEN BEGIN
  ACTION_IF ("%LANGUAGE%" STR_EQ "English") THEN BEGIN
   LOAD_TRA ~Eilistraee/Translations/English/Setup_EE.TRA~
  END
END

ACTION_IF GAME_IS ~bg2ee eet~ THEN BEGIN
  ACTION_IF ("%LANGUAGE%" STR_EQ "Russian") THEN BEGIN
   LOAD_TRA ~Eilistraee/Translations/Russian/Setup_EE.TRA~
  END
END


//////////AREAS

COPY ~Eilistraee/AREAS/ARE~         ~override~
COPY ~Eilistraee/AREAS/BMP~         ~override~
COPY ~Eilistraee/AREAS/SLH~         ~override~
COPY ~Eilistraee/AREAS/WED~         ~override~

ACTION_IF GAME_IS ~bg2ee eet~ THEN BEGIN
  COPY ~Eilistraee/EE/AREAS/TIS~    ~override~     // use v2-format TIS files
  COPY ~Eilistraee/EE/AREAS/PVRZ~   ~override~     // PVRZ tiles for v2 TIS files
  COPY ~Eilistraee/EE/AREAS/MOS~    ~override~     // use larger MOS minimap files
END ELSE BEGIN // not Enhanced Edition
  COPY ~Eilistraee/AREAS/TIS~       ~override~     // use v1-format TIS files
  COPY ~Eilistraee/AREAS/MOS~       ~override~     // use smaller MOS minimap files
END


////////////////////////////////BAMS

COPY ~Eilistraee/BAMS~ ~override~


////////////////////////////////PORTRAITS

COPY ~Eilistraee/PORTRAITS~ ~override~


//////////////////////////////////AUDIO INSTALLATION

LAF HANDLE_AUDIO END


////////////////////////////////KIT

ADD_KIT ~ESxKit~ 
~ESxKit 0 0 1 1 0 1 0 0~  // CLASWEAP.2da
~ESxKit 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~ // WEAPPROF.2da 
~ESxKit 0 0 0 0 9 0~ // ABCLASRQ.2da
~ESxKit 0 0 0 0 0 0~ // ABCLSMOD.2da
~ESxKit 0 0 0 0 0 0~ // ABDCDSRQ.2da - sensless
~ESxKit 0 0 0 0 17 0~ // ABDCDSRQ.2da
~ESxKit 1 1 0 1 1 0 1 1 0~ // ALIGNMNT.2da
~ESxKit 1 0 1 1 0 1~ // DUALCLAS.2da
~Eilistraee\KIT\ESxABIL.2da~ // CLAB - abilities     
~~ // KITTABLE.2da
~0x04000000 3~ // KITLIST.2da
~Cl0~ // LUABBR.2da
~* * * * * * * * * * * * * * * * * * * *~  // ToB starting items
  SAY @1 /* Sword Dancer of Eilistraee */
  SAY @1 /* Sword Dancer of Eilistraee */
  SAY @2 /* SWORD DANCER OF EILISTRAEE: Sword Dancers are the servants of the Dark Maiden, Eilistraee. They are usually drow who decided (or were forced to) leave the Underdark. However, not only drow may become Sword Dancers. There are also surface elves and half-elves among them. They usually live in forests or abandoned ruins which become both their shelter and temples. Eilistraee is a good goddess of the moon, dance, song, the sword and the hunt who grants her followers special abilities to help them survive. The Dark Lady herself is a child of Corellon Larethian and Araushnee - later known as Lolth the Queen of the Spider Pits. Eilistraee is also believed to appear in Faerūn herself. At these times, she may be seen during the night as a naked drow woman with long, silver hair, holding a silver sword.

ADVANTAGES:
- May summon a Moon Sword, the enchantment of the sword depends on the Sword Dancer's level.
- May cast Moonfire. This spell grants some light similar to that of the moon. It gives all allies infravision.
- At level 10, the Bladedance skill is granted. It creates a blade that will fight as the caster's ally.
- At level 14, Lesser Spellsong is granted. It gives the caster a Free Action effect.
- At level 16, Spellsong is granted. It gives the caster Free Action as well as Haste.

DISADVANTAGES:
- Only females may become a Sword Dancer.
- Only elves and half-elves may be Sword Dancers.
- Cannot be evil. */

ACTION_IF GAME_IS ~bg2ee eet~ THEN BEGIN
 LAF fl#add_kit_ee
 STR_VAR
 kit_name = ESxKit
 clswpbon = ~0 0 3~
	 hpclass = ~HPPRS~
	 clsrcreq = ~0    1    1    0    0    0    0~
 numwslot = 2
 END
END ELSE BEGIN // not Enhanced Edition
 //Nothing for now
END

 

COPY ~Eilistraee\KIT\ESxSw1.itm~ ~override~
  SAY NAME1 @3 /* Moon Sword +1 */          
  SAY NAME2 @3 /* Moon Sword +1 */ 


COPY ~Eilistraee\KIT\ESxSw2.itm~ ~override~
  SAY NAME1 @4 /* Moon Sword +2 */          
  SAY NAME2 @4 /* Moon Sword +2 */


COPY ~Eilistraee\KIT\ESxSw3.itm~ ~override~
  SAY NAME1 @5 /* Moon Sword +3 */          
  SAY NAME2 @5 /* Moon Sword +3 */


COPY ~Eilistraee\KIT\ESxSw4.itm~ ~override~
  SAY NAME1 @6 /* Moon Sword +4 */          
  SAY NAME2 @6 /* Moon Sword +4 */


COPY ~Eilistraee\KIT\ESxSw5.itm~ ~override~
  SAY NAME1 @7 /* Moon Sword +5 */          
  SAY NAME2 @7 /* Moon Sword +5 */


COPY ~Eilistraee\KIT\ESxSw6.itm~ ~override~
  SAY NAME1 @8 /* Moon Sword +6 */          
  SAY NAME2 @8 /* Moon Sword +6 */ 


COPY ~Eilistraee\KIT\ESxblade.itm~ ~override~
COPY ~Eilistraee\KIT\ESxblade.cre~ ~override~
  SAY NAME1 @9 /* Dancing Blade */          
  SAY NAME2 @9 /* Dancing Blade */

COPY ~Eilistraee\KIT\ESxblade.eff~ ~override~

COPY ~Eilistraee\KIT\ESxfire.spl~ ~override~
  WRITE_SHORT 0x1C 4                     
  WRITE_LONG 0x34 1
  READ_LONG 0x64 "offset_abil"
  READ_SHORT  0x68 "num_abil"
  READ_ASCII ("%offset_abil%" + 0x04) "bam"            
  WRITE_EVALUATED_ASCII 0x3A "%bam%"                
  SAY NAME1 @10 /* Moonfire */          
  SAY NAME2 @10 /* Moonfire */  
  SAY UNIDENTIFIED_DESC #12162                                             
  WHILE (0 < "%num_abil%")
    BEGIN
      WRITE_SHORT (("%offset_abil%" + 0x02) + (("%num_abil%" - 1) * 0x28)) 4 
      SET "num_abil" = ("%num_abil%" - 1)
    END

COPY ~Eilistraee\KIT\ESxlsong.spl~ ~override~
  WRITE_SHORT 0x1C 4                     
  WRITE_LONG 0x34 1
  READ_LONG 0x64 "offset_abil"
  READ_SHORT  0x68 "num_abil"
  READ_ASCII ("%offset_abil%" + 0x04) "bam"            
  WRITE_EVALUATED_ASCII 0x3A "%bam%"                
  SAY NAME1 @11 /* Lesser Spellsong */          
  SAY NAME2 @11 /* Lesser Spellsong */  
  SAY UNIDENTIFIED_DESC @2                                               
  WHILE (0 < "%num_abil%")
    BEGIN
      WRITE_SHORT (("%offset_abil%" + 0x02) + (("%num_abil%" - 1) * 0x28)) 4 
      SET "num_abil" = ("%num_abil%" - 1)
    END

COPY ~Eilistraee\KIT\ESxsong.spl~ ~override~
  WRITE_SHORT 0x1C 4                     
  WRITE_LONG 0x34 1
  READ_LONG 0x64 "offset_abil"
  READ_SHORT  0x68 "num_abil"
  READ_ASCII ("%offset_abil%" + 0x04) "bam"            
  WRITE_EVALUATED_ASCII 0x3A "%bam%"                
  SAY NAME1 @12 /* Spellsong */          
  SAY NAME2 @12 /* Spellsong */  
  SAY UNIDENTIFIED_DESC @2                                               
  WHILE (0 < "%num_abil%")
    BEGIN
      WRITE_SHORT (("%offset_abil%" + 0x02) + (("%num_abil%" - 1) * 0x28)) 4 
      SET "num_abil" = ("%num_abil%" - 1)
    END

COPY ~Eilistraee\KIT\ESxMSw.spl~ ~override~
  WRITE_SHORT 0x1C 4                     
  WRITE_LONG 0x34 1
  READ_LONG 0x64 "offset_abil"
  READ_SHORT  0x68 "num_abil"
  READ_ASCII ("%offset_abil%" + 0x04) "bam"            
  WRITE_EVALUATED_ASCII 0x3A "%bam%"                
  SAY NAME1 @13 /* Moon Sword Summoning */          
  SAY NAME2 @13 /* Moon Sword Summoning */  
  SAY UNIDENTIFIED_DESC @2                                             
  WHILE (0 < "%num_abil%")
    BEGIN
      WRITE_SHORT (("%offset_abil%" + 0x02) + (("%num_abil%" - 1) * 0x28)) 4 
      SET "num_abil" = ("%num_abil%" - 1)
    END

COPY ~Eilistraee\KIT\ESxblade.spl~ ~override~
  WRITE_SHORT 0x1C 4                     
  WRITE_LONG 0x34 1
  READ_LONG 0x64 "offset_abil"
  READ_SHORT  0x68 "num_abil"
  READ_ASCII ("%offset_abil%" + 0x04) "bam"            
  WRITE_EVALUATED_ASCII 0x3A "%bam%"                
  SAY NAME1 @14 /* Bladedance */          
  SAY NAME2 @14 /* Bladedance */                                               
  WHILE (0 < "%num_abil%")
    BEGIN
      WRITE_SHORT (("%offset_abil%" + 0x02) + (("%num_abil%" - 1) * 0x28)) 4 
      SET "num_abil" = ("%num_abil%" - 1)
    END


////////////////////////////////CREATURES

COPY ~Eilistraee/CREATURES/ESxBARD.cre~ ~override/ESxBard.cre~
  SAY NAME1 @15 /* Thas'zzaria */
  SAY NAME2 @15 /* Thas'zzaria */

COPY ~Eilistraee/CREATURES/ESxCC.cre~ ~override/ESxCC.cre~
  SAY NAME1 @16 /* Ostra */
  SAY NAME2 @16 /* Ostra */

COPY ~Eilistraee/CREATURES/ESxCC2.cre~ ~override/ESxCC2.cre~
  SAY NAME1 @16 /* Ostra */
  SAY NAME2 @16 /* Ostra */

COPY ~Eilistraee/CREATURES/ESxCD.cre~ ~override/ESxCD.cre~
  SAY NAME1 @17 /* Chain Demon */
  SAY NAME2 @17 /* Chain Demon */

COPY ~Eilistraee/CREATURES/ESxLICH.cre~ ~override/ESxLich.cre~
  SAY NAME1 @18 /* Demi-Lich */
  SAY NAME2 @18 /* Demi-Lich */

COPY ~Eilistraee/CREATURES/ESxMH.cre~ ~override/ESxMH.cre~
  SAY NAME1 @19 /* Fall */
  SAY NAME2 @19 /* Fall */

COPY ~Eilistraee/CREATURES/ESxMH2.cre~ ~override/ESxMH2.cre~
  SAY NAME1 @19 /* Fall */
  SAY NAME2 @19 /* Fall */

COPY ~Eilistraee/CREATURES/ESxQuif.cre~ ~override/ESxQuif.cre~
  SAY NAME1 @20 /* Quif De'Vir */
  SAY NAME2 @20 /* Quif De'Vir */

COPY ~Eilistraee/CREATURES/ESxSE.cre~ ~override/ESxSE.cre~
  SAY NAME1 @21 /* Sleeping Drow */
  SAY NAME2 @21 /* Sleeping Drow */

COPY ~Eilistraee/CREATURES/ESxShas.cre~ ~override/ESxShas.cre~
  SAY NAME1 @22 /* Shas'tan */
  SAY NAME2 @22 /* Shas'tan */

COPY ~Eilistraee/CREATURES/ESxSha2.cre~ ~override/ESxSha2.cre~
  SAY NAME1 @22 /* Shas'tan */
  SAY NAME2 @22 /* Shas'tan */

COPY ~Eilistraee/CREATURES/ESxSNA.cre~ ~override/ESxSNA.cre~
  SAY NAME1 @23 /* Child of Sseth */
  SAY NAME2 @23 /* Child of Sseth */

COPY ~Eilistraee/CREATURES/ESxSOLA.cre~ ~override/ESxSola.cre~
  SAY NAME1 @24 /* Solaufein */
  SAY NAME2 @24 /* Solaufein */

COPY ~Eilistraee/CREATURES/ESxTH.cre~ ~override/ESxTH.cre~
  SAY NAME1 @25 /* Hooded Man */
  SAY NAME2 @25 /* Hooded Man */

COPY ~Eilistraee/CREATURES/ESxVash.cre~ ~override/ESxVash.cre~
  SAY NAME1 @26 /* Vash */
  SAY NAME2 @26 /* Vash */

COPY ~Eilistraee/CREATURES/ESxYoea.cre~ ~override/ESxYoea.cre~
  SAY NAME1 @27 /* Yoea */
  SAY NAME2 @27 /* Yoea */

COPY ~Eilistraee/CREATURES/ESxSER.cre~ ~override/ESxSER.cre~
  SAY NAME1 @28 /* Mist Creature */
  SAY NAME2 @28 /* Mist Creature */

COPY ~Eilistraee/CREATURES/ESxSERM.cre~ ~override/ESxSERM.cre~
  SAY NAME1 @29 /* Deadly zombie */
  SAY NAME2 @29 /* Deadly zombie */

COPY ~Eilistraee/CREATURES/ESxJOI.cre~ ~override/ESxJOI.cre~
  SAY NAME1 @30 /* Joi */
  SAY NAME2 @30 /* Joi */

COPY ~Eilistraee/CREATURES/ESxCG.cre~ ~override/ESxCG.cre~
  SAY NAME1 @31 /* Crying Girl */
  SAY NAME2 @31 /* Crying Girl */

COPY ~Eilistraee/CREATURES/ESxPrie.cre~ ~override/ESxPrie.cre~
  SAY NAME1 @32 /* Sword Dancer-Sentinel */
  SAY NAME2 @32 /* Sword Dancer-Sentinel */

COPY ~Eilistraee/CREATURES/ESxEO.cre~ ~override/ESxEO.cre~
  SAY NAME1 @33 /* Eo */
  SAY NAME2 @33 /* Eo */

COPY ~Eilistraee/CREATURES/ESxBIO.cre~ ~override/ESxBIO.cre~
  SAY NAME1 @34 /* Drow */
  SAY NAME2 @34 /* Drow */

COPY ~Eilistraee/CREATURES/ESxRAB.cre~ ~override/ESxRAB.cre~
  SAY NAME1 @35 /* Rabbit */
  SAY NAME2 @35 /* Rabbit */

COPY ~Eilistraee/CREATURES/ESxBea.cre~ ~override/ESxBea.cre~
  SAY NAME1 @36 /* Bear */
  SAY NAME2 @36 /* Bear */

COPY ~Eilistraee/CREATURES/ESxWOM.cre~ ~override/ESxWOM.cre~
  SAY NAME1 @37 /* Woman */
  SAY NAME2 @37 /* Woman */

COPY ~Eilistraee/CREATURES/ESxELF.cre~ ~override/ESxELF.cre~
  SAY NAME1 @34 /* Drow */
  SAY NAME2 @34 /* Drow */


/////////////////////////////////SPELLS

COPY ~Eilistraee/SPELLS/ESxChan.spl~ ~override/ESxChan.spl~
  SAY NAME1 @38 /* Chant of Eilistraee's Hunting */
  SAY NAME2 @38 /* Chant of Eilistraee's Hunting */
  SAY DESC @100
  SAY UNIDENTIFIED_DESC @100


/////////////////////////////////ITEMS

COPY ~Eilistraee/ITEMS/ESxR1.itm~ ~override~
  SAY NAME1 @39 /* Swordbreaker */
  SAY NAME2 @39 /* Swordbreaker */
  SAY DESC @40 /* This is a magical ring found near the forgotten tomb. It is made of some kind of red metal. When you hold the ring, you have a strange feeling - as if you were more confident than usual.

STATISTICS:

50% resistance to slashing weapons
Immunity to Slow */


COPY ~Eilistraee/ITEMS/ESxS1.itm~ ~override~
  SAY NAME1 @41 /* Moon Sword */
  SAY NAME2 @41 /* Moon Sword */
  SAY DESC @42 /* This is a bastard sword made of metal that reminds you of silver. It has a long blade glowing with a silver-blue light. The blade seems to be really sharp. It is said that Eilistraee herself fought with a similar blade. This particular sword was a possession of Fall - the main huntress of Eilistraee's followers who live in the clearing in the Forest of Tethyr.

STATISTICS:

Damage: 2d4 + 4
THAC0: +5
Special effects:
 50% resistance to cold
 Protection from backstab
 Protection from level drain
Damage type: slashing
Weight: 9
Speed Factor: 3
Proficiency Type: Bastard Sword
Type: 1-handed
Requires: 11 Strength
Not Usable By:
 Druid
 Cleric
 Mage
 Evil characters */


COPY ~Eilistraee/ITEMS/ESxKIT.itm~ ~override~
  SAY NAME1 @43 /* Symbol of Eilistraee */
  SAY NAME2 @43 /* Symbol of Eilistraee */
  SAY DESC @44 /* This is the symbol of Eilistraee - the goddess of good drow and some elves. It is said that the Dark Maiden as the patron of hunting and song blesses her followers with a beautiful voice that cannot be silenced.

STATISTICS:

Grants an additional 6th and 7th level spell.
5% Magic Resistance while worn
+1 to Charisma while worn
Wearer is immune to Silence spells

Usable By:
Sword Dancers of Eilistraee */


COPY ~Eilistraee/ITEMS/ESxVic.itm~ ~override~
  SAY NAME1 @45 /* De'Vir Amulet */
  SAY NAME2 @45 /* De'Vir Amulet */
  SAY DESC @46 /* This amulet used to be a magical artifact worn by Ginafae De'Vir, the Matron Mother of House De'Vir from Menzoberranzan. It has the shape of a spider. The amulet is said to give its wearer magical support. The amulet was given to Viconia by Quif De'Vir - Viconia's younger kin.

STATISTICS:

+1 bonus to all saving throws
+2 armor class against spiders
+3 additional 1st level spells (divine magic)
Immunity to all kinds of poisons

Usable by:
 Viconia */


COPY ~Eilistraee/ITEMS/ESxAN.itm~ ~override~
  SAY NAME1 @47 /* Rusty Myth */
  SAY NAME2 @47 /* Rusty Myth */
  SAY DESC @48 /* This is magical sword you have found in the tomb near Eilistraee's Clearing. It was guarded by a demi-lich. The sword itself if covered with rust and dust. This weapon seems to hide a powerful magic within, but on the other hand, it looks quite fragile.

STATISTICS:

Damage: 1d8 + 4
THAC0: +5
Special:
 +1 armor class
 Protection from 1st level spells
 One additional attack per round
 10% resistance to magic
 6% chance the sword will break on a successful hit
Damage type: slashing
Weight: 3
Speed Factor: 4
Proficiency Type: Scimitar/Wakizashi/Ninja-To
Type: 1-handed
Requires: 10 Strength
Not Usable By:
 Cleric
 Mage */

 
COPY ~Eilistraee/ITEMS/ESxL1.itm~ ~override/ESxL1.itm~
  SAY NAME1 @49 /* Fall's Letter */
  SAY NAME2 @49 /* Fall's Letter */
  SAY DESC @50 /* This is the letter that Fall wrote. I'm supposed to deliver it to Elhan. */


COPY ~Eilistraee/ITEMS/ESxL1.itm~ ~override/ESxL2.itm~
  SAY NAME1 @51 /* Elhan's Letter */
  SAY NAME2 @51 /* Elhan's Letter */
  SAY DESC @52 /* This is Elhan's response to Fall's letter. I should deliver it to Fall. */


COPY ~Eilistraee/ITEMS/ESxL1.itm~ ~override/ESxL3.itm~
  SAY NAME1 @53 /* Strange Letter */
  SAY NAME2 @53 /* Strange Letter */
  SAY DESC @54 /* This is a strange letter found on the body of drow killed by other drow in the Underdark.

"You shall test the kin we have discussed. Determine their feelings about our society, about Ust Natha. They may become our future companions in the clearing.

S."

It seems the drow have failed. */


COPY ~Eilistraee/ITEMS/ESxB1.itm~ ~override/ESxB1.itm~
  SAY NAME1 @55 /* History of Eilistraee */
  SAY NAME2 @55 /* History of Eilistraee */
  SAY DESC @56 /* This parchment is a reference scroll about Eilistraee, the Dark Maiden.

"Eilistraee is called the Dark Maiden and the Lady of the Dance. She's a good deity of drow who decided to escape the Darkness Beneath - the Underdark. Not only drow praise the Maiden, but also some surface elves. She is known to be the patron of good drow, music, dance, hunters and moonlight.

Eilistraee was the daughter of Corellon Larethian and Araushnee, who later became Lolth, and the sister of Vhaeraun. She was banished along with the other drow deities for her role, albeit inadvertently, in the war against the Seldarine. Eilistraee insisted upon this punishment from her reluctant father, because she foresaw that the dark elves would need a beacon of good within their reach.

Eilistraee's allies were the Seldarine, Mystra, Selune and the good deities of the Underdark races; her enemies are the evil deities of the Underdark, especially the rest of the drow pantheon." */


COPY ~Eilistraee/ITEMS/ESxB1.itm~ ~override/ESxB2.itm~
  SAY NAME1 @57 /* About Eilistraee and Other Gods */
  SAY NAME2 @57 /* About Eilistraee and Other Gods */
  SAY DESC @58 /* This scroll tells some details about Eilistraee as well as about other gods.

"First of all we should all tell what *gods* are. A deity is a being of great power who controls some aspect of mortal affairs, referred to as the god's portfolio. True gods are called Estelar and differ from the Dawn Titans.

...

The Drow worship the Dark Seldarine, deities that were cast out of the Seldarine after the failed invasion of Arvandor by the Anti-Seldarine. This original trio of gods was joined by four more as time passed. But with the events of the Time of Troubles and the War of the Spider Queen, Lolth subsumed the worship of the entire drow pantheon. 

...

The Time of Troubles, also known as the Arrival, the Godswar and the Avatar Crisis, was a cataclysmic time period in the chronology of Faerūn. Taking place during 1358 DR, the Year of Shadows, the Time of Troubles was a period during which the deities of Faerūn were forced to walk the earth in their mortal avatar forms. Several major deities died during the Time of Troubles and a handful of mortals rose to divinity.

...

Cyric, a petty, sadistic mercenary, slew Bhaal with the sword Godsbane (actually the god Mask in disguise). After the end of the Time of Troubles, he was granted control of nearly all the portfolios of the Dead Three by Ao, making him briefly the most powerful of the gods.

...

The church of Eilistraee headquartered at the Promenade located near Skullport was led by the High Priestess Qilué Veladorn, youngest of the Seven Sisters and Chosen of Mystra. Second to her was the Promenade's Battlemistress Rylla. All priestesses were free to do as they liked unless given a mission by either Qilué or Rylla. Although the Darksong knights, priestess/warriors, had more independence, they too were subject to being given missions. Generally, its clerics wore their hair long and dressed practically for whatever they were currently doing. For rituals, they wore as little as possible. Otherwise, they tended to wear soft leathers for hunting, aprons while cooking, and  rarely  armor when battle was expected. When relaxing, they favored silvery, diaphanous gowns. Their holy symbol was a small sword; clerics preferred holy symbols of silver, typically worn as pins or hung around the neck on slender silver or mithral chains. They prayed for spells at night, after moonrise, singing their prayers whenever possible. Their rituals revolved around a hunt followed by a feast, dancing, and a Circle of Song. This last was held preferably in a wooded glade on a moonlit night, in which the worshippers would sit and dance by turns in a circle, each one leading a song." */


COPY ~Eilistraee/ITEMS/ESxEle.itm~ ~override~
  SAY NAME1 @59 /* Elephant Figurine */
  SAY NAME2 @59 /* Elephant Figurine */
  SAY DESC @60 /* This is magical figurine of a golden elephant called the Mighty Jewel. It gives magical support to the one who uses it.

STATISTICS:

Grants +50 bonus to hit points for 2 minutes

Usable by:
Anyone */


COPY ~Eilistraee/ITEMS/ESxbard.itm~ ~override~
  SAY NAME1 @61 /* Book */
  SAY NAME2 @61 /* Book */
  SAY DESC @62 /* This is the book stolen from the bard in Eilistraee's Clearing. */


COPY ~Eilistraee/ITEMS/ESxR2.itm~ ~override~
  SAY NAME1 @63 /* Ring */
  SAY NAME2 @63 /* Ring */
  SAY DESC @64 /* This ring was found in the stomach of a beast known as the Child of Sseth - a giant snake that lived in Tethyr Forest. */


COPY ~Eilistraee/ITEMS/ESxGMO.itm~ ~override~
  SAY NAME1 @65 /* Bottle */
  SAY NAME2 @65 /* Bottle */
  SAY DESC @66 /* There is a small label on the bottle that says "Drink me". */


COPY ~Eilistraee/ITEMS/ESxCHA.itm~ ~override~
  SAY NAME1 @67 /* Chain Mail of Eilistraee */
  SAY NAME2 @67 /* Chain Mail of Eilistraee */
  SAY DESC @68 /* This chain mail used to belong to Fall, a servant of Eilistraee who decided to help Suldanesselar in the raid of evil creatures summoned by the mighty power of elven traitor Jon Irenicus. The armor is magically enchanted so it provides great power and doesn't block a mage's ability to cast arcane spells, nor does it block a thief's skills.

STATISTICS:

Armor Class: 1
+1 Charisma
Allows use of thievery and arcane spells
Weight: 7
Requires: 8 Strength
Not Usable By:
 Druid 
 Mage 
 Thief
 Evil characters */

 
COPY ~Eilistraee/ITEMS/ESxJOI.itm~ ~override~
  SAY NAME1 @69 /* Teddy Bear */
  SAY NAME2 @69 /* Teddy Bear */
  SAY DESC @70 /* This is an old teddy bear obtained from a crying girl at Waukeen's Promenade. */

COPY ~Eilistraee/ITEMS/ESxCAR.itm~ ~override~
  SAY NAME1 @71 /* Carrot */
  SAY NAME2 @71 /* Carrot */
  SAY DESC @72 /* This is a wild-growing carrot. It's quite fresh. Carrots are believed to be a rabbit's favorite food. It's surprising this carrot was found in Eilistraee's Clearing. There are lots of rabbits there. */


COPY ~Eilistraee/ITEMS/ESxRAB.itm~ ~override~
  SAY NAME1 @73 /* Lucky Charm */
  SAY NAME2 @73 /* Lucky Charm */
  SAY DESC @74 /* This is a rabbit's foot. It is said that a rabbit foot worn near the hand or belt gives the owner luck.

STATISTICS:

+1% magic resistance
+5 saving throw vs. death
+2 luck */


COPY ~Eilistraee/ITEMS/ESxPIPE.itm~ ~override~
  SAY NAME1 @75 /* Smoking Pipe */
  SAY NAME2 @75 /* Smoking Pipe */
  SAY DESC @76 /* This is the smoking pipe you took from a rabbit. No matter how strange it sounds, it's true. */


COPY ~Eilistraee/ITEMS/ESxToot.itm~ ~override~
  SAY NAME1 @77 /* Silver Tooth */
  SAY NAME2 @77 /* Silver Tooth */
  SAY DESC @78 /* This is the silver tooth of a lich you slayed at Eilistraee's Clearing. The undead creature lived in a tomb; its true life ended some time ago. The tooth itself has some kind of magic, but it seems there is not any clear or obvious way to use it. */


COPY ~Eilistraee/ITEMS/ESxBoot.itm~ ~override~
  SAY NAME1 @79 /* Moondance Boots */
  SAY NAME2 @79 /* Moondance Boots */
  SAY DESC @80 /* These are magical boots you found on the body of an assassinated drow. The boots seem to be of good quality. They are made of leather. When you wear them, you feel as if your steps are more accurate and slightly faster.

STATISTICS:

+1 dexterity bonus
+1 movement speed (not hindered by Free Action) */


COPY ~Eilistraee/ITEMS/ESxDAG.itm~ ~override~
  SAY NAME1 @81 /* Dozen Moons */
  SAY NAME2 @81 /* Dozen Moons */
  SAY DESC @82 /* This ritual dagger is a magical item forged from silver tooth of a lich, adamantine dust and a moonstone gem. It is said that a similar weapon was used by the greatest priestess of Eilistraee.

Dozen Moons is a dagger which may affect the fate of the creature hit with it. It is said the dagger cuts through the possible fate as if it were a material object. The dagger may cast one of a dozen effects which will provide the wielder a successful battle.

STATISTICS:

Damage: 1d4 + 3
THAC0: +6
+20% resistance to magic
Protects from 1st level spells
Twelve moons (only one effect can by applied with each hit, effect may be avoided with saving throw):
 2% chance to heal wielder (30 HP)
 2% chance to inflict fear on enemy
 2% chance to inflict 10 fire damage to enemy
 2% chance to inflict 10 acid damage to enemy
 2% chance to inflict 10 electric damage to enemy
 2% chance to drain 3 levels from enemy
 2% chance to slow enemy
 2% chance to silence enemy
 2% chance to stun enemy
 2% chance to unsummon (if enemy is a summoned creature)
 2% chance to blind enemy
 2% chance to entangle enemy
Weight: 1
Speed Factor: 1
Proficiency Type: Dagger
Type: 1-handed
Requires: 3 Strength
Usable By:
 Anyone */


COPY ~Eilistraee/ITEMS/ESxDAG2.itm~ ~override~
  SAY NAME1 @83 /* 13th Moon */
  SAY NAME2 @83 /* 13th Moon */
  SAY DESC @84 /* This ritual dagger is a magical item forged from the silver tooth of a lich and some other components. It is said that a similar weapon was used by the greatest priestess of Eilistraee.

13th Moon is a dagger which may affect the fate of creature hit with it. It is said the dagger cuts through the possible fate as if it were a material object. The dagger may cast one of thirteen effects which will provide the wielder a successful battle.

This weapon is actually a modified Dozen Moons dagger. Cromwell used his teacher's recipe to use an additional component - a Silver Blade, which is part of the famous Silver Sword.

STATISTICS:

Damage: 1d4 + 4
THAC0: +6
+20% resistance to magic
Protects from 1st level spells
Thirteen moons (only one effect can by applied with each hit, effect may be avoided with saving throw):
 2% chance to heal wielder (30 HP)
 2% chance to inflict fear on enemy
 2% chance to inflict 10 fire damage to enemy
 2% chance to inflict 10 acid damage to enemy
 2% chance to inflict 10 electric damage to enemy
 2% chance to drain 3 levels from enemy
 2% chance to slow enemy
 2% chance to silence enemy
 2% chance to stun enemy
 2% chance to unsummon (if enemy is a summoned creature)
 2% chance to blind enemy
 2% chance to entangle enemy
 15% chance to kill enemy
Weight: 1
Speed Factor: 1
Proficiency Type: Dagger
Type: 1-handed
Requires: 3 Strength
Usable By:
 Anyone */


COPY ~Eilistraee/ITEMS/ESxmoss.itm~ ~override~
  SAY NAME1 @85 /* Dark-Green Moss */
  SAY NAME2 @85 /* Dark-Green Moss */
  SAY DESC @86 /* It is said this moss may heal even the worst wounds made by both magic and physical weapons. It has a bitter taste and smell, but the magical feature of the moss may prove helpful.

STATISTICS:

Heals 40 HP */


/////////////////////////////////DIALOGUES

COMPILE EVALUATE_BUFFER
      ~Eilistraee/DIALOGUES/Elhan.d~
      ~Eilistraee/DIALOGUES/ESxBard.d~
      ~Eilistraee/DIALOGUES/ESxCC.d~
      ~Eilistraee/DIALOGUES/ESxMH.d~
      ~Eilistraee/DIALOGUES/ESxMH2.d~
      ~Eilistraee/DIALOGUES/ESxQUIF.d~
      ~Eilistraee/DIALOGUES/ESxShas.d~
      ~Eilistraee/DIALOGUES/ESxSola.d~
      ~Eilistraee/DIALOGUES/ESxTH.d~
      ~Eilistraee/DIALOGUES/ESxVash.d~
      ~Eilistraee/DIALOGUES/ESxYoea.d~
      ~Eilistraee/DIALOGUES/ESxSER.d~
      ~Eilistraee/DIALOGUES/ESxCD.d~
      ~Eilistraee/DIALOGUES/ESxCG.d~
      ~Eilistraee/DIALOGUES/ESxJOI.d~
      ~Eilistraee/DIALOGUES/ESxPRIE.d~
      ~Eilistraee/DIALOGUES/ESxRAB.d~
      ~Eilistraee/DIALOGUES/ESxBIO.d~
      ~Eilistraee/DIALOGUES/ESxEO.d~
      ~Eilistraee/DIALOGUES/ESxCC2.d~
      ~Eilistraee/DIALOGUES/ESxWOM.d~
      ~Eilistraee/DIALOGUES/Cromwell.d~


//////////////////////////////////SCRIPTS

COMPILE EVALUATE_BUFFER
      ~Eilistraee/SCRIPTS/ARES02.baf~
      ~Eilistraee/SCRIPTS/ARES03.baf~
      ~Eilistraee/SCRIPTS/ARES04.baf~
      ~Eilistraee/SCRIPTS/ARES05.baf~
      ~Eilistraee/SCRIPTS/ARES06.baf~
      ~Eilistraee/SCRIPTS/ESxCD.baf~
      ~Eilistraee/SCRIPTS/ESxSER.baf~
      ~Eilistraee/SCRIPTS/ESxELF.baf~

ACTION_IF GAME_IS ~bg2 bgt~ BEGIN
 COMPILE EVALUATE_BUFFER ~Eilistraee/SCRIPTS/ARES01.baf~
END ELSE BEGIN
 COMPILE EVALUATE_BUFFER ~Eilistraee/EE/ARES01.baf~
END

EXTEND_TOP    ~AR1105.bcs~ ~Eilistraee/SCRIPTS/AR1105.baf~ EVALUATE_BUFFER
EXTEND_TOP    ~AR0334.bcs~ ~Eilistraee/SCRIPTS/AR0334.baf~ EVALUATE_BUFFER
EXTEND_TOP    ~AR2100.bcs~ ~Eilistraee/SCRIPTS/AR2100.baf~ EVALUATE_BUFFER
EXTEND_TOP    ~AR2401.bcs~ ~Eilistraee/SCRIPTS/AR2401.baf~ EVALUATE_BUFFER
EXTEND_TOP    ~AR2600.bcs~ ~Eilistraee/SCRIPTS/AR2600.baf~ EVALUATE_BUFFER
EXTEND_TOP    ~AR2800.bcs~ ~Eilistraee/SCRIPTS/AR2800.baf~ EVALUATE_BUFFER
EXTEND_TOP    ~AR0700.bcs~ ~Eilistraee/SCRIPTS/AR0700.baf~ EVALUATE_BUFFER
EXTEND_TOP    ~AR4000.bcs~ ~Eilistraee/SCRIPTS/AR4000.baf~ EVALUATE_BUFFER
EXTEND_BOTTOM ~Baldur.bcs~ ~Eilistraee/SCRIPTS/Baldur.baf~ EVALUATE_BUFFER


///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////

// map icon index in mapicons.bam
ACTION_IF GAME_IS ~eet~ BEGIN
  ACTION_DEFINE_ASSOCIATIVE_ARRAY remapped_icons BEGIN 9 => 175 END
END ELSE ACTION_IF GAME_IS ~bg2ee~ BEGIN
  INCLUDE ~%MOD_FOLDER%/Worldmap/add_map_icons_ee.tpa~
  LAF ADD_MAP_ICONS_EE STR_VAR path_to_icons = EVAL ~%MOD_FOLDER%/Worldmap/ee/icon.bam~ patch_to_pvrz = EVAL ~%MOD_FOLDER%/Worldmap/ee~ RET new_icon_index END
  ACTION_DEFINE_ASSOCIATIVE_ARRAY remapped_icons BEGIN 9 => ~%new_icon_index%~ END
  STRING_SET 23084 @4000300 //Traveling Hours -> Hours
  STRING_SET 5684 @4000301 //Destination Unreachable -> Unreachable
END ELSE BEGIN //bg2, bgt
  INCLUDE ~%MOD_FOLDER%/Worldmap/add_map_icons.tpa~
  LAF ADD_MAP_ICONS STR_VAR path_to_icons = EVAL ~%MOD_FOLDER%/Worldmap/bg/icon.bam~ RET new_icon_index END
  ACTION_DEFINE_ASSOCIATIVE_ARRAY remapped_icons BEGIN 9 => ~%new_icon_index%~ END
END

// patch WMP using TBL files
INCLUDE ~%MOD_FOLDER%/Worldmap/add_worldmap_tbl.tpa~
LAF ADD_WORLDMAP_TBL
  INT_VAR
  verbose = 0
  inclSv = include_saves
  add_x = wmp_xCoord_SoA
  add_y = wmp_yCoord_SoA
  patch_bp_files = 1
  patch_mastarea = 1
  STR_VAR
  path_to_areas = EVAL ~%MOD_FOLDER%/Worldmap/areas_bg2.tbl~
  path_to_areas_bp = EVAL ~%MOD_FOLDER%/Worldmap/areas.tbl~
  path_to_links = EVAL ~%MOD_FOLDER%/Worldmap/links.tbl~
  path_to_trans = EVAL ~%MOD_FOLDER%/Translations/%LANGUAGE%/worldmap.tra~
  icons_table = remapped_icons
END


// end of main component
