Advertisement
Guest User

Untitled

a guest
May 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. quest event_drop begin
  2. state start begin
  3. when login with game.get_event_flag("blaski") == 1 begin
  4. notice("[OGŁOSZENIE] Wydarzenie drop szkatułek blasku jest aktywne.")
  5. end
  6.  
  7. when kill with not npc.is_pc() and game.get_event_flag("blaski") == 1 begin
  8. local mob_level = npc.get_level()
  9. local level = pc.get_level()
  10. if level - mob_level <= 10 and level - mob_level >= -10 then -- +/- 10 lvli nasz a moba
  11. if number(1, 1000) < 10 then -- szansa to 0.15%
  12. game.drop_item_with_ownership(50011)
  13. end
  14. end
  15. end
  16.  
  17. when ID_NPC.chat."GM: Szkaty Blasku" with pc.is_gm() begin
  18. local a = select("Włącz/Wyłącz", "Anuluj")
  19. if a == 1 then
  20. if game.get_event_flag("blaski") == 0 then
  21. game.set_event_flag("blaski", 1)
  22. notice("[OGŁOSZENIE] Wydarzenie drop szkatułek blasku został aktywowany.")
  23. elseif game.get_event_flag("blaski") == 1 then
  24. game.set_event_flag("blaski", 0)
  25. notice("[OGŁOSZENIE] Wydarzenie drop szkatułek blasku został zakończony.")
  26. end
  27. else
  28. return
  29. end
  30. end
  31. end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement