SCTX |
Scriptname MS29AgarmirScript
short DoOnce
short Doonce1
short Doonce2
begin OnDeath
if ( GetStage MS29 >= 10 ) && ( GetStage MS29 < 80 )
setstage MS29 200
endif
if ( GetStage MS29 >= 80 ) && ( GetStage MS29 < 90 )
Player.SetFactionRank MS29AgarmirFaction -1
setstage MS29 90
endif
end
begin OnPackageEnd MS29AgarmirMeetsThoronir
if ( Doonce2 == 0 )
set MS29.TalkOnce to ( MS29.TalkOnce + 1 )
set Doonce2 to 1
endif
end
begin gamemode
;forcegreet player at graveyard
if ( GetStage MS29 == 82 )
if ( DoOnce== 0 ) && ( GetDistance Player <= 500 )
StartConversation Player, Greeting
set DoOnce to 1
endif
endif
if ( MS29.GoAttack == 1 ) && ( Doonce1 == 0 )
startcombat player
set Doonce1 to 1
endif
end |