Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest event_drop begin
- state start begin
- when login with game.get_event_flag("blaski") == 1 begin
- notice("[OGŁOSZENIE] Wydarzenie drop szkatułek blasku jest aktywne.")
- end
- when kill with not npc.is_pc() and game.get_event_flag("blaski") == 1 begin
- local mob_level = npc.get_level()
- local level = pc.get_level()
- if level - mob_level <= 10 and level - mob_level >= -10 then -- +/- 10 lvli nasz a moba
- if number(1, 1000) < 10 then -- szansa to 0.15%
- game.drop_item_with_ownership(50011)
- end
- end
- end
- when ID_NPC.chat."GM: Szkaty Blasku" with pc.is_gm() begin
- local a = select("Włącz/Wyłącz", "Anuluj")
- if a == 1 then
- if game.get_event_flag("blaski") == 0 then
- game.set_event_flag("blaski", 1)
- notice("[OGŁOSZENIE] Wydarzenie drop szkatułek blasku został aktywowany.")
- elseif game.get_event_flag("blaski") == 1 then
- game.set_event_flag("blaski", 0)
- notice("[OGŁOSZENIE] Wydarzenie drop szkatułek blasku został zakończony.")
- end
- else
- return
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement