(include "sci.sh")
(use "Class_255_0")
(use "Sound")
(use "Cycle")
(use "Game")
(use "InvI")
(use "User")
(use "TheMenuBar")
(use "Obj")
(script 0)


(local
    global0
    global1
    global2
    global3
    global4
    global5
    global6
    global7
    global8
    global9
    global10
    global11
    global12
    global13
    global14
    global15
    global16
    global17
    global18
    global19
    global20
    global21
    global22
    global23
    global24
    global25
    global26
    global27
    global28
    global29
    global30
    global31
    global32
    global33
    global34
    global35
    global36
    global37
    global38
    global39
    global40
    global41
    global42
    global43
    global44
    global45
    global46
    global47
    global48
    global49
    global50
    global51
    global52
    global53
    global54
    global55
    global56
    global57
    global58
    global59
    global60
    global61
    global62
    global63
    global64
    global65
    global66
    global67
    global68
    global69
    global70
    global71
    global72
    global73
    global74
    global75
    global76
    global77
    global78
    global79
    global80
    global81
    global82
    global83
    global84
    global85
    global86
    global87
    global88
    global89
    global90
    global91
    global92
    global93
    global94
    global95
    global96
    global97
    global98
    global99
    global100
    global101
    global102
    global103
    global104
    global105
    global106
    global107
    global108
    global109
    global110
    global111
    global112
    global113
    global114
    global115
    global116
    global117
    global118
    global119
    global120
    global121
    global122
    global123
    global124
    global125
    global126
    global127
    global128
    global129
    global130
    global131
    global132
    global133
    global134
    global135
    global136
    global137
    global138
    global139
    global140
    global141
    global142
    global143
    global144
    global145
    global146
    global147
    global148
    global149
    global150
    global151
    global152
    global153
    global154
    global155
    global156
    global157
    global158
    global159
    global160
    global161
    global162
    global163
    global164
    global165
    global166
    global167
    global168
    global169
    global170
    global171
    global172
    global173
    global174
    global175
    global176
    global177
    global178
    global179
    global180
    global181
    global182
    global183
    global184
    global185
    global186
    global187
    global188
    global189
    global190
    global191
    global192
    global193
    global194
    global195
    global196
    global197
    global198
    global199
    global200
    global201
    global202
    global203
    global204
    global205
    global206
    global207
    global208
    global209
    global210
    global211
    global212
    global213
    global214
    global215
    global216
    global217
    global218
    global219
    global220
    global221
    global222
    global223
    global224
    global225
    global226
    global227
    global228
    global229
    global230
    global231
    global232
    global233
    global234
    global235
    global236
    global237
    global238
    global239
    global240
    global241
    global242
    global243
    global244
    global245
    global246
    global247
    global248
    global249
    global250
    global251
    global252
    global253
    global254
    global255
    global256
    global257
    global258
    global259
    global260
    global261
    global262
    global263
    global264
    global265
    global266
    global267
    global268
    global269
    global270
    global271
    global272
    global273
    global274
    global275
    global276
    global277
    global278
    global279
    global280
    global281
    global282
    global283
    global284
    global285
    global286
    global287
    global288
    global289
    global290
    global291
    global292
    global293
    global294
    global295
    global296
    global297
    global298
    global299
    global300
    global301
    global302
    global303
    global304
    global305
    global306
    global307
    global308
    global309
    global310
    global311
    global312
    global313
    global314
    global315
    global316
    global317
    global318
    global319
    global320
    global321
    global322
    global323
    global324
    global325
    global326
    global327
    global328
    global329
    global330
    global331
    global332
    global333
    global334
    global335
    global336
    global337
    global338
    global339
    global340
    global341
    global342
    global343
    global344
    global345
    global346
    global347
    global348
    global349
    global350
    global351
    global352
    global353
    global354
    global355
    global356
    global357
    global358
    global359
    global360
    global361
    global362
    global363
    global364
    global365
    global366
    global367
    global368
    global369
    global370
    global371
    global372
    global373
    global374
    global375
    global376
    global377
    global378
    global379
    global380
    global381
    global382
    global383
    global384
    global385
    global386
    global387
    global388
    global389
    global390
    global391
    global392
    global393
    global394
    global395
    global396
    global397
    global398
    global399
    global400
    global401
    global402
    global403
    global404
    global405
    global406
    global407
    global408
    global409
    global410
    global411
    global412
    global413
    global414
    global415
    global416
    global417
    global418
    global419
    global420
    global421
    global422
    global423
    global424
    global425
    global426
    global427
    global428
    global429
    global430
    global431
    global432
    global433
    global434
    global435
    global436
    global437
    global438
    global439
    global440
    global441
    global442
    global443
    global444
    global445
    global446
    global447
    global448
    global449
    global450
    global451
    global452
    global453
    global454
    global455
    global456
    global457
    global458
    global459
    global460
    global461
    global462
    global463
    global464
    global465
    global466
    global467
    global468
    global469
    global470
    global471
    global472
    global473
    global474
    global475
    global476
    global477
    global478
    global479
    global480
    global481
    global482
    global483
    global484
    global485
    global486
    global487
    global488
    global489
    global490
    global491
    global492
    global493
    global494
    global495
    global496
    global497
    global498
    global499
    global500
    global501
    global502
    global503
    global504
    global505
    global506
    global507
    global508
    global509
    global510
    global511
    global512
    global513
    global514
    global515
    global516
    global517
    global518
    global519
    global520
    global521
    global522
    global523
    global524
    global525
    global526
    global527
    global528
    global529
    global530
    global531
    global532
    global533
    global534
    global535
    global536
    global537
    global538
    global539
    global540
    global541
    global542
    global543
    global544
    global545
    global546
    global547
    global548
    global549
    global550

)
(procedure public (proc0_2 param1 param2)
    (if (< paramTotal 2)
        = param2 5
    )
    (switch ((send param1:loop()))
        (case 0
            (OnControl((send param1:x()) (send param1:y()) + (send param1:x()) param2 + (send param1:y()) 1) return   )
        )
        (case 1
            (OnControl(- (send param1:x()) param2 (send param1:y()) (send param1:x()) + (send param1:y()) 1) return   )
        )
        (case 2
            (OnControl((send param1:x()) (send param1:y()) + (send param1:x()) 1 + (send param1:y()) param2) return   )
        )
        (case 3
            (OnControl((send param1:x()) - (send param1:y()) param2 + (send param1:x()) 1 (send param1:y())) return  )
        )
    )
)


(procedure public (proc0_3 param1 param2)
    DirLoop(param1 GetAngle((send param1:x()) (send param1:y()) (send param2:x()) (send param2:y())))
    (if (== paramTotal 3)
        DirLoop(param2 GetAngle((send param2:x()) (send param2:y()) (send param1:x()) (send param1:y())))
    )
)


(procedure public (proc0_9 param1 param2)
    (if (> paramTotal 0)
        (send global0:loop(param1))
        (if (> paramTotal 1)
            (send global0:view(param2))
        )
    )
    (send global0:
        setLoop(-1)
        setPri(-1)
        setMotion(0)
        setCycle(Walk)
        illegalBits(32768)
        cycleSpeed(0)
        moveSpeed(0)
        ignoreActors(0)
    )
    (User:
        canControl(1)
        canInput(1)
    )
)


(procedure public (proc0_10)
    (User:
        canControl(0)
        canInput(0)
    )
    (send global0:setMotion(0))
    = global204 1
    = global114 global189
    = global189 1
)


(procedure public (proc0_11)
    (User:
        canControl(1)
        canInput(1)
    )
    (send global0:setMotion(0))
    = global204 0
    = global189 global114
)


(procedure public (proc0_12 param1 param2)
    (send (ScriptID(param1)):notify(rest param2))
)


(procedure public (proc0_13)
    return 
        (if (== (send global0:view()) 2)
        )(else
            == (send global0:view()) 4
        )
)


(procedure public (proc0_14 param1)
    return > MemoryInfo(1) param1
)


(procedure public (proc0_15)
    proc255_0(0 129)
)


(procedure public (proc0_16)
    proc255_0(0 130)
)


(procedure public (proc0_17)
    proc255_0(0 131)
)


(procedure public (proc0_18)
    proc255_0(0 132)
)


(procedure public (proc0_19)
    proc255_0(0 133)
)


(procedure public (proc0_20)
    Animate((send global5:elements()) 0)
)


(procedure public (proc0_21 param1 param2)
    (send param1:
        loop(param2)
        changeState()
    )
)


(procedure public (proc0_22 param1)
    (var liteStateState)
    = liteStateState (liteState:state())
    (if (paramTotal)
        (liteState:changeState(param1))
    )
    return liteStateState
)


(procedure public (proc0_23)
    (if (global25)
        (send global25:dispose())
    )
)


(class newInvItem of InvI
    (properties
        said 0
        description 0
        owner 0
        view 0
        loop 0
        cel 0
        script 0
    )

    (method (showSelf)
        proc255_0(0 0 160 name 164 view loop cel)
    )

)
(instance statusCode of Code
    (properties)

    (method (doit param1)
        Format(param1 0 1 global15 global16 " KQ\n  The Perils of Rosella")
    )

)
(instance getItemMusic of Sound
    (properties
        number 48
        priority 2
        keep 1
    )
)
(instance tweet of Sound
    (properties
        number 76
        priority -1
        keep 1
    )
)
(instance public KQ4 of Game
    (properties)

    (method (init)
        (super:init())
        (Inv:add({Silver Flute} {Diamond Pouch} Talisman {Lantern (unlit)} {Pandora's Box} {Gold Ball} {Witches' Glass Eye} {Obsidian Scarab} {Peacock Feather} Lute {Small Crown} Frog {Silver Baby Rattle} {Gold Coins} {Cupid's Bow} Shovel Axe {Fishing Pole} {Shakespeare Book} Worm {Skeleton Key} {Golden Bridle} Board Bone {Dead Fish} {Magic Fruit} {Sheet Music} {Silver Whistle} Locket Medal {Toy Horse} {Glass Bottle} {Gold Key} {Magic Hen} Rose Note))
        = global17 0
        = global22 (= global26 1)
        = global169 1
        = global28 "1.000.111"
        (liteState:init({Lantern (unlit)}))
        (TheMenuBar:init())
        (getItemMusic:init())
        (tweet:init())
        = global118 Random(1 3)
        (User:
            canInput(0)
            canControl(0)
            echo(32)
        )
        = global205 1
        (SL:code(statusCode))
        = global16 230
        = global116 1
        = global157 0
        = global105 0
        = global160 8
        (send global0:
            view(2)
            x(100)
            y(120)
        )
        (if (GameIsRestarting())
            (TheMenuBar:draw())
            (SL:enable())
            (self:newRoom(25))
            = global22 global26
        )(else
            (self:newRoom(701))
        )
    )


    (method (doit)
        (asm
            lag     global127
            bnt     code_0347
            pushi   #eachElementDo
            pushi   1
            pushi   172
            lag     global8
            send    6
            pushi   #number
            pushi   1
            pushi   49
            pushi   84
            pushi   0
            pushi   #new
            pushi   0
            class   Sound
            send    4
            send    10
code_02d9:  pushi   19
            pushi   0
            pushi   2
            pushi   164
            pushi   100
            pushi   0
            pushi   0
            pushi   60
            pushi   1
            pushi   160
            lofsa   "Roberta says:"
            push    
            pushi   162
            lofsa   "  Restore  "
            push    
            pushi   1
            pushi   162
            lofsa   "  Restart  "
            push    
            pushi   2
            pushi   162
            lofsa   "   Quit   "
            push    
            pushi   3
            calle   proc255_0, 38
            push    
            dup     
            ldi     1
            eq?     
            bnt     code_0320
            pushi   #restore
            pushi   0
            lag     global1
            send    4
            jmp     code_0340
code_0320:  dup     
            ldi     2
            eq?     
            bnt     code_0332
            pushi   #restart
            pushi   0
            lag     global1
            send    4
            jmp     code_0340
code_0332:  dup     
            ldi     3
            eq?     
            bnt     code_0340
            ldi     1
            sag     global4
            jmp     code_03d2
code_0340:  toss    
            jmp     code_02d9
            jmp     code_03d2
code_0347:  lag     global182
            bnt     code_035c
            ldi     0
            sag     global182
            pushi   #loop
            pushi   1
            pushi   1
            pushi   84
            pushi   0
            lofsa   getItemMusic
            send    10
code_035c:  pushi   1
            pushi   1
            callk   GetTime, 2
            sag     global156
            push    
            lag     global157
            ne?     
            bnt     code_03d2
            lag     global156
            sag     global157
            lsg     global158
            ldi     4
            add     
            sag     global158
            push    
            ldi     60
            ge?     
            bnt     code_03d2
            +ag     global159
            lsg     global158
            ldi     60
            sub     
            sag     global158
            lsg     global160
            ldi     31
            eq?     
            bnt     code_03a6
            lsg     global159
            ldi     59
            eq?     
            bnt     code_03a6
            pushi   #setScript
            pushi   1
            pushi   2
            pushi   302
            pushi   0
            callk   ScriptID, 4
            push    
            lag     global2
            send    6
code_03a6:  lsg     global160
            ldi     20
            eq?     
            bnt     code_03c4
            lsg     global159
            ldi     15
            mod     
            push    
            ldi     0
            eq?     
            bnt     code_03c4
            pushi   2
            pushi   0
            pushi   3
            calle   proc255_0, 4
code_03c4:  lsg     global159
            ldi     60
            eq?     
            bnt     code_03d2
            +ag     global160
            ldi     0
            sag     global159
code_03d2:  pushi   #doit
            pushi   0
            super   Game, 4
            ret     
        )
    )


    (method (replay)
        = global22 global26
        (TheMenuBar:draw())
        (SL:enable())
        SetMenu(1283 110 
            (if (DoSound(4))
                "Turn Off"
            )(else
                "Turn On"
            )
)
        (super:replay())
    )


    (method (newRoom param1)
        (if (global204 or (not global205 and (== (User:canControl()) 0)))
            return 
        )
        (if ((== global100 0) and (== global101 0))
            (if (not 
            (if (< 30 param1)
                (< param1 77)
            )
 and (((< 20 global160) and (< global160 30)) or ((((>= global109 3) and (send global0:has(7))) and (send global0:has(25))) and (< global160 30))))
                = global100 1
                = global188 param1
                (if (< global160 21)
                    = global160 21
                    = global159 0
                )
                = param1 697
            )
        )
        (super:newRoom(param1))
    )


    (method (startRoom param1)
        (var temp0)
        (if (global216 and localproc_266c(1200))
            = global216 0
            (send (= global202 ScriptID(801)):init())
        )
        (if (global14)
            = global14 0
            SetDebug()
        )
        (if (= temp0 
            (switch (param1)
                (case 120
                    (520  )
                )
                (case 54
                    (601  )
                )
                (case 68
                    (603  )
                )
                (case 49
                    (602  )
                )
                (case 92
                    (604  )
                )
                (case 71
                    (605  )
                )
                (case 73
                    (605  )
                )
                (case 55
                    (600  )
                )
                (default 
                    (0 )
                )
            )
)
            (send (ScriptID(= temp0 
                    (switch (param1)
                        (case 120
                            520
                        )
                        (case 54
                            601
                        )
                        (case 68
                            603
                        )
                        (case 49
                            602
                        )
                        (case 92
                            604
                        )
                        (case 71
                            605
                        )
                        (case 73
                            605
                        )
                        (case 55
                            600
                        )
                        (default 
                            0
                        )
                    )
)):init())
        )
        (super:startRoom(param1))
    )


    (method (handleEvent pEvent)
        (var temp0, temp1, temp2, temp3, temp4[50])
        (asm
            lag     global215
            bnt     code_06df
            pushi   #claimed
            pushi   0
            lap     pEvent
            send    4
            not     
            bnt     code_06df
            pushi   #type
            pushi   0
            lap     pEvent
            send    4
            push    
            ldi     1
            eq?     
            bnt     code_06df
            pushi   #modifiers
            pushi   0
            lap     pEvent
            send    4
            push    
            ldi     3
            and     
            bnt     code_0635
            pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
            pushi   7
            pushi   5
            lea     @temp4
            push    
            pushi   0
            pushi   9
            dup     
            pushi   0
            lap     pEvent
            send    4
            push    
            pushi   #y
            pushi   0
            lap     pEvent
            send    4
            push    
            callk   Format, 10
            push    
            pushi   134
            pushi   150
            pushi   100
            pushi   66
            pushi   999
            pushi   172
            calle   proc255_0, 14
            sat     temp2
code_0603:  pushi   2
            pushi   #type
            pushi   0
            pushi   #new
            pushi   0
            class   Event
            send    4
            sat     temp3
            send    4
            ne?     
            bnt     code_0622
            pushi   #dispose
            pushi   0
            lat     temp3
            send    4
            jmp     code_0603
code_0622:  pushi   #dispose
            pushi   0
            lat     temp2
            send    4
            pushi   #dispose
            pushi   0
            lat     temp3
            send    4
            jmp     code_06d1
code_0635:  pushi   #modifiers
            pushi   0
            lap     pEvent
            send    4
            push    
            ldi     4
            and     
            bnt     code_06ab
            pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
code_064d:  pushi   2
            pushi   #type
            pushi   0
            pushi   #new
            pushi   0
            class   Event
            send    4
            sat     temp3
            send    4
            ne?     
            bnt     code_06a0
            pushi   344
            pushi   #superClass
            pushi   #x
            pushi   0
            lat     temp3
            send    4
            push    
            pushi   #y
            pushi   0
            lat     temp3
            send    4
            push    
            ldi     10
            sub     
            push    
            pushi   330
            pushi   1
            pushi   0
            pushi   #alterEgo
            pushi   0
            class   User
            send    4
            send    14
            pushi   2
            pushi   #elements
            pushi   0
            lag     global5
            send    4
            push    
            pushi   0
            callk   Animate, 4
            pushi   #dispose
            pushi   0
            lat     temp3
            send    4
            jmp     code_064d
code_06a0:  pushi   #dispose
            pushi   0
            lat     temp3
            send    4
            jmp     code_06d1
code_06ab:  pushi   #modifiers
            pushi   0
            lap     pEvent
            send    4
            push    
            ldi     8
            and     
            bnt     code_06d1
            pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
            pushi   #showSelf
            pushi   0
            pushi   #alterEgo
            pushi   0
            class   User
            send    4
            send    4
code_06d1:  pushi   #claimed
            pushi   0
            lap     pEvent
            send    4
            bnt     code_06df
            ldi     1
            ret     
code_06df:  pushi   #handleEvent
            pushi   1
            lsp     pEvent
            super   Game, 6
            pushi   #type
            pushi   0
            lap     pEvent
            send    4
            push    
            ldi     128
            eq?     
            bnt     code_1bf3
            lag     global215
            bnt     code_07d5
            pushi   1
            lofsa   'enter/night'
            push    
            callk   Said, 2
            bnt     code_0786
            ldi     1
            sag     global163
            ldi     3
            sag     global109
            ldi     1
            sag     global131
            pushi   #get
            pushi   1
            pushi   3
            lag     global0
            send    6
            pushi   #get
            pushi   1
            pushi   16
            lag     global0
            send    6
            pushi   #get
            pushi   1
            pushi   15
            lag     global0
            send    6
            pushi   #get
            pushi   1
            pushi   25
            lag     global0
            send    6
            pushi   #get
            pushi   1
            pushi   14
            lag     global0
            send    6
            ldi     1
            sag     global100
            pushi   #loop
            pushi   1
            pushi   1
            pushi   14
            pushi   1
            pushi   0
            pushi   #at
            pushi   1
            pushi   14
            class   Inv
            send    6
            send    12
            ldi     1
            sag     global169
            ldi     21
            sag     global160
            ldi     1
            sag     global159
            ldi     5
            sag     global110
            ldi     65535
            sag     global118
            ldi     99
            sag     global123
            ldi     99
            sag     global124
            pushi   2
            pushi   0
            pushi   10
            calle   proc255_0, 4
            jmp     code_07d5
code_0786:  pushi   1
            lofsa   'get/mem'
            push    
            callk   Said, 2
            bnt     code_079c
            pushi   #showMem
            pushi   0
            lag     global1
            send    4
            jmp     code_07d5
code_079c:  pushi   1
            lofsa   'tp'
            push    
            callk   Said, 2
            bnt     code_07d5
            ldi     0
            sag     global300
            pushi   7
            lofsa   "TP to:"
            push    
            pushi   134
            pushi   65535
            pushi   20
            pushi   82
            lea     @global300
            push    
            pushi   6
            calle   proc255_0, 14
            pushi   1
            lea     @global300
            push    
            callk   ReadNumber, 2
            sag     global13
code_07d5:  pushi   1
            lofsa   'ass'
            push    
            callk   Said, 2
            bt      code_07f6
            pushi   1
            lofsa   '/ass'
            push    
            callk   Said, 2
            bt      code_07f6
            pushi   1
            lofsa   '//ass'
            push    
            callk   Said, 2
            bnt     code_0803
code_07f6:  pushi   2
            pushi   0
            pushi   11
            calle   proc255_0, 4
            jmp     code_1bf3
code_0803:  pushi   1
            lofsa   'blow/whistle'
            push    
            callk   Said, 2
            bnt     code_083c
            pushi   #has
            pushi   1
            pushi   27
            lag     global0
            send    6
            bnt     code_0834
            pushi   #loop
            pushi   1
            pushi   1
            pushi   84
            pushi   0
            lofsa   tweet
            send    10
            pushi   2
            pushi   0
            pushi   12
            calle   proc255_0, 4
            jmp     code_1bf3
code_0834:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_083c:  pushi   1
            lofsa   'open,(look<in)/bottle'
            push    
            callk   Said, 2
            bt      code_0852
            pushi   1
            lofsa   'get/letter'
            push    
            callk   Said, 2
            bnt     code_08ac
code_0852:  pushi   #has
            pushi   1
            pushi   35
            lag     global0
            send    6
            bnt     code_086c
            pushi   2
            pushi   0
            pushi   13
            calle   proc255_0, 4
            jmp     code_1bf3
code_086c:  pushi   #has
            pushi   1
            pushi   31
            lag     global0
            send    6
            bnt     code_08a4
            pushi   2
            pushi   0
            pushi   14
            calle   proc255_0, 4
            pushi   #cel
            pushi   1
            pushi   0
            pushi   #at
            pushi   1
            pushi   31
            class   Inv
            send    6
            send    6
            ldi     1
            sag     global182
            pushi   #get
            pushi   1
            pushi   35
            lag     global0
            send    6
            jmp     code_1bf3
code_08a4:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_08ac:  pushi   1
            lofsa   'drink/bottle'
            push    
            callk   Said, 2
            bnt     code_08d9
            pushi   #has
            pushi   1
            pushi   31
            lag     global0
            send    6
            bnt     code_08d1
            pushi   2
            pushi   0
            pushi   15
            calle   proc255_0, 4
            jmp     code_1bf3
code_08d1:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_08d9:  pushi   1
            lofsa   'break,hit,chop/branch,forest,arm,branch'
            push    
            callk   Said, 2
            bt      code_08ef
            pushi   1
            lofsa   'swing,wave/ax'
            push    
            callk   Said, 2
            bnt     code_0911
code_08ef:  pushi   #has
            pushi   1
            pushi   16
            lag     global0
            send    6
            bnt     code_0909
            pushi   2
            pushi   0
            pushi   16
            calle   proc255_0, 4
            jmp     code_1bf3
code_0909:  pushi   0
            call    localproc_269a, 0
            jmp     code_1bf3
code_0911:  pushi   #has
            pushi   1
            pushi   16
            lag     global0
            send    6
            bnt     code_0936
            pushi   1
            lofsa   'chop,hit'
            push    
            callk   Said, 2
            bnt     code_0936
            pushi   2
            pushi   0
            pushi   17
            calle   proc255_0, 4
            jmp     code_1bf3
code_0936:  pushi   1
            lofsa   'detach,(get<off)/dress'
            push    
            callk   Said, 2
            bt      code_0957
            pushi   1
            lofsa   'undress'
            push    
            callk   Said, 2
            bt      code_0957
            pushi   1
            lofsa   'get/undressed'
            push    
            callk   Said, 2
            bnt     code_0964
code_0957:  pushi   2
            pushi   0
            pushi   18
            calle   proc255_0, 4
            jmp     code_1bf3
code_0964:  pushi   1
            lofsa   'play,bounce/ball'
            push    
            callk   Said, 2
            bnt     code_0991
            pushi   #has
            pushi   1
            pushi   5
            lag     global0
            send    6
            bnt     code_0989
            pushi   2
            pushi   0
            pushi   19
            calle   proc255_0, 4
            jmp     code_1bf3
code_0989:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_0991:  pushi   1
            lofsa   'dig'
            push    
            callk   Said, 2
            bnt     code_09c3
            pushi   #has
            pushi   1
            pushi   15
            lag     global0
            send    6
            bnt     code_09b6
            pushi   2
            pushi   0
            pushi   16
            calle   proc255_0, 4
            jmp     code_1bf3
code_09b6:  pushi   2
            pushi   0
            pushi   20
            calle   proc255_0, 4
            jmp     code_1bf3
code_09c3:  pushi   1
            lofsa   'launch'
            push    
            callk   Said, 2
            bnt     code_0a4b
            pushi   #has
            pushi   1
            pushi   14
            lag     global0
            send    6
            not     
            bnt     code_09e9
            pushi   2
            pushi   0
            pushi   21
            calle   proc255_0, 4
            jmp     code_1bf3
code_09e9:  pushi   #loop
            pushi   0
            pushi   #at
            pushi   1
            pushi   14
            class   Inv
            send    6
            send    4
            push    
            ldi     2
            ge?     
            bnt     code_0a0c
            pushi   2
            pushi   0
            pushi   22
            calle   proc255_0, 4
            jmp     code_1bf3
code_0a0c:  lag     global189
            not     
            bnt     code_0a43
            pushi   0
            call    localproc_2652, 0
            bnt     code_0a43
            pushi   1
            pushi   1000
            call    localproc_266c, 2
            bnt     code_0a43
            pushi   #script
            pushi   0
            lag     global0
            send    4
            sag     global164
            pushi   #setScript
            pushi   1
            pushi   2
            pushi   305
            pushi   0
            callk   ScriptID, 4
            push    
            lag     global0
            send    6
            jmp     code_1bf3
code_0a43:  pushi   0
            call    localproc_269a, 0
            jmp     code_1bf3
code_0a4b:  pushi   1
            lofsa   'polish>'
            push    
            callk   Said, 2
            bnt     code_0b1a
            pushi   #saidMe
            pushi   0
            lag     global9
            send    4
            sat     temp1
            not     
            bnt     code_0a89
            pushi   1
            lofsa   '/&'
            push    
            callk   Said, 2
            bnt     code_0a7c
            pushi   2
            pushi   0
            pushi   23
            calle   proc255_0, 4
            jmp     code_0b0e
code_0a7c:  pushi   2
            pushi   0
            pushi   24
            calle   proc255_0, 4
            jmp     code_0b0e
code_0a89:  pushi   #has
            pushi   1
            pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            lag     global0
            send    6
            not     
            bnt     code_0aa8
            pushi   0
            call    localproc_26a6, 0
            jmp     code_0b0e
code_0aa8:  pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            dup     
            ldi     2
            eq?     
            bnt     code_0ac7
            pushi   2
            pushi   0
            pushi   25
            calle   proc255_0, 4
            jmp     code_0b0d
code_0ac7:  dup     
            ldi     3
            eq?     
            bnt     code_0adb
            pushi   2
            pushi   0
            pushi   26
            calle   proc255_0, 4
            jmp     code_0b0d
code_0adb:  dup     
            ldi     6
            eq?     
            bnt     code_0aef
            pushi   2
            pushi   0
            pushi   27
            calle   proc255_0, 4
            jmp     code_0b0d
code_0aef:  dup     
            ldi     7
            eq?     
            bnt     code_0b03
            pushi   2
            pushi   0
            pushi   28
            calle   proc255_0, 4
            jmp     code_0b0d
code_0b03:  pushi   2
            pushi   0
            pushi   29
            calle   proc255_0, 4
code_0b0d:  toss    
code_0b0e:  pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
            jmp     code_1bf3
code_0b1a:  pushi   1
            lofsa   'kiss>'
            push    
            callk   Said, 2
            bnt     code_0b9a
            pushi   #saidMe
            pushi   0
            lag     global9
            send    4
            sat     temp1
            pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
            lat     temp1
            not     
            bnt     code_0b4b
            pushi   2
            pushi   0
            pushi   30
            calle   proc255_0, 4
            jmp     code_1bf3
code_0b4b:  pushi   #has
            pushi   1
            pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            lag     global0
            send    6
            not     
            bnt     code_0b6f
            pushi   2
            pushi   0
            pushi   31
            calle   proc255_0, 4
            jmp     code_1bf3
code_0b6f:  pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            ldi     2
            eq?     
            bnt     code_0b8d
            pushi   2
            pushi   0
            pushi   32
            calle   proc255_0, 4
            jmp     code_1bf3
code_0b8d:  pushi   2
            pushi   0
            pushi   30
            calle   proc255_0, 4
            jmp     code_1bf3
code_0b9a:  pushi   1
            lofsa   'wish>'
            push    
            callk   Said, 2
            bnt     code_0c13
            pushi   #saidMe
            pushi   0
            lag     global9
            send    4
            sat     temp1
            not     
            bnt     code_0bc0
            pushi   2
            pushi   0
            pushi   33
            calle   proc255_0, 4
            jmp     code_0c07
code_0bc0:  pushi   #has
            pushi   1
            pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            lag     global0
            send    6
            not     
            bnt     code_0bdf
            pushi   0
            call    localproc_269a, 0
            jmp     code_0c07
code_0bdf:  pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            ldi     2
            eq?     
            bnt     code_0bfd
            pushi   2
            pushi   0
            pushi   34
            calle   proc255_0, 4
            jmp     code_0c07
code_0bfd:  pushi   2
            pushi   0
            pushi   35
            calle   proc255_0, 4
code_0c07:  pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
            jmp     code_1bf3
code_0c13:  pushi   1
            lofsa   'bait/hook,pole'
            push    
            callk   Said, 2
            bt      code_0c29
            pushi   1
            lofsa   'place/earthworm/hook,pole'
            push    
            callk   Said, 2
            bnt     code_0c89
code_0c29:  pushi   #has
            pushi   1
            pushi   19
            lag     global0
            send    6
            bnt     code_0c7c
            pushi   #has
            pushi   1
            pushi   17
            lag     global0
            send    6
            bnt     code_0c7c
            pushi   2
            pushi   0
            pushi   36
            calle   proc255_0, 4
            pushi   #moveTo
            pushi   1
            pushi   666
            pushi   #at
            pushi   1
            pushi   19
            class   Inv
            send    6
            send    6
            pushi   #loop
            pushi   1
            pushi   1
            pushi   #at
            pushi   1
            pushi   17
            class   Inv
            send    6
            send    6
            pushi   #changeScore
            pushi   1
            pushi   1
            lag     global1
            send    6
            jmp     code_1bf3
code_0c7c:  pushi   2
            pushi   0
            pushi   37
            calle   proc255_0, 4
            jmp     code_1bf3
code_0c89:  pushi   #has
            pushi   1
            pushi   24
            lag     global0
            send    6
            bnt     code_0cda
            pushi   1
            lofsa   '/fish>'
            push    
            callk   Said, 2
            bnt     code_0cda
            pushi   1
            lofsa   'smell'
            push    
            callk   Said, 2
            bnt     code_0cbb
            pushi   2
            pushi   0
            pushi   38
            calle   proc255_0, 4
            ldi     1
            jmp     code_0cd2
code_0cbb:  pushi   1
            lofsa   'chew'
            push    
            callk   Said, 2
            bnt     code_0cda
            pushi   2
            pushi   0
            pushi   39
            calle   proc255_0, 4
            ldi     1
code_0cd2:  bnt     code_0cda
            ldi     1
            jmp     code_1bf3
code_0cda:  pushi   1
            lofsa   'chew/earthworm'
            push    
            callk   Said, 2
            bnt     code_0d07
            pushi   #has
            pushi   1
            pushi   19
            lag     global0
            send    6
            bnt     code_0cff
            pushi   2
            pushi   0
            pushi   40
            calle   proc255_0, 4
            jmp     code_1bf3
code_0cff:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_0d07:  pushi   1
            lofsa   'chew/['
            push    
            callk   Said, 2
            bnt     code_0d34
            pushi   #has
            pushi   1
            pushi   23
            lag     global0
            send    6
            bnt     code_0d2c
            pushi   2
            pushi   0
            pushi   41
            calle   proc255_0, 4
            jmp     code_1bf3
code_0d2c:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_0d34:  pushi   1
            lofsa   'chew/fruit'
            push    
            callk   Said, 2
            bnt     code_0d78
            pushi   #has
            pushi   1
            pushi   25
            lag     global0
            send    6
            bnt     code_0d70
            pushi   2
            pushi   0
            pushi   42
            calle   proc255_0, 4
            pushi   #put
            pushi   2
            pushi   25
            pushi   999
            lag     global0
            send    8
            pushi   #changeScore
            pushi   1
            pushi   65526
            lag     global1
            send    6
            jmp     code_1bf3
code_0d70:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_0d78:  pushi   #has
            pushi   1
            pushi   28
            lag     global0
            send    6
            bnt     code_0d9d
            pushi   1
            lofsa   'dennis,(place<on)/locket'
            push    
            callk   Said, 2
            bnt     code_0d9d
            pushi   2
            pushi   0
            pushi   43
            calle   proc255_0, 4
            jmp     code_1bf3
code_0d9d:  pushi   #has
            pushi   1
            pushi   29
            lag     global0
            send    6
            bnt     code_0dc2
            pushi   1
            lofsa   'dennis,(place<on)/badge'
            push    
            callk   Said, 2
            bnt     code_0dc2
            pushi   2
            pushi   0
            pushi   44
            calle   proc255_0, 4
            jmp     code_1bf3
code_0dc2:  pushi   1
            lofsa   'dennis,(place<on)/amulet'
            push    
            callk   Said, 2
            bnt     code_0dee
            pushi   #has
            pushi   1
            pushi   2
            lag     global0
            send    6
            bnt     code_0de6
            pushi   2
            pushi   0
            pushi   45
            calle   proc255_0, 4
            jmp     code_1bf3
code_0de6:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_0dee:  pushi   1
            lofsa   'dennis,(place<on)/crown'
            push    
            callk   Said, 2
            bnt     code_0e5a
            pushi   #has
            pushi   1
            pushi   10
            lag     global0
            send    6
            not     
            bnt     code_0e0f
            pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_0e0f:  lag     global189
            bnt     code_0e21
            pushi   2
            pushi   0
            pushi   46
            calle   proc255_0, 4
            jmp     code_1bf3
code_0e21:  pushi   1
            pushi   2000
            call    localproc_266c, 2
            bnt     code_0e52
            pushi   0
            call    localproc_2652, 0
            bnt     code_0e52
            pushi   #script
            pushi   0
            lag     global0
            send    4
            sag     global164
            pushi   #setScript
            pushi   1
            pushi   2
            pushi   301
            pushi   0
            callk   ScriptID, 4
            push    
            lag     global0
            send    6
            jmp     code_1bf3
code_0e52:  pushi   0
            call    localproc_269a, 0
            jmp     code_1bf3
code_0e5a:  pushi   1
            lofsa   'read/letter'
            push    
            callk   Said, 2
            bnt     code_0e9f
            pushi   #has
            pushi   1
            pushi   35
            lag     global0
            send    6
            not     
            bnt     code_0e7b
            pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_0e7b:  pushi   1
            pushi   1200
            call    localproc_266c, 2
            bnt     code_0e97
            pushi   #cue
            pushi   0
            pushi   2
            pushi   306
            pushi   1
            callk   ScriptID, 4
            send    4
            jmp     code_1bf3
code_0e97:  pushi   0
            call    localproc_269a, 0
            jmp     code_1bf3
code_0e9f:  pushi   1
            lofsa   'play/flute'
            push    
            callk   Said, 2
            bnt     code_0f0a
            pushi   #has
            pushi   1
            pushi   0
            lag     global0
            send    6
            not     
            bnt     code_0ebf
            pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_0ebf:  lag     global189
            bnt     code_0ed1
            pushi   2
            pushi   0
            pushi   47
            calle   proc255_0, 4
            jmp     code_1bf3
code_0ed1:  pushi   0
            call    localproc_2652, 0
            bnt     code_0f02
            pushi   1
            pushi   1200
            call    localproc_266c, 2
            bnt     code_0f02
            pushi   #script
            pushi   0
            lag     global0
            send    4
            sag     global164
            pushi   #setScript
            pushi   1
            pushi   2
            pushi   304
            pushi   0
            callk   ScriptID, 4
            push    
            lag     global0
            send    6
            jmp     code_1bf3
code_0f02:  pushi   0
            call    localproc_269a, 0
            jmp     code_1bf3
code_0f0a:  pushi   1
            lofsa   'play/lute'
            push    
            callk   Said, 2
            bnt     code_0f71
            pushi   #has
            pushi   1
            pushi   9
            lag     global0
            send    6
            not     
            bnt     code_0f2b
            pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_0f2b:  lag     global189
            bnt     code_0f38
            pushi   0
            call    localproc_269a, 0
            jmp     code_1bf3
code_0f38:  pushi   0
            call    localproc_2652, 0
            bnt     code_0f69
            pushi   1
            pushi   1200
            call    localproc_266c, 2
            bnt     code_0f69
            pushi   #script
            pushi   0
            lag     global0
            send    4
            sag     global164
            pushi   #setScript
            pushi   1
            pushi   2
            pushi   303
            pushi   0
            callk   ScriptID, 4
            push    
            lag     global0
            send    6
            jmp     code_1bf3
code_0f69:  pushi   0
            call    localproc_269a, 0
            jmp     code_1bf3
code_0f71:  pushi   1
            lofsa   'play,shake/rattle'
            push    
            callk   Said, 2
            bnt     code_0f9e
            pushi   #has
            pushi   1
            pushi   12
            lag     global0
            send    6
            bnt     code_0f96
            pushi   2
            pushi   0
            pushi   48
            calle   proc255_0, 4
            jmp     code_1bf3
code_0f96:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_0f9e:  pushi   1
            lofsa   'unlatch/door'
            push    
            callk   Said, 2
            bnt     code_0fdd
            pushi   #has
            pushi   1
            pushi   20
            lag     global0
            send    6
            bt      code_0fc3
            pushi   #has
            pushi   1
            pushi   32
            lag     global0
            send    6
            bnt     code_0fd0
code_0fc3:  pushi   2
            pushi   0
            pushi   49
            calle   proc255_0, 4
            jmp     code_1bf3
code_0fd0:  pushi   2
            pushi   0
            pushi   50
            calle   proc255_0, 4
            jmp     code_1bf3
code_0fdd:  pushi   1
            lofsa   '/music>'
            push    
            callk   Said, 2
            bnt     code_1036
            pushi   1
            lofsa   'read,open'
            push    
            callk   Said, 2
            bnt     code_1017
            pushi   #has
            pushi   1
            pushi   26
            lag     global0
            send    6
            bnt     code_100d
            pushi   2
            pushi   0
            pushi   51
            calle   proc255_0, 4
            jmp     code_1012
code_100d:  pushi   0
            call    localproc_26a6, 0
code_1012:  ldi     1
            jmp     code_102e
code_1017:  pushi   1
            lofsa   'play'
            push    
            callk   Said, 2
            bnt     code_1036
            pushi   2
            pushi   0
            pushi   52
            calle   proc255_0, 4
            ldi     1
code_102e:  bnt     code_1036
            ldi     1
            jmp     code_1bf3
code_1036:  pushi   #has
            pushi   1
            pushi   30
            lag     global0
            send    6
            bnt     code_1065
            pushi   1
            lofsa   'play/horse'
            push    
            callk   Said, 2
            bnt     code_1065
            pushi   2
            pushi   0
            pushi   53
            calle   proc255_0, 4
            pushi   2
            pushi   0
            pushi   54
            calle   proc255_0, 4
            jmp     code_1bf3
code_1065:  pushi   1
            lofsa   '/book>'
            push    
            callk   Said, 2
            bnt     code_1119
            pushi   1
            lofsa   'close'
            push    
            callk   Said, 2
            bnt     code_10bb
            pushi   #has
            pushi   1
            pushi   18
            lag     global0
            send    6
            not     
            bnt     code_1096
            pushi   2
            pushi   0
            pushi   55
            calle   proc255_0, 4
            jmp     code_10b6
code_1096:  lag     global154
            bnt     code_10ac
            pushi   2
            pushi   0
            pushi   45
            calle   proc255_0, 4
            ldi     0
            sag     global154
            jmp     code_10b6
code_10ac:  pushi   2
            pushi   0
            pushi   56
            calle   proc255_0, 4
code_10b6:  ldi     1
            jmp     code_1111
code_10bb:  pushi   1
            lofsa   'read'
            push    
            callk   Said, 2
            bnt     code_110f
            pushi   #has
            pushi   1
            pushi   18
            lag     global0
            send    6
            not     
            bnt     code_10e1
            pushi   2
            pushi   0
            pushi   57
            calle   proc255_0, 4
            jmp     code_110a
code_10e1:  pushi   1
            pushi   1000
            call    localproc_266c, 2
            bnt     code_1105
            pushi   #changeState
            pushi   1
            pushi   2
            pushi   1
            pushi   30
            callk   Random, 4
            push    
            pushi   2
            pushi   306
            pushi   0
            callk   ScriptID, 4
            send    6
            jmp     code_110a
code_1105:  pushi   0
            call    localproc_269a, 0
code_110a:  ldi     1
            jmp     code_1111
code_110f:  ldi     0
code_1111:  bnt     code_1119
            ldi     1
            jmp     code_1bf3
code_1119:  pushi   1
            lofsa   'smell/rose'
            push    
            callk   Said, 2
            bnt     code_1146
            pushi   #has
            pushi   1
            pushi   34
            lag     global0
            send    6
            bnt     code_113e
            pushi   2
            pushi   0
            pushi   58
            calle   proc255_0, 4
            jmp     code_1bf3
code_113e:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_1146:  pushi   1
            lofsa   'get,detach/thorn'
            push    
            callk   Said, 2
            bnt     code_1173
            pushi   #has
            pushi   1
            pushi   34
            lag     global0
            send    6
            bnt     code_116b
            pushi   2
            pushi   0
            pushi   59
            calle   proc255_0, 4
            jmp     code_1bf3
code_116b:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_1173:  pushi   1
            lofsa   'lay[/!*]'
            push    
            callk   Said, 2
            bt      code_1194
            pushi   1
            lofsa   'lay,get,rob/egg'
            push    
            callk   Said, 2
            bt      code_1194
            pushi   1
            lofsa   'command/chicken'
            push    
            callk   Said, 2
            bnt     code_11b6
code_1194:  pushi   #has
            pushi   1
            pushi   33
            lag     global0
            send    6
            bnt     code_11ae
            pushi   2
            pushi   0
            pushi   60
            calle   proc255_0, 4
            jmp     code_1bf3
code_11ae:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_11b6:  pushi   1
            lofsa   'converse/chicken'
            push    
            callk   Said, 2
            bnt     code_11f3
            pushi   #has
            pushi   1
            pushi   33
            lag     global0
            send    6
            bnt     code_11eb
            pushi   8
            pushi   0
            pushi   61
            pushi   160
            lofsa   "Magic Hen"
            push    
            pushi   164
            pushi   431
            pushi   0
            pushi   0
            calle   proc255_0, 16
            jmp     code_1bf3
code_11eb:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_11f3:  pushi   1
            lofsa   'chew/chicken'
            push    
            callk   Said, 2
            bnt     code_1220
            pushi   #has
            pushi   1
            pushi   33
            lag     global0
            send    6
            bnt     code_1218
            pushi   2
            pushi   0
            pushi   62
            calle   proc255_0, 4
            jmp     code_1bf3
code_1218:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_1220:  pushi   1
            lofsa   'chew'
            push    
            callk   Said, 2
            bnt     code_1238
            pushi   2
            pushi   0
            pushi   63
            calle   proc255_0, 4
            jmp     code_1bf3
code_1238:  pushi   1
            lofsa   '/chandelier,lantern[<oil]>'
            push    
            callk   Said, 2
            bnt     code_12db
            pushi   1
            lofsa   '>,ignite,(turn<on)'
            push    
            callk   Said, 2
            bnt     code_129e
            pushi   #has
            pushi   1
            pushi   3
            lag     global0
            send    6
            not     
            bnt     code_1269
            pushi   2
            pushi   0
            pushi   64
            calle   proc255_0, 4
            jmp     code_1299
code_1269:  pushi   0
            call    localproc_2268, 0
            bnt     code_127e
            pushi   2
            pushi   0
            pushi   65
            calle   proc255_0, 4
            jmp     code_1299
code_127e:  pushi   0
            call    localproc_2652, 0
            bnt     code_128f
            pushi   1
            pushi   1
            call    localproc_2268, 2
            jmp     code_1299
code_128f:  pushi   2
            pushi   0
            pushi   66
            calle   proc255_0, 4
code_1299:  ldi     1
            jmp     code_12d3
code_129e:  pushi   1
            lofsa   'extinguish,(turn<off)'
            push    
            callk   Said, 2
            bnt     code_12db
            pushi   #has
            pushi   1
            pushi   3
            lag     global0
            send    6
            bnt     code_12d1
            pushi   0
            call    localproc_2268, 0
            bnt     code_12c7
            pushi   1
            pushi   0
            call    localproc_2268, 2
            jmp     code_12d1
code_12c7:  pushi   2
            pushi   0
            pushi   67
            calle   proc255_0, 4
code_12d1:  ldi     1
code_12d3:  bnt     code_12db
            ldi     1
            jmp     code_1bf3
code_12db:  pushi   #has
            pushi   1
            pushi   6
            lag     global0
            send    6
            bnt     code_132c
            pushi   1
            lofsa   '/eye>'
            push    
            callk   Said, 2
            bnt     code_132c
            pushi   1
            lofsa   'look<through,in'
            push    
            callk   Said, 2
            bnt     code_130d
            pushi   2
            pushi   0
            pushi   68
            calle   proc255_0, 4
            ldi     1
            jmp     code_1324
code_130d:  pushi   1
            lofsa   'break'
            push    
            callk   Said, 2
            bnt     code_132c
            pushi   2
            pushi   0
            pushi   69
            calle   proc255_0, 4
            ldi     1
code_1324:  bnt     code_132c
            ldi     1
            jmp     code_1bf3
code_132c:  pushi   #has
            pushi   1
            pushi   7
            lag     global0
            send    6
            bnt     code_1351
            pushi   1
            lofsa   'dennis,place/charm'
            push    
            callk   Said, 2
            bnt     code_1351
            pushi   2
            pushi   0
            pushi   70
            calle   proc255_0, 4
            jmp     code_1bf3
code_1351:  pushi   1
            lofsa   'hop'
            push    
            callk   Said, 2
            bnt     code_1369
            pushi   2
            pushi   0
            pushi   33
            calle   proc255_0, 4
            jmp     code_1bf3
code_1369:  pushi   1
            lofsa   'kill'
            push    
            callk   Said, 2
            bnt     code_1381
            pushi   2
            pushi   0
            pushi   71
            calle   proc255_0, 4
            jmp     code_1bf3
code_1381:  pushi   1
            lofsa   'rob'
            push    
            callk   Said, 2
            bnt     code_1399
            pushi   2
            pushi   0
            pushi   72
            calle   proc255_0, 4
            jmp     code_1bf3
code_1399:  pushi   1
            lofsa   'hit'
            push    
            callk   Said, 2
            bnt     code_13b1
            pushi   2
            pushi   0
            pushi   73
            calle   proc255_0, 4
            jmp     code_1bf3
code_13b1:  pushi   1
            lofsa   'climb'
            push    
            callk   Said, 2
            bnt     code_13c9
            pushi   2
            pushi   0
            pushi   74
            calle   proc255_0, 4
            jmp     code_1bf3
code_13c9:  pushi   1
            lofsa   'laugh'
            push    
            callk   Said, 2
            bnt     code_13e1
            pushi   2
            pushi   0
            pushi   75
            calle   proc255_0, 4
            jmp     code_1bf3
code_13e1:  pushi   1
            lofsa   'fling'
            push    
            callk   Said, 2
            bnt     code_13f9
            pushi   2
            pushi   0
            pushi   15
            calle   proc255_0, 4
            jmp     code_1bf3
code_13f9:  pushi   1
            lofsa   'converse'
            push    
            callk   Said, 2
            bnt     code_1434
            pushi   2
            pushi   1
            pushi   2
            callk   Random, 4
            push    
            dup     
            ldi     1
            eq?     
            bnt     code_141f
            pushi   2
            pushi   0
            pushi   76
            calle   proc255_0, 4
            jmp     code_1430
code_141f:  dup     
            ldi     2
            eq?     
            bnt     code_1430
            pushi   2
            pushi   0
            pushi   77
            calle   proc255_0, 4
code_1430:  toss    
            jmp     code_1bf3
code_1434:  pushi   1
            lofsa   'close/door'
            push    
            callk   Said, 2
            bnt     code_144c
            pushi   2
            pushi   0
            pushi   78
            calle   proc255_0, 4
            jmp     code_1bf3
code_144c:  pushi   1
            lofsa   'listen'
            push    
            callk   Said, 2
            bnt     code_1464
            pushi   2
            pushi   0
            pushi   79
            calle   proc255_0, 4
            jmp     code_1bf3
code_1464:  pushi   1
            lofsa   'sit'
            push    
            callk   Said, 2
            bnt     code_147c
            pushi   2
            pushi   0
            pushi   80
            calle   proc255_0, 4
            jmp     code_1bf3
code_147c:  pushi   1
            lofsa   'smell'
            push    
            callk   Said, 2
            bnt     code_1494
            pushi   2
            pushi   0
            pushi   81
            calle   proc255_0, 4
            jmp     code_1bf3
code_1494:  pushi   1
            lofsa   'open,(look<in)>'
            push    
            callk   Said, 2
            bnt     code_1617
            pushi   #saidMe
            pushi   0
            lag     global9
            send    4
            sat     temp1
            pushi   1
            lofsa   '[/!*]'
            push    
            callk   Said, 2
            bnt     code_14c1
            pushi   2
            pushi   0
            pushi   82
            calle   proc255_0, 4
            jmp     code_160b
code_14c1:  lat     temp1
            not     
            bnt     code_14d8
            pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
            pushi   0
            call    localproc_269a, 0
            jmp     code_160b
code_14d8:  pushi   #has
            pushi   1
            pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            lag     global0
            send    6
            not     
            bnt     code_14f7
            pushi   0
            call    localproc_26a6, 0
            jmp     code_160b
code_14f7:  pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            dup     
            ldi     1
            eq?     
            bnt     code_151f
            pushi   6
            pushi   0
            pushi   83
            pushi   164
            pushi   401
            pushi   0
            pushi   0
            calle   proc255_0, 12
            jmp     code_160a
code_151f:  dup     
            ldi     3
            eq?     
            bnt     code_1533
            pushi   2
            pushi   0
            pushi   84
            calle   proc255_0, 4
            jmp     code_160a
code_1533:  dup     
            ldi     12
            eq?     
            bnt     code_1547
            pushi   2
            pushi   0
            pushi   85
            calle   proc255_0, 4
            jmp     code_160a
code_1547:  dup     
            ldi     13
            eq?     
            bnt     code_155b
            pushi   2
            pushi   0
            pushi   86
            calle   proc255_0, 4
            jmp     code_160a
code_155b:  dup     
            ldi     28
            eq?     
            bnt     code_156f
            pushi   2
            pushi   0
            pushi   87
            calle   proc255_0, 4
            jmp     code_160a
code_156f:  dup     
            ldi     4
            eq?     
            bnt     code_15e8
            pushi   #view
            pushi   0
            lag     global0
            send    4
            push    
            ldi     2
            ne?     
            bnt     code_1592
            pushi   #view
            pushi   0
            lag     global0
            send    4
            push    
            ldi     4
            ne?     
            bt      code_159f
code_1592:  pushi   1
            pushi   1
            callk   MemoryInfo, 2
            push    
            ldi     4500
            lt?     
            bnt     code_15ac
code_159f:  pushi   2
            pushi   0
            pushi   88
            calle   proc255_0, 4
            jmp     code_160a
code_15ac:  pushi   #loop
            pushi   1
            pushi   0
            lag     global0
            send    6
            pushi   2
            lsg     global0
            pushi   30
            call    localproc_244a, 4
            sag     global168
            push    
            ldi     32768
            and     
            bnt     code_15d4
            pushi   2
            pushi   0
            pushi   89
            calle   proc255_0, 4
            jmp     code_160a
code_15d4:  pushi   #setScript
            pushi   1
            pushi   2
            pushi   307
            pushi   0
            callk   ScriptID, 4
            push    
            lag     global0
            send    6
            jmp     code_160a
code_15e8:  dup     
            ldi     18
            eq?     
            bnt     code_1600
            pushi   2
            pushi   0
            pushi   90
            calle   proc255_0, 4
            ldi     1
            sag     global154
            jmp     code_160a
code_1600:  pushi   2
            pushi   0
            pushi   91
            calle   proc255_0, 4
code_160a:  toss    
code_160b:  pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
            jmp     code_1bf3
code_1617:  pushi   1
            lofsa   'look>'
            push    
            callk   Said, 2
            bnt     code_1985
            pushi   1
            lofsa   '/&'
            push    
            callk   Said, 2
            bnt     code_163a
            pushi   2
            pushi   0
            pushi   92
            calle   proc255_0, 4
            jmp     code_1bf3
code_163a:  pushi   1
            lofsa   '/letter'
            push    
            callk   Said, 2
            bnt     code_168a
            pushi   #has
            pushi   1
            pushi   35
            lag     global0
            send    6
            bnt     code_1668
            pushi   6
            pushi   0
            pushi   93
            pushi   164
            pushi   435
            pushi   0
            pushi   0
            calle   proc255_0, 12
            jmp     code_1bf3
code_1668:  pushi   #has
            pushi   1
            pushi   31
            lag     global0
            send    6
            bnt     code_1682
            pushi   2
            pushi   0
            pushi   94
            calle   proc255_0, 4
            jmp     code_1bf3
code_1682:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_168a:  pushi   1
            lofsa   '/key'
            push    
            callk   Said, 2
            bnt     code_178d
            pushi   #claimed
            pushi   1
            pushi   0
            lap     pEvent
            send    6
            pushi   1
            lofsa   '/*<gold'
            push    
            callk   Said, 2
            bnt     code_16d6
            pushi   #has
            pushi   1
            pushi   32
            lag     global0
            send    6
            bnt     code_16c9
            pushi   #showSelf
            pushi   0
            pushi   #at
            pushi   1
            pushi   32
            class   Inv
            send    6
            send    4
            jmp     code_1bf3
code_16c9:  pushi   2
            pushi   0
            pushi   95
            calle   proc255_0, 4
            jmp     code_1bf3
code_16d6:  pushi   1
            lofsa   '/*<skeleton'
            push    
            callk   Said, 2
            bnt     code_170e
            pushi   #has
            pushi   1
            pushi   20
            lag     global0
            send    6
            bnt     code_1701
            pushi   #showSelf
            pushi   0
            pushi   #at
            pushi   1
            pushi   20
            class   Inv
            send    6
            send    4
            jmp     code_1bf3
code_1701:  pushi   2
            pushi   0
            pushi   95
            calle   proc255_0, 4
            jmp     code_1bf3
code_170e:  pushi   1
            lofsa   '/*[<!*]'
            push    
            callk   Said, 2
            bnt     code_1bf3
            pushi   #has
            pushi   1
            pushi   20
            lag     global0
            send    6
            bnt     code_1740
            pushi   #has
            pushi   1
            pushi   32
            lag     global0
            send    6
            bnt     code_1740
            pushi   2
            pushi   0
            pushi   96
            calle   proc255_0, 4
            jmp     code_1bf3
code_1740:  pushi   #has
            pushi   1
            pushi   20
            lag     global0
            send    6
            bnt     code_1760
            pushi   #showSelf
            pushi   0
            pushi   #at
            pushi   1
            pushi   20
            class   Inv
            send    6
            send    4
            jmp     code_1bf3
code_1760:  pushi   #has
            pushi   1
            pushi   32
            lag     global0
            send    6
            bnt     code_1780
            pushi   #showSelf
            pushi   0
            pushi   #at
            pushi   1
            pushi   32
            class   Inv
            send    6
            send    4
            jmp     code_1bf3
code_1780:  pushi   2
            pushi   0
            pushi   97
            calle   proc255_0, 4
            jmp     code_1bf3
code_178d:  pushi   1
            lofsa   '/moon,moon'
            push    
            callk   Said, 2
            bnt     code_17c9
            lag     global101
            bnt     code_17aa
            pushi   2
            pushi   0
            pushi   98
            calle   proc255_0, 4
            jmp     code_1bf3
code_17aa:  lag     global100
            bnt     code_17bc
            pushi   2
            pushi   0
            pushi   99
            calle   proc255_0, 4
            jmp     code_1bf3
code_17bc:  pushi   2
            pushi   0
            pushi   99
            calle   proc255_0, 4
            jmp     code_1bf3
code_17c9:  pushi   1
            lofsa   '/cloud'
            push    
            callk   Said, 2
            bnt     code_1805
            lag     global101
            bnt     code_17e6
            pushi   2
            pushi   0
            pushi   100
            calle   proc255_0, 4
            jmp     code_1bf3
code_17e6:  lag     global100
            bnt     code_17f8
            pushi   2
            pushi   0
            pushi   101
            calle   proc255_0, 4
            jmp     code_1bf3
code_17f8:  pushi   2
            pushi   0
            pushi   102
            calle   proc255_0, 4
            jmp     code_1bf3
code_1805:  pushi   1
            lofsa   '/wall'
            push    
            callk   Said, 2
            bnt     code_181d
            pushi   2
            pushi   0
            pushi   103
            calle   proc255_0, 4
            jmp     code_1bf3
code_181d:  pushi   1
            lofsa   '<in/bottle'
            push    
            callk   Said, 2
            bnt     code_1865
            pushi   #has
            pushi   1
            pushi   31
            lag     global0
            send    6
            not     
            bnt     code_183e
            pushi   0
            call    localproc_269a, 0
            jmp     code_1bf3
code_183e:  pushi   #has
            pushi   1
            pushi   35
            lag     global0
            send    6
            bnt     code_1858
            pushi   2
            pushi   0
            pushi   104
            calle   proc255_0, 4
            jmp     code_1bf3
code_1858:  pushi   2
            pushi   0
            pushi   105
            calle   proc255_0, 4
            jmp     code_1bf3
code_1865:  pushi   1
            lofsa   '/dirt,dirt'
            push    
            callk   Said, 2
            bt      code_187b
            pushi   1
            lofsa   '<down'
            push    
            callk   Said, 2
            bnt     code_1888
code_187b:  pushi   2
            pushi   0
            pushi   106
            calle   proc255_0, 4
            jmp     code_1bf3
code_1888:  pushi   1
            lofsa   '<up'
            push    
            callk   Said, 2
            bt      code_189e
            pushi   1
            lofsa   '/sky'
            push    
            callk   Said, 2
            bnt     code_18cf
code_189e:  lag     global101
            bnt     code_18b0
            pushi   2
            pushi   0
            pushi   107
            calle   proc255_0, 4
            jmp     code_1bf3
code_18b0:  lag     global100
            bnt     code_18c2
            pushi   2
            pushi   0
            pushi   108
            calle   proc255_0, 4
            jmp     code_1bf3
code_18c2:  pushi   2
            pushi   0
            pushi   109
            calle   proc255_0, 4
            jmp     code_1bf3
code_18cf:  pushi   #has
            pushi   1
            pushi   17
            lag     global0
            send    6
            bnt     code_190a
            pushi   #loop
            pushi   0
            pushi   #at
            pushi   1
            pushi   17
            class   Inv
            send    6
            send    4
            push    
            ldi     1
            eq?     
            bnt     code_190a
            pushi   1
            lofsa   '/earthworm'
            push    
            callk   Said, 2
            bnt     code_190a
            pushi   2
            pushi   0
            pushi   110
            calle   proc255_0, 4
            jmp     code_1bf3
code_190a:  pushi   #saidMe
            pushi   0
            lag     global9
            send    4
            sat     temp1
            bnt     code_193f
            pushi   #has
            pushi   1
            pushi   #indexOf
            pushi   1
            push    
            lag     global9
            send    6
            push    
            lag     global0
            send    6
            bnt     code_1937
            pushi   #showSelf
            pushi   0
            lat     temp1
            send    4
            jmp     code_1bf3
code_1937:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_193f:  pushi   1
            lofsa   '/troll,bard,dwarf,pan,giant,goon,person,man'
            push    
            callk   Said, 2
            bt      code_1960
            pushi   1
            lofsa   '/hag,fishwife,fairies,genesta,lolotte,giantess,fishwife'
            push    
            callk   Said, 2
            bt      code_1960
            pushi   1
            lofsa   '/unicorn,bird,bulldog,fisherman,whale'
            push    
            callk   Said, 2
            bnt     code_196d
code_1960:  pushi   2
            pushi   0
            pushi   111
            calle   proc255_0, 4
            jmp     code_1bf3
code_196d:  pushi   2
            pushi   800
            pushi   4
            calle   proc255_0, 4
            pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
            jmp     code_1bf3
code_1985:  pushi   1
            lofsa   'use>'
            push    
            callk   Said, 2
            bnt     code_19f4
            pushi   #saidMe
            pushi   0
            lag     global9
            send    4
            sat     temp1
            not     
            bnt     code_19ab
            pushi   2
            pushi   0
            pushi   112
            calle   proc255_0, 4
            jmp     code_19e8
code_19ab:  pushi   #has
            pushi   1
            pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            lag     global0
            send    6
            not     
            bnt     code_19ca
            pushi   0
            call    localproc_26a6, 0
            jmp     code_19e8
code_19ca:  pushi   1
            pushi   4
            lea     @global300
            push    
            pushi   0
            pushi   113
            pushi   #name
            pushi   0
            lat     temp1
            send    4
            push    
            callk   Format, 8
            push    
            calle   proc255_0, 2
code_19e8:  pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
            jmp     code_1bf3
code_19f4:  pushi   1
            lofsa   'deliver>'
            push    
            callk   Said, 2
            bnt     code_1a7d
            pushi   1
            lofsa   '/*[/!*]'
            push    
            callk   Said, 2
            bnt     code_1a17
            pushi   2
            pushi   0
            pushi   114
            calle   proc255_0, 4
            jmp     code_1bf3
code_1a17:  pushi   1
            lofsa   '[/!*]'
            push    
            callk   Said, 2
            bnt     code_1a2f
            pushi   2
            pushi   0
            pushi   115
            calle   proc255_0, 4
            jmp     code_1bf3
code_1a2f:  pushi   #saidMe
            pushi   0
            lag     global9
            send    4
            sat     temp1
            bnt     code_1a67
            pushi   #has
            pushi   1
            pushi   #indexOf
            pushi   1
            push    
            lag     global9
            send    6
            push    
            lag     global0
            send    6
            not     
            bnt     code_1a5a
            pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_1a5a:  pushi   2
            pushi   0
            pushi   116
            calle   proc255_0, 4
            jmp     code_1bf3
code_1a67:  pushi   2
            pushi   0
            pushi   117
            calle   proc255_0, 4
            pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
            jmp     code_1bf3
code_1a7d:  pushi   1
            lofsa   'get>'
            push    
            callk   Said, 2
            bnt     code_1b5c
            pushi   1
            lofsa   '/water'
            push    
            callk   Said, 2
            bnt     code_1aa0
            pushi   2
            pushi   0
            pushi   118
            calle   proc255_0, 4
            jmp     code_1bf3
code_1aa0:  pushi   1
            lofsa   '[/!*]'
            push    
            callk   Said, 2
            bnt     code_1ab8
            pushi   2
            pushi   0
            pushi   119
            calle   proc255_0, 4
            jmp     code_1bf3
code_1ab8:  pushi   #saidMe
            pushi   0
            lag     global9
            send    4
            sat     temp1
            not     
            bnt     code_1adc
            pushi   #claimed
            pushi   1
            pushi   1
            lap     pEvent
            send    6
            pushi   2
            pushi   0
            pushi   120
            calle   proc255_0, 4
            jmp     code_1bf3
code_1adc:  pushi   #has
            pushi   1
            pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            lag     global0
            send    6
            bnt     code_1b2f
            pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            dup     
            ldi     1
            eq?     
            bnt     code_1b0c
            pushi   0
            call    localproc_2682, 0
            jmp     code_1b2b
code_1b0c:  dup     
            ldi     13
            eq?     
            bnt     code_1b20
            pushi   2
            pushi   0
            pushi   121
            calle   proc255_0, 4
            jmp     code_1b2b
code_1b20:  pushi   2
            pushi   800
            pushi   0
            calle   proc255_0, 4
code_1b2b:  toss    
            jmp     code_1bf3
code_1b2f:  pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            dup     
            ldi     3
            eq?     
            bnt     code_1b4e
            pushi   2
            pushi   0
            pushi   122
            calle   proc255_0, 4
            jmp     code_1b58
code_1b4e:  pushi   2
            pushi   0
            pushi   123
            calle   proc255_0, 4
code_1b58:  toss    
            jmp     code_1bf3
code_1b5c:  pushi   1
            lofsa   'show>'
            push    
            callk   Said, 2
            bnt     code_1b9f
            pushi   #saidMe
            pushi   0
            lag     global9
            send    4
            sat     temp1
            bnt     code_1b9f
            pushi   #has
            pushi   1
            pushi   #indexOf
            pushi   1
            lst     temp1
            lag     global9
            send    6
            push    
            lag     global0
            send    6
            bnt     code_1b97
            pushi   2
            pushi   0
            pushi   124
            calle   proc255_0, 4
            jmp     code_1bf3
code_1b97:  pushi   0
            call    localproc_26a6, 0
            jmp     code_1bf3
code_1b9f:  pushi   1
            lofsa   'overtime/nosleep'
            push    
            callk   Said, 2
            bnt     code_1bba
            ldi     1
            sag     global215
            ldi     1
            sag     global216
            pushi   0
            call    localproc_268e, 0
            jmp     code_1bf3
code_1bba:  pushi   #saidMe
            pushi   0
            lag     global9
            send    4
            sat     temp1
            bnt     code_1bf3
            pushi   #has
            pushi   1
            pushi   #indexOf
            pushi   1
            push    
            lag     global9
            send    6
            push    
            lag     global0
            send    6
            not     
            bnt     code_1be7
            pushi   0
            call    localproc_26a6, 0
            ldi     1
            jmp     code_1bee
code_1be7:  pushi   0
            call    localproc_269a, 0
            ldi     1
code_1bee:  bnt     code_1bf3
            ldi     1
code_1bf3:  ret     
        )
    )


    (method (wordFail param1)
        proc255_0(Format(@global300 0 4 param1))
    )


    (method (syntaxFail)
        proc255_0(0 5)
    )


    (method (pragmaFail)
        (switch (Random(1 3))
            (case 1
                (proc255_0(0 6)  )
            )
            (case 2
                (proc255_0(0 7)  )
            )
            (case 3
                (proc255_0(0 8) )
            )
        )
    )

)
(instance {Silver Flute} of newInvItem
    (properties
        said '/flute'
        owner 201
        view 413
    )
)
(instance {Diamond Pouch} of newInvItem
    (properties
        said '/(pouch[<diamond]),diamond'
        view 401
    )
)
(instance Talisman of newInvItem
    (properties
        said '/amulet,amulet'
        owner 82
        view 411
    )
)
(instance {Lantern (unlit)} of newInvItem
    (properties
        said '/lantern'
        owner 56
        view 428
    )
)
(instance {Pandora's Box} of newInvItem
    (properties
        said '/box'
        owner 69
        view 425
    )
)
(instance {Gold Ball} of newInvItem
    (properties
        said '/ball'
        owner 21
        view 400
    )
)
(instance {Witches' Glass Eye} of newInvItem
    (properties
        said '/eye'
        owner 57
        view 423
    )
)
(instance {Obsidian Scarab} of newInvItem
    (properties
        said '/charm'
        owner 57
        view 403
    )
)
(instance {Peacock Feather} of newInvItem
    (properties
        said '/feather'
        owner 888
        view 429
    )
)
(instance Lute of newInvItem
    (properties
        said '/lute'
        owner 203
        view 414
    )
)
(instance {Small Crown} of newInvItem
    (properties
        said '/crown'
        owner 200
        view 402
    )
)
(instance Frog of newInvItem
    (properties
        said '/frog'
        owner 15
        view 432
    )
)
(instance {Silver Baby Rattle} of newInvItem
    (properties
        said '/rattle'
        owner 88
        view 405
    )
)
(instance {Gold Coins} of newInvItem
    (properties
        said '/gold,(bag[<gold]),(bag[<gold,bag])'
        owner 88
        view 406
    )
)
(instance {Cupid's Bow} of newInvItem
    (properties
        said '/arrow[<cupid]'
        owner 202
        view 415
    )
)
(instance Shovel of newInvItem
    (properties
        said '/shovel'
        owner 66
        view 420
    )

    (method (ownedBy param1)
        (if (loop)
            = name "Broken Shovel"
        )(else
            = name "Shovel"
        )
        (super:ownedBy(param1))
    )


    (method (showSelf)
        proc255_0(0 0 160 
            (if ((self:loop()))
                "Broken Shovel"
            )(else
                "Shovel"
            )
 164 view loop cel)
    )

)
(instance Axe of newInvItem
    (properties
        said '/ax'
        owner 48
        view 418
    )
)
(instance {Fishing Pole} of newInvItem
    (properties
        said '/pole[<fish]'
        owner 204
        view 421
    )

    (method (ownedBy param1)
        (if (loop)
            = name "Baited Fishing Pole"
        )(else
            = name "Fishing Pole"
        )
        (super:ownedBy(param1))
    )


    (method (showSelf)
        proc255_0(0 0 160 
            (if ((self:loop()))
                "Baited Fishing Pole"
            )(else
                "Fishing Pole"
            )
 164 view loop cel)
    )

)
(instance {Shakespeare Book} of newInvItem
    (properties
        said '/book[<shakespeare]'
        owner 67
        view 416
    )
)
(instance Worm of newInvItem
    (properties
        said '/earthworm'
        owner 206
        view 433
    )
)
(instance {Skeleton Key} of newInvItem
    (properties
        said '/key<skeleton'
        owner 58
        view 424
    )
)
(instance {Golden Bridle} of newInvItem
    (properties
        said '/bit'
        owner 43
        view 426
    )
)
(instance Board of newInvItem
    (properties
        said '/board'
        owner 70
        view 430
    )
)
(instance Bone of newInvItem
    (properties
        said '/['
        owner 71
        view 419
    )
)
(instance {Dead Fish} of newInvItem
    (properties
        said '/fish[<dead]'
        owner 95
        view 422
    )
)
(instance {Magic Fruit} of newInvItem
    (properties
        said '/fruit'
        owner 78
        view 412
    )
)
(instance {Sheet Music} of newInvItem
    (properties
        said '/music'
        owner 63
        view 417
    )
)
(instance {Silver Whistle} of newInvItem
    (properties
        said '/whistle'
        owner 207
        view 427
    )
)
(instance Locket of newInvItem
    (properties
        said '/locket'
        owner 88
        view 404
    )
)
(instance Medal of newInvItem
    (properties
        said '/badge'
        owner 88
        view 407
    )
)
(instance {Toy Horse} of newInvItem
    (properties
        said '/toy,(horse<toy)'
        owner 88
        view 408
    )
)
(instance {Glass Bottle} of newInvItem
    (properties
        said '/bottle'
        owner 44
        view 434
        cel 1
    )
)
(instance {Gold Key} of newInvItem
    (properties
        said '/key<gold'
        owner 83
        view 410
    )
)
(instance {Magic Hen} of newInvItem
    (properties
        said '/chicken'
        owner 48
        view 431
    )
)
(instance Rose of newInvItem
    (properties
        said '/rose'
        description "What a beautiful red rose! What's this?! Why, there is a little gold key attached to this rose!"
        owner 85
        view 409
    )

    (method (showSelf)
        (if (loop)
            proc255_0(0 125 164 view loop cel)
        )(else
            proc255_0(0 126 164 view loop cel)
        )
    )

)
(instance Note of newInvItem
    (properties
        said '/letter'
        owner 999
        view 435
    )
)
(instance liteState of Script
    (properties
        state 0
    )

    (method (init theClient)
        = client theClient
        (send client:script(self))
    )


    (method (changeState newState)
        (if (<> state newState)
            (switch (= state newState)
                (case 0
                    proc255_0(0 127)
                    (send client:
                        description("The lantern is off.\nThe oil lantern looks well-used.")
                        name("Lantern (unlit)")
                        loop(0)
                    )
                )
                (case 1
                    proc255_0(0 128)
                    (send client:
                        description("The lantern is on.\nThe oil lantern looks well-used.")
                        name("Lantern (lit)")
                        loop(1)
                    )
                )
            )
        )
    )

)
(instance public smallBase of Code
    (properties)

    (method (doit param1)
        (send param1:brTop((- (send param1:y()) (send param1:yStep()))))
        (send param1:brLeft((- (send param1:x()) (/ (send param1:xStep()) 2))))
        (send param1:brBottom((send param1:y())))
        (send param1:brRight((+ (send param1:x()) (/ (send param1:xStep()) 2))))
    )

)
(instance public timer1 of Timer
    (properties)
)
(instance public timer2 of Timer
    (properties)
)
(instance public timer3 of Timer
    (properties)
)
(instance public timer4 of Timer
    (properties)
)
(instance public timer5 of Timer
    (properties)
)
