(version 2)
(include "sci.sh")
(exports
    0 rm280
)
(use "Main")
(use "TellerIcon")
(use "PolyPath")
(use "Polygon")
(use "CueObj")
(use "n958")
(use "Cycle")
(use "Game")
(use "View")
(use "Obj")
(script 280)


(local
    local0
    local1[21] = (0 -2 -3 -4 -6 -7 -19 -20 -21 -22 -37 -39 -38 -40 -65 -70 -71 -74 -74 -64 999 )
    local22[11]
    local33[10] = (0 -4 -5 -7 -20 -65 -66 -69 -71 999 )
    local43[3] = (0 72 999 )
    local46[3] = (0 -5 999 )
    local49[4] = (0 -66 34 999 )
    local53[3] = (0 67 999 )
    local56[6] = (0 -59 -58 56 57 999 )
    local62[4] = (0 60 61 999 )
    local66[4] = (0 68 -69 999 )
    local70[3] = (0 26 999 )
    local73[8] = (0 -78 -11 -19 -36 -75 -76 999 )
    local81[2]
    local83[7] = (0 -2 -8 -54 -3 -55 999 )
    local90[5]
    local95[5] = (0 -8 -3 -51 999 )
    local100[4] = (0 -49 -51 999 )
    local104[5] = (0 -50 -48 -18 999 )
    local109[4] = (0 -53 -52 999 )

)
(instance public rm280 of Rm
    (properties
        noun 10
        picture 280
        horizon 62
        picAngle 70
        vanishingX 168
        vanishingY -160
    )

    (method (init)
        (send gMainIconBar:enable())
        (if (== gGClientModNum 270)
            (send gLongSong:
                hold(0)
                setVol(127)
            )
        )(else
            (send gLongSong:
                number(280)
                setLoop(-1)
                play(127)
            )
        )
        = local22[0] @local1
        = local22[1] @local46
        = local22[2] @local56
        = local22[3] @local62
        = local22[4] @local66
        = local22[5] @local49
        = local22[6] @local53
        = local22[7] @local43
        = local22[8] @local70
        = local90[0] @local83
        = local90[1] @local100
        = local90[2] @local104
        = local90[3] @local109
        = local81[0] @local73
        (send gOwner:
            init()
            normalize()
            x(-100)
            y(-100)
            noun(4)
            edgeHit(0)
            setScale(175)
            changeGait(0)
        )
        (egoTell:init(gOwner @local73 @local81))
        (kreeshaTell:init(kreeshaTop @local1 @local22 @local33))
        (rakeeshTell:init(ScriptID(35 1) @local83 @local90 @local95))
        (super:init())
        proc0_14(-10 -10)
        (urn:init())
        (chest:init())
        (pillar:init())
        (vases:init())
        (moreBooks:init())
        (plant:init())
        (shelf:init())
        (otherBottles:init())
        (boxes:init())
        (skulls:init())
        (bottles:init())
        (moreCandles:init())
        (cretianUrn:init())
        (pentagram:init())
        (leftPitcher:init())
        (stool:init())
        (books:init())
        (hornSkull:init())
        (leftCandles:init())
        (rightCandles:init())
        (send global2:addObstacle((send ((Polygon:new())):
                type(2)
                init(319 0 319 189 0 189 0 88 3 88 3 187 317 187 317 115 295 115 292 108 295 100 317 100 316 92 232 92 232 96 267 97 272 107 267 115 37 115 38 108 52 97 65 97 65 93 0 84 0 0)
                yourself()
            )
))
        (if ((((not (== global125 3) and not proc0_6(44)) and (> gGOwnerMaxStamina[14] 149)) and not proc0_6(19)) and (== gGClientModNum 420))
            = local0 global129
            = global129 8
        )(else
            (if (== global129 7)
                == global129 7
            )(else
                (if ((send gOwner:has(44)) and not proc0_6(69))
                    = local0 global129
                    = global129 6
                )(else
                    (if ((== global129 3) and proc0_6(42))
                        = global129 5
                    )(else
                        (if (((proc0_6(159) and not (== global129 2)) and not proc0_6(142)) and not proc0_6(35))
                            = global129 2
                        )(else
                            (if (proc0_6(35))
                                = global129 3
                            )(else
                                (if (proc0_6(159) and not proc0_6(35))
                                    = global129 1
                                )(else
                                    (if (not (== global129 0) and not proc0_6(159))
                                        = global129 1
                                    )(else
                                        (if (== global129 0)
                                            = global129 0
                                        )(else
                                            = global129 1
                                        )
                                    )
                                )
                            )
                        )
                    )
                )
            )
        )
        (if (== gGClientModNum 285)
            (self:setScript(from285))
        )(else
            (switch (global129)
                (case 0
                    (send global2:addObstacle((send ((Polygon:new())):
                            type(2)
                            init(21 159 177 157 178 176 14 179)
                            yourself()
                        )
))
                    (self:setScript(firstEntrance))
                )
                (case 2
                    proc0_4(142)
                    (kreeshaTell:init(kreesha @local1 @local22 @local33))
                    (kreesha:
                        x(169)
                        y(146)
                        loop(2)
                        cel(0)
                        noun(2)
                        actions(kreeshaTell)
                        init()
                        ignoreActors(1)
                        stopUpd()
                    )
                    (send global2:addObstacle((send ((Polygon:new())):
                            type(2)
                            init(98 133 147 126 173 130 178 153 123 161 89 157)
                            yourself()
                        )
))
                    (self:setScript(doneChanger))
                )
                (case 6
                    (self:setScript(enterWithWood))
                )
                (case 8
                    (send (ScriptID(35 1)):
                        view(963)
                        loop(1)
                        x(236)
                        y(130)
                        init()
                    )
                    (send gOwner:
                        x(155)
                        y(142)
                        init()
                    )
                    (kreesha:
                        x(54)
                        y(182)
                        init()
                        addToPic()
                    )
                    (kreeshaTop:
                        x(- (kreesha:x) 2)
                        y(- (kreesha:y) 35)
                        setPri(14)
                        init()
                    )
                    (self:setScript(ceremonyScript))
                )
                (default 
                    (self:setScript(mostTimes))
                )
            )
        )
    )


    (method (doit)
        (if ((self:script))
            0
        )(else
            (if ((send gOwner:script))
                0
            )(else
                (if ((send gOwner:inRect(255 89 319 102)))
                    (if (proc999_5(global129 0 2 4 6 8))
                        (self:setScript(bePolite))
                    )(else
                        (send global2:newRoom(285))
                    )
                )(else
                    (if ((send gOwner:inRect(0 87 45 115)))
                        (send global2:setScript(egoExits))
                    )
                )
            )
        )
        (super:doit())
    )


    (method (dispose)
        proc958_0(0 964 35 34 49 62)
        (if (== global129 0)
            = global129 1
        )
        (super:dispose())
    )


    (method (doVerb theVerb)
        (if ((send global2:script))
            (super:doVerb(theVerb))
        )(else
            (switch (theVerb)
                (case 81
                    (if ((send gGQg3KDHandler:contains(kreesha)) or (send gGQg3KDHandler:contains(ScriptID(35 1))))
                        (send gQg3Messager:say(1 6 86))
                    )(else
                        (if ((send gOwner:castSpell(25)))
                            (self:setScript(ScriptID(32 0) 0 81))
                        )
                    )
                )
                (case 83
                    (if ((send gGQg3KDHandler:contains(kreesha)) or (send gGQg3KDHandler:contains(ScriptID(35 1))))
                        (send gQg3Messager:say(1 6 86))
                    )(else
                        (if ((send gOwner:castSpell(27)))
                            (self:setScript(ScriptID(32 0) 0 83))
                        )
                    )
                )
                (case 88
                    (if ((send gGQg3KDHandler:contains(kreesha)) or (send gGQg3KDHandler:contains(ScriptID(35 1))))
                        (send gQg3Messager:say(1 6 86))
                    )(else
                        (if ((send gOwner:castSpell(32)))
                            (self:setScript(ScriptID(32 0) 0 88))
                        )
                    )
                )
                (case 80
                    (if ((send gOwner:castSpell(24)))
                        (send global2:setScript(ScriptID(12)))
                    )
                )
                (case 77
                    (if ((send gOwner:castSpell(21)))
                        (send gQg3Messager:say(1 6 45))
                    )
                )
                (case 85
                    (if ((send gOwner:castSpell(29)))
                        (send gQg3Messager:say(1 6 87))
                    )
                )
                (case 84
                    (send (ScriptID(31 0)):init())
                )
                (case 86
                    (if ((send gOwner:castSpell(30)))
                        (send global2:setScript(ScriptID(62)))
                    )
                )
                (case 82
                    (if ((send gOwner:castSpell(26)))
                        (send gQg3Messager:say(1 6 90))
                    )
                )
                (default 
                    (super:doVerb(theVerb))
                )
            )
        )
    )

)
(instance from285 of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (send gOwner:
                    x(288)
                    y(108)
                    init()
                    normalize()
                    setMotion(MoveTo 277 141 self)
                )
            )
            (case 1
                proc0_3()
                (self:dispose())
            )
        )
    )

)
(instance ceremonyScript of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                = cycles 1
            )
            (case 1
                (send gQg3Messager:say(1 6 80 0 self))
                = gGGOwnerMaxStamina_3 (- gGOwnerMaxStamina[14] 9)
            )
            (case 2
                (send gQg3Messager:say(3 6 46 0 self))
            )
            (case 3
                (send (ScriptID(35 1)):setCycle(End self))
                (send gLongSong2:
                    number(240)
                    play()
                )
            )
            (case 4
                (send gQg3Messager:say(3 6 47 0 self))
            )
            (case 5
                (send gOwner:setMotion(MoveTo 198 136 self))
            )
            (case 6
                (send gOwner:
                    view(31)
                    loop(0)
                    cel(0)
                    setCycle(End self)
                )
            )
            (case 7
                (send (ScriptID(35 1)):cel(0))
                (send gOwner:setCycle(Beg self))
            )
            (case 8
                (send gOwner:
                    view(38)
                    loop(0)
                    cel(1)
                    setCycle(End self)
                )
            )
            (case 9
                = seconds 1
            )
            (case 10
                (send gOwner:setCycle(Beg self))
            )
            (case 11
                (send gOwner:normalize())
                (send gQg3Messager:say(3 6 21 0 self))
            )
            (case 12
                (send gQg3Messager:say(3 6 35 0 self))
            )
            (case 13
                proc0_4(44)
                (send gOwner:solvePuzzle(238 25 1))
                = global129 local0
                = global125 3
                (send global2:newRoom(340))
            )
        )
    )

)
(instance enterWithWood of Script
    (properties)

    (method (changeState newState)
        (var temp0[2])
        (switch (= state newState)
            (case 0
                = global129 local0
                proc0_2()
                (send gOwner:
                    x(20)
                    y(110)
                    init()
                    setMotion(PolyPath 133 131 self)
                )
                (kreesha:
                    x(50)
                    y(180)
                    loop(0)
                    cel(0)
                    init()
                    addToPic()
                )
                (kreeshaTop:
                    x(- (kreesha:x) 2)
                    y(- (kreesha:y) 35)
                    setPri(14)
                    init()
                )
            )
            (case 1
                (send gQg3Messager:say(2 6 25 0 self))
            )
            (case 2
                (send gQg3Messager:say(2 6 26 0 self))
            )
            (case 3
                (send gOwner:setMotion(PolyPath 133 146 self))
            )
            (case 4
                (send gOwner:
                    view(4)
                    cel(0)
                    setCycle(End self)
                )
            )
            (case 5
                (stick:init())
                (send gOwner:setCycle(Beg self))
            )
            (case 6
                (send gOwner:
                    normalize()
                    setMotion(PolyPath 79 142 self)
                )
            )
            (case 7
                (send gOwner:setHeading(90 self))
            )
            (case 8
                (send gQg3Messager:say(2 6 27 0 self))
            )
            (case 9
                (kreeshaTop:setCycle(End self))
            )
            (case 10
                (send gLongSong2:
                    number(12)
                    setLoop(1)
                    play()
                )
                (thatOldGlow:
                    init()
                    setPri(12)
                    setCycle(Fwd)
                )
                (stick:setPri(13))
                = seconds 5
            )
            (case 11
                (send gQg3Messager:say(2 6 43 0 self))
            )
            (case 12
                (send gLongSong2:
                    number(900)
                    setLoop(1)
                    play()
                )
                (pentaGlow:
                    init()
                    setPri(11)
                )
                = seconds 3
            )
            (case 13
                (send gLongSong2:
                    number(281)
                    setLoop(1)
                    play()
                )
                (stick:setMotion(MoveTo 155 96 self))
            )
            (case 14
                (send gQg3Messager:say(2 6 28 0 self))
            )
            (case 15
                (send gOwner:
                    view(15)
                    learn(31 10)
                    drop(44)
                    setCycle(CT 3 1 self)
                )
                proc0_4(69)
            )
            (case 16
                (pow:
                    x(81)
                    y(84)
                    setLoop(2)
                    init()
                    setScale()
                    setPri(14)
                    setCycle(Fwd)
                )
                = seconds 1
            )
            (case 17
                (send gOwner:setCycle(End))
                (send gLongSong2:
                    number(13)
                    setLoop(1)
                    play()
                )
                (pow:
                    setStep(6 5)
                    setMotion(MoveTo 153 98 self)
                )
            )
            (case 18
                (pow:dispose())
                = seconds 1
            )
            (case 19
                (send gQg3Messager:say(2 6 29 0 self))
            )
            (case 20
                (send gOwner:
                    view(15)
                    setCycle(CT 3 1 self)
                )
            )
            (case 21
                (pow:
                    x(81)
                    y(84)
                    setLoop(4)
                    init()
                    setScale()
                    setPri(14)
                    setCycle(Fwd)
                )
                = seconds 1
            )
            (case 22
                (send gOwner:setCycle(End))
                (send gLongSong2:
                    number(13)
                    setLoop(1)
                    play()
                )
                (pow:
                    setStep(6 5)
                    setMotion(MoveTo 153 98 self)
                )
            )
            (case 23
                (pow:dispose())
                = seconds 1
            )
            (case 24
                (send gQg3Messager:say(2 6 29 0 self))
            )
            (case 25
                (send gOwner:
                    view(15)
                    setCycle(CT 3 1 self)
                )
            )
            (case 26
                (pow:
                    x(81)
                    y(84)
                    setLoop(2)
                    init()
                    setScale()
                    setPri(14)
                    setCycle(Fwd)
                )
                = seconds 1
            )
            (case 27
                (send gOwner:setCycle(End))
                (send gLongSong2:
                    number(13)
                    setLoop(1)
                    play()
                )
                (pow:
                    setStep(6 5)
                    setMotion(MoveTo 153 98 self)
                )
            )
            (case 28
                (pow:dispose())
                = seconds 1
            )
            (case 29
                (send gQg3Messager:say(2 6 29 0 self))
            )
            (case 30
                (send gOwner:
                    view(15)
                    setCycle(CT 3 1 self)
                )
            )
            (case 31
                (pow:
                    x(81)
                    y(84)
                    setLoop(4)
                    init()
                    setScale()
                    setPri(14)
                    setCycle(Fwd)
                )
                = seconds 1
            )
            (case 32
                (send gOwner:setCycle(End))
                (send gLongSong2:
                    number(13)
                    setLoop(1)
                    play()
                )
                (pow:
                    setStep(6 5)
                    setMotion(MoveTo 153 98 self)
                )
            )
            (case 33
                (pow:dispose())
                = seconds 1
            )
            (case 34
                (send gQg3Messager:say(2 6 37 0 self))
            )
            (case 35
                (stick:dispose())
                (send gOwner:
                    view(20)
                    loop(0)
                    cel(0)
                    setCycle(End self)
                )
                (send gLongSong2:
                    number(12)
                    setLoop(1)
                    play()
                )
            )
            (case 36
                (send gOwner:
                    loop(2)
                    setCycle(End self)
                )
            )
            (case 37
                (send gQg3Messager:say(2 6 30 0 self))
            )
            (case 38
                (pentaGlow:dispose())
                = seconds 3
            )
            (case 39
                (thatOldGlow:dispose())
                (kreeshaTop:setCycle(Beg self))
            )
            (case 40
                (send gQg3Messager:say(2 6 32 0 self))
            )
            (case 41
                (send gOwner:solvePuzzle(237 10 2))
                (send gOwner:normalize())
                (send global2:newRoom(270))
            )
        )
    )

)
(instance doneChanger of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (send gOwner:
                    x(20)
                    y(110)
                    init()
                    setMotion(PolyPath 160 125 self)
                )
            )
            (case 1
                (kreesha:setCycle(End self))
            )
            (case 2
                (kreesha:stopUpd())
                (send gQg3Messager:say(2 6 63 0 self))
            )
            (case 3
                (if (proc0_6(26) or proc0_6(27))
                    (send gQg3Messager:say(2 6 20 0 self))
                )(else
                    (self:cue())
                )
            )
            (case 4
                proc0_3()
                (self:dispose())
            )
        )
    )

)
(instance mostTimes of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (send gOwner:
                    x(20)
                    y(110)
                    init()
                    setMotion(PolyPath 160 100 self)
                )
            )
            (case 1
                (switch (global129)
                    (case 1
                        (send gQg3Messager:say(1 6 17 0 self))
                    )
                    (case 3
                        (send gQg3Messager:say(1 6 17 0 self))
                    )
                    (case 5
                        (send gQg3Messager:say(1 6 17 0 self))
                    )
                    (case 7
                        (send gQg3Messager:say(1 6 17 0 self))
                    )
                    (default 
                        (self:cue())
                    )
                )
            )
            (case 2
                proc0_3()
                (self:dispose())
            )
        )
    )

)
(instance firstEntrance of Script
    (properties)

    (method (changeState newState)
        (var temp0[15])
        (switch (= state newState)
            (case 0
                proc0_2()
                proc0_4(6)
                (kreesha:
                    x(74)
                    y(176)
                    view(282)
                    loop(0)
                    cel(0)
                    actions(kreeshaTell)
                    noun(2)
                    signal(16384)
                    init()
                    addToPic()
                )
                (kreeshaTop:
                    x(- (kreesha:x) 2)
                    y(- (kreesha:y) 35)
                    setPri(13)
                    loop(3)
                    cel(0)
                    signal(16400)
                    init()
                    cycleSpeed(12)
                    setCycle(End self)
                )
                = seconds 5
            )
            (case 1
                (send gLongSong2:
                    number(932)
                    setLoop(-1)
                    play(127)
                )
                (portal:
                    cycleSpeed(10)
                    setCycle(Fwd)
                    init()
                )
                = seconds 3
            )
            (case 2
                (kreeshaTop:setCycle(Beg))
                (send gOwner:
                    x(283)
                    y(115)
                    setMotion(PolyPath 290 170 self)
                )
            )
            (case 3
                (send (ScriptID(34 1)):
                    x(281)
                    y(115)
                    view(968)
                    loop(2)
                    cel(0)
                    origStep(1026)
                    setScale(165)
                    setCycle(Walk)
                    init()
                    setMotion(PolyPath 281 123 self)
                )
                (send gOwner:setLoop(1))
                (send gOwner:setLoop(-1))
            )
            (case 4
                (send (ScriptID(34 1)):setMotion(PolyPath 180 130 self))
            )
            (case 5
                (send (ScriptID(34 1)):
                    setLoop(2)
                    ignoreActors(1)
                )
                = cycles 2
            )
            (case 6
                (send (ScriptID(35 1)):
                    x(285)
                    y(115)
                    view(281)
                    setLoop(1)
                    cel(0)
                    cycleSpeed(6)
                    setScale(165)
                    setCycle(Walk)
                    origStep(1540)
                    noun(3)
                    init()
                    setMotion(MoveTo 255 155 self)
                )
            )
            (case 7
                (send (ScriptID(35 1)):
                    setLoop(3)
                    x(- (send (ScriptID(35 1)):x) 20)
                    ignoreActors(1)
                    setMotion(MoveTo 127 165 self)
                )
                (kreeshaTop:setCycle(End))
            )
            (case 8
                (send (ScriptID(35 1)):
                    setLoop(5)
                    stopUpd()
                )
                = seconds 2
            )
            (case 9
                (kreeshaTop:setCycle(Beg self))
            )
            (case 10
                (kreeshaTop:stopUpd())
                (portal:dispose())
                (send gLongSong2:stop())
                = cycles 2
            )
            (case 11
                (send gQg3Messager:say(3 6 12 0 self))
            )
            (case 12
                (send gQg3Messager:say(3 6 8 0 self))
            )
            (case 13
                (send (ScriptID(34 1)):
                    setLoop(-1)
                    setCycle(Walk)
                    cycleSpeed(5)
                    moveSpeed(5)
                    setMotion(MoveTo -7 (send (ScriptID(34 1)):y) self)
                )
            )
            (case 14
                (send (ScriptID(34 1)):dispose())
                (if (== global125 3)
                    (send gQg3Messager:say(3 6 34 0 self))
                )(else
                    (send gQg3Messager:say(3 6 14 0 self))
                )
            )
            (case 15
                (if (gGOwnerMaxStamina[18])
                    (send gQg3Messager:say(2 6 15 0 self))
                )(else
                    (self:cue())
                )
            )
            (case 16
                proc0_3()
                (portal:dispose())
                (self:dispose())
            )
        )
    )

)
(instance bePolite of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (send gQg3Messager:say(2 6 42 0 self))
            )
            (case 1
                (send gOwner:setMotion(MoveTo 265 138 self))
            )
            (case 2
                proc0_3()
                (self:dispose())
            )
        )
    )

)
(instance egoExits of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                proc0_2()
                (if (== global129 2)
                    (send gQg3Messager:say(2 6 79 0 self))
                )(else
                    (if (== global129 0)
                        (send gQg3Messager:say(3 6 10 0 self))
                        ++global129
                    )(else
                        (self:cue())
                    )
                )
            )
            (case 1
                (send global2:newRoom(270))
            )
        )
    )

)
(instance pow of Actor
    (properties
        view 21
        loop 2
        signal $4000
    )
)
(instance kreesha of Actor
    (properties
        x 246
        y 186
        noun 2
        yStep 4
        view 282
        cycleSpeed 2
        xStep 5
    )

    (method (doVerb theVerb)
        (kreeshaTell:doVerb(theVerb))
    )

)
(instance kreeshaTop of Prop
    (properties
        x 71
        y 142
        noun 2
        view 282
        loop 3
        signal $4000
    )
)
(instance portal of Prop
    (properties
        x 285
        y 117
        view 280
        signal $4000
    )
)
(instance stick of Actor
    (properties
        x 155
        y 141
        view 790
        loop 1
        signal $4000
    )
)
(instance thatOldGlow of Prop
    (properties
        x 157
        y 163
        view 283
        loop 1
        signal $4000
    )
)
(instance pentaGlow of Prop
    (properties
        x 157
        y 163
        view 283
        signal $4000
    )
)
(instance leftCandles of Feature
    (properties
        x 12
        y 45
        noun 20
        nsTop 35
        nsLeft 2
        nsBottom 55
        nsRight 22
        sightAngle 180
    )
)
(instance rightCandles of Feature
    (properties
        x 293
        y 46
        noun 20
        nsTop 37
        nsLeft 284
        nsBottom 55
        nsRight 303
        sightAngle 180
    )
)
(instance hornSkull of Feature
    (properties
        x 157
        y 17
        noun 7
        nsTop 5
        nsLeft 146
        nsBottom 30
        nsRight 168
        sightAngle 180
    )
)
(instance pentagram of Feature
    (properties
        x 157
        y 145
        noun 8
        nsTop 125
        nsLeft 92
        nsBottom 165
        nsRight 222
        sightAngle 180
    )
)
(instance leftPitcher of Feature
    (properties
        x 39
        y 73
        noun 9
        nsTop 56
        nsLeft 33
        nsBottom 90
        nsRight 46
        sightAngle 180
    )
)
(instance stool of Feature
    (properties
        x 61
        y 94
        noun 23
        nsTop 81
        nsLeft 45
        nsBottom 108
        nsRight 78
        sightAngle 180
    )
)
(instance books of Feature
    (properties
        x 200
        y 39
        noun 11
        nsTop 29
        nsLeft 175
        nsBottom 49
        nsRight 226
        sightAngle 180
    )
)
(instance moreCandles of Feature
    (properties
        x 228
        y 62
        noun 12
        nsTop 49
        nsLeft 220
        nsBottom 75
        nsRight 236
        sightAngle 180
    )
)
(instance cretianUrn of Feature
    (properties
        x 135
        y 44
        noun 13
        nsTop 33
        nsLeft 122
        nsBottom 55
        nsRight 148
        sightAngle 180
    )
)
(instance boxes of Feature
    (properties
        x 92
        y 73
        noun 14
        nsTop 65
        nsLeft 79
        nsBottom 82
        nsRight 106
        sightAngle 180
    )
)
(instance skulls of Feature
    (properties
        x 207
        y 12
        noun 15
        nsTop 8
        nsLeft 179
        nsBottom 17
        nsRight 236
        sightAngle 180
    )
)
(instance bottles of Feature
    (properties
        x 103
        y 15
        noun 16
        nsTop 5
        nsLeft 65
        nsBottom 25
        nsRight 141
        sightAngle 180
    )
)
(instance shelf of Feature
    (properties
        x 83
        y 34
        noun 17
        nsTop 26
        nsLeft 66
        nsBottom 43
        nsRight 100
        sightAngle 180
    )
)
(instance otherBottles of Feature
    (properties
        x 190
        y 64
        noun 18
        nsTop 56
        nsLeft 178
        nsBottom 73
        nsRight 203
        sightAngle 180
    )
)
(instance plant of Feature
    (properties
        x 191
        y 78
        noun 19
        nsTop 74
        nsLeft 178
        nsBottom 82
        nsRight 204
        sightAngle 180
    )
)
(instance moreBooks of Feature
    (properties
        x 213
        y 65
        noun 21
        nsTop 56
        nsLeft 207
        nsBottom 74
        nsRight 219
        sightAngle 180
    )
)
(instance vases of Feature
    (properties
        x 140
        y 65
        noun 22
        nsTop 55
        nsLeft 111
        nsBottom 76
        nsRight 169
        sightAngle 180
    )
)
(instance chest of Feature
    (properties
        x 297
        y 84
        noun 26
        nsTop 73
        nsLeft 289
        nsBottom 95
        nsRight 306
        sightAngle 180
    )
)
(instance pillar of Feature
    (properties
        x 255
        y 61
        noun 24
        nsTop 12
        nsLeft 242
        nsBottom 111
        nsRight 269
        sightAngle 180
    )
)
(instance urn of Feature
    (properties
        x 275
        y 73
        noun 25
        nsTop 56
        nsLeft 270
        nsBottom 91
        nsRight 281
        sightAngle 180
    )
)
(instance kreeshaTell of Teller
    (properties)

    (method (showDialog)
        (super:showDialog(-3 (== global129 0) -5 (== global129 0) -7 (== global129 0) -2 (== global129 0) -4 (< global129 2) -19 (> global129 2) -20 
            (if (== global125 1)
                (> global129 1)
            )(else
                0
            )
 -21 (> global129 1) -22 (> global129 1) -37 (== global129 7) -39 (== global129 6) -38 (== global129 6) -40 (== global129 7) -6 
            (if (== global129 0)
            )(else
                (== global129 7)
            )
 -58 
            (if (== global129 0)
                (== global125 1)
            )(else
                0
            )
 -74 (== global129 6) -71 (== global129 6) -70 (== global129 6) -74 (== global129 6) -65 (== global129 2) -64 (== global129 2)))
    )


    (method (doChild)
        return 
            (switch (query)
                (case -69
                    proc0_4(133)
                    return query
                )
                (case -4
                    (super:doChild(query))
                )
                (case -7
                    (super:doChild(query))
                )
                (case -5
                    (super:doChild(query))
                )
                (case -20
                    (super:doChild(query))
                )
                (case -71
                    (super:doChild(query))
                )
                (case -65
                    (super:doChild(query))
                )
                (case -66
                    (super:doChild(query))
                )
                (default 
                    return query
                )
            )
    )


    (method (doVerb theVerb)
        (if (((== theVerb 81) or (== theVerb 83)) or (== theVerb 88))
            (send gQg3Messager:say(1 6 89))
        )(else
            (if (== theVerb 82)
                (send gQg3Messager:say(1 6 90))
            )(else
                (super:doVerb(theVerb))
            )
        )
    )

)
(instance egoTell of Teller
    (properties)

    (method (showDialog)
        (super:showDialog(-36 (== global129 7) -19 (== global129 3) -11 (== global129 0) -75 (== global129 0) -76 
            (if (< global129 6)
                (> global129 0)
            )(else
                0
            )
 -77 (== global129 6)))
    )


    (method (doChild)
        return query
    )

)
(instance rakeeshTell of Teller
    (properties)

    (method (showDialog)
        (super:showDialog(-55 (== global125 3)))
    )


    (method (doChild)
        return 
            (switch (query)
                (case -8
                    (super:doChild(query))
                )
                (case -3
                    (super:doChild(query))
                )
                (case -51
                    (super:doChild(query))
                )
                (default 
                    return query
                )
            )
    )


    (method (doVerb theVerb)
        (if (((== theVerb 81) or (== theVerb 83)) or (== theVerb 88))
            (send gQg3Messager:say(1 6 88))
        )(else
            (if (== theVerb 82)
                (send gQg3Messager:say(1 6 90))
            )(else
                (super:doVerb(theVerb))
            )
        )
    )

)
