Begin SM_tourneyScript short state if ( state == 0 ) if ( SMTourney == 1 ) set state to 1 endif elseif ( state == 1 ) "SM_ilden mirel"->positioncell, 4945.83, 3534.95, 15170.00, 0, "Sadrith Mora, Guild of Fighters" "Sondryn SM_Irathi"->positioncell, 4585.85, 3534.94, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "SM_daglin selarar"->positioncell, 5288.38, 3309.33, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "Hrundi"->positioncell, 4386.50, 3849.92, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "SM_2orcshaman"->positioncell, 5221.71, 3952.97, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "Hasell"->positioncell, 4223.53, 3293.14, 15170.00, 0 "sadrith Mora, guild of fighters" set SMTourney to 2 set state to 2 elseif ( state == 2 ) if ( SMTourney == 3 ) "SM_ilden mirel"->equip, "Dwarven war axe" "SM_ilden mirel"->startcombat, "Sondryn Irathi" "Sondryn SM_Irathi"->startcombat, "SM_ilden mirel" set state to 3 endif elseif ( state == 3 ) if ( "SM_ilden mirel"->GetHealthGetRatio <= 0.5 ) set state to 4 set prone to 1 elseif ( "sondryn SM_Irathi"->gethealthgetratio <= 0.5 ) set prone to 2 set state to 4 endif elseif ( state == 4 ) "SM_ilden mirel"->StopCombat "sondryn SM_Irathi"->stopcombat set state to 5 elseif ( state == 5 ) If ( getpcCell "Sadrith Mora, Guild of Fighters" == 0 ) "hrundi"->positioncell, 4174.11, 4610.41, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "Hasell"->positioncell, 4747.93, 3354.42, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "SM_2Orcshaman"->positioncell, 4825.67, 3264.14, 15682.00, 0 "Sadrith Mora, Guild of Fighters" "SM_Daglin Selarar"->positioncell, 5436.42, 4303.79, 14786.00, 0 "Sadrith Mora, Guild of Fighters" "SM_Ilden Mirel"->positioncell, 5557.41, 3483.18, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "Sondryn SM_Irathi"->positioncell, 5691.06, 4803.49, 14786.00, 0 "Sadrith mora, guild of fighters" stopscript, SM_tourneyScript endif endif end
Begin SM_tourneyScriptshort stateif ( state == 6 )set state to 0endifif ( state == 0 ) if ( SMTourney == 2 ) set state to 1endifelseif ( state == 1 ) "SM_daglin selarar"->positioncell, 4945.83, 3534.95, 15170.00, 0, "Sadrith Mora, Guild of Fighters" "Hrundi"->positioncell, 4585.85, 3534.94, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "SM_Ilden Mirel"->positioncell, 5288.38, 3309.33, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "Sondryn Irathi"->positioncell, 4386.50, 3849.92, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "Sondryn SM_Irathi"->positioncell, 4386.50, 3849.92, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "SM_2orcshaman"->positioncell, 5221.71, 3952.97, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "Hasell"->positioncell, 4223.53, 3293.14, 15170.00, 0 "sadrith Mora, guild of fighters" set SMTourney to 3 set state to 2elseif ( state == 2 ) if ( SMTourney == 4 ) "SM_Daglin Selarar"->equip, "Icicle" "SM_Daglin Selarar"->startcombat, "Hrundi" "Hrundi"->startcombat, "SM_Daglin selarar" set state to 3endifelseif ( state == 3 ) if ( "SM_Daglin Selarar"->GetHealthGetRatio <= 0.5 ) set state to 4 set prone to 1 elseif ( "Hrundi"->gethealthgetratio <= 0.5 ) set prone to 2 set state to 4 endifelseif ( state == 4 ) "SM_Daglin Selarar"->StopCombat "Hrundi"->stopcombat "SM_Daglin Selarar"->modcurrenthealth, 1000 "Hrundi"->modcurrenthealth 1000 set state to 5elseif ( state == 5 ) If ( getpcCell "Sadrith Mora, Guild of Fighters" == 0 ) "hrundi"->positioncell, 4174.11, 4610.41, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "Hasell"->positioncell, 4747.93, 3354.42, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "SM_2Orcshaman"->positioncell, 4825.67, 3264.14, 15682.00, 0 "Sadrith Mora, Guild of Fighters" "SM_Daglin Selarar"->positioncell, 5436.42, 4303.79, 14786.00, 0 "Sadrith Mora, Guild of Fighters" "SM_Ilden Mirel"->positioncell, 5557.41, 3483.18, 15170.00, 0 "Sadrith Mora, Guild of Fighters" "Sondryn SM_Irathi"->positioncell, 5675.06, 4101.49, 14786.00, 0 "Sadrith mora, guild of fighters""Sondryn Irathi"->positioncell, 5646.06, 4564.49, 14786.00, 0 "Sadrith mora, guild of fighters" set state to 6 stopscript, SM_tourneyScriptendifendifend
begin SM_Tourney_dayScriptshort daysPassedshort myDay;stop once enough time has passed.if ( Prone == 3 )Journal "SM_Tourney" 30set dayspassed to 0set myday to 0startscript, "SM_TourneyScript"StopScript SM_Tourney_dayscriptendif;when stronghold starts building, store the current dayif ( daysPassed == 0 )set myDay to Dayset daysPassed to 1endif;if we've already set a day, count the daysif ( myDay != Day );presumably it went up...set daysPassed to daysPassed + 1set myDay to Dayendif;wait x days for the stronghold to be built, give journal, set global;make sure player is NOT in the cell while the stuff goes "poof"if ( daysPassed > 1 )set Prone to 3set SMTourney to 2endifEnd