Scn AAAMusicFrostBScript
Float Timer
Short InCombat
Short InMyCell
Short MusicLenght
Short Doonce
Float fQuestDelayTime
begin GameMode
if Doonce == 0
set fQuestDelayTime to 0.1
set Doonce to 1
endif
if player.GetInCell 00FrostCaveB == 1 && InMyCell == 0
set InMyCell to 1
set Timer to 0
endif
if player.GetInCell 00FrostCaveB == 0 && InMyCell == 1
set InMyCell to 0
endif
if player.isInCombat == 1 && InCombat == 0
set InCombat to 1
endif
if player.isInCombat == 0 && InCombat == 1
set InCombat to 0
set Timer to 0
endif
if InCombat == 0 && InMyCell
if Timer <= 0
set Timer to 214 ; Länge der Musik in Sekunden
StreamMusic "Data\Music\BlutmagierPlaylist\track01.mp3"
else
set Timer to Timer - getSecondsPassed
endif
endif
end
begin MenuMode
if player.GetInCell 00FrostCaveB == 1 && InMyCell == 0
set InMyCell to 1
set Timer to 0
endif
if player.GetInCell 00FrostCaveB == 0 && InMyCell == 1
set InMyCell to 0
endif
if player.isInCombat == 1 && InCombat == 0
set InCombat to 1
endif
if player.isInCombat == 0 && InCombat == 1
set InCombat to 0
set Timer to 0
endif
if InCombat == 0 && InMyCell
if Timer <= 0
set Timer to 214 ; Länge der Musik in Sekunden
StreamMusic "Data\Music\BlutmagierPlaylist\Track01.mp3"
else
set Timer to Timer - getSecondsPassed
endif
endif
end