sound.daemon_talk = data\sound\daemon_talk.wav
sound.web_rip = data\sound\web_rip.wav

[behavior = stone_sign1]
  <on_click = 0>
    text_id = kt3_sing1

[behavior = stone_sign2]
  <on_click = 0>
    text_id = kt3_sing2

--------------------------------------------------------------------------------

[behavior = up1]
<on_enter = 0,1>
    do_click=0
<on_click = 0>
    play_sound.ladder=0
    teleport.KINGS_TOMB_2 = 0,18,18
[behavior = up2]
  <on_enter = 0,1>
    do_click=0
  <on_click = 0>
    play_sound.ladder=0
    teleport.KINGS_TOMB_2 = 0,22,17
[behavior = up3]
  <on_enter = 0,1>
    do_click=0
  <on_click = 0>
    play_sound.ladder=0
    teleport.KINGS_TOMB_2 = 2,26,20
[behavior = up4]
  <on_enter = 0,1>
    do_click=0
  <on_click = 0>
    play_sound.ladder=0
    teleport.KINGS_TOMB_2 = 2,22,33

--------------------------------------------------------------------------------

[behavior = tele_out]
  <on_enter = 0,1>
    enemy_forced.undeadking = 0,0
    object.king_dummy = 0,0,0
    play_sound.daemon_talk=0
    picture = data/scene/undeadking.jpg
    text_id = kt3_king2
    button_id = b_next
  <on_button=0,0>
    picture = data/scene/undeadking.jpg
    text_id = kt3_king3
    button_id = b_next
    state=1
  <on_button=1,0>
    picture = data/scene/undeadking.jpg
    text_id = kt3_king4
    button_id = b_king1
    state=2
  <on_button=2,0>
    picture = data/scene/undeadking.jpg
    text_id = kt3_king5
    button_id = b_next
    state=3
  <on_button=3,0>
    picture = data/scene/undeadking.jpg
    text_id = kt3_king6
    button_id = b_next
    state=4
  <on_button=4,0>
    picture = data/scene/undeadking.jpg
    text_id = kt3_king7
    quest.evil_cult = 1
    quest.entering_cloister = 1
    state=100
    teleport=-1,-2,0

  <on_enter = 100,1>
    check_item.kingsgold1=1
  <on_check = 100,1,1>
    play_sound.daemon_talk=0
    picture = data/scene/undeadking.jpg
    text_id = kt3_king_gold
    teleport=-1,-2,0
  <on_check = 100,1,0>
    check_item.kingsgold2=2
  <on_check = 100,2,1>
    play_sound.daemon_talk=0
    picture = data/scene/undeadking.jpg
    text_id = kt3_king_gold
    teleport=-1,-2,0
  <on_check = 100,2,0>
    check_item.kingsgold3=3
  <on_check = 100,3,1>
    play_sound.daemon_talk=0
    picture = data/scene/undeadking.jpg
    text_id = kt3_king_gold
    teleport=-1,-2,0
  <on_check = 100,3,0>
    check_item.kingsgold4=4
  <on_check = 100,4,0>
    teleport = 2,4,-9
    flash_view = 100, 200, 255, 200
    play_sound.teleport=0
    set_global.12=1
  <on_check = 100,4,1>
    play_sound.daemon_talk=0
    xplay_sound.move_stone=0
    picture = data/scene/undeadking.jpg
    text_id = kt3_king_gold
    teleport=-1,-2,0

[behavior = tele_in]
  <on_enter = 0,1>
    check_global.16=4,0
  <on_check=0,0,0>
    flash_view=100,200,255,200
    play_sound.teleport=0
    teleport = 1,0,0

[behavior = tele_level1]
  <on_enter = 0,1>
    flash_view=100,200,255,200
    play_sound.teleport=0
    teleport.kings_tomb_1 = -1,1,14
   
    
--------------------------------------------------------------------------------
    
    
[behavior = tomb_door]
  <on_init = 0>
  	animate = 0, 0, 0, 1
  	block = 1
  <on_init = 1>
  	animate = 4, 4, 0, 1
  	block = 0
  <on_click = 0>
  	state = 1
	  animate = -1, 4, 0, 1
  	block = 0
  	play_sound.move_stone=0
  	end_round=1
  <on_click = 1>
  	state = 0
  	animate = -1, 0, 0, 1
  	block = 1
  	play_sound.move_stone=0
  	end_round=1


--------------------------------------------------------------------------------
[behavior = king_dummy]
  <on_click=0>
    play_sound.daemon_talk=0
    text_id = kt3_king1




--------------------------------------------------------------------------------
[behavior=mentor_book]
  <on_click=0>
    play_sound.map=0
    picture = data/scene/book.jpg
    text_id = kt3_book1

[behavior=wizard_book]
  <on_click=0>
    play_sound.map=0
    picture = data/scene/book.jpg
    text_id = kt3_book2
    button_id = b_yes
    button_id = b_no
  <on_button = 0,0>
    play_sound.map=0
    picture = data/scene/book.jpg
    text_id = kt3_book2b
    button_id = b_yes
    button_id = b_no
    state=1
  <on_button = 1,1>
    state=0

  <on_button = 1,0>
    play_sound.map=0
    picture = data/scene/book.jpg
    text_id = kt3_book2_ch1
    button_id = b_next
    state=2
  <on_button = 2,0>
    picture = data/scene/book.jpg
    play_sound.map=0
    text_id = kt3_book2_ch2
    button_id = b_next
    state=3
  <on_button = 3,0>
    picture = data/scene/book.jpg
    play_sound.map=0
    text_id = kt3_book2_ch3
    button_id = b_next
    state=4
  <on_button = 4,0>
    picture = data/scene/book.jpg
    play_sound.map=0
    text_id = kt3_book2_ch4
    item.paper_with_runes = 255,255
    play_sound.web_rip =0
    state=5

  <on_click=5>
    picture = data/scene/book.jpg
    play_sound.map=0
    text_id = kt3_book2_ch1
    button_id = b_next
    state=6
  <on_button = 6,0>
    picture = data/scene/book.jpg
    play_sound.map=0
    text_id = kt3_book2_ch2
    button_id = b_next
    state=7
  <on_button = 7,0>
    picture = data/scene/book.jpg
    play_sound.map=0
    text_id = kt3_book2_ch3
    state=5



[behavior=got_in_tomb]
  <on_enter=0,1>
    quest.kings_tomb=2
    exp=1000
    state=1
