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

BEGIN ~SCSAIN~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #0 ~InPartySlot(LastTalkedToBy,0)
Global("BeholderPlot","GLOBAL",2)
Global("SculptorPlot","GLOBAL",0)
Global("SculptorDone","GLOBAL",0)~ THEN BEGIN 0 // from:
  SAY #28427 /* ~Hello. I welcome you within the dawn light of Lathander. I have heard of the good you have done, and ask a task of you to further the glory of the Morninglord.~ [SAINXX02] */
  IF ~~ THEN REPLY #28428 /* ~I will hear you. What is it you wish?~ */ GOTO 2
  IF ~~ THEN REPLY #28429 /* ~I do not have time for this just yet.~ */ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 54.1 0.1
  SAY #28430 /* ~Very well. Return unto me when you are able to hear me through.~ */
  IF ~~ THEN DO ~SetNumTimesTalkedTo(0)
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 54.0 0.0
  SAY #28431 /* ~I knew you were of the faithful. Here is the task as I envision it. It is hard to keep in clarity, such is the light of Lathander that it will bring.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #28432 /* ~I am charged with the acquisition of art for the temple.  The beauty of the dawn must be captured in every nook and cranny of Lathander's home.~ */
  IF ~~ THEN REPLY #28434 /* ~And what is it you wish of me?~ */ GOTO 4
  IF ~~ THEN REPLY #28435 /* ~And a lovely job you do.~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.1 3.0
  SAY #28433 /* ~Athkatla is blessed with the presence of perhaps the greatest sculptor of our age... at least, since the death of Prism of Nashkel. What a loss he was to us.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #28447 /* ~The artist is known as Sir Sarles, and he is making an all-too-brief visit. We would be foolish not to seize upon the opportunity to have him work for us.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #28454 /* ~Unfortunately, he commands a high commission.  And he wishes to work in solid illithium! A lesser artist would be laughed out of town for such extravagance.~ */
  IF ~~ THEN REPLY #28455 /* ~Unfortunate indeed. What can I do?~ */ GOTO 7
  IF ~~ THEN REPLY #28456 /* ~Is there an alternative to this?~ */ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.1 6.0
  SAY #28457 /* ~I would ask you to convince Sir Sarles that it would be best for him to work for us. None of the other temples has a great enough source of illithium.~ */
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 8 // from: 15.0
  SAY #28459 /* ~Pay for what you must and barter for his service as best you can. Do not stoop to underhanded means... he is worth his coin regardless of the price.~ */
  IF ~~ THEN REPLY #28461 /* ~You will refund what gold I spend on him?~ */ GOTO 9
  IF ~~ THEN REPLY #28462 /* ~And if he will not agree? What if the other temples have already hired him?~ */ GOTO 12
  IF ~~ THEN REPLY #28463 /* ~A simple messenger's errand. Do you not have an altar boy that can do this?~ */ GOTO 13
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #28465 /* ~All will be refunded as the church's coffers will allow. If you do not receive the full amount, it will certainly be counted as a very generous donation.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 12.0 9.0
  SAY #28466 /* ~Go to him now. Sir Sarles is staying at the Jysstev estate. It is in the southeast section of the Government District.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #28467 /* ~Remember, you speak for Lathander in this matter.~ */
  IF ~~ THEN DO ~SetGlobal("SculptorPlot","GLOBAL",1)
~ UNSOLVED_JOURNAL #2076 /* ~Gain the services of Sir Sarles for the temple.

Dawnbringer Sain has asked that I commission the master sculptor Sir Sarles to produce a work for the temple.  I must procure illithium... a rare metal that he demands to work with... and also convince him to lower his outlandish fee.  Other temples will be vying for his services as well.  Sir Sarles can be found at the Jysstev Estate in the southeast portion of the Government District.~ */ EXIT
END

IF ~~ THEN BEGIN 12 // from: 13.1 13.0 8.1
  SAY #28468 /* ~I know you can convince him... but if not, do not do anything to shame the house of the Morninglord. Pay if you must, and you will be reimbursed as best we can.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 13 // from: 8.2
  SAY #28470 /* ~The altar boys, as you say, have duties of their own. You are bid to do this. Do you refuse the request of the place that has given you its blessing?~ */
  IF ~~ THEN REPLY #28471 /* ~I will look into this, but I can promise nothing.~ */ GOTO 12
  IF ~~ THEN REPLY #28472 /* ~My apologies. I will do my best.~ */ GOTO 12
END

IF WEIGHT #8 /* Triggers after states #: 31 45 46 47 51 54 55 even though they appear after this state */
~Global("SculptorPlot","GLOBAL",1)
InPartySlot(LastTalkedToBy,0)
Global("SculptorDone","GLOBAL",0)
!Global("SarlesPissed","GLOBAL",1)
~ THEN BEGIN 14 // from:
  SAY #28476 /* ~You are bid to secure the sculptor Sarles for service to the Morninglord. See that he does good by and for our faith.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 15 // from: 7.0
  SAY #28479 /* ~You must find the illithium and convince Sarles to work for a commission we can afford. Discuss it with him first. Perhaps he realizes the rarity of the metal.~ */
  IF ~~ THEN GOTO 8
END

IF WEIGHT #9 /* Triggers after states #: 31 45 46 47 51 54 55 even though they appear after this state */
~Global("SculptorPlot","GLOBAL",4)
InPartySlot(LastTalkedToBy,0)
Global("SculptorDone","GLOBAL",0)
~ THEN BEGIN 16 // from:
  SAY #28482 /* ~Joy of joys, this morning is a bright one indeed! You have done it, and work has begun already! I cannot thank you enough, and neither can the church itself!~ */
  IF ~~ THEN DO ~EraseJournalEntry(2051)
EraseJournalEntry(2070)
EraseJournalEntry(2073)
EraseJournalEntry(2076)
EraseJournalEntry(2080)
EraseJournalEntry(2081)
EraseJournalEntry(2082)
EraseJournalEntry(2083)
EraseJournalEntry(2088)
EraseJournalEntry(61262)
GiveGoldForce(1000)
SetGlobal("SculptorDone","GLOBAL",1)
AddexperienceParty(20000)~ SOLVED_JOURNAL #47721 /* ~Gain the services of Sir Sarles for the temple.

I managed to secure the services of the artist, Sir Sarles, for the church... although it was certainly not easy.  He had demanded to use pure illithium, which I had to obtain from a murderous dwarf named Neb.  Still, the task is done.~ */ GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 29.1 29.0 16.0
  SAY #28485 /* ~Your reward then. You have earned a portion of the artist's commission, which should cover any costs you incurred quite nicely.~ */
  IF ~Global("JoinLathander","GLOBAL",1)
~ THEN GOTO 18
  IF ~Global("JoinLathander","GLOBAL",0)
~ THEN GOTO 19
END

IF ~~ THEN BEGIN 18 // from: 17.0
  SAY #28488 /* ~And since you are a blessed follower in the service of Lathander, I will grant you a boon that is seldom seen in the hands of a Morninglord as young as you.~ */
  IF ~~ THEN GOTO 20
END

IF ~~ THEN BEGIN 19 // from: 17.1
  SAY #28489 /* ~I give you a blessed Periapt of Life Protection, that you might prevail against what enemies you may have. You have served well under Lathander. Go in peace.~ */
  IF ~~ THEN DO ~GiveItemCreate("AMUL23",[PC],1,1,1)
GiveGoldForce(1500)
~ GOTO 30
END

IF ~~ THEN BEGIN 20 // from: 18.0
  SAY #28486 /* ~Choose. Choose from the gifts of Lathander and know the power that they will bring. Do you wish the Ring of Holiness, the Armor of Faith, or the Staff-Spear?
~ */
  IF ~~ THEN REPLY #28490 /* ~The Ring of Holiness~ */ GOTO 21
  IF ~~ THEN REPLY #28491 /* ~The Armor of Faith~ */ GOTO 22
  IF ~~ THEN REPLY #28492 /* ~A Staff-Spear~ */ GOTO 23
END

IF ~~ THEN BEGIN 21 // from: 20.0
  SAY #28493 /* ~A difficult choice you have made, as the gifts are all valuable in their own measure. The ring is a blessed thing indeed. Alphonse will bring it to you shortly.~ */
  IF ~~ THEN DO ~SetGlobal("Alphonse","GLOBAL",1)
CreateCreatureObjectOffScreen("ALPHONSE",Myself,0,0,0)
~ GOTO 30
END

IF ~~ THEN BEGIN 22 // from: 20.1
  SAY #28494 /* ~A difficult choice, as the gifts are all valuable in their own measure. The armor is fine protection indeed. Alphonse will bring it to you shortly.~ */
  IF ~~ THEN DO ~SetGlobal("Alphonse","GLOBAL",2)
CreateCreatureObjectOffScreen("ALPHONSE",Myself,0,0,0)
~ GOTO 30
END

IF ~~ THEN BEGIN 23 // from: 20.2
  SAY #28495 /* ~A difficult choice... each gift is valuable. The weapon will deliver the sting of Lathander to your enemies. Alphonse will bring it to you shortly.~ */
  IF ~~ THEN DO ~SetGlobal("Alphonse","GLOBAL",3)
CreateCreatureObjectOffScreen("ALPHONSE",Myself,0,0,0)
~ GOTO 30
END

IF WEIGHT #10 /* Triggers after states #: 31 45 46 47 51 54 55 even though they appear after this state */
~PartyHasItem("MISC6S")
Global("SarlesPissed","GLOBAL",1)
InPartySlot(LastTalkedToBy,0)
Range("Arval",25)
Global("SculptorDone","GLOBAL",0)
~ THEN BEGIN 24 // from:
  SAY #29120 /* ~What is it, <CHARNAME>, you look downtrodden. How goes your quest to please Sir Sarles?~ */
  IF ~~ THEN REPLY #29121 /* ~He has left. I tried to appease him with this illithium alloy, but I failed.~ */ DO ~TakePartyItem("MISC6S")
SetGlobal("SculptorDone","GLOBAL",1)
EraseJournalEntry(2051)
EraseJournalEntry(2070)
EraseJournalEntry(2073)
EraseJournalEntry(2076)
EraseJournalEntry(2080)
EraseJournalEntry(2081)
EraseJournalEntry(2082)
EraseJournalEntry(2083)
EraseJournalEntry(2088)
EraseJournalEntry(61261)
EraseJournalEntry(61262)~ GOTO 26
  IF ~~ THEN REPLY #29122 /* ~He has refused to work for anyone, despite all that I did for him.~ */ DO ~TakePartyItem("MISC6S")
SetGlobal("SculptorDone","GLOBAL",1)
EraseJournalEntry(2051)
EraseJournalEntry(2070)
EraseJournalEntry(2073)
EraseJournalEntry(2076)
EraseJournalEntry(2080)
EraseJournalEntry(2081)
EraseJournalEntry(2082)
EraseJournalEntry(2083)
EraseJournalEntry(2088)
EraseJournalEntry(61261)
EraseJournalEntry(61262)~ GOTO 26
  IF ~~ THEN REPLY #29123 /* ~He has proven unreasonable. I did everything he asked!~ */ DO ~TakePartyItem("MISC6S")
SetGlobal("SculptorDone","GLOBAL",1)
EraseJournalEntry(2051)
EraseJournalEntry(2070)
EraseJournalEntry(2073)
EraseJournalEntry(2076)
EraseJournalEntry(2080)
EraseJournalEntry(2081)
EraseJournalEntry(2082)
EraseJournalEntry(2083)
EraseJournalEntry(2088)
EraseJournalEntry(61261)
EraseJournalEntry(61262)~ GOTO 26
END

IF WEIGHT #12 /* Triggers after states #: 31 45 46 47 51 53 54 55 even though they appear after this state */
~Global("NoProtagTalk","LOCALS",0)
!InPartySlot(LastTalkedToBy,0)~ THEN BEGIN 25 // from:
  SAY #29125 /* ~I would speak with the favored of Lathander. I would speak to <CHARNAME>.~ */
  IF ~~ THEN DO ~SetGlobal("NoProtagTalk","LOCALS",1)
~ EXIT
END

IF ~~ THEN BEGIN 26 // from: 24.2 24.1 24.0
  SAY #29130 /* ~I see.  You have done all you can, there is no shame in that. We will wait for another artist to accept a commission. Perhaps they can use this alloy...~ */
  IF ~~ THEN SOLVED_JOURNAL #47723 /* ~Gain the services of Sir Sarles for the temple.

The illithium alloy that Jerlia created did not fool Sir Sarles.  Luckily, however, the head of the temple mistook the amorphous lump of metal as an actual piece of sculpture and was impressed by it, and the cleric who asked me to perform the service was too embarrassed to tell his superior otherwise.  Everything turned out well.~ */ EXTERN ~BHARVAL~ 43
END

IF ~~ THEN BEGIN 27 // from:
  SAY #29132 /* ~That was the intent, Mornmaster, but there has been a setback or two.~ */
  IF ~~ THEN EXTERN ~BHARVAL~ 44
END

IF ~~ THEN BEGIN 28 // from:
  SAY #29139 /* ~Y-yes, Mornmaster Arval.~ */
  IF ~~ THEN DO ~AddexperienceParty(10000)~ GOTO 29
END

IF ~~ THEN BEGIN 29 // from: 28.0
  SAY #29140 /* ~W-well, <CHARNAME>, by the grace of Lathander all has worked out for the best! You have obviously been touched by the Morninglord.~ */
  IF ~~ THEN REPLY #29142 /* ~It has been an honor to serve.~ */ GOTO 17
  IF ~~ THEN REPLY #29143 /* ~A welcome end to a trying experience.~ */ GOTO 17
END

IF ~~ THEN BEGIN 30 // from: 23.0 22.0 21.0 19.0
  SAY #29439 /* ~Oh, speak with me again when you have time. There is another task you might do; one that is a touch more dangerous.~ */
  IF ~Global("SarlesPissed","GLOBAL",1)
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Yoshimo")~ THEN UNSOLVED_JOURNAL #2079 /* ~Another mission for the temple.

Now that this business with the sculptor is completed, Dawnbringer Sain has asked that I return to speak with him as soon as I am able... to continue my service for the temple.~ */ EXIT
  IF ~Global("SarlesPissed","GLOBAL",1)
IsValidForPartyDialog("Keldorn")~ THEN UNSOLVED_JOURNAL #2079 /* ~Another mission for the temple.

Now that this business with the sculptor is completed, Dawnbringer Sain has asked that I return to speak with him as soon as I am able... to continue my service for the temple.~ */ EXTERN ~KELDORJ~ 168
  IF ~Global("SarlesPissed","GLOBAL",1)
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Aerie")~ THEN UNSOLVED_JOURNAL #2079 /* ~Another mission for the temple.

Now that this business with the sculptor is completed, Dawnbringer Sain has asked that I return to speak with him as soon as I am able... to continue my service for the temple.~ */ EXTERN ~AERIEJ~ 106
  IF ~Global("SarlesPissed","GLOBAL",1)
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
IsValidForPartyDialog("Yoshimo")~ THEN UNSOLVED_JOURNAL #2079 /* ~Another mission for the temple.

Now that this business with the sculptor is completed, Dawnbringer Sain has asked that I return to speak with him as soon as I am able... to continue my service for the temple.~ */ EXTERN ~YOSHJ~ 82
  IF ~Global("SarlesPissed","GLOBAL",0)~ THEN UNSOLVED_JOURNAL #2079 /* ~Another mission for the temple.

Now that this business with the sculptor is completed, Dawnbringer Sain has asked that I return to speak with him as soon as I am able... to continue my service for the temple.~ */ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 54 55 even though they appear after this state */
~OR(6)
Class(Player1,CLERIC)
Class(Player1,FIGHTER_CLERIC)
Class(Player1,CLERIC_MAGE)
Class(Player1,CLERIC_THIEF)
Class(Player1,FIGHTER_MAGE_CLERIC)
Global("JoinLathander","GLOBAL",1)
InPartySlot(LastTalkedToBy,0)
Global("StealingPlot","GLOBAL",0)
Global("SculptorDone","GLOBAL",1)
~ THEN BEGIN 31 // from:
  SAY #29441 /* ~I would ask a dangerous thing of you. You are free to refuse, but the greater glory of Lathander is at stake.~ [SAINXX07] */
  IF ~~ THEN REPLY #29442 /* ~You need not ask me twice. What is required?~ */ GOTO 33
  IF ~~ THEN REPLY #29443 /* ~Then I will return when I can give my full attention to the matter.~ */ GOTO 32
END

IF ~~ THEN BEGIN 32 // from: 45.1 31.1
  SAY #29456 /* ~Fine, but do not wait too long. The Morninglord requires your service soon.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 33 // from: 45.0 31.0
  SAY #29461 /* ~Good. The Morninglord takes great pride in the artifacts of his rule. We have many items on display, from new artworks to the aged relics of bygone days.~ */
  IF ~~ THEN GOTO 34
END

IF ~~ THEN BEGIN 34 // from: 33.0
  SAY #29472 /* ~Today we are one less. We are the victims of thievery, and our followers have been shaken by this vulnerability. Quick steps must be taken to rectify this.~ */
  IF ~~ THEN REPLY #29475 /* ~Treachery! What can be done?~ */ GOTO 35
  IF ~~ THEN REPLY #29476 /* ~Anything to be of service.~ */ GOTO 35
END

IF ~~ THEN BEGIN 35 // from: 34.1 34.0
  SAY #29478 /* ~We know the culprits, they have not concealed their crime. Talassans, slinking from their temple to degrade our worship, hired common thieves for the deed!~ */
  IF ~~ THEN GOTO 36
END

IF ~~ THEN BEGIN 36 // from: 35.0
  SAY #29481 /* ~They fear no retribution.  The Morninglord cannot suffer his relics in the hands of such evil. Find these thieves before the Talassans receive the items.~ */
  IF ~~ THEN GOTO 37
END

IF ~~ THEN BEGIN 37 // from: 36.0
  SAY #29482 /* ~The spark of dawn has lit the way. Go to the filth of the Slums at night, and intercept the delivery of our Dawn Ring. Bring it back to its proper place.~ */
  IF ~~ THEN GOTO 38
END

IF ~~ THEN BEGIN 38 // from: 37.0
  SAY #29483 /* ~Expect resistance from the Talassans.  Divination reveals their foul servant. Go, and relieve the one called Travin of our rightful property.~ */
  IF ~OR(5)
Class(Player1,CLERIC)
Class(Player1,FIGHTER_CLERIC)
Class(Player1,CLERIC_MAGE)
Class(Player1,CLERIC_THIEF)
Class(Player1,FIGHTER_MAGE_CLERIC)
~ THEN REPLY #29486 /* ~I do this without question! The Talassans won't have their trophy for long!~ */ GOTO 44
  IF ~Global("JoinHelm","GLOBAL",1)
~ THEN REPLY #29487 /* ~With Helm's guidance, I will aid you as best I can. This affront will be righted.~ */ GOTO 44
  IF ~Global("JoinLathander","GLOBAL",1)
~ THEN REPLY #29488 /* ~Is there reward for this task? This is likely to be very dangerous.~ */ GOTO 39
  IF ~Global("JoinHelm","GLOBAL",1)
~ THEN REPLY #29492 /* ~Is there payment for this task? It is to be quite dangerous.~ */ GOTO 43
  IF ~!Class(Player1,CLERIC)
!Class(Player1,FIGHTER_CLERIC)
!Class(Player1,CLERIC_MAGE)
!Class(Player1,CLERIC_THIEF)
!Class(Player1,FIGHTER_MAGE_CLERIC)
~ THEN REPLY #29493 /* ~And what shall be the reward for this task?~ */ GOTO 41
  IF ~!Class(Player1,CLERIC)
!Class(Player1,FIGHTER_CLERIC)
!Class(Player1,CLERIC_MAGE)
!Class(Player1,CLERIC_THIEF)
!Class(Player1,FIGHTER_MAGE_CLERIC)
~ THEN REPLY #29504 /* ~I will aid you. You shall have your relic back.~ */ GOTO 44
END

IF ~~ THEN BEGIN 39 // from: 38.2
  SAY #29490 /* ~Reward? This is your duty. You are a cleric of Lathander; he has granted you great boons that you might serve him better.~ */
  IF ~~ THEN GOTO 40
END

IF ~~ THEN BEGIN 40 // from: 39.0
  SAY #29491 /* ~Do you demand more of your lord? Will you not march into danger for your faith?~ */
  IF ~~ THEN REPLY #29495 /* ~Of course not. Forgive my hesitation. I will help as best I can.~ */ GOTO 44
  IF ~~ THEN REPLY #29496 /* ~I intended no disrespect. Whether faithful or not, I still must eat.~ */ GOTO 44
END

IF ~~ THEN BEGIN 41 // from: 38.4
  SAY #29494 /* ~Ah, yes, you are not of our faith. If gold is your motivator, you shall have it.  Perhaps you will also learn some devotion of your own.~ */
  IF ~~ THEN GOTO 42
END

IF ~~ THEN BEGIN 42 // from: 41.0
  SAY #29497 /* ~No greater reward could I imagine than a new direction inspired. Regardless, you will have your gold... what we can afford. Is this sufficient?~ */
  IF ~~ THEN REPLY #29498 /* ~We shall see.~ */ GOTO 44
  IF ~~ THEN REPLY #29499 /* ~It will suffice.~ */ GOTO 44
END

IF ~~ THEN BEGIN 43 // from: 38.3
  SAY #29500 /* ~Your lord Helm has bid your service to us.  Is his word to be disregarded if there is no profit? I did not think Helm's followers so weak of faith.~ */
  IF ~~ THEN REPLY #29502 /* ~Helm is the path of the strong and just. I do as he bids.~ */ GOTO 44
  IF ~~ THEN REPLY #29503 /* ~I was merely concerned about the proper tribute to Helm for this task.~ */ GOTO 44
END

IF ~~ THEN BEGIN 44 // from: 43.1 43.0 42.1 42.0 40.1 40.0 38.5 38.1 38.0
  SAY #29505 /* ~Your reward will be suitable. Go to the Slums during the night. If you can do this without bloodshed, all the better.  But spare no wrath if necessary.~ */
  IF ~~ THEN DO ~SetGlobal("StealingPlot","GLOBAL",1)
~ UNSOLVED_JOURNAL #2077 /* ~Another mission for the temple.

The Talassans hired a thief to steal a Dawn Ring from the temple of Lathander and I must go to the Slums after dark and retrieve it.  Dawnbringer Sain asked that I not use violence if I can avoid it... but spare no wrath if it is required. The name of the thief is apparently Travin.~ */ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 54 55 even though they appear after this state */
~InPartySlot(LastTalkedToBy,0)
Global("StealingPlot","GLOBAL",0)
Global("SculptorDone","GLOBAL",1)
~ THEN BEGIN 45 // from:
  SAY #29506 /* ~Ah, you must be <CHARNAME>. High Watcher Oisig had said he would send capable help. Are you ready to aid the house of the Morninglord?~ */
  IF ~~ THEN REPLY #29511 /* ~I will do what I can to aid you.~ */ GOTO 33
  IF ~~ THEN REPLY #29512 /* ~I will return as soon as I am ready.~ */ GOTO 32
END

IF WEIGHT #5 /* Triggers after states #: 54 55 even though they appear after this state */
~Global("StealingPlot","GLOBAL",1)
!PartyHasItem("RING38")
InPartySlot(LastTalkedToBy,0)
Global("SculptorDone","GLOBAL",1)
~ THEN BEGIN 46 // from:
  SAY #29514 /* ~You are to help recover the Dawn Ring, stolen by the evil that is the followers of Talos. Please return to your efforts.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 54 55 even though they appear after this state */
~Global("StealingPlot","GLOBAL",1)
PartyHasItem("RING38")
InPartySlot(LastTalkedToBy,0)
~ THEN BEGIN 47 // from:
  SAY #29545 /* ~You return triumphant! Oh, the Tallassans will rue the day they dared defile the home of Lathander!~ */
  IF ~Global("JoinLathander","GLOBAL",1)
~ THEN DO ~EraseJournalEntry(2071)
EraseJournalEntry(2072)
EraseJournalEntry(2074)
EraseJournalEntry(2075)
EraseJournalEntry(2077)
EraseJournalEntry(2079)
EraseJournalEntry(46838)
EraseJournalEntry(61915)~ SOLVED_JOURNAL #47726 /* ~Another mission for the temple.

As charged, I have retrieved the ring that was stolen from the Temple of Lathander from the fence, Borinall, and returned the item to its rightful owners.~ */ GOTO 48
  IF ~Global("JoinHelm","GLOBAL",1)
~ THEN DO ~EraseJournalEntry(2071)
EraseJournalEntry(2072)
EraseJournalEntry(2074)
EraseJournalEntry(2075)
EraseJournalEntry(2077)
EraseJournalEntry(2079)
EraseJournalEntry(46838)
EraseJournalEntry(61915)~ SOLVED_JOURNAL #47726 /* ~Another mission for the temple.

As charged, I have retrieved the ring that was stolen from the Temple of Lathander from the fence, Borinall, and returned the item to its rightful owners.~ */ GOTO 49
  IF ~!Global("JoinLathander","GLOBAL",1)
!Global("JoinHelm","GLOBAL",1)
//!Class(Player1,CLERIC)
//!Class(Player1,FIGHTER_CLERIC)
//!Class(Player1,CLERIC_MAGE)
//!Class(Player1,CLERIC_THIEF)
//!Class(Player1,FIGHTER_MAGE_CLERIC)
~ THEN DO ~EraseJournalEntry(2071)
EraseJournalEntry(2072)
EraseJournalEntry(2074)
EraseJournalEntry(2075)
EraseJournalEntry(2077)
EraseJournalEntry(2079)
EraseJournalEntry(46838)
EraseJournalEntry(61915)~ SOLVED_JOURNAL #47726 /* ~Another mission for the temple.

As charged, I have retrieved the ring that was stolen from the Temple of Lathander from the fence, Borinall, and returned the item to its rightful owners.~ */ GOTO 50
END

IF ~~ THEN BEGIN 48 // from: 47.0
  SAY #29549 /* ~You continue to be a fine resource for the Morninglord. Your service has been exemplary, and you have earned your place within the temple order.~ */
  IF ~~ THEN DO ~AddexperienceParty(16250)
SetGlobal("StealingPlot","GLOBAL",4)
TakePartyItem("RING38")
GiveGoldForce(1000)~ EXIT
END

IF ~~ THEN BEGIN 49 // from: 47.1
  SAY #29550 /* ~High Watcher Oisig was correct in recommending you.  You are an asset to Helm.  I thank you on behalf of the Morninglord.~ */
  IF ~~ THEN DO ~AddexperienceParty(16250)
SetGlobal("StealingPlot","GLOBAL",4)
TakePartyItem("RING38")
GiveGoldForce(1000)~ EXIT
END

IF ~~ THEN BEGIN 50 // from: 47.2
  SAY #29551 /* ~Your service has been exceptional.  I wish you were a member of our Temple. You would have been a fine cleric, had your life taken another path. I thank you.~ */
  IF ~~ THEN DO ~AddexperienceParty(16250)
SetGlobal("StealingPlot","GLOBAL",4)
TakePartyItem("RING38")
GiveGoldForce(1000)~ EXIT
END

IF WEIGHT #7 /* Triggers after states #: 54 55 even though they appear after this state */
~Global("StealingPlot","GLOBAL",4)
InPartySlot(LastTalkedToBy,0)
~ THEN BEGIN 51 // from:
  SAY #29546 /* ~The Morninglord does not require your talents at this time. He will call if need be.~ [SAINXX08] */
  IF ~~ THEN EXIT
END

IF WEIGHT #13 /* Triggers after states #: 53 54 55 even though they appear after this state */
~Global("NoProtagTalk","LOCALS",1)
!InPartySlot(LastTalkedToBy,0)
~ THEN BEGIN 52 // from:
  SAY #30940 /* ~I would speak only with the favored of Lathander. I would speak to <CHARNAME>.~ [SAINXX06] */
  IF ~~ THEN EXIT
END

IF WEIGHT #11 /* Triggers after states #: 54 55 even though they appear after this state */
~Global("JoinLathander","GLOBAL",0)
InPartySlot(LastTalkedToBy,0)
Global("StealingPlot","GLOBAL",0)
Global("BeholderPlot","GLOBAL",0)~ THEN BEGIN 53 // from:
  SAY #30945 /* ~You must excuse me <SIRMAAM>. I haven't the time to speak with you at present.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~InPartySlot(LastTalkedToBy,0)
!Global("BeholderPlot","GLOBAL",2)
GlobalGT("BeholderPlot","GLOBAL",0)
Global("SculptorPlot","GLOBAL",0)
Global("SculptorDone","GLOBAL",0)~ THEN BEGIN 54 // from:
  SAY #33180 /* ~You appear as one that might serve beneath the Morninglord.  It must be, for you carry the light of goodness within you. Will you help me with a dire problem?~ */
  IF ~~ THEN REPLY #33181 /* ~What is it that you require?~ */ GOTO 2
  IF ~~ THEN REPLY #33182 /* ~I cannot spare the time just now.~ */ GOTO 1
END

IF WEIGHT #2 ~GlobalGT("Stripped","GLOBAL",0)
~ THEN BEGIN 55 // from:
  SAY #37868 /* ~I have heard of your activities. Your disservice to the faithful means I must tell you that any task we may have asked of you is now null and void.~ */
  IF ~~ THEN GOTO 56
END

IF ~~ THEN BEGIN 56 // from: 55.0
  SAY #37869 /* ~Your service is no longer required. Leave the House of the Morninglord.~ */
  IF ~~ THEN EXIT
END
