home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global WhichGroup, WhichFoto, ThereisF, ThereisA, oldcast, ThereisS, biletvar, Volum, ThereisT, oncekibilet, BiletSay, gecensay
- set FotName to FotoName(WhichGroup, WhichFoto)
- set gecensay to gecensay + 1
- if soundBusy(1) then
- set the volume of sound 2 to Volum
- puppetSound(0)
- end if
- puppetSprite(1, 1)
- puppetSprite(5, 1)
- puppetSprite(6, 1)
- puppetSprite(7, 1)
- puppetSprite(10, 1)
- puppetSprite(11, 1)
- puppetSprite(12, 1)
- set the locH of sprite 12 to 320
- set the locV of sprite 12 to 240
- set the cursor of sprite 2 to 200
- set the cursor of sprite 3 to 200
- set the cursor of sprite 4 to 200
- set ThereisF to ThereisFilm(FotName)
- set ThereisA to ThereisArif(FotName)
- set ThereisS to ThereisSes(FotName)
- set ThereisT to ThereisText(FotName)
- set the visible of sprite 6 to 0
- set the visible of sprite 7 to 0
- set the visible of sprite 10 to 0
- set the visible of sprite 11 to 0
- set the visible of sprite 12 to 0
- if ((random(20) = 1) and not ThereisA and (oncekibilet <> FotName) and (BiletSay < 10)) or ((gecensay > 50) and (BiletSay < 10) and not ThereisA) then
- set gecensay to 0
- set biletvar to 1
- set oncekibilet to FotName
- else
- set biletvar to 0
- end if
- set the cursor of sprite 12 to 0
- DuzeltCursor(7)
- DuzeltCursor(6)
- set the castNum of sprite 6 to the number of cast "SesCast"
- set the castNum of sprite 11 to the number of cast "Vazo"
- if ThereisA then
- set the castNum of sprite 6 to the number of cast ("sf" & FotName)
- end if
- if ThereisT then
- set the castNum of sprite 6 to the number of cast "TextCast"
- set the castNum of sprite 10 to the number of cast ("t" & FotName)
- end if
- set the castNum of sprite 7 to the number of cast "FilmCast"
- set the castNum of sprite 1 to FotoCastNum(WhichGroup, WhichFoto)
- set oldcast to 0
- if FotName = "2519 15" then
- puppetSprite(1, 0)
- go("Cad›rKent")
- end if
- if FotName = "2521 61" then
- puppetSprite(1, 0)
- go("Eurovil")
- end if
- if FotName = "2521 02" then
- puppetSprite(1, 0)
- go("FaysalCami")
- end if
- if FotName = "2519 62" then
- puppetSprite(1, 0)
- go("CantarMantar")
- end if
- end
-