Advertisement
kamil2321

Wymiana

Mar 4th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. quest wymiana begin
  2.     state start begin
  3.         when 20381.chat."Wymiana dodan/zmianek" begin
  4.             say_title(mob_name(npc.get_race())..":")
  5.             say("Witaj, potrzebujesz wymienic")
  6.             say("zmianki na dodania lub odwrotnie?")
  7.             say("Dobrze trafiles, wybierz co chcesz zrobic:")
  8.             local s = select("Zmiany na Dodania", "Dodania na Zmiany", "Wyjdź ")
  9.             if s == 1 then
  10.                 if pc.count_item(39028) >= 1 then
  11.                     pc.give_item2(39029, 3)
  12.                     pc.remove_item(39028, 1)
  13.                 else
  14.                     syschat("Nie masz Zaczarowania Przedmiotu!")
  15.                 end
  16.             elseif s == 2 then
  17.                 if pc.count_item(39029) >= 1 then
  18.                     pc.give_item2(39028, 1)
  19.                     pc. remove_item(39029, 1)
  20.                 else
  21.                     syschat("Nie masz Wzmocnienia Przedmiotu!")
  22.                 end
  23.             elseif s == 3 then
  24.                 return
  25.             end
  26.         end
  27.     end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement