Bambus3k

Untitled

Jun 23rd, 2023
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.59 KB | None | 0 0
  1. quest deviltower_zone begin
  2.     state start begin
  3.         when login begin
  4.             if pc.get_map_index() == 66 then
  5.                 -- 1층이 아닐 때만 밖으로 내보낸다.
  6.                 -- 층 범위
  7.                 -- 1층  88  577  236 737
  8.                 -- 2층  91  343  238 504
  9.                 -- 3층 104  107  248 269
  10.                 if pc.get_x() < 2048+88 or pc.get_y() < 6656+577 or pc.get_x() > 2048+236 or pc.get_y() > 6656+737 then
  11.                     pc.warp((5376+532)*100, (512+596+4)*100, 65)
  12.                 end
  13.                 pc.set_warp_location(65, 5376+532, 512+596+4)
  14.             elseif pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 then
  15.                 pc.set_warp_location(65, 5376+532, 512+596+4)
  16.             end
  17.         end
  18.  
  19.         when deviltower_man.chat.locale.deviltower_man_chat begin
  20.             if pc.get_level() < 40 then
  21.                 say(locale.deviltower_man_say_you_cant)
  22.             else
  23.                 say(locale.deviltower_man_say)
  24.                 local s = select(locale.deviltower_enter,locale.deviltower_no_enter)
  25.                 if s == 1 then
  26.                     pc.warp(216500,727000)
  27.                 end
  28.             end
  29.         end
  30.  
  31.         when devil_stone1.kill begin
  32.             timer("devil_stone1_1", 6)
  33.         end
  34.  
  35.         when devil_stone1_1.timer begin
  36.             local mapto7 = pc.count_item(30302)  -- 혹시 있을찌 모를 진사귀지도타워 지우기
  37.             pc.remove_item(30302,mapto7)
  38.  
  39.             local boxto7 = pc.count_item(30300)  -- 혹시 있을찌 모를 알수없는상자 지우기
  40.             pc.remove_item(30300,boxto7)
  41.  
  42.             d.new_jump_all(66, special.devil_tower[1][1], special.devil_tower[1][2])
  43.             d.regen_file("data/dungeon/deviltower2_regen.txt")
  44.             d.set_warp_at_eliminate(4, d.get_map_index(), special.devil_tower[2][1], special.devil_tower[2][2], "data/dungeon/deviltower3_regen.txt")
  45.         end
  46.  
Add Comment
Please, Sign In to add comment