MorroWxD

Medale

May 17th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.10 KB | None | 0 0
  1. quest medal_konny begin
  2.     state start begin
  3.         when 50050.use begin
  4.             if pc.getqf("czas_uzycia") <= get_time() then
  5.                 if horse.get_level() >= 11 then
  6.                     chat("Potrzebujesz lepszego medalu konia!")
  7.                     return
  8.                 end
  9.                 if horse.get_level() <= 11 then
  10.                         local losowanie1 = math.random(2)
  11.                         if losowanie1 == 1 then
  12.                         horse.set_level(horse.get_level() + 1)
  13.                         chat("Szkolenie pomyślne")
  14.                         pc.setqf("czas_uzycia", get_time()+ 60*30)
  15.                         item.remove()
  16.                         else
  17.                         chat("Szkolenie niepomyślne")
  18.                         item.remove()
  19.                         end
  20.                 end
  21.             else
  22.                 chat("Nie mineło 30 minut od ostatniego użycia.")
  23.             end
  24.         end
  25. ------------------------------------------------------------------------------------
  26.         when 6004.use begin
  27.             if pc.getqf("czas_uzycia") <= get_time() then
  28.                 if horse.get_level() >= 21 then
  29.                     chat("Potrzebujesz lepszego medalu konia!")
  30.                     return
  31.                 end
  32.                 if horse.get_level() <= 21 then
  33.                         local losowanie1 = math.random(2)
  34.                         if losowanie1 == 1 then
  35.                         horse.set_level(horse.get_level() + 1)
  36.                         chat("Szkolenie pomyślne")
  37.                         pc.setqf("czas_uzycia", get_time()+ 60*30)
  38.                         item.remove()
  39.                         else
  40.                         chat("Szkolenie niepomyślne ")
  41.                         item.remove()
  42.                         end
  43.                 end
  44.             else
  45.                 chat("Nie mineło 30 minut od ostatniego użycia.")
  46.             end
  47.         end
  48. -----------------------------------------------------------------------------------
  49.         when 6005.use begin
  50.             if pc.getqf("czas_uzycia") <= get_time() then
  51.                 if horse.get_level() >= 30 then
  52.                     chat("Potrzebujesz lepszego medalu konia!")
  53.                     return
  54.                 end
  55.                 if horse.get_level() <= 30 then
  56.                         local losowanie1 = math.random(2)
  57.                         if losowanie1 == 1 then
  58.                         horse.set_level(horse.get_level() + 1)
  59.                         chat("Szkolenie pomyślne")
  60.                         pc.setqf("czas_uzycia", get_time()+ 60*30)
  61.                         item.remove()
  62.                         else
  63.                         chat("Szkolenie niepomyślne")
  64.                         item.remove()
  65.                         end
  66.                 end
  67.             else
  68.                 chat("Nie mineło 30 minut od ostatniego użycia.")
  69.             end
  70.         end
  71. ---------------------------------------------------------------------------------
  72.     end
  73. end
Advertisement
Add Comment
Please, Sign In to add comment