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

BEGIN ~UDDROW16~

IF ~NumTimesTalkedTo(0)
Global("PlayerBarredFromDuel","GLOBAL",0)
Global("DuelOn","AR2202",0)~ THEN BEGIN 0 // from:
  SAY #52437 /* ~Welcome. I trust that you have come to my dueling arena because you are tired of seeing pitiful monsters put to death in the name of sport.~ */
  IF ~~ THEN DO ~SetGlobal("DuelOn","AR2202",1)~ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #52450 /* ~A well respected <MALEFEMALE> such as yourself will know that the only opponent worthy of the Drow is another Drow. I provide the opportunity.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #52451 /* ~The current match is just beginning. It will be an inspiring display of skill on the part of our most illustrious competitor.~ */
  IF ~~ THEN REPLY #52498 /* ~I don't have an interest in this, thank you.~ */ GOTO 9
  IF ~~ THEN REPLY #52499 /* ~Very well, let me see this duel of yours.~ */ GOTO 4
  IF ~~ THEN REPLY #52500 /* ~You are not placing our warriors against prisoners, are you? I hardly call that a battle.~ */ GOTO 3
  IF ~~ THEN REPLY #52501 /* ~Yes, show me this duel. Perhaps I'll take my chances with the winner.~ */ GOTO 4
END

IF ~~ THEN BEGIN 3 // from: 2.2
  SAY #52503 /* ~Nothing like that. Such a thing would not be worthy of the combatants we wish to show. Observe, and you will see the quality of both sides.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 2.3 2.1
  SAY #52504 /* ~Excellent, I will signal the combatants and have them commence their efforts. It will be a grand show.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 9.0 4.0 3.0
  SAY #52512 /* ~If I might have everyone's attention! If I may, with the permissions of our most distinguished females, and the interest of our most hardy males, might I draw your attentions to the pit at the fore!~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #52519 /* ~The pride of the males of the First House, master of blades Lasaonar, is here to prove his ability to us all. He has accepted an... unusual challenge.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #52529 /* ~Four members of the Male Fighters' Society have answered a slanderous comment with demands for blood. Lasaonar has shown his contempt by facing them all at once!~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #52530 /* ~Watch now, and all concerned will place their lives in the pit, and their fates in their blades! As always, the victor may lay claim to all of the vanquished's equipment.~ */
  IF ~~ THEN DO ~StartCombatCounter()
CreateCreature("udlesa",[746.1311],2)
SetGlobal("DuelStarts","AR2202",1)~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 2.0
  SAY #52562 /* ~The battle will go on regardless. Watch if you like, but do not obstruct the view of the real audience.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 10 // from: UDLESA:4.0 UDLESA:3.0 UDLESA:2.0 UDLESA:1.0
  SAY #52578 /* ~I believe there has been a challenge. Do you accept? I will allow time to prepare if need be. We would want both sides at their best.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #52579 /* ~Be forewarned that this will be a one on one affair. I will allow no more lopsided slaughters.~ */
  IF ~See(PLAYER1)
!StateCheck(PLAYER1,STATE_SLEEPING)
~ THEN REPLY #52582 /* ~I, ah, Veldrin, am ready. Take me into the dueling pit.~ */ GOTO 13
  IF ~!Dead(PLAYER2)
See(PLAYER2)
!StateCheck(PLAYER2,STATE_SLEEPING)
~ THEN REPLY #52650 /* ~<PLAYER2> shall face him now.~ */ GOTO 17
  IF ~!Dead(PLAYER3)
See(PLAYER3)
!StateCheck(PLAYER3,STATE_SLEEPING)
~ THEN REPLY #52651 /* ~<PLAYER3> shall face him now.~ */ GOTO 18
  IF ~!Dead(PLAYER4)
See(PLAYER4)
!StateCheck(PLAYER4,STATE_SLEEPING)
~ THEN REPLY #52652 /* ~<PLAYER4> shall face him now.~ */ GOTO 19
  IF ~!Dead(PLAYER5)
See(PLAYER5)
!StateCheck(PLAYER5,STATE_SLEEPING)
~ THEN REPLY #52653 /* ~<PLAYER5> shall face him now.~ */ GOTO 20
  IF ~!Dead(PLAYER6)
See(PLAYER6)
!StateCheck(PLAYER6,STATE_SLEEPING)
~ THEN REPLY #52654 /* ~<PLAYER6> shall face him now.~ */ GOTO 21
  IF ~~ THEN REPLY #52584 /* ~Not at this time, but I will return when ready.~ */ DO ~SetGlobal("LesaNoFightYet","GLOBAL",1)~ GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 22.0 15.6 14.6 11.6
  SAY #52589 /* ~Very well. Return when you are ready.~ */
  IF ~~ THEN DO ~SetGlobal("WaitingToDuel","GLOBAL",1)~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 22.1 15.0 14.0 11.0
  SAY #52590 /* ~As you wish! Attention! We are to have another challenge immediately! Veldrin will now enter the arena and face Lasaonar.~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("LesaNoFightYet","GLOBAL",0)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",1)
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
ActionOverride("udlesa",Enemy())
FadeToColor([20.0],0)
Wait(1)
ActionOverride("udlesa",JumpToPoint([744.1305]))
ActionOverride(Player1,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~Global("WaitingToDuel","GLOBAL",1)
Global("DuelOn","AR2202",0)~ THEN BEGIN 14 // from:
  SAY #52616 /* ~I see you have returned. Are you ready to enter the arena and face Lesaonar?~ */
  IF ~See(PLAYER1)
!StateCheck(PLAYER1,STATE_SLEEPING)
~ THEN REPLY #52617 /* ~You may say that Veldrin shall face him one on one.~ */ GOTO 13
  IF ~!Dead(PLAYER2)
See(PLAYER2)
!StateCheck(PLAYER2,STATE_SLEEPING)
~ THEN REPLY #52629 /* ~<PLAYER2> shall face him now.~ */ GOTO 17
  IF ~!Dead(PLAYER3)
See(PLAYER3)
!StateCheck(PLAYER3,STATE_SLEEPING)
~ THEN REPLY #52630 /* ~<PLAYER3> shall face him now.~ */ GOTO 18
  IF ~!Dead(PLAYER4)
See(PLAYER4)
!StateCheck(PLAYER4,STATE_SLEEPING)
~ THEN REPLY #52631 /* ~<PLAYER4> shall face him now.~ */ GOTO 19
  IF ~!Dead(PLAYER5)
See(PLAYER5)
!StateCheck(PLAYER5,STATE_SLEEPING)
~ THEN REPLY #52632 /* ~<PLAYER5> shall face him now.~ */ GOTO 20
  IF ~!Dead(PLAYER6)
See(PLAYER6)
!StateCheck(PLAYER6,STATE_SLEEPING)
~ THEN REPLY #52633 /* ~<PLAYER6> shall face him now.~ */ GOTO 21
  IF ~~ THEN REPLY #52618 /* ~No. I am not ready yet.~ */ GOTO 12
  IF ~~ THEN REPLY #52619 /* ~Are there no other combatants that I might face?~ */ GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.7
  SAY #52620 /* ~Not until Lasaonar has been satisfied. He refuses to exit the pit until his abilities are proven.~ */
  IF ~See(PLAYER1)
!StateCheck(PLAYER1,STATE_SLEEPING)
~ THEN REPLY #52621 /* ~Tell him that Veldrin shall face him one on one.~ */ GOTO 13
  IF ~!Dead(PLAYER2)
See(PLAYER2)
!StateCheck(PLAYER2,STATE_SLEEPING)
~ THEN REPLY #52624 /* ~<PLAYER2> shall face him now.~ */ GOTO 17
  IF ~!Dead(PLAYER3)
See(PLAYER3)
!StateCheck(PLAYER3,STATE_SLEEPING)
~ THEN REPLY #52625 /* ~<PLAYER3> shall face him now.~ */ GOTO 18
  IF ~!Dead(PLAYER4)
See(PLAYER4)
!StateCheck(PLAYER4,STATE_SLEEPING)
~ THEN REPLY #52626 /* ~<PLAYER4> shall face him now.~ */ GOTO 19
  IF ~!Dead(PLAYER5)
See(PLAYER5)
!StateCheck(PLAYER5,STATE_SLEEPING)
~ THEN REPLY #52627 /* ~<PLAYER5> shall face him now.~ */ GOTO 20
  IF ~!Dead(PLAYER6)
See(PLAYER6)
!StateCheck(PLAYER6,STATE_SLEEPING)
~ THEN REPLY #52628 /* ~<PLAYER6> shall face him now.~ */ GOTO 21
  IF ~~ THEN REPLY #52622 /* ~I may yet challenge him, but I am not ready at the moment.~ */ GOTO 12
END

IF ~Global("DuelOn","AR2202",1)
Global("PlayerBarredFromDuel","GLOBAL",0)~ THEN BEGIN 16 // from:
  SAY #52623 /* ~Don't bother me now. Watch the battle.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 17 // from: 22.2 15.1 14.1 11.1
  SAY #52638 /* ~As you wish! Attention! We are to have another challenge immediately! <PLAYER2> will now enter the arena and face Lasaonar.~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("LesaNoFightYet","GLOBAL",0)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",2)
StartCombatCounter()
SetGlobal("DuelOn","AR2202",1)
ActionOverride("udlesa",Enemy())
FadeToColor([20.0],0)
Wait(2)
ActionOverride("udlesa",JumpToPoint([744.1305]))
ActionOverride(Player2,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
SetGlobal("DuelOn","AR2202",1)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 18 // from: 22.3 15.2 14.2 11.2
  SAY #52639 /* ~As you wish! Attention! We are to have another challenge immediately! <PLAYER3> will now enter the arena and face Lasaonar.~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("LesaNoFightYet","GLOBAL",0)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",3)
StartCombatCounter()
SetGlobal("DuelOn","AR2202",1)
ActionOverride("udlesa",Enemy())
FadeToColor([20.0],0)
Wait(2)
ActionOverride("udlesa",JumpToPoint([744.1305]))
ActionOverride(Player3,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(2)
FadeFromColor([20.0],0)
SetGlobal("DuelOn","AR2202",1)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 19 // from: 22.4 15.3 14.3 11.3
  SAY #52640 /* ~As you wish! Attention! We are to have another challenge immediately! <PLAYER4> will now enter the arena and face Lasaonar.~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("LesaNoFightYet","GLOBAL",0)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",4)
StartCombatCounter()
SetGlobal("DuelOn","AR2202",1)
ActionOverride("udlesa",Enemy())
FadeToColor([20.0],0)
Wait(2)
ActionOverride("udlesa",JumpToPoint([744.1305]))
ActionOverride(Player4,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(2)
FadeFromColor([20.0],0)
SetGlobal("DuelOn","AR2202",1)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 20 // from: 22.5 15.4 14.4 11.4
  SAY #52641 /* ~As you wish! Attention! We are to have another challenge immediately! <PLAYER5> will now enter the arena and face Lasaonar.~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("LesaNoFightYet","GLOBAL",0)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",5)
StartCombatCounter()
SetGlobal("DuelOn","AR2202",1)
ActionOverride("udlesa",Enemy())
FadeToColor([20.0],0)
Wait(2)
ActionOverride("udlesa",JumpToPoint([744.1305]))
ActionOverride(Player5,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(2)
FadeFromColor([20.0],0)
SetGlobal("DuelOn","AR2202",1)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 21 // from: 22.6 15.5 14.5 11.5
  SAY #52648 /* ~As you wish! Attention! We are to have another challenge immediately! <PLAYER6> will now enter the arena and face Lasaonar.~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("LesaNoFightYet","GLOBAL",0)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",6)
StartCombatCounter()
SetGlobal("DuelOn","AR2202",1)
ActionOverride("udlesa",Enemy())
FadeToColor([20.0],0)
Wait(2)
ActionOverride("udlesa",JumpToPoint([744.1305]))
ActionOverride(Player6,JumpToPoint([949.1338]))
Wait(2)
MoveViewPoint([949.1338],100)
FadeFromColor([20.0],0)
SetGlobal("DuelOn","AR2202",1)
EndCutSceneMode()~ EXIT
END

IF ~GlobalLT("DuelStarts","AR2202",3)
Global("PlayerBarredFromDuel","GLOBAL",0)
Global("DuelOn","AR2202",0)~ THEN BEGIN 22 // from:
  SAY #52662 /* ~The battle is over and the Drow of greater skill has been decided. Lasaonar stands undefeated. Is there another who would try their skill against him once he is healed?~ */
  IF ~~ THEN REPLY #52673 /* ~No, I think we will cut our losses this day.~ */ DO ~SetGlobal("WaitingToDuel","GLOBAL",1)~ GOTO 12
  IF ~See(PLAYER1)
!StateCheck(PLAYER1,STATE_SLEEPING)
~ THEN REPLY #52674 /* ~Yes, Veldrin will stand to fight him.~ */ GOTO 13
  IF ~!Dead(PLAYER2)
See(PLAYER2)
!StateCheck(PLAYER2,STATE_SLEEPING)
~ THEN REPLY #52675 /* ~<PLAYER2> shall face him now.~ */ GOTO 17
  IF ~!Dead(PLAYER3)
See(PLAYER3)
!StateCheck(PLAYER3,STATE_SLEEPING)
~ THEN REPLY #52676 /* ~<PLAYER3> shall face him now.~ */ GOTO 18
  IF ~!Dead(PLAYER4)
See(PLAYER4)
!StateCheck(PLAYER4,STATE_SLEEPING)
~ THEN REPLY #52677 /* ~<PLAYER4> shall face him now.~ */ GOTO 19
  IF ~!Dead(PLAYER5)
See(PLAYER5)
!StateCheck(PLAYER5,STATE_SLEEPING)
~ THEN REPLY #52678 /* ~<PLAYER5> shall face him now.~ */ GOTO 20
  IF ~!Dead(PLAYER6)
See(PLAYER6)
!StateCheck(PLAYER6,STATE_SLEEPING)
~ THEN REPLY #52679 /* ~<PLAYER6> shall face him now.~ */ GOTO 21
END

IF ~Global("WaitingToDuel","GLOBAL",3)
!Dead("udchal")
Global("PlayerBarredFromDuel","GLOBAL",0)
Global("DuelOn","AR2202",0)~ THEN BEGIN 23 // from:
  SAY #52707 /* ~You have been challenged to fight Lasaonar's better. She has the right to call for such an action.~ */
  IF ~~ THEN REPLY #52726 /* ~Then I will answer that challenge.~ */ GOTO 24
  IF ~Global("WantToDuelMage","GLOBAL",0)~ THEN REPLY #52727 /* ~Is there another combatant willing to risk their life against me?~ */ GOTO 25
  IF ~Global("WantToDuelMage","GLOBAL",1)~ THEN REPLY #52731 /* ~I would rather have a different opponent.~ */ GOTO 40
  IF ~Global("WantToDuelMage","GLOBAL",2)~ THEN REPLY #52732 /* ~Again I would prefer a different opponent.~ */ GOTO 41
  IF ~Global("WantToDuelMage","GLOBAL",3)~ THEN REPLY #52733 /* ~I would still prefer a different opponent.~ */ GOTO 42
END

IF ~~ THEN BEGIN 24 // from: 23.0
  SAY #52709 /* ~You may again choose who shall answer the challenge. Are you ready to do so now?~ */
  IF ~See(PLAYER1)
!StateCheck(PLAYER1,STATE_SLEEPING)
~ THEN REPLY #52715 /* ~Yes. Veldrin stands ready.~ */ GOTO 33
  IF ~!Dead(PLAYER2)
See(PLAYER2)
!StateCheck(PLAYER2,STATE_SLEEPING)
~ THEN REPLY #52718 /* ~<PLAYER2> will answer the challenge.~ */ DO ~SetGlobal("PlayerDuelingLesaonar","GLOBAL",2)~ GOTO 34
  IF ~!Dead(PLAYER3)
See(PLAYER3)
!StateCheck(PLAYER3,STATE_SLEEPING)
~ THEN REPLY #52719 /* ~<PLAYER3> will answer the challenge.~ */ DO ~SetGlobal("PlayerDuelingLesaonar","GLOBAL",3)~ GOTO 35
  IF ~!Dead(PLAYER4)
See(PLAYER4)
!StateCheck(PLAYER4,STATE_SLEEPING)
~ THEN REPLY #52720 /* ~<PLAYER4> will answer the challenge.~ */ DO ~SetGlobal("PlayerDuelingLesaonar","GLOBAL",4)~ GOTO 36
  IF ~!Dead(PLAYER5)
See(PLAYER5)
!StateCheck(PLAYER5,STATE_SLEEPING)
~ THEN REPLY #52721 /* ~<PLAYER5> will answer the challenge.~ */ DO ~SetGlobal("PlayerDuelingLesaonar","GLOBAL",5)~ GOTO 37
  IF ~!Dead(PLAYER6)
See(PLAYER6)
!StateCheck(PLAYER6,STATE_SLEEPING)
~ THEN REPLY #52722 /* ~<PLAYER6> will answer the challenge.~ */ DO ~SetGlobal("PlayerDuelingLesaonar","GLOBAL",6)~ GOTO 38
  IF ~~ THEN REPLY #52723 /* ~I am not ready yet. I will return shortly.~ */ GOTO 26
END

IF ~~ THEN BEGIN 25 // from: 43.0 23.1
  SAY #52729 /* ~If you are willing, I have a mage that wishes to further his status in the pit. If you have a mage of your own you may face him.~ */
  IF ~Class(Player1,MAGE_ALL)
!Dead(PLAYER1)
See(PLAYER1)
!StateCheck(PLAYER1,STATE_SLEEPING)
~ THEN REPLY #52741 /* ~Tell him that Veldrin stands ready.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",1)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",1)~ GOTO 27
  IF ~Class(Player2,MAGE_ALL)
!Dead(PLAYER2)
See(PLAYER2)
!StateCheck(PLAYER2,STATE_SLEEPING)
~ THEN REPLY #52742 /* ~<PLAYER2> stands ready to face him.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",1)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",2)~ GOTO 28
  IF ~Class(Player3,MAGE_ALL)
!Dead(PLAYER3)
See(PLAYER3)
!StateCheck(PLAYER3,STATE_SLEEPING)
~ THEN REPLY #52743 /* ~<PLAYER3> stands ready to face him.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",1)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",3)~ GOTO 29
  IF ~Class(Player4,MAGE_ALL)
!Dead(PLAYER4)
See(PLAYER4)
!StateCheck(PLAYER4,STATE_SLEEPING)
~ THEN REPLY #52744 /* ~<PLAYER4> stands ready to face him.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",1)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",4)~ GOTO 30
  IF ~Class(Player5,MAGE_ALL)
!Dead(PLAYER5)
See(PLAYER5)
!StateCheck(PLAYER5,STATE_SLEEPING)
~ THEN REPLY #52745 /* ~<PLAYER5> stands ready to face him.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",1)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",5)~ GOTO 31
  IF ~Class(Player6,MAGE_ALL)
!Dead(PLAYER6)
See(PLAYER6)
!StateCheck(PLAYER6,STATE_SLEEPING)
~ THEN REPLY #52746 /* ~<PLAYER6> stands ready to face him.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",1)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",6)~ GOTO 32
  IF ~~ THEN REPLY #52747 /* ~I have no mage willing to take up that challenge.~ */ GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 43.4 41.6 40.6 25.6 24.6
  SAY #52751 /* ~Then we have nothing further to say about the matter. Return when you are ready.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 27 // from: 25.0
  SAY #52757 /* ~Veldrin, in you go. Attention! A wizard's duel is next in the pit! Mage versus mage!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow17",[744.1305],12)
ActionOverride(Player1,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 28 // from: 25.1
  SAY #52760 /* ~<PLAYER2>, into the pit. Attention all! A wizard's duel is next! Mage versus mage!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow17",[744.1305],12)
ActionOverride(Player2,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 29 // from: 25.2
  SAY #52761 /* ~<PLAYER3>, into the pit. Attention all! A wizard's duel is next! Mage versus mage!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow17",[744.1305],12)
ActionOverride(Player3,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 30 // from: 25.3
  SAY #52762 /* ~<PLAYER4>, into the pit. Attention all! A wizard's duel is next! Mage versus mage!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow17",[744.1305],12)
ActionOverride(Player4,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 31 // from: 25.4
  SAY #52763 /* ~<PLAYER5>, into the pit. Attention all! A wizard's duel is next! Mage versus mage!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow17",[744.1305],12)
ActionOverride(Player5,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 32 // from: 25.5
  SAY #52764 /* ~<PLAYER6>, into the pit. Attention all! A wizard's duel is next! Mage versus mage!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow17",[744.1305],12)
ActionOverride(Player6,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 33 // from: 24.0
  SAY #52771 /* ~Veldrin now enters the pit to face Chalinthra! Attention all!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("PlayerDuelingLesaonar","GLOBAL",1)
StartCombatCounter()
SetGlobal("DuelOn","AR2202",1)
SetGlobal("duelStarts","AR2202",4)
FadeToColor([20.0],0)
Wait(1)
CreateCreature("udchal",[744.1305],4)
MoveViewPoint([949.1338],100)
ActionOverride(Player1,JumpToPoint([949.1338]))
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 34 // from: 24.1
  SAY #52784 /* ~<PLAYER2> faces Chalinthra! Attention all!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("PlayerDuelingLesaonar","GLOBAL",2)
StartCombatCounter()
SetGlobal("DuelOn","AR2202",1)
SetGlobal("duelStarts","AR2202",4)
FadeToColor([20.0],0)
CreateCreature("udchal",[744.1305],4)
Wait(1)
MoveViewPoint([949.1338],100)
ActionOverride(Player2,JumpToPoint([949.1338]))
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 35 // from: 24.2
  SAY #52785 /* ~<PLAYER3> faces Chalinthra! Attention all!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("PlayerDuelingLesaonar","GLOBAL",3)
StartCombatCounter()
SetGlobal("DuelOn","AR2202",1)
SetGlobal("duelStarts","AR2202",4)
FadeToColor([20.0],0)
Wait(1)
CreateCreature("udchal",[744.1305],4)
MoveViewPoint([949.1338],100)
ActionOverride(Player3,JumpToPoint([949.1338]))
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 36 // from: 24.3
  SAY #52786 /* ~<PLAYER4> faces Chalinthra! Attention all!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("PlayerDuelingLesaonar","GLOBAL",4)
StartCombatCounter()
SetGlobal("DuelOn","AR2202",1)
SetGlobal("duelStarts","AR2202",4)
FadeToColor([20.0],0)
Wait(1)
CreateCreature("udchal",[744.1305],4)
MoveViewPoint([949.1338],100)
ActionOverride(Player4,JumpToPoint([949.1338]))
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 37 // from: 24.4
  SAY #52787 /* ~<PLAYER5> faces Chalinthra! Attention all!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("PlayerDuelingLesaonar","GLOBAL",5)
StartCombatCounter()
SetGlobal("DuelOn","AR2202",1)
SetGlobal("duelStarts","AR2202",4)
FadeToColor([20.0],0)
Wait(1)
CreateCreature("udchal",[744.1305],4)
MoveViewPoint([949.1338],100)
ActionOverride(Player5,JumpToPoint([949.1338]))
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 38 // from: 24.5
  SAY #52788 /* ~<PLAYER6> faces Chalinthra! Attention all!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("PlayerDuelingLesaonar","GLOBAL",6)
StartCombatCounter()
SetGlobal("DuelOn","AR2202",1)
SetGlobal("duelStarts","AR2202",4)
FadeToColor([20.0],0)
Wait(1)
CreateCreature("udchal",[744.1305],4)
MoveViewPoint([949.1338],100)
ActionOverride(Player6,JumpToPoint([949.1338]))
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~Global("PlayerBarredFromDuel","GLOBAL",1)~ THEN BEGIN 39 // from:
  SAY #52789 /* ~I am sorry, but the pit is closed to you. You have lost, and are no longer welcome. Leave.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 40 // from: 43.1 23.2
  SAY #52799 /* ~There is another mage that would like to try their skill against yours. It is your decision whether to accept.~ */
  IF ~Class(Player1,MAGE_ALL)
See(PLAYER1)
!StateCheck(PLAYER1,STATE_SLEEPING)
~ THEN REPLY #52811 /* ~Veldrin stands ready to battle.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",2)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",1)~ GOTO 45
  IF ~Class(Player2,MAGE_ALL)
!Dead(PLAYER2)
See(PLAYER2)
!StateCheck(PLAYER2,STATE_SLEEPING)
~ THEN REPLY #52812 /* ~<PLAYER2> will accept the challenge.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",2)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",2)~ GOTO 46
  IF ~Class(Player3,MAGE_ALL)
!Dead(PLAYER3)
See(PLAYER3)
!StateCheck(PLAYER3,STATE_SLEEPING)
~ THEN REPLY #52813 /* ~<PLAYER3> will accept the challenge.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",2)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",3)~ GOTO 47
  IF ~Class(Player4,MAGE_ALL)
!Dead(PLAYER4)
See(PLAYER4)
!StateCheck(PLAYER4,STATE_SLEEPING)
~ THEN REPLY #52814 /* ~<PLAYER4> will accept the challenge.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",2)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",4)~ GOTO 48
  IF ~Class(Player5,MAGE_ALL)
!Dead(PLAYER5)
See(PLAYER5)
!StateCheck(PLAYER5,STATE_SLEEPING)
~ THEN REPLY #52815 /* ~<PLAYER5> will accept the challenge.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",2)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",5)~ GOTO 49
  IF ~Class(Player6,MAGE_ALL)
!Dead(PLAYER6)
See(PLAYER6)
!StateCheck(PLAYER6,STATE_SLEEPING)
~ THEN REPLY #52816 /* ~<PLAYER6> will accept the challenge.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",2)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",6)~ GOTO 50
  IF ~~ THEN REPLY #52817 /* ~I do not. I have nothing to prove today.~ */ GOTO 26
END

IF ~~ THEN BEGIN 41 // from: 43.2 23.3
  SAY #52800 /* ~People are beginning to speak of the skills your group displays in magic. Of course, that means others wish to challenge you. Do you have a mage ready to accept?~ */
  IF ~Class(Player1,MAGE_ALL)
See(PLAYER1)
!StateCheck(PLAYER1,STATE_SLEEPING)
~ THEN REPLY #52804 /* ~Veldrin stands ready to battle.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",3)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",1)~ GOTO 51
  IF ~Class(Player2,MAGE_ALL)
!Dead(PLAYER2)
See(PLAYER2)
!StateCheck(PLAYER2,STATE_SLEEPING)
~ THEN REPLY #52805 /* ~<PLAYER2> will accept the challenge.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",3)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",2)~ GOTO 52
  IF ~Class(Player3,MAGE_ALL)
!Dead(PLAYER3)
See(PLAYER3)
!StateCheck(PLAYER3,STATE_SLEEPING)
~ THEN REPLY #52806 /* ~<PLAYER3> will accept the challenge.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",3)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",3)~ GOTO 53
  IF ~Class(Player4,MAGE_ALL)
!Dead(PLAYER4)
See(PLAYER4)
!StateCheck(PLAYER4,STATE_SLEEPING)
~ THEN REPLY #52807 /* ~<PLAYER4> will accept the challenge.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",3)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",4)~ GOTO 54
  IF ~Class(Player5,MAGE_ALL)
!Dead(PLAYER5)
See(PLAYER5)
!StateCheck(PLAYER5,STATE_SLEEPING)
~ THEN REPLY #52808 /* ~<PLAYER5> will accept the challenge.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",3)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",5)~ GOTO 55
  IF ~Class(Player6,MAGE_ALL)
!Dead(PLAYER6)
See(PLAYER6)
!StateCheck(PLAYER6,STATE_SLEEPING)
~ THEN REPLY #52809 /* ~<PLAYER6> will accept the challenge.~ */ DO ~SetGlobal("WantToDuelMage","GLOBAL",3)
SetGlobal("PlayerDuelingLesaonar","GLOBAL",6)~ GOTO 56
  IF ~~ THEN REPLY #52810 /* ~Not at this time.~ */ GOTO 26
END

IF ~~ THEN BEGIN 42 // from: 23.4
  SAY #52818 /* ~There are no other opponents. Come back when you wish to face Chalinthra.~ */
  IF ~~ THEN EXIT
END

IF ~Dead("udchal")
Global("DuelOn","AR2202",0)~ THEN BEGIN 43 // from:
  SAY #52820 /* ~You have done very well. I did not think I would see such surprising victories from a new face.~ */
  IF ~Global("WantToDuelMage","GLOBAL",0)~ THEN REPLY #52822 /* ~I thank you. Are there any more challenges?~ */ GOTO 25
  IF ~Global("WantToDuelMage","GLOBAL",1)~ THEN REPLY #52823 /* ~Are there any more challenges for me?~ */ GOTO 40
  IF ~Global("WantToDuelMage","GLOBAL",2)~ THEN REPLY #52827 /* ~Does anyone else wish to challenge me?~ */ GOTO 41
  IF ~Global("WantToDuelMage","GLOBAL",3)~ THEN REPLY #52828 /* ~Is there anyone left that wishes to challenge me?~ */ GOTO 44
  IF ~~ THEN REPLY #52829 /* ~I'm done for now. I have nothing more to prove today.~ */ GOTO 26
END

IF ~~ THEN BEGIN 44 // from: 43.3
  SAY #52831 /* ~There are no other opponents. You have become quite the imposing figure. You are destined for good things if your Matron takes notice.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 45 // from: 40.0
  SAY #52835 /* ~Then the duel shall commence immediately! Attention all! Veldrin is about to enter a wizard's duel! Eyes to the pit!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow18",[744.1305],12)
ActionOverride(Player1,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 46 // from: 40.1
  SAY #52836 /* ~Then the duel shall commence immediately! Attention all! <PLAYER2> is about to enter a wizard's duel! Eyes to the pit!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow18",[744.1305],12)
ActionOverride(Player2,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 47 // from: 40.2
  SAY #52837 /* ~Then the duel shall commence immediately! Attention all! <PLAYER3> is about to enter a wizard's duel! Eyes to the pit!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow18",[744.1305],12)
ActionOverride(Player3,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 48 // from: 40.3
  SAY #52838 /* ~Then the duel shall commence immediately! Attention all! <PLAYER4> is about to enter a wizard's duel! Eyes to the pit!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow18",[744.1305],12)
ActionOverride(Player4,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 49 // from: 40.4
  SAY #52839 /* ~Then the duel shall commence immediately! Attention all! <PLAYER5> is about to enter a wizard's duel! Eyes to the pit!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow18",[744.1305],12)
ActionOverride(Player5,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 50 // from: 40.5
  SAY #52840 /* ~Then the duel shall commence immediately! Attention all! <PLAYER6> is about to enter a wizard's duel! Eyes to the pit!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow18",[744.1305],12)
ActionOverride(Player6,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 51 // from: 41.0
  SAY #52841 /* ~Veldrin to the pit! A duel of wizards will now commence.~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow19",[744.1305],12)
ActionOverride(Player1,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 52 // from: 41.1
  SAY #52842 /* ~<PLAYER2> to the pit! A duel of wizards will now commence!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow19",[744.1305],12)
ActionOverride(Player2,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 53 // from: 41.2
  SAY #52843 /* ~<PLAYER3> to the pit! A duel of wizards will now commence!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow19",[744.1305],12)
ActionOverride(Player3,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 54 // from: 41.3
  SAY #52844 /* ~<PLAYER4> to the pit! A duel of wizards will now commence!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow19",[744.1305],12)
ActionOverride(Player4,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 55 // from: 41.4
  SAY #52845 /* ~<PLAYER5> to the pit! A duel of wizards will now commence!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow19",[744.1305],12)
ActionOverride(Player5,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END

IF ~~ THEN BEGIN 56 // from: 41.5
  SAY #52846 /* ~<PLAYER6> to the pit! A duel of wizards will now commence!~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("DuelOn","AR2202",1)
StartCombatCounter()
FadeToColor([20.0],0)
Wait(1)
CreateCreature("uddrow19",[744.1305],12)
ActionOverride(Player6,JumpToPoint([949.1338]))
MoveViewPoint([949.1338],100)
Wait(1)
FadeFromColor([20.0],0)
EndCutSceneMode()~ EXIT
END
