Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- 1. Informacja o starcie wydażenia
- 3. Resp Fala Metiny
- 4. Resp Fala Bossy
- List Quest Flag:
- event_zuo_status -- start wydażenia
- event_zuo_max_round -- Maksymalna ilość fal :)
- ]]
- quest event_zuo begin
- state start begin
- function spawnRandomID(vnum, count)
- for randomSpawn = 1, count do
- pc.mob_spawn(vnum, 509)
- end
- end
- when login begin
- if os.date("%H") >= 21 and os.date("%H") <= 22 and game.get_event_flag("event_zuo_status") == 0 then
- game.set_event_flag("event_zuo_status", 1)
- server_timer ("respawn", 100 )
- else
- game.set_event_flag("event_zuo_status", 0)
- clear_server_timer('Czas3', get_server_timer_arg())
- end
- ----- Zwój z powiadomieniem
- when letter with game.get_event_flag("event_zuo_status") == 1 begin
- send_letter("Event: ZUO")
- end
- when button or info with game.get_event_flag("event_zuo_status") == 1 begin
- say_title("Event: ZUO")
- say("Witaj,"..pc.get_name().."! ")
- say()
- say("Aktualnie trwa event ZUO.")
- say("Czy chcesz wziąć udział w evencie?")
- say()
- local s = select("Weź udział ", "Anuluj")
- if s == 1 then
- pc.warp(295400, 547600)
- end
- end
- ----- Informacja o aktywności wydażenia
- when login with game.get_event_flag("event_zuo_status") == 1 begin
- notice(chat_color("[EVENT]", "blue1").." |"..locale.kolor_glowny1.."ZUO|h|r jest aktywny. Życzymy miłej zabawy!")
- end
- ----- Resp metinów i bossów
- when respawn.server_timer with game.get_event_flag("event_zuo_status") == 1 begin
- if game.get_event_flag("event_zuo_boss_round") <= game.get_event_flag("event_zuo_max_round") then
- notice("Kolejna fala bossów")
- game.set_event_flag("event_zuo_boss_round", game.get_event_flag("event_zuo_boss_round")+1)
- local spawnTable = {
- [1] = {2491, 2492, 4090, 4091, 4190, 4191, 4290, 4291, 4390, 4391}, -- :: Bossy mapy:: --
- [2] = {1093, 3791, 3391, 3091, 3290, 2493, 4592, 4691}, -- :: Bossy dungi:: --
- }
- for i = 1, table.getn(spawnTable[1]) do
- event_zuo.spawnRandomID(spawnTable[1][i], 7)
- end
- for i = 1, table.getn(spawnTable[2]) do
- event_zuo.spawnRandomID(spawnTable[2][i], 7)
- end
- else
- game.set_event_flag("event_zuo_status", 0)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement