Guest User

Untitled

a guest
Dec 30th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. quest bossy begin
  2. state start begin
  3. when kill begin
  4. ---------------- CONFIG ----------------
  5. WYMAGANY_ITEM = 69010
  6. SZANSA = 10
  7. TABLICA = {
  8. {8009, 591},
  9. {8010, 591},
  10. {8011, 591} -- ostatni bez przecinka
  11. }
  12. ----------------------------------------
  13. if pc.countitem(WYMAGANY_ITEM) > 0 then
  14. for i=0, table.getn(TABLICA) do
  15. if npc.get_race() == TABLICA[i][1] and SZANSA >= number(1,100) then
  16. mob.spawn(TABLICA[i][2], pc.get_local_x(), pc.get_local_y(), 1, 1, 1)
  17. end
  18. end
  19. end
  20. end
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment