(version 2)
(include "sci.sh")
(exports
    0 rm110
    1 azizaTalker
)
(use "Main")
(use "Blink")
(use "Cycle")
(use "Game")
(use "View")
(use "Obj")
(script 110)


(local
    local0
    local1

)
(instance public rm110 of Rm
    (properties
        picture 110
        style $0009
    )

    (method (init param1)
        (send gMainIconBar:disable())
        proc0_2()
        Load(rsSOUND 281)
        (self:setRegions(61))
        (aziza:init())
        (super:init(rest param1))
        (if (== gGClientModNum 140)
            (send global2:setScript(azizaTalk))
        )(else
            (send gLongSong:client(self))
            (send global2:setScript(azizaMoreTalk))
        )
    )


    (method (dispose)
        DisposeScript(35)
        (super:dispose())
    )


    (method (cue)
        (if (<> (send gLongSong:number) 111)
            (if (local0 or (== (send gLongSong:prevSignal) -1))
                (send gLongSong:
                    number(111)
                    play(self)
                    setLoop(-1)
                )
            )(else
                (if (== (send gLongSong:prevSignal) 100)
                    = local0 1
                )
            )
        )(else
            (if ((== (send gLongSong:prevSignal) 20) and local1)
                (send global2:newRoom(120))
            )
        )
    )

)
(instance azizaTalk of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                = cycles 6
            )
            (case 1
                (send gLongSong:
                    number(110)
                    play()
                    hold()
                )
                (send gQg3Messager:say(1 6 1 0 self))
            )
            (case 2
                (send gLongSong2:
                    number(281)
                    play()
                )
                (aziza:setCycle(End self))
            )
            (case 3
                (send global2:newRoom(100))
            )
        )
    )

)
(instance azizaMoreTalk of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                = cycles 6
            )
            (case 1
                (send gLongSong2:
                    number(281)
                    play()
                )
                (aziza:setCycle(End self))
            )
            (case 2
                (table:
                    setCycle(End self)
                    init()
                )
            )
            (case 3
                = ticks 90
            )
            (case 4
                (send gQg3Messager:say(1 6 2 0 self))
            )
            (case 5
                (send gLongSong2:
                    number(281)
                    play()
                )
                (aziza:setCycle(End self))
            )
            (case 6
                (AdAvisFace:
                    setCycle(End self)
                    init()
                )
            )
            (case 7
                (AdAvisFace:
                    loop(1)
                    cel(0)
                    setCycle(End self)
                )
            )
            (case 8
                = seconds 4
            )
            (case 9
                (AdAvisFace:setCycle(Beg self))
            )
            (case 10
                (AdAvisFace:
                    setLoop(0)
                    setCel((AdAvisFace:lastCel()))
                    setCycle(Beg self)
                )
            )
            (case 11
                (AdAvisFace:dispose())
                = cycles 3
            )
            (case 12
                (send gQg3Messager:say(1 6 3 0 self))
            )
            (case 13
                (send gLongSong2:
                    number(281)
                    play()
                )
                (penta:
                    setCycle(End self)
                    init()
                )
            )
            (case 14
                (penta:
                    loop(1)
                    cel(0)
                    setCycle(Fwd)
                )
                = seconds 2
            )
            (case 15
                (penta:cel(1))
                (kreeshaFace:init())
                = seconds 2
            )
            (case 16
                (Narrator:color(37))
                (send gQg3Messager:say(2 6 4 0 self))
            )
            (case 17
                (kreeshaFace:dispose())
                (penta:dispose())
                = cycles 3
            )
            (case 18
                (send gQg3Messager:say(1 6 5 0 self))
            )
            (case 19
                (Narrator:color(0))
                = local1 1
            )
        )
    )

)
(instance table of Prop
    (properties
        x 151
        y 125
        view 110
    )
)
(instance aziza of Prop
    (properties
        x 68
        y 130
        view 112
        priority 2
        signal $0010
    )
)
(instance penta of Prop
    (properties
        x 149
        y 82
        view 116
        priority 9
        signal $4010
    )
)
(instance AdAvisFace of Prop
    (properties
        x 143
        y 121
        view 115
        priority 10
        signal $4010
    )
)
(instance kreeshaFace of Prop
    (properties
        x 153
        y 102
        view 118
        priority 10
        signal $4010
    )
)
(instance public azizaTalker of Talker
    (properties
        x 48
        y 62
        view 112
        loop 2
        talkWidth 135
        color 10
        back 57
        textX 60
    )

    (method (init param1)
        (super:init(azizaBust azizaEyes azizaMouth rest param1))
    )

)
(instance azizaBust of Prop
    (properties
        view 112
        loop 2
    )
)
(instance azizaMouth of Prop
    (properties
        view 112
        loop 1
        cycleSpeed 10
    )
)
(instance azizaEyes of Prop
    (properties
        view 112
        loop 2
        cycleSpeed 30
    )
)
