Facebook
From Amadi, 8 Years ago, written in Lua.
Embed
Download Paste or View Raw
Hits: 350
  1. quest dungeon_nazwa begin
  2.         state start begin
  3.         when 20095.chat."Wejście do Duna" begin
  4.                         say_title("Tytuł")
  5.                         say("txt")
  6.                         local y = select("Wchodze", "Anuluj")
  7.                         if y == 2 then return end
  8.                         if y == 1 then -- Wchodzimy
  9.                                 d.join(251) -- Wbijasz w dungeon z grupą
  10.                                 d.spawn_mob(id_metka, kordx, kordy)-- Powtórz funkcje ile w zaleznosci ile chcesz mieć metków
  11.                                 d.setf("dungeon_kill", 1)
  12.                         end
  13.         end
  14.                 when kill with pc.in_dungeon() and d.getf("dungeon_kill") == 1 and npc.get_race() == id_metka begin
  15.                         d.setf("metin_count", d.getf("metin_count")+1)
  16.                         if d.getf("metin_count") >= IloscMetkowDoZabicia then
  17.                                 d.spawn_mob(693, 50,50) -- Respie wodza orków
  18.                         else
  19.                                 d.notice("Zniszczyłeś "..d.getf("metin_count").." metinów")
  20.                         end
  21.                 end
  22.                 when kill with pc.in_dungeon() and d.getf("dungeon_kill") == 1 and npc.get_race() == 693 begin
  23.                         d.notice("Udało Ci się pokonać wodza orków ")
  24.                         d.notice("za 20 sekund zostaniecie wylogowani !")
  25.                         server_timer('exit_timer', 20, pc.get_map_index())
  26.                 end
  27.                 when exit_timer.server_timer begin
  28.                         if d.select(get_server_timer_arg()) then
  29.                                 d.exit_all()
  30.                         end
  31.                 end
  32.         end
  33. end